From e84db132fd114f3d1caba5fd99c16c790ecad944 Mon Sep 17 00:00:00 2001 From: VentelR Date: Tue, 9 Apr 2024 22:24:31 +0700 Subject: [PATCH] merge +tguibundle --- tgui/public/tgui.bundle.js | 87908 +---------------------------------- 1 file changed, 333 insertions(+), 87575 deletions(-) diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index c83f3bbe1115..3111b1161b30 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,87575 +1,333 @@ -(function () { - (function () { - var $t = { - 15113: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.createPopper = void 0), - (r.popperGenerator = f); - var e = p(n(28770)), - a = p(n(12866)), - t = p(n(88577)), - o = p(n(29727)), - m = p(n(13657)), - N = p(n(97902)), - y = p(n(57547)), - S = p(n(4709)); - r.detectOverflow = S.default; - var k = n(65601); - function p(u) { - return u && u.__esModule ? u : { default: u }; - } - var l = { placement: 'bottom', modifiers: [], strategy: 'absolute' }; - function c() { - for (var u = arguments.length, s = new Array(u), d = 0; d < u; d++) - s[d] = arguments[d]; - return !s.some(function (C) { - return !(C && typeof C.getBoundingClientRect == 'function'); - }); - } - function f(u) { - u === void 0 && (u = {}); - var s = u, - d = s.defaultModifiers, - C = d === void 0 ? [] : d, - g = s.defaultOptions, - v = g === void 0 ? l : g; - return (function () { - function h(V, b, B) { - B === void 0 && (B = v); - var I = { - placement: 'bottom', - orderedModifiers: [], - options: Object.assign({}, l, v), - modifiersData: {}, - elements: { reference: V, popper: b }, - attributes: {}, - styles: {}, - }, - w = [], - T = !1, - A = { - state: I, - setOptions: (function () { - function P(D) { - var M = typeof D == 'function' ? D(I.options) : D; - E(), - (I.options = Object.assign({}, v, I.options, M)), - (I.scrollParents = { - reference: (0, k.isElement)(V) - ? (0, t.default)(V) - : V.contextElement - ? (0, t.default)(V.contextElement) - : [], - popper: (0, t.default)(b), - }); - var O = (0, m.default)( - (0, y.default)([].concat(C, I.options.modifiers)) - ); - return ( - (I.orderedModifiers = O.filter(function (j) { - return j.enabled; - })), - x(), - A.update() - ); - } - return P; - })(), - forceUpdate: (function () { - function P() { - if (!T) { - var D = I.elements, - M = D.reference, - O = D.popper; - if (c(M, O)) { - (I.rects = { - reference: (0, e.default)( - M, - (0, o.default)(O), - I.options.strategy === 'fixed' - ), - popper: (0, a.default)(O), - }), - (I.reset = !1), - (I.placement = I.options.placement), - I.orderedModifiers.forEach(function ($) { - return (I.modifiersData[$.name] = Object.assign( - {}, - $.data - )); - }); - for ( - var j = 0; - j < I.orderedModifiers.length; - j++ - ) { - if (I.reset === !0) { - (I.reset = !1), (j = -1); - continue; - } - var F = I.orderedModifiers[j], - U = F.fn, - _ = F.options, - z = _ === void 0 ? {} : _, - H = F.name; - typeof U == 'function' && - (I = - U({ - state: I, - options: z, - name: H, - instance: A, - }) || I); - } - } - } - } - return P; - })(), - update: (0, N.default)(function () { - return new Promise(function (P) { - A.forceUpdate(), P(I); - }); - }), - destroy: (function () { - function P() { - E(), (T = !0); - } - return P; - })(), - }; - if (!c(V, b)) return A; - A.setOptions(B).then(function (P) { - !T && B.onFirstUpdate && B.onFirstUpdate(P); - }); - function x() { - I.orderedModifiers.forEach(function (P) { - var D = P.name, - M = P.options, - O = M === void 0 ? {} : M, - j = P.effect; - if (typeof j == 'function') { - var F = j({ state: I, name: D, instance: A, options: O }), - U = (function () { - function _() {} - return _; - })(); - w.push(F || U); - } - }); - } - function E() { - w.forEach(function (P) { - return P(); - }), - (w = []); - } - return A; - } - return h; - })(); - } - var i = (r.createPopper = f()); - }, - 11848: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = a); - var e = n(65601); - function a(t, o) { - var m = o.getRootNode && o.getRootNode(); - if (t.contains(o)) return !0; - if (m && (0, e.isShadowRoot)(m)) { - var N = o; - do { - if (N && t.isSameNode(N)) return !0; - N = N.parentNode || N.host; - } while (N); - } - return !1; - } - }, - 83199: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = n(65601), - a = n(79257), - t = m(n(44901)), - o = m(n(95294)); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y, S, k) { - S === void 0 && (S = !1), k === void 0 && (k = !1); - var p = y.getBoundingClientRect(), - l = 1, - c = 1; - S && - (0, e.isHTMLElement)(y) && - ((l = - (y.offsetWidth > 0 && (0, a.round)(p.width) / y.offsetWidth) || - 1), - (c = - (y.offsetHeight > 0 && - (0, a.round)(p.height) / y.offsetHeight) || - 1)); - var f = (0, e.isElement)(y) ? (0, t.default)(y) : window, - i = f.visualViewport, - u = !(0, o.default)() && k, - s = (p.left + (u && i ? i.offsetLeft : 0)) / l, - d = (p.top + (u && i ? i.offsetTop : 0)) / c, - C = p.width / l, - g = p.height / c; - return { - width: C, - height: g, - top: d, - right: s + C, - bottom: d + g, - left: s, - x: s, - y: d, - }; - } - }, - 98310: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = g); - var e = n(37802), - a = u(n(63064)), - t = u(n(16940)), - o = u(n(88577)), - m = u(n(29727)), - N = u(n(9252)), - y = u(n(75663)), - S = n(65601), - k = u(n(83199)), - p = u(n(16292)), - l = u(n(11848)), - c = u(n(1707)), - f = u(n(21194)), - i = n(79257); - function u(v) { - return v && v.__esModule ? v : { default: v }; - } - function s(v, h) { - var V = (0, k.default)(v, !1, h === 'fixed'); - return ( - (V.top = V.top + v.clientTop), - (V.left = V.left + v.clientLeft), - (V.bottom = V.top + v.clientHeight), - (V.right = V.left + v.clientWidth), - (V.width = v.clientWidth), - (V.height = v.clientHeight), - (V.x = V.left), - (V.y = V.top), - V - ); - } - function d(v, h, V) { - return h === e.viewport - ? (0, f.default)((0, a.default)(v, V)) - : (0, S.isElement)(h) - ? s(h, V) - : (0, f.default)((0, t.default)((0, N.default)(v))); - } - function C(v) { - var h = (0, o.default)((0, p.default)(v)), - V = - ['absolute', 'fixed'].indexOf((0, y.default)(v).position) >= 0, - b = V && (0, S.isHTMLElement)(v) ? (0, m.default)(v) : v; - return (0, S.isElement)(b) - ? h.filter(function (B) { - return ( - (0, S.isElement)(B) && - (0, l.default)(B, b) && - (0, c.default)(B) !== 'body' - ); - }) - : []; - } - function g(v, h, V, b) { - var B = h === 'clippingParents' ? C(v) : [].concat(h), - I = [].concat(B, [V]), - w = I[0], - T = I.reduce( - function (A, x) { - var E = d(v, x, b); - return ( - (A.top = (0, i.max)(E.top, A.top)), - (A.right = (0, i.min)(E.right, A.right)), - (A.bottom = (0, i.min)(E.bottom, A.bottom)), - (A.left = (0, i.max)(E.left, A.left)), - A - ); - }, - d(v, w, b) - ); - return ( - (T.width = T.right - T.left), - (T.height = T.bottom - T.top), - (T.x = T.left), - (T.y = T.top), - T - ); - } - }, - 28770: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = l); - var e = k(n(83199)), - a = k(n(3107)), - t = k(n(1707)), - o = n(65601), - m = k(n(94889)), - N = k(n(9252)), - y = k(n(27703)), - S = n(79257); - function k(c) { - return c && c.__esModule ? c : { default: c }; - } - function p(c) { - var f = c.getBoundingClientRect(), - i = (0, S.round)(f.width) / c.offsetWidth || 1, - u = (0, S.round)(f.height) / c.offsetHeight || 1; - return i !== 1 || u !== 1; - } - function l(c, f, i) { - i === void 0 && (i = !1); - var u = (0, o.isHTMLElement)(f), - s = (0, o.isHTMLElement)(f) && p(f), - d = (0, N.default)(f), - C = (0, e.default)(c, s, i), - g = { scrollLeft: 0, scrollTop: 0 }, - v = { x: 0, y: 0 }; - return ( - (u || (!u && !i)) && - (((0, t.default)(f) !== 'body' || (0, y.default)(d)) && - (g = (0, a.default)(f)), - (0, o.isHTMLElement)(f) - ? ((v = (0, e.default)(f, !0)), - (v.x += f.clientLeft), - (v.y += f.clientTop)) - : d && (v.x = (0, m.default)(d))), - { - x: C.left + g.scrollLeft - v.x, - y: C.top + g.scrollTop - v.y, - width: C.width, - height: C.height, - } - ); - } - }, - 75663: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(44901)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - return (0, e.default)(o).getComputedStyle(o); - } - }, - 9252: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = a); - var e = n(65601); - function a(t) { - return ( - ((0, e.isElement)(t) ? t.ownerDocument : t.document) || - window.document - ).documentElement; - } - }, - 16940: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = y); - var e = N(n(9252)), - a = N(n(75663)), - t = N(n(94889)), - o = N(n(42532)), - m = n(79257); - function N(S) { - return S && S.__esModule ? S : { default: S }; - } - function y(S) { - var k, - p = (0, e.default)(S), - l = (0, o.default)(S), - c = (k = S.ownerDocument) == null ? void 0 : k.body, - f = (0, m.max)( - p.scrollWidth, - p.clientWidth, - c ? c.scrollWidth : 0, - c ? c.clientWidth : 0 - ), - i = (0, m.max)( - p.scrollHeight, - p.clientHeight, - c ? c.scrollHeight : 0, - c ? c.clientHeight : 0 - ), - u = -l.scrollLeft + (0, t.default)(S), - s = -l.scrollTop; - return ( - (0, a.default)(c || p).direction === 'rtl' && - (u += (0, m.max)(p.clientWidth, c ? c.clientWidth : 0) - f), - { width: f, height: i, x: u, y: s } - ); - } - }, - 89741: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; - } - }, - 12866: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(83199)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - var m = (0, e.default)(o), - N = o.offsetWidth, - y = o.offsetHeight; - return ( - Math.abs(m.width - N) <= 1 && (N = m.width), - Math.abs(m.height - y) <= 1 && (y = m.height), - { x: o.offsetLeft, y: o.offsetTop, width: N, height: y } - ); - } - }, - 1707: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - return e ? (e.nodeName || '').toLowerCase() : null; - } - }, - 3107: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(42532)), - a = m(n(44901)), - t = n(65601), - o = m(n(89741)); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y) { - return y === (0, a.default)(y) || !(0, t.isHTMLElement)(y) - ? (0, e.default)(y) - : (0, o.default)(y); - } - }, - 29727: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = l); - var e = S(n(44901)), - a = S(n(1707)), - t = S(n(75663)), - o = n(65601), - m = S(n(36875)), - N = S(n(16292)), - y = S(n(88492)); - function S(c) { - return c && c.__esModule ? c : { default: c }; - } - function k(c) { - return !(0, o.isHTMLElement)(c) || - (0, t.default)(c).position === 'fixed' - ? null - : c.offsetParent; - } - function p(c) { - var f = /firefox/i.test((0, y.default)()), - i = /Trident/i.test((0, y.default)()); - if (i && (0, o.isHTMLElement)(c)) { - var u = (0, t.default)(c); - if (u.position === 'fixed') return null; - } - var s = (0, N.default)(c); - for ( - (0, o.isShadowRoot)(s) && (s = s.host); - (0, o.isHTMLElement)(s) && - ['html', 'body'].indexOf((0, a.default)(s)) < 0; - - ) { - var d = (0, t.default)(s); - if ( - d.transform !== 'none' || - d.perspective !== 'none' || - d.contain === 'paint' || - ['transform', 'perspective'].indexOf(d.willChange) !== -1 || - (f && d.willChange === 'filter') || - (f && d.filter && d.filter !== 'none') - ) - return s; - s = s.parentNode; - } - return null; - } - function l(c) { - for ( - var f = (0, e.default)(c), i = k(c); - i && (0, m.default)(i) && (0, t.default)(i).position === 'static'; - - ) - i = k(i); - return i && - ((0, a.default)(i) === 'html' || - ((0, a.default)(i) === 'body' && - (0, t.default)(i).position === 'static')) - ? f - : i || p(c) || f; - } - }, - 16292: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = m); - var e = o(n(1707)), - a = o(n(9252)), - t = n(65601); - function o(N) { - return N && N.__esModule ? N : { default: N }; - } - function m(N) { - return (0, e.default)(N) === 'html' - ? N - : N.assignedSlot || - N.parentNode || - ((0, t.isShadowRoot)(N) ? N.host : null) || - (0, a.default)(N); - } - }, - 87899: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(16292)), - a = m(n(27703)), - t = m(n(1707)), - o = n(65601); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y) { - return ['html', 'body', '#document'].indexOf((0, t.default)(y)) >= 0 - ? y.ownerDocument.body - : (0, o.isHTMLElement)(y) && (0, a.default)(y) - ? y - : N((0, e.default)(y)); - } - }, - 63064: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(44901)), - a = m(n(9252)), - t = m(n(94889)), - o = m(n(95294)); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y, S) { - var k = (0, e.default)(y), - p = (0, a.default)(y), - l = k.visualViewport, - c = p.clientWidth, - f = p.clientHeight, - i = 0, - u = 0; - if (l) { - (c = l.width), (f = l.height); - var s = (0, o.default)(); - (s || (!s && S === 'fixed')) && - ((i = l.offsetLeft), (u = l.offsetTop)); - } - return { width: c, height: f, x: i + (0, t.default)(y), y: u }; - } - }, - 44901: function (L, 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; - } - }, - 42532: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(44901)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - var m = (0, e.default)(o), - N = m.pageXOffset, - y = m.pageYOffset; - return { scrollLeft: N, scrollTop: y }; - } - }, - 94889: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = m); - var e = o(n(83199)), - a = o(n(9252)), - t = o(n(42532)); - function o(N) { - return N && N.__esModule ? N : { default: N }; - } - function m(N) { - return ( - (0, e.default)((0, a.default)(N)).left + - (0, t.default)(N).scrollLeft - ); - } - }, - 65601: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.isElement = t), - (r.isHTMLElement = o), - (r.isShadowRoot = m); - var e = a(n(44901)); - function a(N) { - return N && N.__esModule ? N : { default: N }; - } - function t(N) { - var y = (0, e.default)(N).Element; - return N instanceof y || N instanceof Element; - } - function o(N) { - var y = (0, e.default)(N).HTMLElement; - return N instanceof y || N instanceof HTMLElement; - } - function m(N) { - if (typeof ShadowRoot == 'undefined') return !1; - var y = (0, e.default)(N).ShadowRoot; - return N instanceof y || N instanceof ShadowRoot; - } - }, - 95294: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(88492)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t() { - return !/^((?!chrome|android).)*safari/i.test((0, e.default)()); - } - }, - 27703: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(75663)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - var m = (0, e.default)(o), - N = m.overflow, - y = m.overflowX, - S = m.overflowY; - return /auto|scroll|overlay|hidden/.test(N + S + y); - } - }, - 36875: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(1707)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - return ['table', 'td', 'th'].indexOf((0, e.default)(o)) >= 0; - } - }, - 88577: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(87899)), - a = m(n(16292)), - t = m(n(44901)), - o = m(n(27703)); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y, S) { - var k; - S === void 0 && (S = []); - var p = (0, e.default)(y), - l = p === ((k = y.ownerDocument) == null ? void 0 : k.body), - c = (0, t.default)(p), - f = l - ? [c].concat(c.visualViewport || [], (0, o.default)(p) ? p : []) - : p, - i = S.concat(f); - return l ? i : i.concat(N((0, a.default)(f))); - } - }, - 37802: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.write = - r.viewport = - r.variationPlacements = - r.top = - r.start = - r.right = - r.reference = - r.read = - r.popper = - r.placements = - r.modifierPhases = - r.main = - r.left = - r.end = - r.clippingParents = - r.bottom = - r.beforeWrite = - r.beforeRead = - r.beforeMain = - r.basePlacements = - r.auto = - r.afterWrite = - r.afterRead = - r.afterMain = - void 0); - var n = (r.top = 'top'), - e = (r.bottom = 'bottom'), - a = (r.right = 'right'), - t = (r.left = 'left'), - o = (r.auto = 'auto'), - m = (r.basePlacements = [n, e, a, t]), - N = (r.start = 'start'), - y = (r.end = 'end'), - S = (r.clippingParents = 'clippingParents'), - k = (r.viewport = 'viewport'), - p = (r.popper = 'popper'), - l = (r.reference = 'reference'), - c = (r.variationPlacements = m.reduce(function (B, I) { - return B.concat([I + '-' + N, I + '-' + y]); - }, [])), - f = (r.placements = [].concat(m, [o]).reduce(function (B, I) { - return B.concat([I, I + '-' + N, I + '-' + y]); - }, [])), - i = (r.beforeRead = 'beforeRead'), - u = (r.read = 'read'), - s = (r.afterRead = 'afterRead'), - d = (r.beforeMain = 'beforeMain'), - C = (r.main = 'main'), - g = (r.afterMain = 'afterMain'), - v = (r.beforeWrite = 'beforeWrite'), - h = (r.write = 'write'), - V = (r.afterWrite = 'afterWrite'), - b = (r.modifierPhases = [i, u, s, d, C, g, v, h, V]); - }, - 60028: function (L, 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(37802); - Object.keys(a).forEach(function (y) { - y === 'default' || - y === '__esModule' || - Object.prototype.hasOwnProperty.call(e, y) || - (y in r && r[y] === a[y]) || - (r[y] = a[y]); - }); - var t = n(16055); - Object.keys(t).forEach(function (y) { - y === 'default' || - y === '__esModule' || - Object.prototype.hasOwnProperty.call(e, y) || - (y in r && r[y] === t[y]) || - (r[y] = t[y]); - }); - var o = n(15113); - (r.popperGenerator = o.popperGenerator), - (r.detectOverflow = o.detectOverflow), - (r.createPopperBase = o.createPopper); - var m = n(98420); - r.createPopper = m.createPopper; - var N = n(22008); - r.createPopperLite = N.createPopper; - }, - 20637: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = t(n(1707)), - a = n(65601); - function t(y) { - return y && y.__esModule ? y : { default: y }; - } - function o(y) { - var S = y.state; - Object.keys(S.elements).forEach(function (k) { - var p = S.styles[k] || {}, - l = S.attributes[k] || {}, - c = S.elements[k]; - !(0, a.isHTMLElement)(c) || - !(0, e.default)(c) || - (Object.assign(c.style, p), - Object.keys(l).forEach(function (f) { - var i = l[f]; - i === !1 - ? c.removeAttribute(f) - : c.setAttribute(f, i === !0 ? '' : i); - })); - }); - } - function m(y) { - var S = y.state, - k = { - popper: { - position: S.options.strategy, - left: '0', - top: '0', - margin: '0', - }, - arrow: { position: 'absolute' }, - reference: {}, - }; - return ( - Object.assign(S.elements.popper.style, k.popper), - (S.styles = k), - S.elements.arrow && - Object.assign(S.elements.arrow.style, k.arrow), - function () { - Object.keys(S.elements).forEach(function (p) { - var l = S.elements[p], - c = S.attributes[p] || {}, - f = Object.keys( - S.styles.hasOwnProperty(p) ? S.styles[p] : k[p] - ), - i = f.reduce(function (u, s) { - return (u[s] = ''), u; - }, {}); - !(0, a.isHTMLElement)(l) || - !(0, e.default)(l) || - (Object.assign(l.style, i), - Object.keys(c).forEach(function (u) { - l.removeAttribute(u); - })); - }); - } - ); - } - var N = (r.default = { - name: 'applyStyles', - enabled: !0, - phase: 'write', - fn: o, - effect: m, - requires: ['computeStyles'], - }); - }, - 11106: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = p(n(16275)), - a = p(n(12866)), - t = p(n(11848)), - o = p(n(29727)), - m = p(n(26608)), - N = n(87415), - y = p(n(41e3)), - S = p(n(62605)), - k = n(37802); - function p(u) { - return u && u.__esModule ? u : { default: u }; - } - var l = (function () { - function u(s, d) { - return ( - (s = - typeof s == 'function' - ? s(Object.assign({}, d.rects, { placement: d.placement })) - : s), - (0, y.default)( - typeof s != 'number' ? s : (0, S.default)(s, k.basePlacements) - ) - ); - } - return u; - })(); - function c(u) { - var s, - d = u.state, - C = u.name, - g = u.options, - v = d.elements.arrow, - h = d.modifiersData.popperOffsets, - V = (0, e.default)(d.placement), - b = (0, m.default)(V), - B = [k.left, k.right].indexOf(V) >= 0, - I = B ? 'height' : 'width'; - if (!(!v || !h)) { - var w = l(g.padding, d), - T = (0, a.default)(v), - A = b === 'y' ? k.top : k.left, - x = b === 'y' ? k.bottom : k.right, - E = - d.rects.reference[I] + - d.rects.reference[b] - - h[b] - - d.rects.popper[I], - P = h[b] - d.rects.reference[b], - D = (0, o.default)(v), - M = D - ? b === 'y' - ? D.clientHeight || 0 - : D.clientWidth || 0 - : 0, - O = E / 2 - P / 2, - j = w[A], - F = M - T[I] - w[x], - U = M / 2 - T[I] / 2 + O, - _ = (0, N.within)(j, U, F), - z = b; - d.modifiersData[C] = - ((s = {}), (s[z] = _), (s.centerOffset = _ - U), s); - } - } - function f(u) { - var s = u.state, - d = u.options, - C = d.element, - g = C === void 0 ? '[data-popper-arrow]' : C; - g != null && - ((typeof g == 'string' && - ((g = s.elements.popper.querySelector(g)), !g)) || - ((0, t.default)(s.elements.popper, g) && - (s.elements.arrow = g))); - } - var i = (r.default = { - name: 'arrow', - enabled: !0, - phase: 'main', - fn: c, - effect: f, - requires: ['popperOffsets'], - requiresIfExists: ['preventOverflow'], - }); - }, - 85445: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0), (r.mapToStyles = c); - var e = n(37802), - a = k(n(29727)), - t = k(n(44901)), - o = k(n(9252)), - m = k(n(75663)), - N = k(n(16275)), - y = k(n(56918)), - S = n(79257); - function k(u) { - return u && u.__esModule ? u : { default: u }; - } - var p = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }; - function l(u, s) { - var d = u.x, - C = u.y, - g = s.devicePixelRatio || 1; - return { - x: (0, S.round)(d * g) / g || 0, - y: (0, S.round)(C * g) / g || 0, - }; - } - function c(u) { - var s, - d = u.popper, - C = u.popperRect, - g = u.placement, - v = u.variation, - h = u.offsets, - V = u.position, - b = u.gpuAcceleration, - B = u.adaptive, - I = u.roundOffsets, - w = u.isFixed, - T = h.x, - A = T === void 0 ? 0 : T, - x = h.y, - E = x === void 0 ? 0 : x, - P = typeof I == 'function' ? I({ x: A, y: E }) : { x: A, y: E }; - (A = P.x), (E = P.y); - var D = h.hasOwnProperty('x'), - M = h.hasOwnProperty('y'), - O = e.left, - j = e.top, - F = window; - if (B) { - var U = (0, a.default)(d), - _ = 'clientHeight', - z = 'clientWidth'; - if ( - (U === (0, t.default)(d) && - ((U = (0, o.default)(d)), - (0, m.default)(U).position !== 'static' && - V === 'absolute' && - ((_ = 'scrollHeight'), (z = 'scrollWidth'))), - (U = U), - g === e.top || ((g === e.left || g === e.right) && v === e.end)) - ) { - j = e.bottom; - var H = - w && U === F && F.visualViewport - ? F.visualViewport.height - : U[_]; - (E -= H - C.height), (E *= b ? 1 : -1); - } - if ( - g === e.left || - ((g === e.top || g === e.bottom) && v === e.end) - ) { - O = e.right; - var $ = - w && U === F && F.visualViewport - ? F.visualViewport.width - : U[z]; - (A -= $ - C.width), (A *= b ? 1 : -1); - } - } - var Y = Object.assign({ position: V }, B && p), - X = - I === !0 - ? l({ x: A, y: E }, (0, t.default)(d)) - : { x: A, y: E }; - if (((A = X.x), (E = X.y), b)) { - var re; - return Object.assign( - {}, - Y, - ((re = {}), - (re[j] = M ? '0' : ''), - (re[O] = D ? '0' : ''), - (re.transform = - (F.devicePixelRatio || 1) <= 1 - ? 'translate(' + A + 'px, ' + E + 'px)' - : 'translate3d(' + A + 'px, ' + E + 'px, 0)'), - re) - ); - } - return Object.assign( - {}, - Y, - ((s = {}), - (s[j] = M ? E + 'px' : ''), - (s[O] = D ? A + 'px' : ''), - (s.transform = ''), - s) - ); - } - function f(u) { - var s = u.state, - d = u.options, - C = d.gpuAcceleration, - g = C === void 0 ? !0 : C, - v = d.adaptive, - h = v === void 0 ? !0 : v, - V = d.roundOffsets, - b = V === void 0 ? !0 : V, - B = { - placement: (0, N.default)(s.placement), - variation: (0, y.default)(s.placement), - popper: s.elements.popper, - popperRect: s.rects.popper, - gpuAcceleration: g, - isFixed: s.options.strategy === 'fixed', - }; - s.modifiersData.popperOffsets != null && - (s.styles.popper = Object.assign( - {}, - s.styles.popper, - c( - Object.assign({}, B, { - offsets: s.modifiersData.popperOffsets, - position: s.options.strategy, - adaptive: h, - roundOffsets: b, - }) - ) - )), - s.modifiersData.arrow != null && - (s.styles.arrow = Object.assign( - {}, - s.styles.arrow, - c( - Object.assign({}, B, { - offsets: s.modifiersData.arrow, - position: 'absolute', - adaptive: !1, - roundOffsets: b, - }) - ) - )), - (s.attributes.popper = Object.assign({}, s.attributes.popper, { - 'data-popper-placement': s.placement, - })); - } - var i = (r.default = { - name: 'computeStyles', - enabled: !0, - phase: 'beforeWrite', - fn: f, - data: {}, - }); - }, - 21068: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = a(n(44901)); - function a(N) { - return N && N.__esModule ? N : { default: N }; - } - var t = { passive: !0 }; - function o(N) { - var y = N.state, - S = N.instance, - k = N.options, - p = k.scroll, - l = p === void 0 ? !0 : p, - c = k.resize, - f = c === void 0 ? !0 : c, - i = (0, e.default)(y.elements.popper), - u = [].concat(y.scrollParents.reference, y.scrollParents.popper); - return ( - l && - u.forEach(function (s) { - s.addEventListener('scroll', S.update, t); - }), - f && i.addEventListener('resize', S.update, t), - function () { - l && - u.forEach(function (s) { - s.removeEventListener('scroll', S.update, t); - }), - f && i.removeEventListener('resize', S.update, t); - } - ); - } - var m = (r.default = { - name: 'eventListeners', - enabled: !0, - phase: 'write', - fn: (function () { - function N() {} - return N; - })(), - effect: o, - data: {}, - }); - }, - 51825: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = S(n(96346)), - a = S(n(16275)), - t = S(n(15022)), - o = S(n(4709)), - m = S(n(36705)), - N = n(37802), - y = S(n(56918)); - function S(c) { - return c && c.__esModule ? c : { default: c }; - } - function k(c) { - if ((0, a.default)(c) === N.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, - i = c.options, - u = c.name; - if (!f.modifiersData[u]._skip) { - for ( - var s = i.mainAxis, - d = s === void 0 ? !0 : s, - C = i.altAxis, - g = C === void 0 ? !0 : C, - v = i.fallbackPlacements, - h = i.padding, - V = i.boundary, - b = i.rootBoundary, - B = i.altBoundary, - I = i.flipVariations, - w = I === void 0 ? !0 : I, - T = i.allowedAutoPlacements, - A = f.options.placement, - x = (0, a.default)(A), - E = x === A, - P = v || (E || !w ? [(0, e.default)(A)] : k(A)), - D = [A].concat(P).reduce(function (Z, q) { - return Z.concat( - (0, a.default)(q) === N.auto - ? (0, m.default)(f, { - placement: q, - boundary: V, - rootBoundary: b, - padding: h, - flipVariations: w, - allowedAutoPlacements: T, - }) - : q - ); - }, []), - M = f.rects.reference, - O = f.rects.popper, - j = new Map(), - F = !0, - U = D[0], - _ = 0; - _ < D.length; - _++ - ) { - var z = D[_], - H = (0, a.default)(z), - $ = (0, y.default)(z) === N.start, - Y = [N.top, N.bottom].indexOf(H) >= 0, - X = Y ? 'width' : 'height', - re = (0, o.default)(f, { - placement: z, - boundary: V, - rootBoundary: b, - altBoundary: B, - padding: h, - }), - ae = Y ? ($ ? N.right : N.left) : $ ? N.bottom : N.top; - M[X] > O[X] && (ae = (0, e.default)(ae)); - var se = (0, e.default)(ae), - pe = []; - if ( - (d && pe.push(re[H] <= 0), - g && pe.push(re[ae] <= 0, re[se] <= 0), - pe.every(function (Z) { - return Z; - })) - ) { - (U = z), (F = !1); - break; - } - j.set(z, pe); - } - if (F) - for ( - var ye = w ? 3 : 1, - Be = (function () { - function Z(q) { - var ue = D.find(function (me) { - var ne = j.get(me); - if (ne) - return ne.slice(0, q).every(function (be) { - return be; - }); - }); - if (ue) return (U = ue), 'break'; - } - return Z; - })(), - he = ye; - he > 0; - he-- - ) { - var oe = Be(he); - if (oe === 'break') break; - } - f.placement !== U && - ((f.modifiersData[u]._skip = !0), - (f.placement = U), - (f.reset = !0)); - } - } - var l = (r.default = { - name: 'flip', - enabled: !0, - phase: 'main', - fn: p, - requiresIfExists: ['offset'], - data: { _skip: !1 }, - }); - }, - 44677: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = n(37802), - a = t(n(4709)); - function t(S) { - return S && S.__esModule ? S : { default: S }; - } - function o(S, k, p) { - return ( - p === void 0 && (p = { x: 0, y: 0 }), - { - top: S.top - k.height - p.y, - right: S.right - k.width + p.x, - bottom: S.bottom - k.height + p.y, - left: S.left - k.width - p.x, - } - ); - } - function m(S) { - return [e.top, e.right, e.bottom, e.left].some(function (k) { - return S[k] >= 0; - }); - } - function N(S) { - var k = S.state, - p = S.name, - l = k.rects.reference, - c = k.rects.popper, - f = k.modifiersData.preventOverflow, - i = (0, a.default)(k, { elementContext: 'reference' }), - u = (0, a.default)(k, { altBoundary: !0 }), - s = o(i, l), - d = o(u, c, f), - C = m(s), - g = m(d); - (k.modifiersData[p] = { - referenceClippingOffsets: s, - popperEscapeOffsets: d, - isReferenceHidden: C, - hasPopperEscaped: g, - }), - (k.attributes.popper = Object.assign({}, k.attributes.popper, { - 'data-popper-reference-hidden': C, - 'data-popper-escaped': g, - })); - } - var y = (r.default = { - name: 'hide', - enabled: !0, - phase: 'main', - requiresIfExists: ['preventOverflow'], - fn: N, - }); - }, - 16055: function (L, 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(20637)); - r.applyStyles = e.default; - var a = p(n(11106)); - r.arrow = a.default; - var t = p(n(85445)); - r.computeStyles = t.default; - var o = p(n(21068)); - r.eventListeners = o.default; - var m = p(n(51825)); - r.flip = m.default; - var N = p(n(44677)); - r.hide = N.default; - var y = p(n(34331)); - r.offset = y.default; - var S = p(n(56154)); - r.popperOffsets = S.default; - var k = p(n(69770)); - r.preventOverflow = k.default; - function p(l) { - return l && l.__esModule ? l : { default: l }; - } - }, - 34331: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.default = void 0), - (r.distanceAndSkiddingToXY = o); - var e = t(n(16275)), - a = n(37802); - function t(y) { - return y && y.__esModule ? y : { default: y }; - } - function o(y, S, k) { - var p = (0, e.default)(y), - l = [a.left, a.top].indexOf(p) >= 0 ? -1 : 1, - c = - typeof k == 'function' - ? k(Object.assign({}, S, { placement: y })) - : k, - f = c[0], - i = c[1]; - return ( - (f = f || 0), - (i = (i || 0) * l), - [a.left, a.right].indexOf(p) >= 0 - ? { x: i, y: f } - : { x: f, y: i } - ); - } - function m(y) { - var S = y.state, - k = y.options, - p = y.name, - l = k.offset, - c = l === void 0 ? [0, 0] : l, - f = a.placements.reduce(function (d, C) { - return (d[C] = o(C, S.rects, c)), d; - }, {}), - i = f[S.placement], - u = i.x, - s = i.y; - S.modifiersData.popperOffsets != null && - ((S.modifiersData.popperOffsets.x += u), - (S.modifiersData.popperOffsets.y += s)), - (S.modifiersData[p] = f); - } - var N = (r.default = { - name: 'offset', - enabled: !0, - phase: 'main', - requires: ['popperOffsets'], - fn: m, - }); - }, - 56154: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = a(n(49306)); - function a(m) { - return m && m.__esModule ? m : { default: m }; - } - function t(m) { - var N = m.state, - y = m.name; - N.modifiersData[y] = (0, e.default)({ - reference: N.rects.reference, - element: N.rects.popper, - strategy: 'absolute', - placement: N.placement, - }); - } - var o = (r.default = { - name: 'popperOffsets', - enabled: !0, - phase: 'read', - fn: t, - data: {}, - }); - }, - 69770: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = void 0); - var e = n(37802), - a = c(n(16275)), - t = c(n(26608)), - o = c(n(49903)), - m = n(87415), - N = c(n(12866)), - y = c(n(29727)), - S = c(n(4709)), - k = c(n(56918)), - p = c(n(26143)), - l = n(79257); - function c(u) { - return u && u.__esModule ? u : { default: u }; - } - function f(u) { - var s = u.state, - d = u.options, - C = u.name, - g = d.mainAxis, - v = g === void 0 ? !0 : g, - h = d.altAxis, - V = h === void 0 ? !1 : h, - b = d.boundary, - B = d.rootBoundary, - I = d.altBoundary, - w = d.padding, - T = d.tether, - A = T === void 0 ? !0 : T, - x = d.tetherOffset, - E = x === void 0 ? 0 : x, - P = (0, S.default)(s, { - boundary: b, - rootBoundary: B, - padding: w, - altBoundary: I, - }), - D = (0, a.default)(s.placement), - M = (0, k.default)(s.placement), - O = !M, - j = (0, t.default)(D), - F = (0, o.default)(j), - U = s.modifiersData.popperOffsets, - _ = s.rects.reference, - z = s.rects.popper, - H = - typeof E == 'function' - ? E(Object.assign({}, s.rects, { placement: s.placement })) - : E, - $ = - typeof H == 'number' - ? { mainAxis: H, altAxis: H } - : Object.assign({ mainAxis: 0, altAxis: 0 }, H), - Y = s.modifiersData.offset - ? s.modifiersData.offset[s.placement] - : null, - X = { x: 0, y: 0 }; - if (U) { - if (v) { - var re, - ae = j === 'y' ? e.top : e.left, - se = j === 'y' ? e.bottom : e.right, - pe = j === 'y' ? 'height' : 'width', - ye = U[j], - Be = ye + P[ae], - he = ye - P[se], - oe = A ? -z[pe] / 2 : 0, - Z = M === e.start ? _[pe] : z[pe], - q = M === e.start ? -z[pe] : -_[pe], - ue = s.elements.arrow, - me = A && ue ? (0, N.default)(ue) : { width: 0, height: 0 }, - ne = s.modifiersData['arrow#persistent'] - ? s.modifiersData['arrow#persistent'].padding - : (0, p.default)(), - be = ne[ae], - fe = ne[se], - ge = (0, m.within)(0, _[pe], me[pe]), - ke = O - ? _[pe] / 2 - oe - ge - be - $.mainAxis - : Z - ge - be - $.mainAxis, - ve = O - ? -_[pe] / 2 + oe + ge + fe + $.mainAxis - : q + ge + fe + $.mainAxis, - Se = s.elements.arrow && (0, y.default)(s.elements.arrow), - we = Se - ? j === 'y' - ? Se.clientTop || 0 - : Se.clientLeft || 0 - : 0, - xe = (re = Y == null ? void 0 : Y[j]) != null ? re : 0, - Oe = ye + ke - xe - we, - We = ye + ve - xe, - Ve = (0, m.within)( - A ? (0, l.min)(Be, Oe) : Be, - ye, - A ? (0, l.max)(he, We) : he - ); - (U[j] = Ve), (X[j] = Ve - ye); - } - if (V) { - var ce, - le = j === 'x' ? e.top : e.left, - Ce = j === 'x' ? e.bottom : e.right, - de = U[F], - Ne = F === 'y' ? 'height' : 'width', - Ae = de + P[le], - De = de - P[Ce], - je = [e.top, e.left].indexOf(D) !== -1, - _e = (ce = Y == null ? void 0 : Y[F]) != null ? ce : 0, - Ue = je ? Ae : de - _[Ne] - z[Ne] - _e + $.altAxis, - Ke = je ? de + _[Ne] + z[Ne] - _e - $.altAxis : De, - Ge = - A && je - ? (0, m.withinMaxClamp)(Ue, de, Ke) - : (0, m.within)(A ? Ue : Ae, de, A ? Ke : De); - (U[F] = Ge), (X[F] = Ge - de); - } - s.modifiersData[C] = X; - } - } - var i = (r.default = { - name: 'preventOverflow', - enabled: !0, - phase: 'main', - fn: f, - requiresIfExists: ['offset'], - }); - }, - 22008: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.defaultModifiers = r.createPopper = void 0); - var e = n(15113); - (r.popperGenerator = e.popperGenerator), - (r.detectOverflow = e.detectOverflow); - var a = N(n(21068)), - t = N(n(56154)), - o = N(n(85445)), - m = N(n(20637)); - function N(k) { - return k && k.__esModule ? k : { default: k }; - } - var y = (r.defaultModifiers = [ - a.default, - t.default, - o.default, - m.default, - ]), - S = (r.createPopper = (0, e.popperGenerator)({ - defaultModifiers: y, - })); - }, - 98420: function (L, 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(15113); - (r.popperGenerator = a.popperGenerator), - (r.detectOverflow = a.detectOverflow); - var t = i(n(21068)), - o = i(n(56154)), - m = i(n(85445)), - N = i(n(20637)), - y = i(n(34331)), - S = i(n(51825)), - k = i(n(69770)), - p = i(n(11106)), - l = i(n(44677)), - c = n(22008); - r.createPopperLite = c.createPopper; - var f = n(16055); - Object.keys(f).forEach(function (d) { - d === 'default' || - d === '__esModule' || - Object.prototype.hasOwnProperty.call(e, d) || - (d in r && r[d] === f[d]) || - (r[d] = f[d]); - }); - function i(d) { - return d && d.__esModule ? d : { default: d }; - } - var u = (r.defaultModifiers = [ - t.default, - o.default, - m.default, - N.default, - y.default, - S.default, - k.default, - p.default, - l.default, - ]), - s = - (r.createPopperLite = - r.createPopper = - (0, a.popperGenerator)({ defaultModifiers: u })); - }, - 36705: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(56918)), - a = n(37802), - t = m(n(4709)), - o = m(n(16275)); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y, S) { - S === void 0 && (S = {}); - var k = S, - p = k.placement, - l = k.boundary, - c = k.rootBoundary, - f = k.padding, - i = k.flipVariations, - u = k.allowedAutoPlacements, - s = u === void 0 ? a.placements : u, - d = (0, e.default)(p), - C = d - ? i - ? a.variationPlacements - : a.variationPlacements.filter(function (h) { - return (0, e.default)(h) === d; - }) - : a.basePlacements, - g = C.filter(function (h) { - return s.indexOf(h) >= 0; - }); - g.length === 0 && (g = C); - var v = g.reduce(function (h, V) { - return ( - (h[V] = (0, t.default)(y, { - placement: V, - boundary: l, - rootBoundary: c, - padding: f, - })[(0, o.default)(V)]), - h - ); - }, {}); - return Object.keys(v).sort(function (h, V) { - return v[h] - v[V]; - }); - } - }, - 49306: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = N); - var e = m(n(16275)), - a = m(n(56918)), - t = m(n(26608)), - o = n(37802); - function m(y) { - return y && y.__esModule ? y : { default: y }; - } - function N(y) { - var S = y.reference, - k = y.element, - p = y.placement, - l = p ? (0, e.default)(p) : null, - c = p ? (0, a.default)(p) : null, - f = S.x + S.width / 2 - k.width / 2, - i = S.y + S.height / 2 - k.height / 2, - u; - switch (l) { - case o.top: - u = { x: f, y: S.y - k.height }; - break; - case o.bottom: - u = { x: f, y: S.y + S.height }; - break; - case o.right: - u = { x: S.x + S.width, y: i }; - break; - case o.left: - u = { x: S.x - k.width, y: i }; - break; - default: - u = { x: S.x, y: S.y }; - } - var s = l ? (0, t.default)(l) : null; - if (s != null) { - var d = s === 'y' ? 'height' : 'width'; - switch (c) { - case o.start: - u[s] = u[s] - (S[d] / 2 - k[d] / 2); - break; - case o.end: - u[s] = u[s] + (S[d] / 2 - k[d] / 2); - break; - default: - } - } - return u; - } - }, - 97902: function (L, 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 - ); - }; - } - }, - 4709: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = l); - var e = p(n(98310)), - a = p(n(9252)), - t = p(n(83199)), - o = p(n(49306)), - m = p(n(21194)), - N = n(37802), - y = n(65601), - S = p(n(41e3)), - k = p(n(62605)); - function p(c) { - return c && c.__esModule ? c : { default: c }; - } - function l(c, f) { - f === void 0 && (f = {}); - var i = f, - u = i.placement, - s = u === void 0 ? c.placement : u, - d = i.strategy, - C = d === void 0 ? c.strategy : d, - g = i.boundary, - v = g === void 0 ? N.clippingParents : g, - h = i.rootBoundary, - V = h === void 0 ? N.viewport : h, - b = i.elementContext, - B = b === void 0 ? N.popper : b, - I = i.altBoundary, - w = I === void 0 ? !1 : I, - T = i.padding, - A = T === void 0 ? 0 : T, - x = (0, S.default)( - typeof A != 'number' ? A : (0, k.default)(A, N.basePlacements) - ), - E = B === N.popper ? N.reference : N.popper, - P = c.rects.popper, - D = c.elements[w ? E : B], - M = (0, e.default)( - (0, y.isElement)(D) - ? D - : D.contextElement || (0, a.default)(c.elements.popper), - v, - V, - C - ), - O = (0, t.default)(c.elements.reference), - j = (0, o.default)({ - reference: O, - element: P, - strategy: 'absolute', - placement: s, - }), - F = (0, m.default)(Object.assign({}, P, j)), - U = B === N.popper ? F : O, - _ = { - top: M.top - U.top + x.top, - bottom: U.bottom - M.bottom + x.bottom, - left: M.left - U.left + x.left, - right: U.right - M.right + x.right, - }, - z = c.modifiersData.offset; - if (B === N.popper && z) { - var H = z[s]; - Object.keys(_).forEach(function ($) { - var Y = [N.right, N.bottom].indexOf($) >= 0 ? 1 : -1, - X = [N.top, N.bottom].indexOf($) >= 0 ? 'y' : 'x'; - _[$] += H[X] * Y; - }); - } - return _; - } - }, - 62605: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e, a) { - return a.reduce(function (t, o) { - return (t[o] = e), t; - }, {}); - } - }, - 49903: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - return e === 'x' ? 'y' : 'x'; - } - }, - 16275: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = a); - var e = n(37802); - function a(t) { - return t.split('-')[0]; - } - }, - 26143: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n() { - return { top: 0, right: 0, bottom: 0, left: 0 }; - } - }, - 26608: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - return ['top', 'bottom'].indexOf(e) >= 0 ? 'x' : 'y'; - } - }, - 96346: function (L, 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]; - }); - } - }, - 15022: function (L, 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]; - }); - } - }, - 56918: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - return e.split('-')[1]; - } - }, - 79257: function (L, 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); - }, - 57547: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.default = n); - function n(e) { - var a = e.reduce(function (t, o) { - var m = t[o.name]; - return ( - (t[o.name] = m - ? Object.assign({}, m, o, { - options: Object.assign({}, m.options, o.options), - data: Object.assign({}, m.data, o.data), - }) - : o), - t - ); - }, {}); - return Object.keys(a).map(function (t) { - return a[t]; - }); - } - }, - 41e3: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = a(n(26143)); - function a(o) { - return o && o.__esModule ? o : { default: o }; - } - function t(o) { - return Object.assign({}, (0, e.default)(), o); - } - }, - 13657: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.default = t); - var e = n(37802); - function a(o) { - var m = new Map(), - N = new Set(), - y = []; - o.forEach(function (k) { - m.set(k.name, k); - }); - function S(k) { - N.add(k.name); - var p = [].concat(k.requires || [], k.requiresIfExists || []); - p.forEach(function (l) { - if (!N.has(l)) { - var c = m.get(l); - c && S(c); - } - }), - y.push(k); - } - return ( - o.forEach(function (k) { - N.has(k.name) || S(k); - }), - y - ); - } - function t(o) { - var m = a(o); - return e.modifierPhases.reduce(function (N, y) { - return N.concat( - m.filter(function (S) { - return S.phase === y; - }) - ); - }, []); - } - }, - 21194: function (L, 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, - }); - } - }, - 88492: function (L, 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; - } - }, - 87415: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.within = a), (r.withinMaxClamp = t); - var e = n(79257); - function a(o, m, N) { - return (0, e.max)(o, (0, e.min)(m, N)); - } - function t(o, m, N) { - var y = a(o, m, N); - return y > N ? N : y; - } - }, - 60208: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.Fragment = r.EMPTY_OBJ = r.Component = void 0), - (r._CI = Et), - (r._HI = Be), - (r._M = ze), - (r._MCCC = Ot), - (r._ME = Pt), - (r._MFCC = Rt), - (r._MP = xt), - (r._MR = ot), - (r._RFC = Ct), - (r.__render = Ft), - (r.createComponentVNode = _), - (r.createFragment = H), - (r.createPortal = ae), - (r.createRef = Yt), - (r.createRenderer = kn), - (r.createTextVNode = z), - (r.createVNode = O), - (r.directClone = X), - (r.findDOMfromVNode = V), - (r.forwardRef = Xt), - (r.getFlagsForElementVnode = pe), - (r.linkEvent = p), - (r.normalizeProps = $), - (r.options = void 0), - (r.render = Wt), - (r.rerender = _t), - (r.version = void 0); - var n = Array.isArray; - function e(R) { - var W = typeof R; - return W === 'string' || W === 'number'; - } - function a(R) { - return R == null; - } - function t(R) { - return R === null || R === !1 || R === !0 || R === void 0; - } - function o(R) { - return typeof R == 'function'; - } - function m(R) { - return typeof R == 'string'; - } - function N(R) { - return typeof R == 'number'; - } - function y(R) { - return R === null; - } - function S(R) { - return R === void 0; - } - function k(R, W) { - var K = {}; - if (R) for (var G in R) K[G] = R[G]; - if (W) for (var Q in W) K[Q] = W[Q]; - return K; - } - function p(R, W) { - return o(W) ? { data: R, event: W } : null; - } - function l(R) { - return !y(R) && typeof R == 'object'; - } - var c = (r.EMPTY_OBJ = {}), - f = (r.Fragment = '$F'); - function i(R) { - return R.substr(2).toLowerCase(); - } - function u(R, W) { - R.appendChild(W); - } - function s(R, W, K) { - y(K) ? u(R, W) : R.insertBefore(W, K); - } - function d(R, W) { - return W - ? document.createElementNS('http://www.w3.org/2000/svg', R) - : document.createElement(R); - } - function C(R, W, K) { - R.replaceChild(W, K); - } - function g(R, W) { - R.removeChild(W); - } - function v(R) { - for (var W = 0; W < R.length; W++) R[W](); - } - function h(R, W, K) { - var G = R.children; - return K & 4 - ? G.$LI - : K & 8192 - ? R.childFlags === 2 - ? G - : G[W ? 0 : G.length - 1] - : G; - } - function V(R, W) { - for (var K; R; ) { - if (((K = R.flags), K & 2033)) return R.dom; - R = h(R, W, K); - } - return null; - } - function b(R, W) { - do { - var K = R.flags; - if (K & 2033) { - g(W, R.dom); - return; - } - var G = R.children; - if ((K & 4 && (R = G.$LI), K & 8 && (R = G), K & 8192)) - if (R.childFlags === 2) R = G; - else { - for (var Q = 0, ee = G.length; Q < ee; ++Q) b(G[Q], W); - return; - } - } while (R); - } - function B(R, W, K) { - do { - var G = R.flags; - if (G & 2033) { - s(W, R.dom, K); - return; - } - var Q = R.children; - if ((G & 4 && (R = Q.$LI), G & 8 && (R = Q), G & 8192)) - if (R.childFlags === 2) R = Q; - else { - for (var ee = 0, te = Q.length; ee < te; ++ee) B(Q[ee], W, K); - return; - } - } while (R); - } - function I(R, W, K) { - return R.constructor.getDerivedStateFromProps - ? k(K, R.constructor.getDerivedStateFromProps(W, K)) - : K; - } - var w = { v: !1 }, - T = (r.options = { - componentComparator: null, - createVNode: null, - renderComplete: null, - }); - function A(R, W) { - R.textContent = W; - } - function x(R, W) { - return l(R) && R.event === W.event && R.data === W.data; - } - function E(R, W) { - for (var K in W) S(R[K]) && (R[K] = W[K]); - return R; - } - function P(R, W) { - return !!o(R) && (R(W), !0); - } - var D = '$'; - function M(R, W, K, G, Q, ee, te, ie) { - (this.childFlags = R), - (this.children = W), - (this.className = K), - (this.dom = null), - (this.flags = G), - (this.key = Q === void 0 ? null : Q), - (this.props = ee === void 0 ? null : ee), - (this.ref = te === void 0 ? null : te), - (this.type = ie); - } - function O(R, W, K, G, Q, ee, te, ie) { - var Te = Q === void 0 ? 1 : Q, - Ie = new M(Te, G, K, R, te, ee, ie, W); - return ( - T.createVNode && T.createVNode(Ie), - Te === 0 && ye(Ie, Ie.children), - Ie - ); - } - function j(R, W, K) { - if (R & 4) return K; - var G = (R & 32768 ? W.render : W).defaultHooks; - return a(G) ? K : a(K) ? G : E(K, G); - } - function F(R, W, K) { - var G = (R & 32768 ? W.render : W).defaultProps; - return a(G) ? K : a(K) ? k(G, null) : E(K, G); - } - function U(R, W) { - return R & 12 - ? R - : W.prototype && W.prototype.render - ? 4 - : W.render - ? 32776 - : 8; - } - function _(R, W, K, G, Q) { - R = U(R, W); - var ee = new M(1, null, null, R, G, F(R, W, K), j(R, W, Q), W); - return T.createVNode && T.createVNode(ee), ee; - } - function z(R, W) { - return new M( - 1, - a(R) || R === !0 || R === !1 ? '' : R, - null, - 16, - W, - null, - null, - null - ); - } - function H(R, W, K) { - var G = O(8192, 8192, null, R, W, null, K, null); - switch (G.childFlags) { - case 1: - (G.children = re()), (G.childFlags = 2); - break; - case 16: - (G.children = [z(R)]), (G.childFlags = 4); - break; - } - return G; - } - function $(R) { - var W = R.props; - if (W) { - var K = R.flags; - K & 481 && - (W.children !== void 0 && a(R.children) && ye(R, W.children), - W.className !== void 0 && - (a(R.className) && (R.className = W.className || null), - (W.className = void 0))), - W.key !== void 0 && ((R.key = W.key), (W.key = void 0)), - W.ref !== void 0 && - (K & 8 ? (R.ref = k(R.ref, W.ref)) : (R.ref = W.ref), - (W.ref = void 0)); - } - return R; - } - function Y(R) { - var W = R.children, - K = R.childFlags; - return H(K === 2 ? X(W) : W.map(X), K, R.key); - } - function X(R) { - var W = R.flags & -16385, - K = R.props; - if (W & 14 && !y(K)) { - var G = K; - K = {}; - for (var Q in G) K[Q] = G[Q]; - } - return W & 8192 - ? Y(R) - : new M( - R.childFlags, - R.children, - R.className, - W, - R.key, - K, - R.ref, - R.type - ); - } - function re() { - return z('', null); - } - function ae(R, W) { - var K = Be(R); - return O(1024, 1024, null, K, 0, null, K.key, W); - } - function se(R, W, K, G) { - for (var Q = R.length; K < Q; K++) { - var ee = R[K]; - if (!t(ee)) { - var te = G + D + K; - if (n(ee)) se(ee, W, 0, te); - else { - if (e(ee)) ee = z(ee, te); - else { - var ie = ee.key, - Te = m(ie) && ie[0] === D; - (ee.flags & 81920 || Te) && (ee = X(ee)), - (ee.flags |= 65536), - Te - ? ie.substring(0, G.length) !== G && (ee.key = G + ie) - : y(ie) - ? (ee.key = te) - : (ee.key = G + ie); - } - W.push(ee); - } - } - } - } - function pe(R) { - switch (R) { - case 'svg': - return 32; - case 'input': - return 64; - case 'select': - return 256; - case 'textarea': - return 128; - case f: - return 8192; - default: - return 1; - } - } - function ye(R, W) { - var K, - G = 1; - if (t(W)) K = W; - else if (e(W)) (G = 16), (K = W); - else if (n(W)) { - for (var Q = W.length, ee = 0; ee < Q; ++ee) { - var te = W[ee]; - if (t(te) || n(te)) { - (K = K || W.slice(0, ee)), se(W, K, ee, ''); - break; - } else if (e(te)) - (K = K || W.slice(0, ee)), K.push(z(te, D + ee)); - else { - var ie = te.key, - Te = (te.flags & 81920) > 0, - Ie = y(ie), - Le = m(ie) && ie[0] === D; - Te || Ie || Le - ? ((K = K || W.slice(0, ee)), - (Te || Le) && (te = X(te)), - (Ie || Le) && (te.key = D + ee), - K.push(te)) - : K && K.push(te), - (te.flags |= 65536); - } - } - (K = K || W), K.length === 0 ? (G = 1) : (G = 8); - } else - (K = W), - (K.flags |= 65536), - W.flags & 81920 && (K = X(W)), - (G = 2); - return (R.children = K), (R.childFlags = G), R; - } - function Be(R) { - return t(R) || e(R) - ? z(R, null) - : n(R) - ? H(R, 0, null) - : R.flags & 16384 - ? X(R) - : R; - } - var he = 'http://www.w3.org/1999/xlink', - oe = 'http://www.w3.org/XML/1998/namespace', - Z = { - 'xlink:actuate': he, - 'xlink:arcrole': he, - 'xlink:href': he, - 'xlink:role': he, - 'xlink:show': he, - 'xlink:title': he, - 'xlink:type': he, - 'xml:base': oe, - 'xml:lang': oe, - 'xml:space': oe, - }; - function q(R) { - return { - onClick: R, - onDblClick: R, - onFocusIn: R, - onFocusOut: R, - onKeyDown: R, - onKeyPress: R, - onKeyUp: R, - onMouseDown: R, - onMouseMove: R, - onMouseUp: R, - onTouchEnd: R, - onTouchMove: R, - onTouchStart: R, - }; - } - var ue = q(0), - me = q(null), - ne = q(!0); - function be(R, W) { - var K = W.$EV; - return ( - K || (K = W.$EV = q(null)), - K[R] || (++ue[R] === 1 && (me[R] = ce(R))), - K - ); - } - function fe(R, W) { - var K = W.$EV; - K && - K[R] && - (--ue[R] === 0 && - (document.removeEventListener(i(R), me[R]), (me[R] = null)), - (K[R] = null)); - } - function ge(R, W, K, G) { - if (o(K)) be(R, G)[R] = K; - else if (l(K)) { - if (x(W, K)) return; - be(R, G)[R] = K; - } else fe(R, G); - } - function ke(R) { - return o(R.composedPath) ? R.composedPath()[0] : R.target; - } - function ve(R, W, K, G) { - var Q = ke(R); - do { - if (W && Q.disabled) return; - var ee = Q.$EV; - if (ee) { - var te = ee[K]; - if ( - te && - ((G.dom = Q), - te.event ? te.event(te.data, R) : te(R), - R.cancelBubble) - ) - return; - } - Q = Q.parentNode; - } while (!y(Q)); - } - function Se() { - (this.cancelBubble = !0), - this.immediatePropagationStopped || - this.stopImmediatePropagation(); - } - function we() { - return this.defaultPrevented; - } - function xe() { - return this.cancelBubble; - } - function Oe(R) { - var W = { dom: document }; - return ( - (R.isDefaultPrevented = we), - (R.isPropagationStopped = xe), - (R.stopPropagation = Se), - Object.defineProperty(R, 'currentTarget', { - configurable: !0, - get: (function () { - function K() { - return W.dom; - } - return K; - })(), - }), - W - ); - } - function We(R) { - return function (W) { - if (W.button !== 0) { - W.stopPropagation(); - return; - } - ve(W, !0, R, Oe(W)); - }; - } - function Ve(R) { - return function (W) { - ve(W, !1, R, Oe(W)); - }; - } - function ce(R) { - var W = R === 'onClick' || R === 'onDblClick' ? We(R) : Ve(R); - return document.addEventListener(i(R), W), W; - } - function le(R, W) { - var K = document.createElement('i'); - return (K.innerHTML = W), K.innerHTML === R.innerHTML; - } - function Ce(R, W, K) { - if (R[W]) { - var G = R[W]; - G.event ? G.event(G.data, K) : G(K); - } else { - var Q = W.toLowerCase(); - R[Q] && R[Q](K); - } - } - function de(R, W) { - var K = function (Q) { - var ee = this.$V; - if (ee) { - var te = ee.props || c, - ie = ee.dom; - if (m(R)) Ce(te, R, Q); - else for (var Te = 0; Te < R.length; ++Te) Ce(te, R[Te], Q); - if (o(W)) { - var Ie = this.$V, - Le = Ie.props || c; - W(Le, ie, !1, Ie); - } - } - }; - return ( - Object.defineProperty(K, 'wrapped', { - configurable: !1, - enumerable: !1, - value: !0, - writable: !1, - }), - K - ); - } - function Ne(R, W, K) { - var G = '$' + W, - Q = R[G]; - if (Q) { - if (Q[1].wrapped) return; - R.removeEventListener(Q[0], Q[1]), (R[G] = null); - } - o(K) && (R.addEventListener(W, K), (R[G] = [W, K])); - } - function Ae(R) { - return R === 'checkbox' || R === 'radio'; - } - var De = de('onInput', Ke), - je = de(['onClick', 'onChange'], Ke); - function _e(R) { - R.stopPropagation(); - } - _e.wrapped = !0; - function Ue(R, W) { - Ae(W.type) - ? (Ne(R, 'change', je), Ne(R, 'click', _e)) - : Ne(R, 'input', De); - } - function Ke(R, W) { - var K = R.type, - G = R.value, - Q = R.checked, - ee = R.multiple, - te = R.defaultValue, - ie = !a(G); - K && K !== W.type && W.setAttribute('type', K), - !a(ee) && ee !== W.multiple && (W.multiple = ee), - !a(te) && !ie && (W.defaultValue = te + ''), - Ae(K) - ? (ie && (W.value = G), a(Q) || (W.checked = Q)) - : ie && W.value !== G - ? ((W.defaultValue = G), (W.value = G)) - : a(Q) || (W.checked = Q); - } - function Ge(R, W) { - if (R.type === 'option') yt(R, W); - else { - var K = R.children, - G = R.flags; - if (G & 4) Ge(K.$LI, W); - else if (G & 8) Ge(K, W); - else if (R.childFlags === 2) Ge(K, W); - else if (R.childFlags & 12) - for (var Q = 0, ee = K.length; Q < ee; ++Q) Ge(K[Q], W); - } - } - function yt(R, W) { - var K = R.props || c, - G = R.dom; - (G.value = K.value), - K.value === W || (n(W) && W.indexOf(K.value) !== -1) - ? (G.selected = !0) - : (!a(W) || !a(K.selected)) && (G.selected = K.selected || !1); - } - var kt = de('onChange', ft); - function St(R) { - Ne(R, 'change', kt); - } - function ft(R, W, K, G) { - var Q = !!R.multiple; - !a(R.multiple) && Q !== W.multiple && (W.multiple = Q); - var ee = R.selectedIndex; - ee === -1 && (W.selectedIndex = -1); - var te = G.childFlags; - if (te !== 1) { - var ie = R.value; - N(ee) && ee > -1 && W.options[ee] && (ie = W.options[ee].value), - K && a(ie) && (ie = R.defaultValue), - Ge(G, ie); - } - } - var Bt = de('onInput', pt), - It = de('onChange'); - function Lt(R, W) { - Ne(R, 'input', Bt), W.onChange && Ne(R, 'change', It); - } - function pt(R, W, K) { - var G = R.value, - Q = W.value; - if (a(G)) { - if (K) { - var ee = R.defaultValue; - !a(ee) && ee !== Q && ((W.defaultValue = ee), (W.value = ee)); - } - } else Q !== G && ((W.defaultValue = G), (W.value = G)); - } - function wt(R, W, K, G, Q, ee) { - R & 64 - ? Ke(G, K) - : R & 256 - ? ft(G, K, Q, W) - : R & 128 && pt(G, K, Q), - ee && (K.$V = W); - } - function Gt(R, W, K) { - R & 64 ? Ue(W, K) : R & 256 ? St(W) : R & 128 && Lt(W, K); - } - function Tt(R) { - return R.type && Ae(R.type) ? !a(R.checked) : !a(R.value); - } - function Yt() { - return { current: null }; - } - function Xt(R) { - return { render: R }; - } - function lt(R) { - R && !P(R, null) && R.current && (R.current = null); - } - function ot(R, W, K) { - R && - (o(R) || R.current !== void 0) && - K.push(function () { - !P(R, W) && R.current !== void 0 && (R.current = W); - }); - } - function Xe(R, W) { - Qe(R), b(R, W); - } - function Qe(R) { - var W = R.flags, - K = R.children, - G; - if (W & 481) { - G = R.ref; - var Q = R.props; - lt(G); - var ee = R.childFlags; - if (!y(Q)) - for ( - var te = Object.keys(Q), ie = 0, Te = te.length; - ie < Te; - ie++ - ) { - var Ie = te[ie]; - ne[Ie] && fe(Ie, R.dom); - } - ee & 12 ? rt(K) : ee === 2 && Qe(K); - } else - K && - (W & 4 - ? (o(K.componentWillUnmount) && K.componentWillUnmount(), - lt(R.ref), - (K.$UN = !0), - Qe(K.$LI)) - : W & 8 - ? ((G = R.ref), - !a(G) && - o(G.onComponentWillUnmount) && - G.onComponentWillUnmount(V(R, !0), R.props || c), - Qe(K)) - : W & 1024 - ? Xe(K, R.ref) - : W & 8192 && R.childFlags & 12 && rt(K)); - } - function rt(R) { - for (var W = 0, K = R.length; W < K; ++W) Qe(R[W]); - } - function ut(R) { - R.textContent = ''; - } - function dt(R, W, K) { - rt(K), W.flags & 8192 ? b(W, R) : ut(R); - } - function Jt(R) { - var W = R.event; - return function (K) { - W(R.data, K); - }; - } - function Qt(R, W, K, G) { - if (l(K)) { - if (x(W, K)) return; - K = Jt(K); - } - Ne(G, i(R), K); - } - function Zt(R, W, K) { - if (a(W)) { - K.removeAttribute('style'); - return; - } - var G = K.style, - Q, - ee; - if (m(W)) { - G.cssText = W; - return; - } - if (!a(R) && !m(R)) { - for (Q in W) (ee = W[Q]), ee !== R[Q] && G.setProperty(Q, ee); - for (Q in R) a(W[Q]) && G.removeProperty(Q); - } else for (Q in W) (ee = W[Q]), G.setProperty(Q, ee); - } - function qt(R, W, K, G) { - var Q = (R && R.__html) || '', - ee = (W && W.__html) || ''; - Q !== ee && - !a(ee) && - !le(G, ee) && - (y(K) || - (K.childFlags & 12 - ? rt(K.children) - : K.childFlags === 2 && Qe(K.children), - (K.children = null), - (K.childFlags = 1)), - (G.innerHTML = ee)); - } - function ht(R, W, K, G, Q, ee, te) { - switch (R) { - case 'children': - case 'childrenType': - case 'className': - case 'defaultValue': - case 'key': - case 'multiple': - case 'ref': - case 'selectedIndex': - break; - case 'autoFocus': - G.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': - G[R] = !!K; - break; - case 'defaultChecked': - case 'value': - case 'volume': - if (ee && R === 'value') break; - var ie = a(K) ? '' : K; - G[R] !== ie && (G[R] = ie); - break; - case 'style': - Zt(W, K, G); - break; - case 'dangerouslySetInnerHTML': - qt(W, K, te, G); - break; - default: - ne[R] - ? ge(R, W, K, G) - : R.charCodeAt(0) === 111 && R.charCodeAt(1) === 110 - ? Qt(R, W, K, G) - : a(K) - ? G.removeAttribute(R) - : Q && Z[R] - ? G.setAttributeNS(Z[R], R, K) - : G.setAttribute(R, K); - break; - } - } - function xt(R, W, K, G, Q) { - var ee = !1, - te = (W & 448) > 0; - te && ((ee = Tt(K)), ee && Gt(W, G, K)); - for (var ie in K) ht(ie, null, K[ie], G, Q, ee, null); - te && wt(W, R, G, K, !0, ee); - } - function At(R, W, K) { - var G = Be(R.render(W, R.state, K)), - Q = K; - return ( - o(R.getChildContext) && (Q = k(K, R.getChildContext())), - (R.$CX = Q), - G - ); - } - function Et(R, W, K, G, Q, ee) { - var te = new W(K, G), - ie = (te.$N = !!( - W.getDerivedStateFromProps || te.getSnapshotBeforeUpdate - )); - if ( - ((te.$SVG = Q), - (te.$L = ee), - (R.children = te), - (te.$BS = !1), - (te.context = G), - te.props === c && (te.props = K), - ie) - ) - te.state = I(te, K, te.state); - else if (o(te.componentWillMount)) { - (te.$BR = !0), te.componentWillMount(); - var Te = te.$PS; - if (!y(Te)) { - var Ie = te.state; - if (y(Ie)) te.state = Te; - else for (var Le in Te) Ie[Le] = Te[Le]; - te.$PS = null; - } - te.$BR = !1; - } - return (te.$LI = At(te, K, G)), te; - } - function Ct(R, W) { - var K = R.props || c; - return R.flags & 32768 ? R.type.render(K, R.ref, W) : R.type(K, W); - } - function ze(R, W, K, G, Q, ee) { - var te = (R.flags |= 16384); - te & 481 - ? Pt(R, W, K, G, Q, ee) - : te & 4 - ? nn(R, W, K, G, Q, ee) - : te & 8 - ? (on(R, W, K, G, Q, ee), Rt(R, ee)) - : te & 512 || te & 16 - ? Mt(R, W, Q) - : te & 8192 - ? tn(R, K, W, G, Q, ee) - : te & 1024 && en(R, K, W, Q, ee); - } - function en(R, W, K, G, Q) { - ze(R.children, R.ref, W, !1, null, Q); - var ee = re(); - Mt(ee, K, G), (R.dom = ee.dom); - } - function tn(R, W, K, G, Q, ee) { - var te = R.children, - ie = R.childFlags; - ie & 12 && - te.length === 0 && - ((ie = R.childFlags = 2), (te = R.children = re())), - ie === 2 ? ze(te, K, W, G, Q, ee) : nt(te, K, W, G, Q, ee); - } - function Mt(R, W, K) { - var G = (R.dom = document.createTextNode(R.children)); - y(W) || s(W, G, K); - } - function Pt(R, W, K, G, Q, ee) { - var te = R.flags, - ie = R.props, - Te = R.className, - Ie = R.childFlags, - Le = (R.dom = d(R.type, (G = G || (te & 32) > 0))), - Ee = R.children; - if ( - (!a(Te) && - Te !== '' && - (G ? Le.setAttribute('class', Te) : (Le.className = Te)), - Ie === 16) - ) - A(Le, Ee); - else if (Ie !== 1) { - var Pe = G && R.type !== 'foreignObject'; - Ie === 2 - ? (Ee.flags & 16384 && (R.children = Ee = X(Ee)), - ze(Ee, Le, K, Pe, null, ee)) - : (Ie === 8 || Ie === 4) && nt(Ee, Le, K, Pe, null, ee); - } - y(W) || s(W, Le, Q), - y(ie) || xt(R, te, ie, Le, G), - ot(R.ref, Le, ee); - } - function nt(R, W, K, G, Q, ee) { - for (var te = 0; te < R.length; ++te) { - var ie = R[te]; - ie.flags & 16384 && (R[te] = ie = X(ie)), ze(ie, W, K, G, Q, ee); - } - } - function nn(R, W, K, G, Q, ee) { - var te = Et(R, R.type, R.props || c, K, G, ee); - ze(te.$LI, W, te.$CX, G, Q, ee), Ot(R.ref, te, ee); - } - function on(R, W, K, G, Q, ee) { - ze((R.children = Be(Ct(R, K))), W, K, G, Q, ee); - } - function rn(R) { - return function () { - R.componentDidMount(); - }; - } - function Ot(R, W, K) { - ot(R, W, K), o(W.componentDidMount) && K.push(rn(W)); - } - function an(R, W) { - return function () { - R.onComponentDidMount(V(W, !0), W.props || c); - }; - } - function Rt(R, W) { - var K = R.ref; - a(K) || - (P(K.onComponentWillMount, R.props || c), - o(K.onComponentDidMount) && W.push(an(K, R))); - } - function cn(R, W, K, G, Q, ee) { - Qe(R), - W.flags & R.flags & 2033 - ? (ze(W, null, G, Q, null, ee), C(K, W.dom, R.dom)) - : (ze(W, K, G, Q, V(R, !0), ee), b(R, K)); - } - function Ze(R, W, K, G, Q, ee, te) { - var ie = (W.flags |= 16384); - R.flags !== ie || R.type !== W.type || R.key !== W.key || ie & 2048 - ? R.flags & 16384 - ? cn(R, W, K, G, Q, te) - : ze(W, K, G, Q, ee, te) - : ie & 481 - ? mn(R, W, G, Q, ie, te) - : ie & 4 - ? hn(R, W, K, G, Q, ee, te) - : ie & 8 - ? Cn(R, W, K, G, Q, ee, te) - : ie & 16 - ? vn(R, W) - : ie & 512 - ? (W.dom = R.dom) - : ie & 8192 - ? dn(R, W, K, G, Q, te) - : sn(R, W, G, te); - } - function ln(R, W, K) { - R !== W && (R !== '' ? (K.firstChild.nodeValue = W) : A(K, W)); - } - function un(R, W) { - R.textContent !== W && (R.textContent = W); - } - function dn(R, W, K, G, Q, ee) { - var te = R.children, - ie = W.children, - Te = R.childFlags, - Ie = W.childFlags, - Le = null; - Ie & 12 && - ie.length === 0 && - ((Ie = W.childFlags = 2), (ie = W.children = re())); - var Ee = (Ie & 2) !== 0; - if (Te & 12) { - var Pe = te.length; - ((Te & 8 && Ie & 8) || Ee || (!Ee && ie.length > Pe)) && - (Le = V(te[Pe - 1], !1).nextSibling); - } - vt(Te, Ie, te, ie, K, G, Q, Le, R, ee); - } - function sn(R, W, K, G) { - var Q = R.ref, - ee = W.ref, - te = W.children; - if ( - (vt( - R.childFlags, - W.childFlags, - R.children, - te, - Q, - K, - !1, - null, - R, - G - ), - (W.dom = R.dom), - Q !== ee && !t(te)) - ) { - var ie = te.dom; - g(Q, ie), u(ee, ie); - } - } - function mn(R, W, K, G, Q, ee) { - var te = (W.dom = R.dom), - ie = R.props, - Te = W.props, - Ie = !1, - Le = !1, - Ee; - if (((G = G || (Q & 32) > 0), ie !== Te)) { - var Pe = ie || c; - if (((Ee = Te || c), Ee !== c)) { - (Ie = (Q & 448) > 0), Ie && (Le = Tt(Ee)); - for (var Fe in Ee) { - var Me = Pe[Fe], - He = Ee[Fe]; - Me !== He && ht(Fe, Me, He, te, G, Le, R); - } - } - if (Pe !== c) - for (var Re in Pe) - a(Ee[Re]) && !a(Pe[Re]) && ht(Re, Pe[Re], null, te, G, Le, R); - } - var et = W.children, - Ye = W.className; - R.className !== Ye && - (a(Ye) - ? te.removeAttribute('class') - : G - ? te.setAttribute('class', Ye) - : (te.className = Ye)), - Q & 4096 - ? un(te, et) - : vt( - R.childFlags, - W.childFlags, - R.children, - et, - te, - K, - G && W.type !== 'foreignObject', - null, - R, - ee - ), - Ie && wt(Q, W, te, Ee, !1, Le); - var at = W.ref, - Je = R.ref; - Je !== at && (lt(Je), ot(at, te, ee)); - } - function fn(R, W, K, G, Q, ee) { - Qe(R), nt(W, K, G, Q, V(R, !0), ee), b(R, K); - } - function vt(R, W, K, G, Q, ee, te, ie, Te, Ie) { - switch (R) { - case 2: - switch (W) { - case 2: - Ze(K, G, Q, ee, te, ie, Ie); - break; - case 1: - Xe(K, Q); - break; - case 16: - Qe(K), A(Q, G); - break; - default: - fn(K, G, Q, ee, te, Ie); - break; - } - break; - case 1: - switch (W) { - case 2: - ze(G, Q, ee, te, ie, Ie); - break; - case 1: - break; - case 16: - A(Q, G); - break; - default: - nt(G, Q, ee, te, ie, Ie); - break; - } - break; - case 16: - switch (W) { - case 16: - ln(K, G, Q); - break; - case 2: - ut(Q), ze(G, Q, ee, te, ie, Ie); - break; - case 1: - ut(Q); - break; - default: - ut(Q), nt(G, Q, ee, te, ie, Ie); - break; - } - break; - default: - switch (W) { - case 16: - rt(K), A(Q, G); - break; - case 2: - dt(Q, Te, K), ze(G, Q, ee, te, ie, Ie); - break; - case 1: - dt(Q, Te, K); - break; - default: - var Le = K.length | 0, - Ee = G.length | 0; - Le === 0 - ? Ee > 0 && nt(G, Q, ee, te, ie, Ie) - : Ee === 0 - ? dt(Q, Te, K) - : W === 8 && R === 8 - ? Nn(K, G, Q, ee, te, Le, Ee, ie, Te, Ie) - : gn(K, G, Q, ee, te, Le, Ee, ie, Ie); - break; - } - break; - } - } - function pn(R, W, K, G, Q) { - Q.push(function () { - R.componentDidUpdate(W, K, G); - }); - } - function Dt(R, W, K, G, Q, ee, te, ie, Te) { - var Ie = R.state, - Le = R.props, - Ee = !!R.$N, - Pe = o(R.shouldComponentUpdate); - if ( - (Ee && (W = I(R, K, W !== Ie ? k(Ie, W) : W)), - te || !Pe || (Pe && R.shouldComponentUpdate(K, W, Q))) - ) { - !Ee && o(R.componentWillUpdate) && R.componentWillUpdate(K, W, Q), - (R.props = K), - (R.state = W), - (R.context = Q); - var Fe = null, - Me = At(R, K, Q); - Ee && - o(R.getSnapshotBeforeUpdate) && - (Fe = R.getSnapshotBeforeUpdate(Le, Ie)), - Ze(R.$LI, Me, G, R.$CX, ee, ie, Te), - (R.$LI = Me), - o(R.componentDidUpdate) && pn(R, Le, Ie, Fe, Te); - } else (R.props = K), (R.state = W), (R.context = Q); - } - function hn(R, W, K, G, Q, ee, te) { - var ie = (W.children = R.children); - if (!y(ie)) { - ie.$L = te; - var Te = W.props || c, - Ie = W.ref, - Le = R.ref, - Ee = ie.state; - if (!ie.$N) { - if (o(ie.componentWillReceiveProps)) { - if ( - ((ie.$BR = !0), ie.componentWillReceiveProps(Te, G), ie.$UN) - ) - return; - ie.$BR = !1; - } - y(ie.$PS) || ((Ee = k(Ee, ie.$PS)), (ie.$PS = null)); - } - Dt(ie, Ee, Te, K, G, Q, !1, ee, te), - Le !== Ie && (lt(Le), ot(Ie, ie, te)); - } - } - function Cn(R, W, K, G, Q, ee, te) { - var ie = !0, - Te = W.props || c, - Ie = W.ref, - Le = R.props, - Ee = !a(Ie), - Pe = R.children; - if ( - (Ee && - o(Ie.onComponentShouldUpdate) && - (ie = Ie.onComponentShouldUpdate(Le, Te)), - ie !== !1) - ) { - Ee && - o(Ie.onComponentWillUpdate) && - Ie.onComponentWillUpdate(Le, Te); - var Fe = Be(Ct(W, G)); - Ze(Pe, Fe, K, G, Q, ee, te), - (W.children = Fe), - Ee && - o(Ie.onComponentDidUpdate) && - Ie.onComponentDidUpdate(Le, Te); - } else W.children = Pe; - } - function vn(R, W) { - var K = W.children, - G = (W.dom = R.dom); - K !== R.children && (G.nodeValue = K); - } - function gn(R, W, K, G, Q, ee, te, ie, Te) { - for (var Ie = ee > te ? te : ee, Le = 0, Ee, Pe; Le < Ie; ++Le) - (Ee = W[Le]), - (Pe = R[Le]), - Ee.flags & 16384 && (Ee = W[Le] = X(Ee)), - Ze(Pe, Ee, K, G, Q, ie, Te), - (R[Le] = Ee); - if (ee < te) - for (Le = Ie; Le < te; ++Le) - (Ee = W[Le]), - Ee.flags & 16384 && (Ee = W[Le] = X(Ee)), - ze(Ee, K, G, Q, ie, Te); - else if (ee > te) for (Le = Ie; Le < ee; ++Le) Xe(R[Le], K); - } - function Nn(R, W, K, G, Q, ee, te, ie, Te, Ie) { - var Le = ee - 1, - Ee = te - 1, - Pe = 0, - Fe = R[Pe], - Me = W[Pe], - He, - Re; - e: { - for (; Fe.key === Me.key; ) { - if ( - (Me.flags & 16384 && (W[Pe] = Me = X(Me)), - Ze(Fe, Me, K, G, Q, ie, Ie), - (R[Pe] = Me), - ++Pe, - Pe > Le || Pe > Ee) - ) - break e; - (Fe = R[Pe]), (Me = W[Pe]); - } - for (Fe = R[Le], Me = W[Ee]; Fe.key === Me.key; ) { - if ( - (Me.flags & 16384 && (W[Ee] = Me = X(Me)), - Ze(Fe, Me, K, G, Q, ie, Ie), - (R[Le] = Me), - Le--, - Ee--, - Pe > Le || Pe > Ee) - ) - break e; - (Fe = R[Le]), (Me = W[Ee]); - } - } - if (Pe > Le) { - if (Pe <= Ee) - for (He = Ee + 1, Re = He < te ? V(W[He], !0) : ie; Pe <= Ee; ) - (Me = W[Pe]), - Me.flags & 16384 && (W[Pe] = Me = X(Me)), - ++Pe, - ze(Me, K, G, Q, Re, Ie); - } else if (Pe > Ee) for (; Pe <= Le; ) Xe(R[Pe++], K); - else Vn(R, W, G, ee, te, Le, Ee, Pe, K, Q, ie, Te, Ie); - } - function Vn(R, W, K, G, Q, ee, te, ie, Te, Ie, Le, Ee, Pe) { - var Fe, - Me, - He, - Re = 0, - et = ie, - Ye = ie, - at = ee - ie + 1, - Je = te - ie + 1, - ct = new Int32Array(Je + 1), - tt = at === G, - Vt = !1, - $e = 0, - it = 0; - if (Q < 4 || (at | Je) < 32) - for (Re = et; Re <= ee; ++Re) - if (((Fe = R[Re]), it < Je)) { - for (ie = Ye; ie <= te; ie++) - if (((Me = W[ie]), Fe.key === Me.key)) { - if (((ct[ie - Ye] = Re + 1), tt)) - for (tt = !1; et < Re; ) Xe(R[et++], Te); - $e > ie ? (Vt = !0) : ($e = ie), - Me.flags & 16384 && (W[ie] = Me = X(Me)), - Ze(Fe, Me, Te, K, Ie, Le, Pe), - ++it; - break; - } - !tt && ie > te && Xe(Fe, Te); - } else tt || Xe(Fe, Te); - else { - var zt = {}; - for (Re = Ye; Re <= te; ++Re) zt[W[Re].key] = Re; - for (Re = et; Re <= ee; ++Re) - if (((Fe = R[Re]), it < Je)) - if (((ie = zt[Fe.key]), ie !== void 0)) { - if (tt) for (tt = !1; Re > et; ) Xe(R[et++], Te); - (ct[ie - Ye] = Re + 1), - $e > ie ? (Vt = !0) : ($e = ie), - (Me = W[ie]), - Me.flags & 16384 && (W[ie] = Me = X(Me)), - Ze(Fe, Me, Te, K, Ie, Le, Pe), - ++it; - } else tt || Xe(Fe, Te); - else tt || Xe(Fe, Te); - } - if (tt) dt(Te, Ee, R), nt(W, Te, K, Ie, Le, Pe); - else if (Vt) { - var Ht = bn(ct); - for (ie = Ht.length - 1, Re = Je - 1; Re >= 0; Re--) - ct[Re] === 0 - ? (($e = Re + Ye), - (Me = W[$e]), - Me.flags & 16384 && (W[$e] = Me = X(Me)), - (He = $e + 1), - ze(Me, Te, K, Ie, He < Q ? V(W[He], !0) : Le, Pe)) - : ie < 0 || Re !== Ht[ie] - ? (($e = Re + Ye), - (Me = W[$e]), - (He = $e + 1), - B(Me, Te, He < Q ? V(W[He], !0) : Le)) - : ie--; - } else if (it !== Je) - for (Re = Je - 1; Re >= 0; Re--) - ct[Re] === 0 && - (($e = Re + Ye), - (Me = W[$e]), - Me.flags & 16384 && (W[$e] = Me = X(Me)), - (He = $e + 1), - ze(Me, Te, K, Ie, He < Q ? V(W[He], !0) : Le, Pe)); - } - var qe, - st, - jt = 0; - function bn(R) { - var W = 0, - K = 0, - G = 0, - Q = 0, - ee = 0, - te = 0, - ie = 0, - Te = R.length; - for ( - Te > jt && - ((jt = Te), (qe = new Int32Array(Te)), (st = new Int32Array(Te))); - K < Te; - ++K - ) - if (((W = R[K]), W !== 0)) { - if (((G = qe[Q]), R[G] < W)) { - (st[K] = G), (qe[++Q] = K); - continue; - } - for (ee = 0, te = Q; ee < te; ) - (ie = (ee + te) >> 1), - R[qe[ie]] < W ? (ee = ie + 1) : (te = ie); - W < R[qe[ee]] && (ee > 0 && (st[K] = qe[ee - 1]), (qe[ee] = K)); - } - ee = Q + 1; - var Ie = new Int32Array(ee); - for (te = qe[ee - 1]; ee-- > 0; ) - (Ie[ee] = te), (te = st[te]), (qe[ee] = 0); - return Ie; - } - var yn = typeof document != 'undefined'; - yn && - window.Node && - ((Node.prototype.$EV = null), (Node.prototype.$V = null)); - function Ft(R, W, K, G) { - var Q = [], - ee = W.$V; - (w.v = !0), - a(ee) - ? a(R) || - (R.flags & 16384 && (R = X(R)), - ze(R, W, G, !1, null, Q), - (W.$V = R), - (ee = R)) - : a(R) - ? (Xe(ee, W), (W.$V = null)) - : (R.flags & 16384 && (R = X(R)), - Ze(ee, R, W, G, !1, null, Q), - (ee = W.$V = R)), - v(Q), - (w.v = !1), - o(K) && K(), - o(T.renderComplete) && T.renderComplete(ee, W); - } - function Wt(R, W, K, G) { - K === void 0 && (K = null), G === void 0 && (G = c), Ft(R, W, K, G); - } - function kn(R) { - return (function () { - function W(K, G, Q, ee) { - R || (R = K), Wt(G, R, Q, ee); - } - return W; - })(); - } - var mt = [], - Sn = - typeof Promise != 'undefined' - ? Promise.resolve().then.bind(Promise.resolve()) - : function (R) { - window.setTimeout(R, 0); - }, - gt = !1; - function Ut(R, W, K, G) { - var Q = R.$PS; - if ( - (o(W) && (W = W(Q ? k(R.state, Q) : R.state, R.props, R.context)), - a(Q)) - ) - R.$PS = W; - else for (var ee in W) Q[ee] = W[ee]; - if (R.$BR) o(K) && R.$L.push(K.bind(R)); - else { - if (!w.v && mt.length === 0) { - Kt(R, G), o(K) && K.call(R); - return; - } - if ( - (mt.indexOf(R) === -1 && mt.push(R), - G && (R.$F = !0), - gt || ((gt = !0), Sn(_t)), - o(K)) - ) { - var te = R.$QU; - te || (te = R.$QU = []), te.push(K); - } - } - } - function Bn(R) { - for (var W = R.$QU, K = 0; K < W.length; ++K) W[K].call(R); - R.$QU = null; - } - function _t() { - var R; - for (gt = !1; (R = mt.shift()); ) - if (!R.$UN) { - var W = R.$F; - (R.$F = !1), Kt(R, W), R.$QU && Bn(R); - } - } - function Kt(R, W) { - if (W || !R.$BR) { - var K = R.$PS; - R.$PS = null; - var G = []; - (w.v = !0), - Dt( - R, - k(R.state, K), - R.props, - V(R.$LI, !0).parentNode, - R.context, - R.$SVG, - W, - null, - G - ), - v(G), - (w.v = !1); - } else (R.state = R.$PS), (R.$PS = null); - } - var Nt = (r.Component = (function () { - function R(W, K) { - (this.state = null), - (this.$BR = !1), - (this.$BS = !0), - (this.$PS = null), - (this.$LI = null), - (this.$UN = !1), - (this.$CX = null), - (this.$QU = null), - (this.$N = !1), - (this.$L = null), - (this.$SVG = !1), - (this.$F = !1), - (this.props = W || c), - (this.context = K || c); - } - return R; - })()); - (Nt.prototype.forceUpdate = (function () { - function R(W) { - this.$UN || Ut(this, {}, W, !0); - } - return R; - })()), - (Nt.prototype.setState = (function () { - function R(W, K) { - this.$UN || this.$BS || Ut(this, W, K, !1); - } - return R; - })()), - (Nt.prototype.render = (function () { - function R(W, K, G) { - return null; - } - return R; - })()); - var Ln = (r.version = '7.4.11'); - }, - 28823: function (L, r, n) { - 'use strict'; - r.__esModule = !0; - var e = n(60208); - Object.keys(e).forEach(function (a) { - a === 'default' || - a === '__esModule' || - (a in r && r[a] === e[a]) || - (r[a] = e[a]); - }); - }, - 32883: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.VNodeFlags = r.ChildFlags = void 0); - var n; - (function (a) { - (a[(a.HtmlElement = 1)] = 'HtmlElement'), - (a[(a.ComponentUnknown = 2)] = 'ComponentUnknown'), - (a[(a.ComponentClass = 4)] = 'ComponentClass'), - (a[(a.ComponentFunction = 8)] = 'ComponentFunction'), - (a[(a.Text = 16)] = 'Text'), - (a[(a.SvgElement = 32)] = 'SvgElement'), - (a[(a.InputElement = 64)] = 'InputElement'), - (a[(a.TextareaElement = 128)] = 'TextareaElement'), - (a[(a.SelectElement = 256)] = 'SelectElement'), - (a[(a.Void = 512)] = 'Void'), - (a[(a.Portal = 1024)] = 'Portal'), - (a[(a.ReCreate = 2048)] = 'ReCreate'), - (a[(a.ContentEditable = 4096)] = 'ContentEditable'), - (a[(a.Fragment = 8192)] = 'Fragment'), - (a[(a.InUse = 16384)] = 'InUse'), - (a[(a.ForwardRef = 32768)] = 'ForwardRef'), - (a[(a.Normalized = 65536)] = 'Normalized'), - (a[(a.ForwardRefComponent = 32776)] = 'ForwardRefComponent'), - (a[(a.FormElement = 448)] = 'FormElement'), - (a[(a.Element = 481)] = 'Element'), - (a[(a.Component = 14)] = 'Component'), - (a[(a.DOMRef = 2033)] = 'DOMRef'), - (a[(a.InUseOrNormalized = 81920)] = 'InUseOrNormalized'), - (a[(a.ClearInUse = -16385)] = 'ClearInUse'), - (a[(a.ComponentKnown = 12)] = 'ComponentKnown'); - })(n || (r.VNodeFlags = n = {})); - var e; - (function (a) { - (a[(a.UnknownChildren = 0)] = 'UnknownChildren'), - (a[(a.HasInvalidChildren = 1)] = 'HasInvalidChildren'), - (a[(a.HasVNodeChildren = 2)] = 'HasVNodeChildren'), - (a[(a.HasNonKeyedChildren = 4)] = 'HasNonKeyedChildren'), - (a[(a.HasKeyedChildren = 8)] = 'HasKeyedChildren'), - (a[(a.HasTextChildren = 16)] = 'HasTextChildren'), - (a[(a.MultipleChildren = 12)] = 'MultipleChildren'); - })(e || (r.ChildFlags = e = {})); - }, - 34793: function (L, r, n) { - 'use strict'; - var e = n(33436); - function a() {} - function t() {} - (t.resetWarningCache = a), - (L.exports = function () { - function o(y, S, k, p, l, c) { - if (c !== e) { - var f = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types' - ); - throw ((f.name = 'Invariant Violation'), f); - } - } - o.isRequired = o; - function m() { - return o; - } - var N = { - array: o, - bigint: o, - bool: o, - func: o, - number: o, - object: o, - string: o, - symbol: o, - any: o, - arrayOf: m, - element: o, - elementType: o, - instanceOf: m, - node: o, - objectOf: m, - oneOf: m, - oneOfType: m, - shape: m, - exact: m, - checkPropTypes: t, - resetWarningCache: a, - }; - return (N.PropTypes = N), N; - }); - }, - 64635: function (L, r, n) { - 'use strict'; - if (0) var e, a; - else L.exports = n(34793)(); - }, - 33436: function (L) { - 'use strict'; - var r = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - L.exports = r; - }, - 16970: function (L) { - 'use strict'; - var r = (function (n) { - 'use strict'; - var e = Object.prototype, - a = e.hasOwnProperty, - t = - Object.defineProperty || - function (M, O, j) { - M[O] = j.value; - }, - o, - m = typeof Symbol == 'function' ? Symbol : {}, - N = m.iterator || '@@iterator', - y = m.asyncIterator || '@@asyncIterator', - S = m.toStringTag || '@@toStringTag'; - function k(M, O, j) { - return ( - Object.defineProperty(M, O, { - value: j, - enumerable: !0, - configurable: !0, - writable: !0, - }), - M[O] - ); - } - try { - k({}, ''); - } catch (M) { - k = function (j, F, U) { - return (j[F] = U); - }; - } - function p(M, O, j, F) { - var U = O && O.prototype instanceof d ? O : d, - _ = Object.create(U.prototype), - z = new E(F || []); - return t(_, '_invoke', { value: w(M, j, z) }), _; - } - n.wrap = p; - function l(M, O, j) { - try { - return { type: 'normal', arg: M.call(O, j) }; - } catch (F) { - return { type: 'throw', arg: F }; - } - } - var c = 'suspendedStart', - f = 'suspendedYield', - i = 'executing', - u = 'completed', - s = {}; - function d() {} - function C() {} - function g() {} - var v = {}; - k(v, N, function () { - return this; - }); - var h = Object.getPrototypeOf, - V = h && h(h(P([]))); - V && V !== e && a.call(V, N) && (v = V); - var b = (g.prototype = d.prototype = Object.create(v)); - (C.prototype = g), - t(b, 'constructor', { value: g, configurable: !0 }), - t(g, 'constructor', { value: C, configurable: !0 }), - (C.displayName = k(g, S, 'GeneratorFunction')); - function B(M) { - ['next', 'throw', 'return'].forEach(function (O) { - k(M, O, function (j) { - return this._invoke(O, j); - }); - }); - } - (n.isGeneratorFunction = function (M) { - var O = typeof M == 'function' && M.constructor; - return O - ? O === C || (O.displayName || O.name) === 'GeneratorFunction' - : !1; - }), - (n.mark = function (M) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(M, g) - : ((M.__proto__ = g), k(M, S, 'GeneratorFunction')), - (M.prototype = Object.create(b)), - M - ); - }), - (n.awrap = function (M) { - return { __await: M }; - }); - function I(M, O) { - function j(_, z, H, $) { - var Y = l(M[_], M, z); - if (Y.type === 'throw') $(Y.arg); - else { - var X = Y.arg, - re = X.value; - return re && typeof re == 'object' && a.call(re, '__await') - ? O.resolve(re.__await).then( - function (ae) { - j('next', ae, H, $); - }, - function (ae) { - j('throw', ae, H, $); - } - ) - : O.resolve(re).then( - function (ae) { - (X.value = ae), H(X); - }, - function (ae) { - return j('throw', ae, H, $); - } - ); - } - } - var F; - function U(_, z) { - function H() { - return new O(function ($, Y) { - j(_, z, $, Y); - }); - } - return (F = F ? F.then(H, H) : H()); - } - t(this, '_invoke', { value: U }); - } - B(I.prototype), - k(I.prototype, y, function () { - return this; - }), - (n.AsyncIterator = I), - (n.async = function (M, O, j, F, U) { - U === void 0 && (U = Promise); - var _ = new I(p(M, O, j, F), U); - return n.isGeneratorFunction(O) - ? _ - : _.next().then(function (z) { - return z.done ? z.value : _.next(); - }); - }); - function w(M, O, j) { - var F = c; - return (function () { - function U(_, z) { - if (F === i) throw new Error('Generator is already running'); - if (F === u) { - if (_ === 'throw') throw z; - return D(); - } - for (j.method = _, j.arg = z; ; ) { - var H = j.delegate; - if (H) { - var $ = T(H, j); - if ($) { - if ($ === s) continue; - return $; - } - } - if (j.method === 'next') j.sent = j._sent = j.arg; - else if (j.method === 'throw') { - if (F === c) throw ((F = u), j.arg); - j.dispatchException(j.arg); - } else j.method === 'return' && j.abrupt('return', j.arg); - F = i; - var Y = l(M, O, j); - if (Y.type === 'normal') { - if (((F = j.done ? u : f), Y.arg === s)) continue; - return { value: Y.arg, done: j.done }; - } else - Y.type === 'throw' && - ((F = u), (j.method = 'throw'), (j.arg = Y.arg)); - } - } - return U; - })(); - } - function T(M, O) { - var j = O.method, - F = M.iterator[j]; - if (F === o) - return ( - (O.delegate = null), - (j === 'throw' && - M.iterator.return && - ((O.method = 'return'), - (O.arg = o), - T(M, O), - O.method === 'throw')) || - (j !== 'return' && - ((O.method = 'throw'), - (O.arg = new TypeError( - "The iterator does not provide a '" + j + "' method" - )))), - s - ); - var U = l(F, M.iterator, O.arg); - if (U.type === 'throw') - return ( - (O.method = 'throw'), (O.arg = U.arg), (O.delegate = null), s - ); - var _ = U.arg; - if (!_) - return ( - (O.method = 'throw'), - (O.arg = new TypeError('iterator result is not an object')), - (O.delegate = null), - s - ); - if (_.done) - (O[M.resultName] = _.value), - (O.next = M.nextLoc), - O.method !== 'return' && ((O.method = 'next'), (O.arg = o)); - else return _; - return (O.delegate = null), s; - } - B(b), - k(b, S, 'Generator'), - k(b, N, function () { - return this; - }), - k(b, 'toString', function () { - return '[object Generator]'; - }); - function A(M) { - var O = { tryLoc: M[0] }; - 1 in M && (O.catchLoc = M[1]), - 2 in M && ((O.finallyLoc = M[2]), (O.afterLoc = M[3])), - this.tryEntries.push(O); - } - function x(M) { - var O = M.completion || {}; - (O.type = 'normal'), delete O.arg, (M.completion = O); - } - function E(M) { - (this.tryEntries = [{ tryLoc: 'root' }]), - M.forEach(A, this), - this.reset(!0); - } - n.keys = function (M) { - var O = Object(M), - j = []; - for (var F in O) j.push(F); - return ( - j.reverse(), - (function () { - function U() { - for (; j.length; ) { - var _ = j.pop(); - if (_ in O) return (U.value = _), (U.done = !1), U; - } - return (U.done = !0), U; - } - return U; - })() - ); - }; - function P(M) { - if (M != null) { - var O = M[N]; - if (O) return O.call(M); - if (typeof M.next == 'function') return M; - if (!isNaN(M.length)) { - var j = -1, - F = (function () { - function U() { - for (; ++j < M.length; ) - if (a.call(M, j)) - return (U.value = M[j]), (U.done = !1), U; - return (U.value = o), (U.done = !0), U; - } - return U; - })(); - return (F.next = F); - } - } - throw new TypeError(typeof M + ' is not iterable'); - } - n.values = P; - function D() { - return { value: o, done: !0 }; - } - return ( - (E.prototype = { - constructor: E, - reset: (function () { - function M(O) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = o), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = o), - this.tryEntries.forEach(x), - !O) - ) - for (var j in this) - j.charAt(0) === 't' && - a.call(this, j) && - !isNaN(+j.slice(1)) && - (this[j] = o); - } - return M; - })(), - stop: (function () { - function M() { - this.done = !0; - var O = this.tryEntries[0], - j = O.completion; - if (j.type === 'throw') throw j.arg; - return this.rval; - } - return M; - })(), - dispatchException: (function () { - function M(O) { - if (this.done) throw O; - var j = this; - function F(Y, X) { - return ( - (z.type = 'throw'), - (z.arg = O), - (j.next = Y), - X && ((j.method = 'next'), (j.arg = o)), - !!X - ); - } - for (var U = this.tryEntries.length - 1; U >= 0; --U) { - var _ = this.tryEntries[U], - z = _.completion; - if (_.tryLoc === 'root') return F('end'); - if (_.tryLoc <= this.prev) { - var H = a.call(_, 'catchLoc'), - $ = a.call(_, 'finallyLoc'); - if (H && $) { - if (this.prev < _.catchLoc) return F(_.catchLoc, !0); - if (this.prev < _.finallyLoc) return F(_.finallyLoc); - } else if (H) { - if (this.prev < _.catchLoc) return F(_.catchLoc, !0); - } else if ($) { - if (this.prev < _.finallyLoc) return F(_.finallyLoc); - } else - throw new Error( - 'try statement without catch or finally' - ); - } - } - } - return M; - })(), - abrupt: (function () { - function M(O, j) { - for (var F = this.tryEntries.length - 1; F >= 0; --F) { - var U = this.tryEntries[F]; - if ( - U.tryLoc <= this.prev && - a.call(U, 'finallyLoc') && - this.prev < U.finallyLoc - ) { - var _ = U; - break; - } - } - _ && - (O === 'break' || O === 'continue') && - _.tryLoc <= j && - j <= _.finallyLoc && - (_ = null); - var z = _ ? _.completion : {}; - return ( - (z.type = O), - (z.arg = j), - _ - ? ((this.method = 'next'), - (this.next = _.finallyLoc), - s) - : this.complete(z) - ); - } - return M; - })(), - complete: (function () { - function M(O, j) { - if (O.type === 'throw') throw O.arg; - return ( - O.type === 'break' || O.type === 'continue' - ? (this.next = O.arg) - : O.type === 'return' - ? ((this.rval = this.arg = O.arg), - (this.method = 'return'), - (this.next = 'end')) - : O.type === 'normal' && j && (this.next = j), - s - ); - } - return M; - })(), - finish: (function () { - function M(O) { - for (var j = this.tryEntries.length - 1; j >= 0; --j) { - var F = this.tryEntries[j]; - if (F.finallyLoc === O) - return this.complete(F.completion, F.afterLoc), x(F), s; - } - } - return M; - })(), - catch: (function () { - function M(O) { - for (var j = this.tryEntries.length - 1; j >= 0; --j) { - var F = this.tryEntries[j]; - if (F.tryLoc === O) { - var U = F.completion; - if (U.type === 'throw') { - var _ = U.arg; - x(F); - } - return _; - } - } - throw new Error('illegal catch attempt'); - } - return M; - })(), - delegateYield: (function () { - function M(O, j, F) { - return ( - (this.delegate = { - iterator: P(O), - resultName: j, - nextLoc: F, - }), - this.method === 'next' && (this.arg = o), - s - ); - } - return M; - })(), - }), - n - ); - })(L.exports); - try { - regeneratorRuntime = r; - } catch (n) { - typeof globalThis == 'object' - ? (globalThis.regeneratorRuntime = r) - : Function('r', 'regeneratorRuntime = r')(r); - } - }, - 11386: function () { - 'use strict'; - self.fetch || - (self.fetch = function (L, r) { - return ( - (r = r || {}), - new Promise(function (n, e) { - var a = new XMLHttpRequest(), - t = [], - o = {}, - m = (function () { - function y() { - return { - ok: ((a.status / 100) | 0) == 2, - statusText: a.statusText, - status: a.status, - url: a.responseURL, - text: (function () { - function S() { - return Promise.resolve(a.responseText); - } - return S; - })(), - json: (function () { - function S() { - return Promise.resolve(a.responseText).then( - JSON.parse - ); - } - return S; - })(), - blob: (function () { - function S() { - return Promise.resolve(new Blob([a.response])); - } - return S; - })(), - clone: y, - headers: { - keys: (function () { - function S() { - return t; - } - return S; - })(), - entries: (function () { - function S() { - return t.map(function (k) { - return [k, a.getResponseHeader(k)]; - }); - } - return S; - })(), - get: (function () { - function S(k) { - return a.getResponseHeader(k); - } - return S; - })(), - has: (function () { - function S(k) { - return a.getResponseHeader(k) != null; - } - return S; - })(), - }, - }; - } - return y; - })(); - for (var N in (a.open(r.method || 'get', L, !0), - (a.onload = function () { - a - .getAllResponseHeaders() - .toLowerCase() - .replace(/^(.+?):/gm, function (y, S) { - o[S] || t.push((o[S] = S)); - }), - n(m()); - }), - (a.onerror = e), - (a.withCredentials = r.credentials == 'include'), - r.headers)) - a.setRequestHeader(N, r.headers[N]); - a.send(r.body || null); - }) - ); - }); - }, - 72026: function (L, 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(d, C) { - var g = - (typeof Symbol != 'undefined' && d[Symbol.iterator]) || - d['@@iterator']; - if (g) return (g = g.call(d)).next.bind(g); - if ( - Array.isArray(d) || - (g = e(d)) || - (C && d && typeof d.length == 'number') - ) { - g && (d = g); - var v = 0; - return function () { - return v >= d.length - ? { done: !0 } - : { done: !1, value: d[v++] }; - }; - } - throw new TypeError( - 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - } - function e(d, C) { - if (d) { - if (typeof d == 'string') return a(d, C); - var g = Object.prototype.toString.call(d).slice(8, -1); - if ( - (g === 'Object' && d.constructor && (g = d.constructor.name), - g === 'Map' || g === 'Set') - ) - return Array.from(d); - if ( - g === 'Arguments' || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g) - ) - return a(d, C); - } - } - function a(d, C) { - (C == null || C > d.length) && (C = d.length); - for (var g = 0, v = new Array(C); g < C; g++) v[g] = d[g]; - return v; - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var t = (r.toArray = (function () { - function d(C) { - if (Array.isArray(C)) return C; - if (typeof C == 'object') { - var g = Object.prototype.hasOwnProperty, - v = []; - for (var p in C) g.call(C, p) && v.push(C[p]); - return v; - } - return []; - } - return d; - })()), - o = (r.toKeyedArray = (function () { - function d(C, g) { - return ( - g === void 0 && (g = 'key'), - N(function (v, p) { - var V; - return Object.assign(((V = {}), (V[g] = p), V), v); - })(C) - ); - } - return d; - })()), - m = (r.filter = (function () { - function d(C) { - return function (g) { - if (g == null) return g; - if (Array.isArray(g)) { - for (var v = [], p = 0; p < g.length; p++) { - var V = g[p]; - C(V, p, g) && v.push(V); - } - return v; - } - throw new Error("filter() can't iterate on type " + typeof g); - }; - } - return d; - })()), - N = (r.map = (function () { - function d(C) { - return function (g) { - if (g == null) return g; - if (Array.isArray(g)) { - for (var v = [], p = 0; p < g.length; p++) - v.push(C(g[p], p, g)); - return v; - } - if (typeof g == 'object') { - var V = Object.prototype.hasOwnProperty, - b = []; - for (var B in g) V.call(g, B) && b.push(C(g[B], B, g)); - return b; - } - throw new Error("map() can't iterate on type " + typeof g); - }; - } - return d; - })()), - y = (r.filterMap = (function () { - function d(C, g) { - for (var v = [], p = n(C), V; !(V = p()).done; ) { - var b = V.value, - B = g(b); - B !== void 0 && v.push(B); - } - return v; - } - return d; - })()), - S = function (C, g) { - for ( - var v = C.criteria, p = g.criteria, V = v.length, b = 0; - b < V; - b++ - ) { - var B = v[b], - I = p[b]; - if (B < I) return -1; - if (B > I) return 1; - } - return 0; - }, - k = (r.sortBy = (function () { - function d() { - for ( - var C = arguments.length, g = new Array(C), v = 0; - v < C; - v++ - ) - g[v] = arguments[v]; - return function (p) { - if (!Array.isArray(p)) return p; - for ( - var V = p.length, - b = [], - B = (function () { - function w() { - var T = p[I]; - b.push({ - criteria: g.map(function (A) { - return A(T); - }), - value: T, - }); - } - return w; - })(), - I = 0; - I < V; - I++ - ) - B(); - for (b.sort(S); V--; ) b[V] = b[V].value; - return b; - }; - } - return d; - })()), - h = (r.sort = k()), - l = (r.range = (function () { - function d(C, g) { - return new Array(g - C).fill(null).map(function (v, p) { - return p + C; - }); - } - return d; - })()), - c = (r.reduce = (function () { - function d(C, g) { - return function (v) { - var p = v.length, - V, - b; - for ( - g === void 0 ? ((V = 1), (b = v[0])) : ((V = 0), (b = g)); - V < p; - V++ - ) - b = C(b, v[V], V, v); - return b; - }; - } - return d; - })()), - f = (r.uniqBy = (function () { - function d(C) { - return function (g) { - var v = g.length, - p = [], - V = C ? [] : p, - b = -1; - e: for (; ++b < v; ) { - var B = g[b], - I = C ? C(B) : B; - if (((B = B !== 0 ? B : 0), I === I)) { - for (var w = V.length; w--; ) if (V[w] === I) continue e; - C && V.push(I), p.push(B); - } else V.includes(I) || (V !== p && V.push(I), p.push(B)); - } - return p; - }; - } - return d; - })()), - i = (r.uniq = f()), - u = (r.zip = (function () { - function d() { - for ( - var C = arguments.length, g = new Array(C), v = 0; - v < C; - v++ - ) - g[v] = arguments[v]; - if (g.length !== 0) { - for ( - var p = g.length, V = g[0].length, b = [], B = 0; - B < V; - B++ - ) { - for (var I = [], w = 0; w < p; w++) I.push(g[w][B]); - b.push(I); - } - return b; - } - } - return d; - })()), - s = (r.zipWith = (function () { - function d(C) { - return function () { - return N(function (g) { - return C.apply(void 0, g); - })(u.apply(void 0, arguments)); - }; - } - return d; - })()); - }, - 70654: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.EventEmitter = void 0); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.EventEmitter = (function () { - function e() { - this.listeners = {}; - } - var a = e.prototype; - return ( - (a.on = (function () { - function t(o, m) { - (this.listeners[o] = this.listeners[o] || []), - this.listeners[o].push(m); - } - return t; - })()), - (a.off = (function () { - function t(o, m) { - var N = this.listeners[o]; - if (!N) - throw new Error('There is no listeners for "' + o + '"'); - this.listeners[o] = N.filter(function (y) { - return y !== m; - }); - } - return t; - })()), - (a.emit = (function () { - function t(o) { - var m = this.listeners[o]; - if (m) { - for ( - var N = arguments.length, - y = new Array(N > 1 ? N - 1 : 0), - S = 1; - S < N; - S++ - ) - y[S - 1] = arguments[S]; - for (var k = 0, h = m.length; k < h; k += 1) { - var l = m[k]; - l.apply(void 0, y); - } - } - } - return t; - })()), - (a.clear = (function () { - function t() { - this.listeners = {}; - } - return t; - })()), - e - ); - })()); - }, - 98644: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.exhaustiveCheck = void 0); - var n = (r.exhaustiveCheck = (function () { - function e(a) { - throw new Error('Unhandled case: ' + a); - } - return e; - })()); - }, - 90955: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.flow = r.compose = void 0); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.flow = (function () { - function a() { - for ( - var t = arguments.length, o = new Array(t), m = 0; - m < t; - m++ - ) - o[m] = arguments[m]; - return function (N) { - for ( - var y = N, - S = arguments.length, - k = new Array(S > 1 ? S - 1 : 0), - h = 1; - h < S; - h++ - ) - k[h - 1] = arguments[h]; - for (var l = 0, c = o; l < c.length; l++) { - var f = c[l]; - Array.isArray(f) - ? (y = a.apply(void 0, f).apply(void 0, [y].concat(k))) - : f && (y = f.apply(void 0, [y].concat(k))); - } - return y; - }; - } - return a; - })()), - e = (r.compose = (function () { - function a() { - for ( - var t = arguments.length, o = new Array(t), m = 0; - m < t; - m++ - ) - o[m] = arguments[m]; - return o.length === 0 - ? function (N) { - return N; - } - : o.length === 1 - ? o[0] - : o.reduce(function (N, y) { - return function (S) { - for ( - var k = arguments.length, - h = new Array(k > 1 ? k - 1 : 0), - l = 1; - l < k; - l++ - ) - h[l - 1] = arguments[l]; - return N.apply( - void 0, - [y.apply(void 0, [S].concat(h))].concat(h) - ); - }; - }); - } - return a; - })()); - }, - 31068: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.KEY_Z = - r.KEY_Y = - r.KEY_X = - r.KEY_W = - r.KEY_V = - r.KEY_UP = - r.KEY_U = - r.KEY_TAB = - r.KEY_T = - r.KEY_SPACE = - r.KEY_SLASH = - r.KEY_SHIFT = - r.KEY_SEMICOLON = - r.KEY_S = - r.KEY_RIGHT_BRACKET = - r.KEY_RIGHT = - r.KEY_R = - r.KEY_QUOTE = - r.KEY_Q = - r.KEY_PERIOD = - r.KEY_PAUSE = - r.KEY_PAGEUP = - r.KEY_PAGEDOWN = - r.KEY_P = - r.KEY_O = - r.KEY_NUMPAD_9 = - r.KEY_NUMPAD_8 = - r.KEY_NUMPAD_7 = - r.KEY_NUMPAD_6 = - r.KEY_NUMPAD_5 = - r.KEY_NUMPAD_4 = - r.KEY_NUMPAD_3 = - r.KEY_NUMPAD_2 = - r.KEY_NUMPAD_1 = - r.KEY_NUMPAD_0 = - r.KEY_N = - r.KEY_MINUS = - r.KEY_M = - r.KEY_LEFT_BRACKET = - r.KEY_LEFT = - r.KEY_L = - r.KEY_K = - r.KEY_J = - r.KEY_INSERT = - r.KEY_I = - r.KEY_HOME = - r.KEY_H = - r.KEY_G = - r.KEY_F9 = - r.KEY_F8 = - r.KEY_F7 = - r.KEY_F6 = - r.KEY_F5 = - r.KEY_F4 = - r.KEY_F3 = - r.KEY_F2 = - r.KEY_F12 = - r.KEY_F11 = - r.KEY_F10 = - r.KEY_F1 = - r.KEY_F = - r.KEY_ESCAPE = - r.KEY_EQUAL = - r.KEY_ENTER = - r.KEY_END = - r.KEY_E = - r.KEY_DOWN = - r.KEY_DELETE = - r.KEY_D = - r.KEY_CTRL = - r.KEY_COMMA = - r.KEY_CAPSLOCK = - r.KEY_C = - r.KEY_BACKSPACE = - r.KEY_BACKSLASH = - r.KEY_B = - r.KEY_ALT = - r.KEY_A = - r.KEY_9 = - r.KEY_8 = - r.KEY_7 = - r.KEY_6 = - r.KEY_5 = - r.KEY_4 = - r.KEY_3 = - r.KEY_2 = - r.KEY_1 = - r.KEY_0 = - void 0); - /** - * All possible browser keycodes, in one file. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.KEY_BACKSPACE = 8), - e = (r.KEY_TAB = 9), - a = (r.KEY_ENTER = 13), - t = (r.KEY_SHIFT = 16), - o = (r.KEY_CTRL = 17), - m = (r.KEY_ALT = 18), - N = (r.KEY_PAUSE = 19), - y = (r.KEY_CAPSLOCK = 20), - S = (r.KEY_ESCAPE = 27), - k = (r.KEY_SPACE = 32), - p = (r.KEY_PAGEUP = 33), - l = (r.KEY_PAGEDOWN = 34), - c = (r.KEY_END = 35), - f = (r.KEY_HOME = 36), - i = (r.KEY_LEFT = 37), - u = (r.KEY_UP = 38), - s = (r.KEY_RIGHT = 39), - d = (r.KEY_DOWN = 40), - C = (r.KEY_INSERT = 45), - g = (r.KEY_DELETE = 46), - v = (r.KEY_0 = 48), - h = (r.KEY_1 = 49), - V = (r.KEY_2 = 50), - b = (r.KEY_3 = 51), - B = (r.KEY_4 = 52), - I = (r.KEY_5 = 53), - w = (r.KEY_6 = 54), - T = (r.KEY_7 = 55), - A = (r.KEY_8 = 56), - x = (r.KEY_9 = 57), - E = (r.KEY_A = 65), - P = (r.KEY_B = 66), - D = (r.KEY_C = 67), - M = (r.KEY_D = 68), - O = (r.KEY_E = 69), - j = (r.KEY_F = 70), - F = (r.KEY_G = 71), - U = (r.KEY_H = 72), - _ = (r.KEY_I = 73), - z = (r.KEY_J = 74), - H = (r.KEY_K = 75), - $ = (r.KEY_L = 76), - Y = (r.KEY_M = 77), - X = (r.KEY_N = 78), - re = (r.KEY_O = 79), - ae = (r.KEY_P = 80), - se = (r.KEY_Q = 81), - pe = (r.KEY_R = 82), - ye = (r.KEY_S = 83), - Be = (r.KEY_T = 84), - he = (r.KEY_U = 85), - oe = (r.KEY_V = 86), - Z = (r.KEY_W = 87), - q = (r.KEY_X = 88), - ue = (r.KEY_Y = 89), - me = (r.KEY_Z = 90), - ne = (r.KEY_NUMPAD_0 = 96), - be = (r.KEY_NUMPAD_1 = 97), - fe = (r.KEY_NUMPAD_2 = 98), - ge = (r.KEY_NUMPAD_3 = 99), - ke = (r.KEY_NUMPAD_4 = 100), - ve = (r.KEY_NUMPAD_5 = 101), - Se = (r.KEY_NUMPAD_6 = 102), - we = (r.KEY_NUMPAD_7 = 103), - xe = (r.KEY_NUMPAD_8 = 104), - Oe = (r.KEY_NUMPAD_9 = 105), - We = (r.KEY_F1 = 112), - Ve = (r.KEY_F2 = 113), - ce = (r.KEY_F3 = 114), - le = (r.KEY_F4 = 115), - Ce = (r.KEY_F5 = 116), - de = (r.KEY_F6 = 117), - Ne = (r.KEY_F7 = 118), - Ae = (r.KEY_F8 = 119), - De = (r.KEY_F9 = 120), - je = (r.KEY_F10 = 121), - _e = (r.KEY_F11 = 122), - Ue = (r.KEY_F12 = 123), - Ke = (r.KEY_SEMICOLON = 186), - Ge = (r.KEY_EQUAL = 187), - yt = (r.KEY_COMMA = 188), - kt = (r.KEY_MINUS = 189), - St = (r.KEY_PERIOD = 190), - ft = (r.KEY_SLASH = 191), - Bt = (r.KEY_LEFT_BRACKET = 219), - It = (r.KEY_BACKSLASH = 220), - Lt = (r.KEY_RIGHT_BRACKET = 221), - pt = (r.KEY_QUOTE = 222); - }, - 58331: function (L, 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 S(k, p, l) { - return k < p ? p : k > l ? l : k; - } - return S; - })()), - e = (r.clamp01 = (function () { - function S(k) { - return k < 0 ? 0 : k > 1 ? 1 : k; - } - return S; - })()), - a = (r.scale = (function () { - function S(k, p, l) { - return (k - p) / (l - p); - } - return S; - })()), - t = (r.round = (function () { - function S(k, p) { - if (!k || isNaN(k)) return k; - var l, c, f, i; - return ( - (p |= 0), - (l = Math.pow(10, p)), - (k *= l), - (i = +(k > 0) | -(k < 0)), - (f = Math.abs(k % 1) >= 0.4999999999854481), - (c = Math.floor(k)), - f && (k = c + (i > 0)), - (f ? k : Math.round(k)) / l - ); - } - return S; - })()), - o = (r.toFixed = (function () { - function S(k, p) { - return ( - p === void 0 && (p = 0), Number(k).toFixed(Math.max(p, 0)) - ); - } - return S; - })()), - m = (r.inRange = (function () { - function S(k, p) { - return p && k >= p[0] && k <= p[1]; - } - return S; - })()), - N = (r.keyOfMatchingRange = (function () { - function S(k, p) { - for (var l = 0, c = Object.keys(p); l < c.length; l++) { - var f = c[l], - i = p[f]; - if (m(k, i)) return f; - } - } - return S; - })()), - y = (r.rad2deg = (function () { - function S(k) { - return k * (180 / Math.PI); - } - return S; - })()); - }, - 60031: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.perf = void 0); - var n; - /** - * Ghetto performance measurement tools. - * - * Uses NODE_ENV to remove itself from production builds. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var e = 60, - a = 1e3 / e, - t = !!((n = window.performance) != null && n.now), - o = {}, - m = {}, - N = function (l, c) {}, - y = function (l, c) { - if (0) var f, i, u; - }, - S = function (l) { - var c = l / a; - return ( - l.toFixed(l < 10 ? 1 : 0) + 'ms (' + c.toFixed(2) + ' frames)' - ); - }, - k = (r.perf = { mark: N, measure: y }); - }, - 66586: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.shallowDiffers = - r.pureComponentHooks = - r.normalizeChildren = - r.classes = - r.canRender = - void 0); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.classes = (function () { - function m(N) { - for (var y = '', S = 0; S < N.length; S++) { - var k = N[S]; - typeof k == 'string' && (y += k + ' '); - } - return y; - } - return m; - })()), - e = (r.normalizeChildren = (function () { - function m(N) { - return Array.isArray(N) - ? N.flat().filter(function (y) { - return y; - }) - : typeof N == 'object' - ? [N] - : []; - } - return m; - })()), - a = (r.shallowDiffers = (function () { - function m(N, y) { - var S; - for (S in N) if (!(S in y)) return !0; - for (S in y) if (N[S] !== y[S]) return !0; - return !1; - } - return m; - })()), - t = (r.pureComponentHooks = { - onComponentShouldUpdate: (function () { - function m(N, y) { - return a(N, y); - } - return m; - })(), - }), - o = (r.canRender = (function () { - function m(N) { - return N != null && typeof N != 'boolean'; - } - return m; - })()); - }, - 90816: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.useSelector = - r.useDispatch = - r.createStore = - r.createAction = - r.combineReducers = - r.applyMiddleware = - void 0); - var e = n(90955); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var a = (r.createStore = (function () { - function S(k, p) { - if (p) return p(S)(k); - var l, - c = [], - f = (function () { - function s() { - return l; - } - return s; - })(), - i = (function () { - function s(d) { - c.push(d); - } - return s; - })(), - u = (function () { - function s(d) { - l = k(l, d); - for (var C = 0; C < c.length; C++) c[C](); - } - return s; - })(); - return ( - u({ type: '@@INIT' }), - { dispatch: u, subscribe: i, getState: f } - ); - } - return S; - })()), - t = (r.applyMiddleware = (function () { - function S() { - for ( - var k = arguments.length, p = new Array(k), l = 0; - l < k; - l++ - ) - p[l] = arguments[l]; - return function (c) { - return function (f) { - for ( - var i = arguments.length, - u = new Array(i > 1 ? i - 1 : 0), - s = 1; - s < i; - s++ - ) - u[s - 1] = arguments[s]; - var d = c.apply(void 0, [f].concat(u)), - C = (function () { - function h() { - throw new Error( - 'Dispatching while constructing your middleware is not allowed.' - ); - } - return h; - })(), - g = { - getState: d.getState, - dispatch: (function () { - function h(V) { - for ( - var b = arguments.length, - B = new Array(b > 1 ? b - 1 : 0), - I = 1; - I < b; - I++ - ) - B[I - 1] = arguments[I]; - return C.apply(void 0, [V].concat(B)); - } - return h; - })(), - }, - v = p.map(function (h) { - return h(g); - }); - return ( - (C = e.compose.apply(void 0, v)(d.dispatch)), - Object.assign({}, d, { dispatch: C }) - ); - }; - }; - } - return S; - })()), - o = (r.combineReducers = (function () { - function S(k) { - var p = Object.keys(k), - l = !1; - return function (c, f) { - c === void 0 && (c = {}); - for ( - var i = Object.assign({}, c), u = 0, s = p; - u < s.length; - u++ - ) { - var d = s[u], - C = k[d], - g = c[d], - v = C(g, f); - g !== v && ((l = !0), (i[d] = v)); - } - return l ? i : c; - }; - } - return S; - })()), - m = (r.createAction = (function () { - function S(k, p) { - p === void 0 && (p = null); - var l = (function () { - function c() { - if (!p) - return { - type: k, - payload: arguments.length <= 0 ? void 0 : arguments[0], - }; - var f = p.apply(void 0, arguments); - if (!f) - throw new Error( - 'prepare function did not return an object' - ); - var i = { type: k }; - return ( - 'payload' in f && (i.payload = f.payload), - 'meta' in f && (i.meta = f.meta), - i - ); - } - return c; - })(); - return ( - (l.toString = function () { - return '' + k; - }), - (l.type = k), - (l.match = function (c) { - return c.type === k; - }), - l - ); - } - return S; - })()), - N = (r.useDispatch = (function () { - function S(k) { - return k.store.dispatch; - } - return S; - })()), - y = (r.useSelector = (function () { - function S(k, p) { - return p(k.store.getState()); - } - return S; - })()); - }, - 96417: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.storage = - r.IMPL_MEMORY = - r.IMPL_LOCAL_STORAGE = - r.IMPL_INDEXED_DB = - void 0); - function n() { - 'use strict'; - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ n = - function () { - return v; - }; - var g, - v = {}, - h = Object.prototype, - V = h.hasOwnProperty, - b = - Object.defineProperty || - function (oe, Z, q) { - oe[Z] = q.value; - }, - B = typeof Symbol == 'function' ? Symbol : {}, - I = B.iterator || '@@iterator', - w = B.asyncIterator || '@@asyncIterator', - T = B.toStringTag || '@@toStringTag'; - function A(oe, Z, q) { - return ( - Object.defineProperty(oe, Z, { - value: q, - enumerable: !0, - configurable: !0, - writable: !0, - }), - oe[Z] - ); - } - try { - A({}, ''); - } catch (oe) { - A = function (q, ue, me) { - return (q[ue] = me); - }; - } - function x(oe, Z, q, ue) { - var me = Z && Z.prototype instanceof F ? Z : F, - ne = Object.create(me.prototype), - be = new Be(ue || []); - return b(ne, '_invoke', { value: ae(oe, q, be) }), ne; - } - function E(oe, Z, q) { - try { - return { type: 'normal', arg: oe.call(Z, q) }; - } catch (ue) { - return { type: 'throw', arg: ue }; - } - } - v.wrap = x; - var P = 'suspendedStart', - D = 'suspendedYield', - M = 'executing', - O = 'completed', - j = {}; - function F() {} - function U() {} - function _() {} - var z = {}; - A(z, I, function () { - return this; - }); - var H = Object.getPrototypeOf, - $ = H && H(H(he([]))); - $ && $ !== h && V.call($, I) && (z = $); - var Y = (_.prototype = F.prototype = Object.create(z)); - function X(oe) { - ['next', 'throw', 'return'].forEach(function (Z) { - A(oe, Z, function (q) { - return this._invoke(Z, q); - }); - }); - } - function re(oe, Z) { - function q(me, ne, be, fe) { - var ge = E(oe[me], oe, ne); - if (ge.type !== 'throw') { - var ke = ge.arg, - ve = ke.value; - return ve && typeof ve == 'object' && V.call(ve, '__await') - ? Z.resolve(ve.__await).then( - function (Se) { - q('next', Se, be, fe); - }, - function (Se) { - q('throw', Se, be, fe); - } - ) - : Z.resolve(ve).then( - function (Se) { - (ke.value = Se), be(ke); - }, - function (Se) { - return q('throw', Se, be, fe); - } - ); - } - fe(ge.arg); - } - var ue; - b(this, '_invoke', { - value: (function () { - function me(ne, be) { - function fe() { - return new Z(function (ge, ke) { - q(ne, be, ge, ke); - }); - } - return (ue = ue ? ue.then(fe, fe) : fe()); - } - return me; - })(), - }); - } - function ae(oe, Z, q) { - var ue = P; - return function (me, ne) { - if (ue === M) throw new Error('Generator is already running'); - if (ue === O) { - if (me === 'throw') throw ne; - return { value: g, done: !0 }; - } - for (q.method = me, q.arg = ne; ; ) { - var be = q.delegate; - if (be) { - var fe = se(be, q); - if (fe) { - if (fe === j) continue; - return fe; - } - } - if (q.method === 'next') q.sent = q._sent = q.arg; - else if (q.method === 'throw') { - if (ue === P) throw ((ue = O), q.arg); - q.dispatchException(q.arg); - } else q.method === 'return' && q.abrupt('return', q.arg); - ue = M; - var ge = E(oe, Z, q); - if (ge.type === 'normal') { - if (((ue = q.done ? O : D), ge.arg === j)) continue; - return { value: ge.arg, done: q.done }; - } - ge.type === 'throw' && - ((ue = O), (q.method = 'throw'), (q.arg = ge.arg)); - } - }; - } - function se(oe, Z) { - var q = Z.method, - ue = oe.iterator[q]; - if (ue === g) - return ( - (Z.delegate = null), - (q === 'throw' && - oe.iterator.return && - ((Z.method = 'return'), - (Z.arg = g), - se(oe, Z), - Z.method === 'throw')) || - (q !== 'return' && - ((Z.method = 'throw'), - (Z.arg = new TypeError( - "The iterator does not provide a '" + q + "' method" - )))), - j - ); - var me = E(ue, oe.iterator, Z.arg); - if (me.type === 'throw') - return ( - (Z.method = 'throw'), (Z.arg = me.arg), (Z.delegate = null), j - ); - var ne = me.arg; - return ne - ? ne.done - ? ((Z[oe.resultName] = ne.value), - (Z.next = oe.nextLoc), - Z.method !== 'return' && ((Z.method = 'next'), (Z.arg = g)), - (Z.delegate = null), - j) - : ne - : ((Z.method = 'throw'), - (Z.arg = new TypeError('iterator result is not an object')), - (Z.delegate = null), - j); - } - function pe(oe) { - var Z = { tryLoc: oe[0] }; - 1 in oe && (Z.catchLoc = oe[1]), - 2 in oe && ((Z.finallyLoc = oe[2]), (Z.afterLoc = oe[3])), - this.tryEntries.push(Z); - } - function ye(oe) { - var Z = oe.completion || {}; - (Z.type = 'normal'), delete Z.arg, (oe.completion = Z); - } - function Be(oe) { - (this.tryEntries = [{ tryLoc: 'root' }]), - oe.forEach(pe, this), - this.reset(!0); - } - function he(oe) { - if (oe || oe === '') { - var Z = oe[I]; - if (Z) return Z.call(oe); - if (typeof oe.next == 'function') return oe; - if (!isNaN(oe.length)) { - var q = -1, - ue = (function () { - function me() { - for (; ++q < oe.length; ) - if (V.call(oe, q)) - return (me.value = oe[q]), (me.done = !1), me; - return (me.value = g), (me.done = !0), me; - } - return me; - })(); - return (ue.next = ue); - } - } - throw new TypeError(typeof oe + ' is not iterable'); - } - return ( - (U.prototype = _), - b(Y, 'constructor', { value: _, configurable: !0 }), - b(_, 'constructor', { value: U, configurable: !0 }), - (U.displayName = A(_, T, 'GeneratorFunction')), - (v.isGeneratorFunction = function (oe) { - var Z = typeof oe == 'function' && oe.constructor; - return ( - !!Z && - (Z === U || (Z.displayName || Z.name) === 'GeneratorFunction') - ); - }), - (v.mark = function (oe) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(oe, _) - : ((oe.__proto__ = _), A(oe, T, 'GeneratorFunction')), - (oe.prototype = Object.create(Y)), - oe - ); - }), - (v.awrap = function (oe) { - return { __await: oe }; - }), - X(re.prototype), - A(re.prototype, w, function () { - return this; - }), - (v.AsyncIterator = re), - (v.async = function (oe, Z, q, ue, me) { - me === void 0 && (me = Promise); - var ne = new re(x(oe, Z, q, ue), me); - return v.isGeneratorFunction(Z) - ? ne - : ne.next().then(function (be) { - return be.done ? be.value : ne.next(); - }); - }), - X(Y), - A(Y, T, 'Generator'), - A(Y, I, function () { - return this; - }), - A(Y, 'toString', function () { - return '[object Generator]'; - }), - (v.keys = function (oe) { - var Z = Object(oe), - q = []; - for (var ue in Z) q.push(ue); - return ( - q.reverse(), - (function () { - function me() { - for (; q.length; ) { - var ne = q.pop(); - if (ne in Z) return (me.value = ne), (me.done = !1), me; - } - return (me.done = !0), me; - } - return me; - })() - ); - }), - (v.values = he), - (Be.prototype = { - constructor: Be, - reset: (function () { - function oe(Z) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = g), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = g), - this.tryEntries.forEach(ye), - !Z) - ) - for (var q in this) - q.charAt(0) === 't' && - V.call(this, q) && - !isNaN(+q.slice(1)) && - (this[q] = g); - } - return oe; - })(), - stop: (function () { - function oe() { - this.done = !0; - var Z = this.tryEntries[0].completion; - if (Z.type === 'throw') throw Z.arg; - return this.rval; - } - return oe; - })(), - dispatchException: (function () { - function oe(Z) { - if (this.done) throw Z; - var q = this; - function ue(ke, ve) { - return ( - (be.type = 'throw'), - (be.arg = Z), - (q.next = ke), - ve && ((q.method = 'next'), (q.arg = g)), - !!ve - ); - } - for (var me = this.tryEntries.length - 1; me >= 0; --me) { - var ne = this.tryEntries[me], - be = ne.completion; - if (ne.tryLoc === 'root') return ue('end'); - if (ne.tryLoc <= this.prev) { - var fe = V.call(ne, 'catchLoc'), - ge = V.call(ne, 'finallyLoc'); - if (fe && ge) { - if (this.prev < ne.catchLoc) - return ue(ne.catchLoc, !0); - if (this.prev < ne.finallyLoc) - return ue(ne.finallyLoc); - } else if (fe) { - if (this.prev < ne.catchLoc) - return ue(ne.catchLoc, !0); - } else { - if (!ge) - throw new Error( - 'try statement without catch or finally' - ); - if (this.prev < ne.finallyLoc) - return ue(ne.finallyLoc); - } - } - } - } - return oe; - })(), - abrupt: (function () { - function oe(Z, q) { - for (var ue = this.tryEntries.length - 1; ue >= 0; --ue) { - var me = this.tryEntries[ue]; - if ( - me.tryLoc <= this.prev && - V.call(me, 'finallyLoc') && - this.prev < me.finallyLoc - ) { - var ne = me; - break; - } - } - ne && - (Z === 'break' || Z === 'continue') && - ne.tryLoc <= q && - q <= ne.finallyLoc && - (ne = null); - var be = ne ? ne.completion : {}; - return ( - (be.type = Z), - (be.arg = q), - ne - ? ((this.method = 'next'), - (this.next = ne.finallyLoc), - j) - : this.complete(be) - ); - } - return oe; - })(), - complete: (function () { - function oe(Z, q) { - if (Z.type === 'throw') throw Z.arg; - return ( - Z.type === 'break' || Z.type === 'continue' - ? (this.next = Z.arg) - : Z.type === 'return' - ? ((this.rval = this.arg = Z.arg), - (this.method = 'return'), - (this.next = 'end')) - : Z.type === 'normal' && q && (this.next = q), - j - ); - } - return oe; - })(), - finish: (function () { - function oe(Z) { - for (var q = this.tryEntries.length - 1; q >= 0; --q) { - var ue = this.tryEntries[q]; - if (ue.finallyLoc === Z) - return ( - this.complete(ue.completion, ue.afterLoc), ye(ue), j - ); - } - } - return oe; - })(), - catch: (function () { - function oe(Z) { - for (var q = this.tryEntries.length - 1; q >= 0; --q) { - var ue = this.tryEntries[q]; - if (ue.tryLoc === Z) { - var me = ue.completion; - if (me.type === 'throw') { - var ne = me.arg; - ye(ue); - } - return ne; - } - } - throw new Error('illegal catch attempt'); - } - return oe; - })(), - delegateYield: (function () { - function oe(Z, q, ue) { - return ( - (this.delegate = { - iterator: he(Z), - resultName: q, - nextLoc: ue, - }), - this.method === 'next' && (this.arg = g), - j - ); - } - return oe; - })(), - }), - v - ); - } - function e(g, v, h, V, b, B, I) { - try { - var w = g[B](I), - T = w.value; - } catch (A) { - h(A); - return; - } - w.done ? v(T) : Promise.resolve(T).then(V, b); - } - function a(g) { - return function () { - var v = this, - h = arguments; - return new Promise(function (V, b) { - var B = g.apply(v, h); - function I(T) { - e(B, V, b, I, w, 'next', T); - } - function w(T) { - e(B, V, b, I, w, 'throw', T); - } - I(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_LOCAL_STORAGE = 1), - m = (r.IMPL_INDEXED_DB = 2), - N = 1, - y = 'para-tgui', - S = 'storage-v1', - k = 'readonly', - h = 'readwrite', - l = function (v) { - return function () { - try { - return !!v(); - } catch (p) { - return !1; - } - }; - }, - c = l(function () { - return window.localStorage && window.localStorage.getItem; - }), - f = l(function () { - return ( - (window.indexedDB || window.msIndexedDB) && - (window.IDBTransaction || window.msIDBTransaction) - ); - }), - i = (function () { - function g() { - (this.impl = t), (this.store = {}); - } - var v = g.prototype; - return ( - (v.get = (function () { - function p(V) { - return this.store[V]; - } - return p; - })()), - (v.set = (function () { - function p(V, b) { - this.store[V] = b; - } - return p; - })()), - (v.remove = (function () { - function p(V) { - this.store[V] = void 0; - } - return p; - })()), - (v.clear = (function () { - function p() { - this.store = {}; - } - return p; - })()), - g - ); - })(), - u = (function () { - function g() { - this.impl = o; - } - var v = g.prototype; - return ( - (v.get = (function () { - function p(V) { - var b = localStorage.getItem(V); - if (typeof b == 'string') return JSON.parse(b); - } - return p; - })()), - (v.set = (function () { - function p(V, b) { - localStorage.setItem(V, JSON.stringify(b)); - } - return p; - })()), - (v.remove = (function () { - function p(V) { - localStorage.removeItem(V); - } - return p; - })()), - (v.clear = (function () { - function p() { - localStorage.clear(); - } - return p; - })()), - g - ); - })(), - s = (function () { - function g() { - (this.impl = m), - (this.dbPromise = new Promise(function (p, V) { - var b = window.indexedDB || window.msIndexedDB, - B = b.open(y, N); - (B.onupgradeneeded = function () { - try { - B.result.createObjectStore(S); - } catch (I) { - V(new Error('Failed to upgrade IDB: ' + B.error)); - } - }), - (B.onsuccess = function () { - return p(B.result); - }), - (B.onerror = function () { - V(new Error('Failed to open IDB: ' + B.error)); - }); - })); - } - var v = g.prototype; - return ( - (v.getStore = (function () { - function p(V) { - return this.dbPromise.then(function (b) { - return b.transaction(S, V).objectStore(S); - }); - } - return p; - })()), - (v.get = (function () { - var p = a( - n().mark( - (function () { - function b(B) { - var I; - return n().wrap( - (function () { - function w(T) { - for (;;) - switch ((T.prev = T.next)) { - case 0: - return (T.next = 2), this.getStore(k); - case 2: - return ( - (I = T.sent), - T.abrupt( - 'return', - new Promise(function (A, x) { - var E = I.get(B); - (E.onsuccess = function () { - return A(E.result); - }), - (E.onerror = function () { - return x(E.error); - }); - }) - ) - ); - case 4: - case 'end': - return T.stop(); - } - } - return w; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b) { - return p.apply(this, arguments); - } - return V; - })()), - (v.set = (function () { - var p = a( - n().mark( - (function () { - function b(B, I) { - var w; - return n().wrap( - (function () { - function T(A) { - for (;;) - switch ((A.prev = A.next)) { - case 0: - return ( - I === null && (I = void 0), - (A.next = 3), - this.getStore(h) - ); - case 3: - (w = A.sent), w.put(I, B); - case 5: - case 'end': - return A.stop(); - } - } - return T; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b, B) { - return p.apply(this, arguments); - } - return V; - })()), - (v.remove = (function () { - var p = a( - n().mark( - (function () { - function b(B) { - var I; - return n().wrap( - (function () { - function w(T) { - for (;;) - switch ((T.prev = T.next)) { - case 0: - return (T.next = 2), this.getStore(h); - case 2: - (I = T.sent), I.delete(B); - case 4: - case 'end': - return T.stop(); - } - } - return w; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b) { - return p.apply(this, arguments); - } - return V; - })()), - (v.clear = (function () { - var p = a( - n().mark( - (function () { - function b() { - var B; - return n().wrap( - (function () { - function I(w) { - for (;;) - switch ((w.prev = w.next)) { - case 0: - return (w.next = 2), this.getStore(h); - case 2: - (B = w.sent), B.clear(); - case 4: - case 'end': - return w.stop(); - } - } - return I; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V() { - return p.apply(this, arguments); - } - return V; - })()), - g - ); - })(), - d = (function () { - function g() { - this.backendPromise = a( - n().mark( - (function () { - function p() { - var V; - return n().wrap( - (function () { - function b(B) { - for (;;) - switch ((B.prev = B.next)) { - case 0: - if (!f()) { - B.next = 10; - break; - } - return ( - (B.prev = 1), - (V = new s()), - (B.next = 5), - V.dbPromise - ); - case 5: - return B.abrupt('return', V); - case 8: - (B.prev = 8), (B.t0 = B.catch(1)); - case 10: - if (!c()) { - B.next = 12; - break; - } - return B.abrupt('return', new u()); - case 12: - return B.abrupt('return', new i()); - case 13: - case 'end': - return B.stop(); - } - } - return b; - })(), - p, - null, - [[1, 8]] - ); - } - return p; - })() - ) - )(); - } - var v = g.prototype; - return ( - (v.get = (function () { - var p = a( - n().mark( - (function () { - function b(B) { - var I; - return n().wrap( - (function () { - function w(T) { - for (;;) - switch ((T.prev = T.next)) { - case 0: - return (T.next = 2), this.backendPromise; - case 2: - return ( - (I = T.sent), - T.abrupt('return', I.get(B)) - ); - case 4: - case 'end': - return T.stop(); - } - } - return w; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b) { - return p.apply(this, arguments); - } - return V; - })()), - (v.set = (function () { - var p = a( - n().mark( - (function () { - function b(B, I) { - var w; - return n().wrap( - (function () { - function T(A) { - for (;;) - switch ((A.prev = A.next)) { - case 0: - return (A.next = 2), this.backendPromise; - case 2: - return ( - (w = A.sent), - A.abrupt('return', w.set(B, I)) - ); - case 4: - case 'end': - return A.stop(); - } - } - return T; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b, B) { - return p.apply(this, arguments); - } - return V; - })()), - (v.remove = (function () { - var p = a( - n().mark( - (function () { - function b(B) { - var I; - return n().wrap( - (function () { - function w(T) { - for (;;) - switch ((T.prev = T.next)) { - case 0: - return (T.next = 2), this.backendPromise; - case 2: - return ( - (I = T.sent), - T.abrupt('return', I.remove(B)) - ); - case 4: - case 'end': - return T.stop(); - } - } - return w; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V(b) { - return p.apply(this, arguments); - } - return V; - })()), - (v.clear = (function () { - var p = a( - n().mark( - (function () { - function b() { - var B; - return n().wrap( - (function () { - function I(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.clear()) - ); - case 4: - case 'end': - return w.stop(); - } - } - return I; - })(), - b, - this - ); - } - return b; - })() - ) - ); - function V() { - return p.apply(this, arguments); - } - return V; - })()), - g - ); - })(), - C = (r.storage = new d()); - }, - 37843: function (L, r) { - 'use strict'; - (r.__esModule = !0), - (r.toTitleCase = - r.multiline = - r.decodeHtmlEntities = - r.createSearch = - r.createGlobPattern = - r.capitalize = - r.buildQueryString = - void 0); - function n(h, l) { - var c = - (typeof Symbol != 'undefined' && h[Symbol.iterator]) || - h['@@iterator']; - if (c) return (c = c.call(h)).next.bind(c); - if ( - Array.isArray(h) || - (c = e(h)) || - (l && h && typeof h.length == 'number') - ) { - c && (h = c); - var f = 0; - return function () { - return f >= h.length - ? { done: !0 } - : { done: !1, value: h[f++] }; - }; - } - throw new TypeError( - 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - } - function e(h, l) { - if (h) { - if (typeof h == 'string') return a(h, l); - var c = Object.prototype.toString.call(h).slice(8, -1); - if ( - (c === 'Object' && h.constructor && (c = h.constructor.name), - c === 'Map' || c === 'Set') - ) - return Array.from(h); - if ( - c === 'Arguments' || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) - ) - return a(h, l); - } - } - function a(h, l) { - (l == null || l > h.length) && (l = h.length); - for (var c = 0, f = new Array(l); c < l; c++) f[c] = h[c]; - return f; - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var t = (r.multiline = (function () { - function h(l) { - if (Array.isArray(l)) return h(l.join('')); - for (var c = l.split('\n'), f, i = n(c), u; !(u = i()).done; ) - for (var s = u.value, d = 0; d < s.length; d++) { - var C = s[d]; - if (C !== ' ') { - (f === void 0 || d < f) && (f = d); - break; - } - } - return ( - f || (f = 0), - c - .map(function (g) { - return g.substr(f).trimRight(); - }) - .join('\n') - .trim() - ); - } - return h; - })()), - o = (r.createGlobPattern = (function () { - function h(l) { - var c = (function () { - function i(u) { - return u.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&'); - } - return i; - })(), - f = new RegExp('^' + l.split(/\*+/).map(c).join('.*') + '$'); - return function (i) { - return f.test(i); - }; - } - return h; - })()), - m = (r.createSearch = (function () { - function h(l, c) { - var f = l.toLowerCase().trim(); - return function (i) { - if (!f) return !0; - var u = c ? c(i) : i; - return u ? u.toLowerCase().includes(f) : !1; - }; - } - return h; - })()), - N = (r.capitalize = (function () { - function h(l) { - return Array.isArray(l) - ? l.map(h) - : l.charAt(0).toUpperCase() + l.slice(1).toLowerCase(); - } - return h; - })()), - y = (r.toTitleCase = (function () { - function h(l) { - if (Array.isArray(l)) return l.map(h); - if (typeof l != 'string') return l; - for ( - var c = ['Id', 'Tv'], - f = [ - 'A', - 'An', - 'And', - 'As', - 'At', - 'But', - 'By', - 'For', - 'For', - 'From', - 'In', - 'Into', - 'Near', - 'Nor', - 'Of', - 'On', - 'Onto', - 'Or', - 'The', - 'To', - 'With', - ], - i = l.replace(/([^\W_]+[^\s-]*) */g, function (b) { - return ( - b.charAt(0).toUpperCase() + b.substr(1).toLowerCase() - ); - }), - u = 0, - s = f; - u < s.length; - u++ - ) { - var d = s[u], - C = new RegExp('\\s' + d + '\\s', 'g'); - i = i.replace(C, function (b) { - return b.toLowerCase(); - }); - } - for (var g = 0, v = c; g < v.length; g++) { - var p = v[g], - V = new RegExp('\\b' + p + '\\b', 'g'); - i = i.replace(V, function (b) { - return b.toLowerCase(); - }); - } - return i; - } - return h; - })()), - S = (r.decodeHtmlEntities = (function () { - function h(l) { - if (!l) return l; - var c = /&(nbsp|amp|quot|lt|gt|apos);/g, - f = { - nbsp: ' ', - amp: '&', - quot: '"', - lt: '<', - gt: '>', - apos: "'", - }; - return l - .replace(/
/gi, '\n') - .replace(/<\/?[a-z0-9-_]+[^>]*>/gi, '') - .replace(c, function (i, u) { - return f[u]; - }) - .replace(/&#?([0-9]+);/gi, function (i, u) { - var s = parseInt(u, 10); - return String.fromCharCode(s); - }) - .replace(/&#x?([0-9a-f]+);/gi, function (i, u) { - var s = parseInt(u, 16); - return String.fromCharCode(s); - }); - } - return h; - })()), - k = (r.buildQueryString = (function () { - function h(l) { - return Object.keys(l) - .map(function (c) { - return ( - encodeURIComponent(c) + '=' + encodeURIComponent(l[c]) - ); - }) - .join('&'); - } - return h; - })()); - }, - 32742: function (L, 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, m, N) { - N === void 0 && (N = !1); - var y; - return function () { - for ( - var S = arguments.length, k = new Array(S), h = 0; - h < S; - h++ - ) - k[h] = arguments[h]; - var l = (function () { - function f() { - (y = null), N || o.apply(void 0, k); - } - return f; - })(), - c = N && !y; - clearTimeout(y), - (y = setTimeout(l, m)), - c && o.apply(void 0, k); - }; - } - return t; - })()), - e = (r.sleep = (function () { - function t(o) { - return new Promise(function (m) { - return setTimeout(m, o); - }); - } - return t; - })()), - a = (r.throttle = (function () { - function t(o, m) { - var N, y; - return (function () { - function S() { - for ( - var k = arguments.length, h = new Array(k), l = 0; - l < k; - l++ - ) - h[l] = arguments[l]; - var c = Date.now(); - if ((y && clearTimeout(y), !N || c - N >= m)) - o.apply(null, h), (N = c); - else { - var f; - y = setTimeout( - function () { - return S.apply(void 0, h); - }, - m - (c - ((f = N) != null ? f : 0)) - ); - } - } - return S; - })(); - } - return t; - })()); - }, - 41202: function (L, 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(72026); - /** - * N-dimensional vector manipulation functions. - * - * Vectors are plain number arrays, i.e. [x, y, z]. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var a = function (u, s) { - return u + s; - }, - t = function (u, s) { - return u - s; - }, - o = function (u, s) { - return u * s; - }, - m = function (u, s) { - return u / s; - }, - N = (r.vecAdd = (function () { - function i() { - for ( - var u = arguments.length, s = new Array(u), d = 0; - d < u; - d++ - ) - s[d] = arguments[d]; - return (0, e.reduce)(function (C, g) { - return (0, e.zipWith)(a)(C, g); - })(s); - } - return i; - })()), - y = (r.vecSubtract = (function () { - function i() { - for ( - var u = arguments.length, s = new Array(u), d = 0; - d < u; - d++ - ) - s[d] = arguments[d]; - return (0, e.reduce)(function (C, g) { - return (0, e.zipWith)(t)(C, g); - })(s); - } - return i; - })()), - S = (r.vecMultiply = (function () { - function i() { - for ( - var u = arguments.length, s = new Array(u), d = 0; - d < u; - d++ - ) - s[d] = arguments[d]; - return (0, e.reduce)(function (C, g) { - return (0, e.zipWith)(o)(C, g); - })(s); - } - return i; - })()), - k = (r.vecDivide = (function () { - function i() { - for ( - var u = arguments.length, s = new Array(u), d = 0; - d < u; - d++ - ) - s[d] = arguments[d]; - return (0, e.reduce)(function (C, g) { - return (0, e.zipWith)(m)(C, g); - })(s); - } - return i; - })()), - h = (r.vecScale = (function () { - function i(u, s) { - return (0, e.map)(function (d) { - return d * s; - })(u); - } - return i; - })()), - l = (r.vecInverse = (function () { - function i(u) { - return (0, e.map)(function (s) { - return -s; - })(u); - } - return i; - })()), - c = (r.vecLength = (function () { - function i(u) { - return Math.sqrt((0, e.reduce)(a)((0, e.zipWith)(o)(u, u))); - } - return i; - })()), - f = (r.vecNormalize = (function () { - function i(u) { - return k(u, c(u)); - } - return i; - })()); - }, - 96820: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.resolveAsset = r.assetMiddleware = void 0); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = [/v4shim/i], - e = {}, - a = (r.resolveAsset = (function () { - function o(m) { - return e[m] || m; - } - return o; - })()), - t = (r.assetMiddleware = (function () { - function o(m) { - return function (N) { - return function (y) { - var S = y.type, - k = y.payload; - if (S === 'asset/stylesheet') { - Byond.loadCss(k); - return; - } - if (S === 'asset/mappings') { - for ( - var h = (function () { - function f() { - var i = c[l]; - if ( - n.some(function (d) { - return d.test(i); - }) - ) - return 1; - var u = k[i], - s = i.split('.').pop(); - (e[i] = u), - s === 'css' && Byond.loadCss(u), - s === 'js' && Byond.loadJs(u); - } - return f; - })(), - l = 0, - c = Object.keys(k); - l < c.length; - l++ - ) - h(); - return; - } - N(y); - }; - }; - } - return o; - })()); - }, - 91819: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.useSharedState = - r.useLocalState = - r.useBackend = - r.sendAct = - r.selectBackend = - r.backendUpdate = - r.backendSuspendSuccess = - r.backendSuspendStart = - r.backendSetSharedState = - r.backendReducer = - r.backendMiddleware = - void 0); - var e = n(60031), - a = n(90816), - t = n(45360), - o = n(16671), - m = n(50175), - N = n(64960); - /** - * This file provides a clear separation layer between backend updates - * and what state our React app sees. - * - * Sometimes backend can response without a "data" field, but our final - * state will still contain previous "data" because we are merging - * the response with already existing state. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var y = (0, m.createLogger)('backend'), - S = (r.backendUpdate = (0, a.createAction)('backend/update')), - k = (r.backendSetSharedState = (0, a.createAction)( - 'backend/setSharedState' - )), - p = (r.backendSuspendStart = (0, a.createAction)( - 'backend/suspendStart' - )), - l = (r.backendSuspendSuccess = (function () { - function v() { - return { - type: 'backend/suspendSuccess', - payload: { timestamp: Date.now() }, - }; - } - return v; - })()), - c = { - config: {}, - data: {}, - shared: {}, - suspended: Date.now(), - suspending: !1, - }, - f = (r.backendReducer = (function () { - function v(h, V) { - h === void 0 && (h = c); - var b = V.type, - B = V.payload; - if (b === 'backend/update') { - var I = Object.assign({}, h.config, B.config), - w = Object.assign({}, h.data, B.static_data, B.data), - T = Object.assign({}, h.shared); - if (B.shared) - for ( - var A = 0, x = Object.keys(B.shared); - A < x.length; - A++ - ) { - var E = x[A], - P = B.shared[E]; - P === '' ? (T[E] = void 0) : (T[E] = JSON.parse(P)); - } - return Object.assign({}, h, { - config: I, - data: w, - shared: T, - suspended: !1, - }); - } - if (b === 'backend/setSharedState') { - var D, - M = B.key, - O = B.nextState; - return Object.assign({}, h, { - shared: Object.assign( - {}, - h.shared, - ((D = {}), (D[M] = O), D) - ), - }); - } - if (b === 'backend/suspendStart') - return Object.assign({}, h, { suspending: !0 }); - if (b === 'backend/suspendSuccess') { - var j = B.timestamp; - return Object.assign({}, h, { - data: {}, - shared: {}, - config: Object.assign({}, h.config, { - title: '', - status: 1, - }), - suspending: !1, - suspended: j, - }); - } - return h; - } - return v; - })()), - i = (r.backendMiddleware = (function () { - function v(h) { - var V, b; - return function (B) { - return function (I) { - var w = s(h.getState()), - T = w.suspended, - A = I.type, - x = I.payload; - if (A === 'update') { - h.dispatch(S(x)); - return; - } - if (A === 'suspend') { - h.dispatch(l()); - return; - } - if (A === 'ping') { - Byond.sendMessage('ping/reply'); - return; - } - if (A === 'backend/suspendStart' && !b) { - y.log('suspending (' + Byond.windowId + ')'); - var E = (function () { - function M() { - return Byond.sendMessage('suspend'); - } - return M; - })(); - E(), (b = setInterval(E, 2e3)); - } - if ( - (A === 'backend/suspendSuccess' && - ((0, N.suspendRenderer)(), - clearInterval(b), - (b = void 0), - Byond.winset(Byond.windowId, { 'is-visible': !1 }), - setImmediate(function () { - return (0, o.focusMap)(); - })), - A === 'backend/update') - ) { - var P, - D = - (P = x.config) == null || (P = P.window) == null - ? void 0 - : P.fancy; - V === void 0 - ? (V = D) - : V !== D && - (y.log('changing fancy mode to', D), - (V = D), - Byond.winset(Byond.windowId, { - titlebar: !D, - 'can-resize': !D, - })); - } - return ( - A === 'backend/update' && - T && - (y.log('backend/update', x), - (0, N.resumeRenderer)(), - (0, t.setupDrag)(), - setImmediate(function () { - e.perf.mark('resume/start'); - var M = s(h.getState()), - O = M.suspended; - O || - (Byond.winset(Byond.windowId, { 'is-visible': !0 }), - e.perf.mark('resume/finish')); - })), - B(I) - ); - }; - }; - } - return v; - })()), - u = (r.sendAct = (function () { - function v(h, V) { - V === void 0 && (V = {}); - var b = typeof V == 'object' && V !== null && !Array.isArray(V); - if (!b) { - y.error('Payload for act() must be an object, got this:', V); - return; - } - Byond.sendMessage('act/' + h, V); - } - return v; - })()), - s = (r.selectBackend = (function () { - function v(h) { - return h.backend || {}; - } - return v; - })()), - d = (r.useBackend = (function () { - function v(h) { - var V = h.store, - b = s(V.getState()); - return Object.assign({}, b, { act: u }); - } - return v; - })()), - C = (r.useLocalState = (function () { - function v(h, V, b) { - var B, - I = h.store, - w = s(I.getState()), - T = (B = w.shared) != null ? B : {}, - A = V in T ? T[V] : b; - return [ - A, - function (x) { - I.dispatch( - k({ - key: V, - nextState: typeof x == 'function' ? x(A) : x, - }) - ); - }, - ]; - } - return v; - })()), - g = (r.useSharedState = (function () { - function v(h, V, b) { - var B, - I = h.store, - w = s(I.getState()), - T = (B = w.shared) != null ? B : {}, - A = V in T ? T[V] : b; - return [ - A, - function (x) { - Byond.sendMessage({ - type: 'setSharedState', - key: V, - value: - JSON.stringify(typeof x == 'function' ? x(A) : x) || '', - }); - }, - ]; - } - return v; - })()); - }, - 15281: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AnimatedNumber = void 0); - var e = n(58331), - a = n(28823); - function t(k, p) { - (k.prototype = Object.create(p.prototype)), - (k.prototype.constructor = k), - o(k, p); - } - function o(k, p) { - return ( - (o = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function l(c, f) { - return (c.__proto__ = f), c; - } - return l; - })()), - o(k, p) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var m = 20, - N = 0.5, - y = function (h) { - return ( - typeof h == 'number' && Number.isFinite(h) && !Number.isNaN(h) - ); - }, - S = (r.AnimatedNumber = (function (k) { - t(h, k); - function h(c) { - var f; - return ( - (f = k.call(this, c) || this), - (f.timer = null), - (f.state = { value: 0 }), - y(c.initial) - ? (f.state.value = c.initial) - : y(c.value) && (f.state.value = Number(c.value)), - f - ); - } - var l = h.prototype; - return ( - (l.tick = (function () { - function c() { - var f = this.props, - i = this.state, - u = Number(i.value), - s = Number(f.value); - if (y(s)) { - var d = u * N + s * (1 - N); - this.setState({ value: d }); - } - } - return c; - })()), - (l.componentDidMount = (function () { - function c() { - var f = this; - this.timer = setInterval(function () { - return f.tick(); - }, 1e3 / m); - } - return c; - })()), - (l.componentWillUnmount = (function () { - function c() { - clearTimeout(this.timer); - } - return c; - })()), - (l.render = (function () { - function c() { - var f = this.props, - i = this.state, - u = f.format, - s = f.children, - d = i.value, - C = f.value; - if (!y(C)) return C || null; - var g = d; - if (u) g = u(d); - else { - var v = String(C).split('.')[1], - p = v ? v.length : 0; - g = (0, e.toFixed)(d, (0, e.clamp)(p, 0, 8)); - } - return typeof s == 'function' ? s(g, d) : g; - } - return c; - })()), - h - ); - })(a.Component)); - }, - 81789: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Autofocus = void 0); - var e = n(28823); - function a(m, N) { - (m.prototype = Object.create(N.prototype)), - (m.prototype.constructor = m), - t(m, N); - } - function t(m, N) { - return ( - (t = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function y(S, k) { - return (S.__proto__ = k), S; - } - return y; - })()), - t(m, N) - ); - } - var o = (r.Autofocus = (function (m) { - a(N, m); - function N() { - for ( - var S, k = arguments.length, h = new Array(k), l = 0; - l < k; - l++ - ) - h[l] = arguments[l]; - return ( - (S = m.call.apply(m, [this].concat(h)) || this), - (S.ref = (0, e.createRef)()), - S - ); - } - var y = N.prototype; - return ( - (y.componentDidMount = (function () { - function S() { - var k = this; - setTimeout(function () { - var h; - (h = k.ref.current) == null || h.focus(); - }, 1); - } - return S; - })()), - (y.render = (function () { - function S() { - return (0, e.createVNode)( - 1, - 'div', - null, - this.props.children, - 0, - { tabIndex: -1 }, - null, - this.ref - ); - } - return S; - })()), - N - ); - })(e.Component)); - }, - 11316: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Blink = void 0); - var e = n(28823); - function a(y, S) { - (y.prototype = Object.create(S.prototype)), - (y.prototype.constructor = y), - t(y, S); - } - function t(y, S) { - return ( - (t = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function k(h, l) { - return (h.__proto__ = l), h; - } - return k; - })()), - t(y, S) - ); - } - var o = 1e3, - m = 1e3, - N = (r.Blink = (function (y) { - a(S, y); - function S() { - var h; - return ( - (h = y.call(this) || this), (h.state = { hidden: !1 }), h - ); - } - var k = S.prototype; - return ( - (k.createTimer = (function () { - function h() { - var l = this, - c = this.props, - f = c.interval, - i = f === void 0 ? o : f, - u = c.time, - s = u === void 0 ? m : u; - clearInterval(this.interval), - clearTimeout(this.timer), - this.setState({ hidden: !1 }), - (this.interval = setInterval(function () { - l.setState({ hidden: !0 }), - (l.timer = setTimeout(function () { - l.setState({ hidden: !1 }); - }, s)); - }, i + s)); - } - return h; - })()), - (k.componentDidMount = (function () { - function h() { - this.createTimer(); - } - return h; - })()), - (k.componentDidUpdate = (function () { - function h(l) { - (l.interval !== this.props.interval || - l.time !== this.props.time) && - this.createTimer(); - } - return h; - })()), - (k.componentWillUnmount = (function () { - function h() { - clearInterval(this.interval), clearTimeout(this.timer); - } - return h; - })()), - (k.render = (function () { - function h(l) { - return (0, e.createVNode)(1, 'span', null, l.children, 0, { - style: { - visibility: this.state.hidden ? 'hidden' : 'visible', - }, - }); - } - return h; - })()), - S - ); - })(e.Component)); - }, - 26558: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BlockQuote = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = ['className']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function m(y, S) { - if (y == null) return {}; - var k = {}, - h = Object.keys(y), - l, - c; - for (c = 0; c < h.length; c++) - (l = h[c]), !(S.indexOf(l) >= 0) && (k[l] = y[l]); - return k; - } - var N = (r.BlockQuote = (function () { - function y(S) { - var k = S.className, - h = m(S, o); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { className: (0, a.classes)(['BlockQuote', k]) }, - h - ) - ) - ); - } - return y; - })()); - }, - 93843: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.unit = - r.halfUnit = - r.computeBoxProps = - r.computeBoxClassName = - r.Box = - void 0); - var e = n(66586), - a = n(28823), - t = n(32883), - o = n(30381), - m = ['as', 'className', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function N(v, h) { - if (v == null) return {}; - var V = {}, - b = Object.keys(v), - B, - I; - for (I = 0; I < b.length; I++) - (B = b[I]), !(h.indexOf(B) >= 0) && (V[B] = v[B]); - return V; - } - var y = (r.unit = (function () { - function v(h) { - if (typeof h == 'string') - return h.endsWith('px') && !Byond.IS_LTE_IE8 - ? parseFloat(h) / 12 + 'rem' - : h; - if (typeof h == 'number') - return Byond.IS_LTE_IE8 ? h * 12 + 'px' : h + 'rem'; - } - return v; - })()), - S = (r.halfUnit = (function () { - function v(h) { - if (typeof h == 'string') return y(h); - if (typeof h == 'number') return y(h * 0.5); - } - return v; - })()), - k = function (h) { - return !p(h); - }, - p = function (h) { - if (typeof h == 'string') return o.CSS_COLORS.includes(h); - }, - l = function (h) { - return function (V, b) { - (typeof b == 'number' || typeof b == 'string') && (V[h] = b); - }; - }, - c = function (h, V) { - return function (b, B) { - (typeof B == 'number' || typeof B == 'string') && (b[h] = V(B)); - }; - }, - f = function (h, V) { - return function (b, B) { - B && (b[h] = V); - }; - }, - i = function (h, V, b) { - return function (B, I) { - if (typeof I == 'number' || typeof I == 'string') - for (var w = 0; w < b.length; w++) B[h + '-' + b[w]] = V(I); - }; - }, - u = function (h) { - return function (V, b) { - k(b) && (V[h] = b); - }; - }, - s = { - position: l('position'), - overflow: l('overflow'), - overflowX: l('overflow-x'), - overflowY: l('overflow-y'), - top: c('top', y), - bottom: c('bottom', y), - left: c('left', y), - right: c('right', y), - width: c('width', y), - minWidth: c('min-width', y), - maxWidth: c('max-width', y), - height: c('height', y), - minHeight: c('min-height', y), - maxHeight: c('max-height', y), - fontSize: c('font-size', y), - fontFamily: l('font-family'), - lineHeight: (function () { - function v(h, V) { - typeof V == 'number' - ? (h['line-height'] = V) - : typeof V == 'string' && (h['line-height'] = y(V)); - } - return v; - })(), - opacity: l('opacity'), - textAlign: l('text-align'), - verticalAlign: l('vertical-align'), - inline: f('display', 'inline-block'), - bold: f('font-weight', 'bold'), - italic: f('font-style', 'italic'), - nowrap: f('white-space', 'nowrap'), - preserveWhitespace: f('white-space', 'pre-wrap'), - m: i('margin', S, ['top', 'bottom', 'left', 'right']), - mx: i('margin', S, ['left', 'right']), - my: i('margin', S, ['top', 'bottom']), - mt: c('margin-top', S), - mb: c('margin-bottom', S), - ml: c('margin-left', S), - mr: c('margin-right', S), - p: i('padding', S, ['top', 'bottom', 'left', 'right']), - px: i('padding', S, ['left', 'right']), - py: i('padding', S, ['top', 'bottom']), - pt: c('padding-top', S), - pb: c('padding-bottom', S), - pl: c('padding-left', S), - pr: c('padding-right', S), - color: u('color'), - textColor: u('color'), - backgroundColor: u('background-color'), - fillPositionedParent: (function () { - function v(h, V) { - V && - ((h.position = 'absolute'), - (h.top = 0), - (h.bottom = 0), - (h.left = 0), - (h.right = 0)); - } - return v; - })(), - }, - d = (r.computeBoxProps = (function () { - function v(h) { - for ( - var V = {}, b = {}, B = 0, I = Object.keys(h); - B < I.length; - B++ - ) { - var w = I[B]; - if (w !== 'style') { - if (Byond.IS_LTE_IE8 && w === 'onClick') { - V.onclick = h[w]; - continue; - } - var T = h[w], - A = s[w]; - A ? A(b, T) : (V[w] = T); - } - } - for (var x = '', E = 0, P = Object.keys(b); E < P.length; E++) { - var D = P[E], - M = b[D]; - x += D + ':' + M + ';'; - } - if (h.style) - for (var O = 0, j = Object.keys(h.style); O < j.length; O++) { - var F = j[O], - U = h.style[F]; - x += F + ':' + U + ';'; - } - return x.length > 0 && (V.style = x), V; - } - return v; - })()), - C = (r.computeBoxClassName = (function () { - function v(h) { - var V = h.textColor || h.color, - b = h.backgroundColor; - return (0, e.classes)([ - p(V) && 'color-' + V, - p(b) && 'color-bg-' + b, - ]); - } - return v; - })()), - g = (r.Box = (function () { - function v(h) { - var V = h.as, - b = V === void 0 ? 'div' : V, - B = h.className, - I = h.children, - w = N(h, m); - if (typeof I == 'function') return I(d(h)); - var T = typeof B == 'string' ? B + ' ' + C(w) : C(w), - A = d(w); - return (0, a.createVNode)( - t.VNodeFlags.HtmlElement, - b, - T, - I, - t.ChildFlags.UnknownChildren, - A - ); - } - return v; - })()); - g.defaultHooks = e.pureComponentHooks; - }, - 16699: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.ButtonInput = - r.ButtonConfirm = - r.ButtonCheckbox = - r.Button = - void 0); - var e = n(28823), - a = n(66586), - t = n(31068), - o = n(50175), - m = n(93843), - N = n(69433), - y = n(30341), - S = [ - 'className', - 'fluid', - 'icon', - 'iconRotation', - 'iconSpin', - 'color', - 'textColor', - 'disabled', - 'selected', - 'tooltip', - 'tooltipPosition', - 'ellipsis', - 'compact', - 'circular', - 'content', - 'iconColor', - 'iconRight', - 'iconStyle', - 'children', - 'onclick', - 'onClick', - 'multiLine', - ], - k = ['checked'], - p = [ - 'confirmContent', - 'confirmColor', - 'confirmIcon', - 'icon', - 'color', - 'content', - 'onClick', - ], - l = [ - 'fluid', - 'content', - 'icon', - 'iconRotation', - 'iconSpin', - 'tooltip', - 'tooltipPosition', - 'color', - 'disabled', - 'placeholder', - 'maxLength', - 'multiLine', - ]; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function c(v, h) { - (v.prototype = Object.create(h.prototype)), - (v.prototype.constructor = v), - f(v, h); - } - function f(v, h) { - return ( - (f = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function V(b, B) { - return (b.__proto__ = B), b; - } - return V; - })()), - f(v, h) - ); - } - function i(v, h) { - if (v == null) return {}; - var V = {}, - b = Object.keys(v), - B, - I; - for (I = 0; I < b.length; I++) - (B = b[I]), !(h.indexOf(B) >= 0) && (V[B] = v[B]); - return V; - } - var u = (0, o.createLogger)('Button'), - s = (r.Button = (function () { - function v(h) { - var V = h.className, - b = h.fluid, - B = h.icon, - I = h.iconRotation, - w = h.iconSpin, - T = h.color, - A = h.textColor, - x = h.disabled, - E = h.selected, - P = h.tooltip, - D = h.tooltipPosition, - M = h.ellipsis, - O = h.compact, - j = h.circular, - F = h.content, - U = h.iconColor, - _ = h.iconRight, - z = h.iconStyle, - H = h.children, - $ = h.onclick, - Y = h.onClick, - X = h.multiLine, - re = i(h, S), - ae = !!(F || H); - $ && - u.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" - ), - (re.onClick = function (pe) { - !x && Y && Y(pe); - }), - Byond.IS_LTE_IE8 && (re.unselectable = !0); - var se = (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - m.Box, - Object.assign( - { - className: (0, a.classes)([ - 'Button', - b && 'Button--fluid', - x && 'Button--disabled', - E && 'Button--selected', - ae && 'Button--hasContent', - M && 'Button--ellipsis', - j && 'Button--circular', - O && 'Button--compact', - _ && 'Button--iconRight', - X && 'Button--multiLine', - T && typeof T == 'string' - ? 'Button--color--' + T - : 'Button--color--default', - V, - ]), - tabIndex: !x && '0', - color: A, - onKeyDown: (function () { - function pe(ye) { - var Be = window.event ? ye.which : ye.keyCode; - if (Be === t.KEY_SPACE || Be === t.KEY_ENTER) { - ye.preventDefault(), !x && Y && Y(ye); - return; - } - if (Be === t.KEY_ESCAPE) { - ye.preventDefault(); - return; - } - } - return pe; - })(), - }, - re, - { - children: [ - B && - !_ && - (0, e.createComponentVNode)(2, N.Icon, { - name: B, - color: U, - rotation: I, - spin: w, - style: z, - }), - F, - H, - B && - _ && - (0, e.createComponentVNode)(2, N.Icon, { - name: B, - color: U, - rotation: I, - spin: w, - style: z, - }), - ], - } - ) - ) - ); - return ( - P && - (se = (0, e.createComponentVNode)(2, y.Tooltip, { - content: P, - position: D, - children: se, - })), - se - ); - } - return v; - })()); - s.defaultHooks = a.pureComponentHooks; - var d = (r.ButtonCheckbox = (function () { - function v(h) { - var V = h.checked, - b = i(h, k); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - s, - Object.assign( - { - color: 'transparent', - icon: V ? 'check-square-o' : 'square-o', - selected: V, - }, - b - ) - ) - ); - } - return v; - })()); - s.Checkbox = d; - var C = (r.ButtonConfirm = (function (v) { - c(h, v); - function h() { - var b; - return ( - (b = v.call(this) || this), - (b.state = { clickedOnce: !1 }), - (b.handleClick = function () { - b.state.clickedOnce && b.setClickedOnce(!1); - }), - b - ); - } - var V = h.prototype; - return ( - (V.setClickedOnce = (function () { - function b(B) { - var I = this; - this.setState({ clickedOnce: B }), - B - ? setTimeout(function () { - return window.addEventListener( - 'click', - I.handleClick - ); - }) - : window.removeEventListener('click', this.handleClick); - } - return b; - })()), - (V.render = (function () { - function b() { - var B = this, - I = this.props, - w = I.confirmContent, - T = w === void 0 ? 'Confirm?' : w, - A = I.confirmColor, - x = A === void 0 ? 'bad' : A, - E = I.confirmIcon, - P = I.icon, - D = I.color, - M = I.content, - O = I.onClick, - j = i(I, p); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - s, - Object.assign( - { - content: this.state.clickedOnce ? T : M, - icon: this.state.clickedOnce ? E : P, - color: this.state.clickedOnce ? x : D, - onClick: (function () { - function F() { - return B.state.clickedOnce - ? O() - : B.setClickedOnce(!0); - } - return F; - })(), - }, - j - ) - ) - ); - } - return b; - })()), - h - ); - })(e.Component)); - s.Confirm = C; - var g = (r.ButtonInput = (function (v) { - c(h, v); - function h() { - var b; - return ( - (b = v.call(this) || this), - (b.inputRef = (0, e.createRef)()), - (b.state = { inInput: !1 }), - b - ); - } - var V = h.prototype; - return ( - (V.setInInput = (function () { - function b(B) { - var I = this.props.disabled; - if (!I && (this.setState({ inInput: B }), this.inputRef)) { - var w = this.inputRef.current; - if (B) { - w.value = this.props.currentValue || ''; - try { - w.focus(), w.select(); - } catch (T) {} - } - } - } - return b; - })()), - (V.commitResult = (function () { - function b(B) { - if (this.inputRef) { - var I = this.inputRef.current, - w = I.value !== ''; - if (w) { - this.props.onCommit(B, I.value); - return; - } else { - if (!this.props.defaultValue) return; - this.props.onCommit(B, this.props.defaultValue); - } - } - } - return b; - })()), - (V.render = (function () { - function b() { - var B = this, - I = this.props, - w = I.fluid, - T = I.content, - A = I.icon, - x = I.iconRotation, - E = I.iconSpin, - P = I.tooltip, - D = I.tooltipPosition, - M = I.color, - O = M === void 0 ? 'default' : M, - j = I.disabled, - F = I.placeholder, - U = I.maxLength, - _ = I.multiLine, - z = i(I, l), - H = (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - m.Box, - Object.assign( - { - className: (0, a.classes)([ - 'Button', - w && 'Button--fluid', - j && 'Button--disabled', - 'Button--color--' + O, - _ + 'Button--multiLine', - ]), - }, - z, - { - onClick: (function () { - function $() { - return B.setInInput(!0); - } - return $; - })(), - children: [ - A && - (0, e.createComponentVNode)(2, N.Icon, { - name: A, - rotation: x, - spin: E, - }), - (0, e.createVNode)(1, 'div', null, T, 0), - (0, e.createVNode)( - 64, - 'input', - 'NumberInput__input', - null, - 1, - { - style: { - display: this.state.inInput - ? void 0 - : 'none', - 'text-align': 'left', - }, - onBlur: (function () { - function $(Y) { - B.state.inInput && - (B.setInInput(!1), B.commitResult(Y)); - } - return $; - })(), - onKeyDown: (function () { - function $(Y) { - if (Y.keyCode === t.KEY_ENTER) { - B.setInInput(!1), B.commitResult(Y); - return; - } - Y.keyCode === t.KEY_ESCAPE && - B.setInInput(!1); - } - return $; - })(), - }, - null, - this.inputRef - ), - ], - } - ) - ) - ); - return ( - P && - (H = (0, e.createComponentVNode)(2, y.Tooltip, { - content: P, - position: D, - children: H, - })), - H - ); - } - return b; - })()), - h - ); - })(e.Component)); - s.Input = g; - }, - 75614: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ByondUi = void 0); - var e = n(28823), - a = n(66586), - t = n(32742), - o = n(50175), - m = n(93843), - N = ['params'], - y = ['params'], - S = ['parent', 'params']; - function k(C, g) { - if (C == null) return {}; - var v = {}, - h = Object.keys(C), - V, - b; - for (b = 0; b < h.length; b++) - (V = h[b]), !(g.indexOf(V) >= 0) && (v[V] = C[V]); - return v; - } - function p(C, g) { - (C.prototype = Object.create(g.prototype)), - (C.prototype.constructor = C), - l(C, g); - } - function l(C, g) { - return ( - (l = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function v(h, V) { - return (h.__proto__ = V), h; - } - return v; - })()), - l(C, g) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var c = (0, o.createLogger)('ByondUi'), - f = [], - i = function (g) { - var v = f.length; - f.push(null); - var p = g || 'byondui_' + v; - return ( - c.log("allocated '" + p + "'"), - { - render: (function () { - function V(b) { - c.log("rendering '" + p + "'"), - (f[v] = p), - Byond.winset(p, b); - } - return V; - })(), - unmount: (function () { - function V() { - c.log("unmounting '" + p + "'"), - (f[v] = null), - Byond.winset(p, { parent: '' }); - } - return V; - })(), - } - ); - }; - window.addEventListener('beforeunload', function () { - for (var C = 0; C < f.length; C++) { - var g = f[C]; - typeof g == 'string' && - (c.log("unmounting '" + g + "' (beforeunload)"), - (f[C] = null), - Byond.winset(g, { parent: '' })); - } - }); - var u = function (g) { - var v = g.getBoundingClientRect(); - return { - pos: [v.left, v.top], - size: [v.right - v.left, v.bottom - v.top], - }; - }, - s = (r.ByondUi = (function (C) { - h(g, C); - function g(p) { - var V, b; - return ( - (b = C.call(this, p) || this), - (b.containerRef = (0, e.createRef)()), - (b.byondUiElement = i( - (V = p.params) == null ? void 0 : V.id - )), - (b.handleResize = (0, t.debounce)(function () { - b.forceUpdate(); - }, 100)), - b - ); - } - var v = g.prototype; - return ( - (v.shouldComponentUpdate = (function () { - function p(V) { - var b = this.props, - B = b.params, - I = B === void 0 ? {} : B, - w = k(b, N), - T = V.params, - A = T === void 0 ? {} : T, - x = k(V, y); - return ( - (0, a.shallowDiffers)(I, A) || (0, a.shallowDiffers)(w, x) - ); - } - return p; - })()), - (v.componentDidMount = (function () { - function p() { - Byond.IS_LTE_IE10 || - (window.addEventListener('resize', this.handleResize), - this.componentDidUpdate(), - this.handleResize()); - } - return p; - })()), - (v.componentDidUpdate = (function () { - function p() { - if (!Byond.IS_LTE_IE10) { - var V = this.props.params, - b = V === void 0 ? {} : V, - B = u(this.containerRef.current); - c.debug('bounding box', B), - this.byondUiElement.render( - Object.assign({ parent: Byond.windowId }, b, { - pos: B.pos[0] + ',' + B.pos[1], - size: B.size[0] + 'x' + B.size[1], - }) - ); - } - } - return p; - })()), - (v.componentWillUnmount = (function () { - function p() { - Byond.IS_LTE_IE10 || - (window.removeEventListener('resize', this.handleResize), - this.byondUiElement.unmount()); - } - return p; - })()), - (v.render = (function () { - function p() { - var V = this.props, - b = V.parent, - B = V.params, - I = k(V, S), - w = (0, m.computeBoxProps)(I); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - null, - (0, e.createVNode)(1, 'div', null, null, 1, { - style: { 'min-height': '22px' }, - }), - 0, - Object.assign({}, w), - null, - this.containerRef - ) - ); - } - return p; - })()), - g - ); - })(e.Component)), - d = function () { - return (0, e.createVNode)(1, 'div', null, null, 1, { - style: { 'min-height': '22px' }, - }); - }; - }, - 2909: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Chart = void 0); - var e = n(28823), - a = n(72026), - t = n(66586), - o = n(93843), - m = [ - 'data', - 'rangeX', - 'rangeY', - 'fillColor', - 'strokeColor', - 'strokeWidth', - ]; - function N(i, u) { - if (i == null) return {}; - var s = {}, - d = Object.keys(i), - C, - g; - for (g = 0; g < d.length; g++) - (C = d[g]), !(u.indexOf(C) >= 0) && (s[C] = i[C]); - return s; - } - function y(i, u) { - (i.prototype = Object.create(u.prototype)), - (i.prototype.constructor = i), - S(i, u); - } - function S(i, u) { - return ( - (S = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function s(d, C) { - return (d.__proto__ = C), d; - } - return s; - })()), - S(i, u) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var k = function (u, s, d, C) { - if (u.length === 0) return []; - var g = (0, a.zipWith)(Math.min).apply(void 0, u), - v = (0, a.zipWith)(Math.max).apply(void 0, u); - d !== void 0 && ((g[0] = d[0]), (v[0] = d[1])), - C !== void 0 && ((g[1] = C[0]), (v[1] = C[1])); - var h = (0, a.map)(function (V) { - return (0, a.zipWith)(function (b, B, I, w) { - return ((b - B) / (I - B)) * w; - })(V, g, v, s); - })(u); - return h; - }, - p = function (u) { - for (var s = '', d = 0; d < u.length; d++) { - var C = u[d]; - s += C[0] + ',' + C[1] + ' '; - } - return s; - }, - l = (function (i) { - y(u, i); - function u(d) { - var C; - return ( - (C = i.call(this, d) || this), - (C.ref = (0, e.createRef)()), - (C.state = { viewBox: [600, 200] }), - (C.handleResize = function () { - var g = C.ref.current; - C.setState({ viewBox: [g.offsetWidth, g.offsetHeight] }); - }), - C - ); - } - var s = u.prototype; - return ( - (s.componentDidMount = (function () { - function d() { - window.addEventListener('resize', this.handleResize), - this.handleResize(); - } - return d; - })()), - (s.componentWillUnmount = (function () { - function d() { - window.removeEventListener('resize', this.handleResize); - } - return d; - })()), - (s.render = (function () { - function d() { - var C = this, - g = this.props, - v = g.data, - h = v === void 0 ? [] : v, - V = g.rangeX, - b = g.rangeY, - B = g.fillColor, - I = B === void 0 ? 'none' : B, - w = g.strokeColor, - T = w === void 0 ? '#ffffff' : w, - A = g.strokeWidth, - x = A === void 0 ? 2 : A, - E = N(g, m), - P = this.state.viewBox, - D = k(h, P, V, b); - if (D.length > 0) { - var M = D[0], - O = D[D.length - 1]; - D.push([P[0] + x, O[1]]), - D.push([P[0] + x, -x]), - D.push([-x, -x]), - D.push([-x, M[1]]); - } - var j = p(D); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Box, - Object.assign({ position: 'relative' }, E, { - children: (function () { - function F(U) { - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - null, - (0, e.createVNode)( - 32, - 'svg', - null, - (0, e.createVNode)( - 32, - 'polyline', - null, - null, - 1, - { - transform: - 'scale(1, -1) translate(0, -' + - P[1] + - ')', - fill: I, - stroke: T, - 'stroke-width': x, - points: j, - } - ), - 2, - { - viewBox: '0 0 ' + P[0] + ' ' + P[1], - preserveAspectRatio: 'none', - style: { - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, - overflow: 'hidden', - }, - } - ), - 2, - Object.assign({}, U), - null, - C.ref - ) - ); - } - return F; - })(), - }) - ) - ); - } - return d; - })()), - u - ); - })(e.Component); - l.defaultHooks = t.pureComponentHooks; - var c = function (u) { - return null; - }, - f = (r.Chart = { Line: Byond.IS_LTE_IE8 ? c : l }); - }, - 52760: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Collapsible = void 0); - var e = n(28823), - a = n(93843), - t = n(16699), - o = ['children', 'color', 'title', 'buttons']; - function m(k, p) { - if (k == null) return {}; - var l = {}, - c = Object.keys(k), - f, - i; - for (i = 0; i < c.length; i++) - (f = c[i]), !(p.indexOf(f) >= 0) && (l[f] = k[f]); - return l; - } - function N(k, p) { - (k.prototype = Object.create(p.prototype)), - (k.prototype.constructor = k), - y(k, p); - } - function y(k, p) { - return ( - (y = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function l(c, f) { - return (c.__proto__ = f), c; - } - return l; - })()), - y(k, p) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var S = (r.Collapsible = (function (k) { - N(h, k); - function h(c) { - var f; - f = k.call(this, c) || this; - var i = c.open; - return (f.state = { open: i || !1 }), f; - } - var l = h.prototype; - return ( - (l.render = (function () { - function c() { - var f = this, - i = this.props, - u = this.state.open, - s = i.children, - d = i.color, - C = d === void 0 ? 'default' : d, - g = i.title, - v = i.buttons, - p = m(i, o); - return (0, e.createComponentVNode)(2, a.Box, { - className: 'Collapsible', - children: [ - (0, e.createVNode)( - 1, - 'div', - 'Table', - [ - (0, e.createVNode)( - 1, - 'div', - 'Table__cell', - (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Button, - Object.assign( - { - fluid: !0, - color: C, - icon: u ? 'chevron-down' : 'chevron-right', - onClick: (function () { - function V() { - return f.setState({ open: !u }); - } - return V; - })(), - }, - p, - { children: g } - ) - ) - ), - 2 - ), - v && - (0, e.createVNode)( - 1, - 'div', - 'Table__cell Table__cell--collapsing', - v, - 0 - ), - ], - 0 - ), - u && - (0, e.createComponentVNode)(2, a.Box, { - mt: 1, - children: s, - }), - ], - }); - } - return c; - })()), - h - ); - })(e.Component)); - }, - 25762: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ColorBox = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = [ - 'content', - 'children', - 'className', - 'color', - 'backgroundColor', - ]; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function m(y, S) { - if (y == null) return {}; - var k = {}, - h = Object.keys(y), - l, - c; - for (c = 0; c < h.length; c++) - (l = h[c]), !(S.indexOf(l) >= 0) && (k[l] = y[l]); - return k; - } - var N = (r.ColorBox = (function () { - function y(S) { - var k = S.content, - h = S.children, - l = S.className, - c = S.color, - f = S.backgroundColor, - i = m(S, o); - return ( - (i.color = k ? null : 'transparent'), - (i.backgroundColor = c || f), - (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'ColorBox', - l, - (0, t.computeBoxClassName)(i), - ]), - k || '.', - 0, - Object.assign({}, (0, t.computeBoxProps)(i)) - ) - ) - ); - } - return y; - })()); - N.defaultHooks = a.pureComponentHooks; - }, - 73712: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Countdown = void 0); - var e = n(28823), - a = n(93843), - t = ['format']; - function o(S, k) { - if (S == null) return {}; - var h = {}, - l = Object.keys(S), - c, - f; - for (f = 0; f < l.length; f++) - (c = l[f]), !(k.indexOf(c) >= 0) && (h[c] = S[c]); - return h; - } - function m(S, k) { - (S.prototype = Object.create(k.prototype)), - (S.prototype.constructor = S), - N(S, k); - } - function N(S, k) { - return ( - (N = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function h(l, c) { - return (l.__proto__ = c), l; - } - return h; - })()), - N(S, k) - ); - } - var y = (r.Countdown = (function (S) { - m(k, S); - function k(l) { - var c; - return ( - (c = S.call(this, l) || this), - (c.timer = null), - (c.state = { value: Math.max(l.timeLeft * 100, 0) }), - c - ); - } - var h = k.prototype; - return ( - (h.tick = (function () { - function l() { - var c = Math.max(this.state.value - this.props.rate, 0); - c <= 0 && clearInterval(this.timer), - this.setState(function (f) { - return { value: c }; - }); - } - return l; - })()), - (h.componentDidMount = (function () { - function l() { - var c = this; - this.timer = setInterval(function () { - return c.tick(); - }, this.props.rate); - } - return l; - })()), - (h.componentWillUnmount = (function () { - function l() { - clearInterval(this.timer); - } - return l; - })()), - (h.componentDidUpdate = (function () { - function l(c) { - var f = this; - this.props.current !== c.current && - this.setState(function (i) { - return { value: Math.max(f.props.timeLeft * 100, 0) }; - }), - this.timer || this.componentDidMount(); - } - return l; - })()), - (h.render = (function () { - function l() { - var c = this.props, - f = c.format, - i = o(c, t), - u = new Date(this.state.value).toISOString().slice(11, 19); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - a.Box, - Object.assign({ as: 'span' }, i, { - children: f ? f(this.state.value, u) : u, - }) - ) - ); - } - return l; - })()), - k - ); - })(e.Component)); - y.defaultProps = { rate: 1e3 }; - }, - 15148: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Dimmer = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = ['className', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function m(y, S) { - if (y == null) return {}; - var k = {}, - h = Object.keys(y), - l, - c; - for (c = 0; c < h.length; c++) - (l = h[c]), !(S.indexOf(l) >= 0) && (k[l] = y[l]); - return k; - } - var N = (r.Dimmer = (function () { - function y(S) { - var k = S.className, - h = S.children, - l = m(S, o); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { className: (0, a.classes)(['Dimmer'].concat(k)) }, - l, - { - children: (0, e.createVNode)( - 1, - 'div', - 'Dimmer__inner', - h, - 0 - ), - } - ) - ) - ); - } - return y; - })()); - }, - 81878: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Divider = void 0); - var e = n(28823), - a = n(66586); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var t = (r.Divider = (function () { - function o(m) { - var N = m.vertical, - y = m.hidden; - return (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Divider', - y && 'Divider--hidden', - N ? 'Divider--vertical' : 'Divider--horizontal', - ]) - ); - } - return o; - })()); - }, - 41584: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DraggableControl = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(15281); - function m(p, l) { - (p.prototype = Object.create(l.prototype)), - (p.prototype.constructor = p), - N(p, l); - } - function N(p, l) { - return ( - (N = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function c(f, i) { - return (f.__proto__ = i), f; - } - return c; - })()), - N(p, l) - ); - } - var y = 400, - S = function (l, c) { - return l.screenX * c[0] + l.screenY * c[1]; - }, - k = (r.DraggableControl = (function (p) { - m(l, p); - function l(f) { - var i; - return ( - (i = p.call(this, f) || this), - (i.inputRef = (0, e.createRef)()), - (i.state = { - originalValue: f.value, - value: f.value, - dragging: !1, - editing: !1, - origin: null, - suppressingFlicker: !1, - }), - (i.flickerTimer = null), - (i.suppressFlicker = function () { - var u = i.props.suppressFlicker; - u > 0 && - (i.setState({ suppressingFlicker: !0 }), - clearTimeout(i.flickerTimer), - (i.flickerTimer = setTimeout(function () { - return i.setState({ suppressingFlicker: !1 }); - }, u))); - }), - (i.handleDragStart = function (u) { - var s = i.props, - d = s.value, - C = s.dragMatrix, - g = s.disabled, - v = i.state.editing; - v || - g || - ((document.body.style['pointer-events'] = 'none'), - (i.ref = u.currentTarget), - i.setState({ - originalValue: d, - dragging: !1, - value: d, - origin: S(u, C), - }), - (i.timer = setTimeout(function () { - i.setState({ dragging: !0 }); - }, 250)), - (i.dragInterval = setInterval(function () { - var h = i.state, - V = h.dragging, - b = h.value, - B = i.props.onDrag; - V && B && B(u, b); - }, i.props.updateRate || y)), - document.addEventListener('mousemove', i.handleDragMove), - document.addEventListener('mouseup', i.handleDragEnd)); - }), - (i.handleDragMove = function (u) { - var s, - d = i.props, - C = d.minValue, - g = d.maxValue, - v = d.step, - h = d.dragMatrix, - V = d.disabled; - if (!V) { - var b = i.ref.offsetWidth / ((g - C) / v), - B = (s = i.props.stepPixelSize) != null ? s : b; - typeof B == 'function' && (B = B(b)), - i.setState(function (I) { - var w = Object.assign({}, I), - T = I.origin, - A = S(u, h) - T; - if (I.dragging) { - var x = Math.trunc(A / B); - w.value = (0, a.clamp)( - Math.floor(w.originalValue / v) * v + x * v, - C, - g - ); - } else Math.abs(A) > 4 && (w.dragging = !0); - return w; - }); - } - }), - (i.handleDragEnd = function (u) { - var s = i.props, - d = s.onChange, - C = s.onDrag, - g = i.state, - v = g.dragging, - h = g.value; - if ( - ((document.body.style['pointer-events'] = 'auto'), - clearTimeout(i.timer), - clearInterval(i.dragInterval), - i.setState({ - originalValue: null, - dragging: !1, - editing: !v, - origin: null, - }), - document.removeEventListener( - 'mousemove', - i.handleDragMove - ), - document.removeEventListener('mouseup', i.handleDragEnd), - v) - ) - i.suppressFlicker(), d && d(u, h), C && C(u, h); - else if (i.inputRef) { - var V = i.inputRef.current; - V.value = h; - try { - V.focus(), V.select(); - } catch (b) {} - } - }), - i - ); - } - var c = l.prototype; - return ( - (c.render = (function () { - function f() { - var i = this, - u = this.state, - s = u.dragging, - d = u.editing, - C = u.value, - g = u.suppressingFlicker, - v = this.props, - h = v.animated, - V = v.value, - b = v.unit, - B = v.minValue, - I = v.maxValue, - w = v.format, - T = v.onChange, - A = v.onDrag, - x = v.children, - E = v.height, - P = v.lineHeight, - D = v.fontSize, - M = v.disabled, - O = V; - (s || g) && (O = C); - var j = (function () { - function _(z) { - return z + (b ? ' ' + b : ''); - } - return _; - })(), - F = - (h && - !s && - !g && - (0, e.createComponentVNode)(2, o.AnimatedNumber, { - value: O, - format: w, - children: j, - })) || - j(w ? w(O) : O), - U = (0, e.createVNode)( - 64, - 'input', - 'NumberInput__input', - null, - 1, - { - style: { - display: !d || M ? 'none' : void 0, - height: E, - 'line-height': P, - 'font-size': D, - }, - onBlur: (function () { - function _(z) { - if (d) { - var H = (0, a.clamp)( - parseFloat(z.target.value), - B, - I - ); - if (Number.isNaN(H)) { - i.setState({ editing: !1 }); - return; - } - i.setState({ editing: !1, value: H }), - i.suppressFlicker(), - T && T(z, H), - A && A(z, H); - } - } - return _; - })(), - onKeyDown: (function () { - function _(z) { - if (z.keyCode === 13) { - var H = (0, a.clamp)( - parseFloat(z.target.value), - B, - I - ); - if (Number.isNaN(H)) { - i.setState({ editing: !1 }); - return; - } - i.setState({ editing: !1, value: H }), - i.suppressFlicker(), - T && T(z, H), - A && A(z, H); - return; - } - if (z.keyCode === 27) { - i.setState({ editing: !1 }); - return; - } - } - return _; - })(), - disabled: M, - }, - null, - this.inputRef - ); - return x({ - dragging: s, - editing: d, - value: V, - displayValue: O, - displayElement: F, - inputElement: U, - handleDragStart: this.handleDragStart, - }); - } - return f; - })()), - l - ); - })(e.Component)); - (k.defaultHooks = t.pureComponentHooks), - (k.defaultProps = { - minValue: -1 / 0, - maxValue: 1 / 0, - step: 1, - suppressFlicker: 50, - dragMatrix: [1, 0], - }); - }, - 99936: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Dropdown = void 0); - var e = n(28823), - a = n(60028), - t = n(66586), - o = n(93843), - m = n(69433), - N = [ - 'icon', - 'iconRotation', - 'iconSpin', - 'clipSelectedText', - 'color', - 'dropdownStyle', - 'over', - 'nochevron', - 'width', - 'onClick', - 'onSelected', - 'selected', - 'disabled', - 'displayText', - ], - y = ['className'], - S; - function k(d, C) { - if (d == null) return {}; - var g = {}, - v = Object.keys(d), - h, - V; - for (V = 0; V < v.length; V++) - (h = v[V]), !(C.indexOf(h) >= 0) && (g[h] = d[h]); - return g; - } - function p(d, C) { - (d.prototype = Object.create(C.prototype)), - (d.prototype.constructor = d), - l(d, C); - } - function l(d, C) { - return ( - (l = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function g(v, h) { - return (v.__proto__ = h), v; - } - return g; - })()), - l(d, C) - ); - } - 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 d() { - return null; - } - return d; - })(), - }, - i = 'Layout Dropdown__menu', - u = 'Layout Dropdown__menu-scroll', - s = (r.Dropdown = (function (d) { - p(C, d); - function C(v) { - var h; - return ( - (h = d.call(this, v) || this), - (h.menuContents = void 0), - (h.handleClick = function () { - h.state.open && h.setOpen(!1); - }), - (h.state = { open: !1, selected: h.props.selected }), - (h.menuContents = null), - h - ); - } - var g = C.prototype; - return ( - (g.getDOMNode = (function () { - function v() { - return (0, e.findDOMfromVNode)(this.$LI, !0); - } - return v; - })()), - (g.componentDidMount = (function () { - function v() { - var h = this.getDOMNode(); - } - return v; - })()), - (g.openMenu = (function () { - function v() { - var h = C.renderedMenu; - h === void 0 && - ((h = document.createElement('div')), - (h.className = i), - document.body.appendChild(h), - (C.renderedMenu = h)); - var V = this.getDOMNode(); - (C.currentOpenMenu = V), - (h.scrollTop = 0), - (h.style.width = - this.props.menuWidth || V.offsetWidth + 'px'), - (h.style.opacity = '1'), - (h.style.pointerEvents = 'auto'), - setTimeout(function () { - var b; - (b = C.renderedMenu) == null || b.focus(); - }, 400), - this.renderMenuContent(); - } - return v; - })()), - (g.closeMenu = (function () { - function v() { - C.currentOpenMenu === this.getDOMNode() && - ((C.currentOpenMenu = void 0), - (C.renderedMenu.style.opacity = '0'), - (C.renderedMenu.style.pointerEvents = 'none')); - } - return v; - })()), - (g.componentWillUnmount = (function () { - function v() { - this.closeMenu(), this.setOpen(!1); - } - return v; - })()), - (g.renderMenuContent = (function () { - function v() { - var h = this, - V = C.renderedMenu; - if (V) { - V.offsetHeight > 200 - ? (V.className = u) - : (V.className = i); - var b = this.props.options, - B = b === void 0 ? [] : b, - I = B.map(function (T) { - var A, x; - return ( - typeof T == 'string' - ? ((x = T), (A = T)) - : T !== null && - ((x = T.displayText), (A = T.value)), - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'Dropdown__menuentry', - h.state.selected === A && 'selected', - ]), - x, - 0, - { - onClick: (function () { - function E() { - h.setSelected(A); - } - return E; - })(), - }, - A - ) - ); - }), - w = I.length ? I : 'No Options Found'; - (0, e.render)( - (0, e.createVNode)(1, 'div', null, w, 0), - V, - function () { - var T = C.singletonPopper; - T === void 0 - ? ((T = (0, a.createPopper)( - C.virtualElement, - V, - Object.assign({}, c, { - placement: 'bottom-start', - }) - )), - (C.singletonPopper = T)) - : (T.setOptions( - Object.assign({}, c, { - placement: 'bottom-start', - }) - ), - T.update()); - }, - this.context - ); - } - } - return v; - })()), - (g.setOpen = (function () { - function v(h) { - var V = this; - this.setState(function (b) { - return Object.assign({}, b, { open: h }); - }), - h - ? setTimeout(function () { - V.openMenu(), - window.addEventListener('click', V.handleClick); - }) - : (this.closeMenu(), - window.removeEventListener( - 'click', - this.handleClick - )); - } - return v; - })()), - (g.setSelected = (function () { - function v(h) { - this.setState(function (V) { - return Object.assign({}, V, { selected: h }); - }), - this.setOpen(!1), - this.props.onSelected && this.props.onSelected(h); - } - return v; - })()), - (g.render = (function () { - function v() { - var h = this, - V = this.props, - b = V.icon, - B = V.iconRotation, - I = V.iconSpin, - w = V.clipSelectedText, - T = w === void 0 ? !0 : w, - A = V.color, - x = A === void 0 ? 'default' : A, - E = V.dropdownStyle, - P = V.over, - D = V.nochevron, - M = V.width, - O = V.onClick, - j = V.onSelected, - F = V.selected, - U = V.disabled, - _ = V.displayText, - z = k(V, N), - H = z.className, - $ = k(z, y), - Y = P ? !this.state.open : this.state.open; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Box, - Object.assign( - { - width: M, - className: (0, t.classes)([ - 'Dropdown__control', - 'Button', - 'Button--color--' + x, - U && 'Button--disabled', - H, - ]), - onClick: (function () { - function X(re) { - (U && !h.state.open) || - (h.setOpen(!h.state.open), O && O(re)); - } - return X; - })(), - }, - $, - { - children: [ - b && - (0, e.createComponentVNode)(2, m.Icon, { - name: b, - rotation: B, - spin: I, - mr: 1, - }), - (0, e.createVNode)( - 1, - 'span', - 'Dropdown__selected-text', - _ || this.state.selected, - 0, - { - style: { overflow: T ? 'hidden' : 'visible' }, - } - ), - D || - (0, e.createVNode)( - 1, - 'span', - 'Dropdown__arrow-button', - (0, e.createComponentVNode)(2, m.Icon, { - name: Y ? 'chevron-up' : 'chevron-down', - }), - 2 - ), - ], - } - ) - ) - ); - } - return v; - })()), - C - ); - })(e.Component)); - (S = s), - (s.renderedMenu = void 0), - (s.singletonPopper = void 0), - (s.currentOpenMenu = void 0), - (s.virtualElement = { - getBoundingClientRect: (function () { - function d() { - var C, g; - return (C = - (g = S.currentOpenMenu) == null - ? void 0 - : g.getBoundingClientRect()) != null - ? C - : f; - } - return d; - })(), - }); - }, - 92462: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.computeFlexProps = - r.computeFlexItemProps = - r.computeFlexItemClassName = - r.computeFlexClassName = - r.Flex = - void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = [ - 'className', - 'direction', - 'wrap', - 'align', - 'justify', - 'inline', - ], - m = ['className'], - N = [ - 'className', - 'style', - 'grow', - 'order', - 'shrink', - 'basis', - 'align', - ], - y = ['className']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function S(u, s) { - if (u == null) return {}; - var d = {}, - C = Object.keys(u), - g, - v; - for (v = 0; v < C.length; v++) - (g = C[v]), !(s.indexOf(g) >= 0) && (d[g] = u[g]); - return d; - } - var k = (r.computeFlexClassName = (function () { - function u(s) { - return (0, a.classes)([ - 'Flex', - s.inline && 'Flex--inline', - Byond.IS_LTE_IE10 && 'Flex--iefix', - Byond.IS_LTE_IE10 && - s.direction === 'column' && - 'Flex--iefix--column', - (0, t.computeBoxClassName)(s), - ]); - } - return u; - })()), - h = (r.computeFlexProps = (function () { - function u(s) { - var d = s.className, - C = s.direction, - g = s.wrap, - v = s.align, - p = s.justify, - V = s.inline, - b = S(s, o); - return (0, t.computeBoxProps)( - Object.assign( - { - style: Object.assign({}, b.style, { - 'flex-direction': C, - 'flex-wrap': g === !0 ? 'wrap' : g, - 'align-items': v, - 'justify-content': p, - }), - }, - b - ) - ); - } - return u; - })()), - l = (r.Flex = (function () { - function u(s) { - var d = s.className, - C = S(s, m); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([d, k(C)]), - null, - 1, - Object.assign({}, h(C)) - ) - ); - } - return u; - })()); - l.defaultHooks = a.pureComponentHooks; - var c = (r.computeFlexItemClassName = (function () { - function u(s) { - return (0, a.classes)([ - 'Flex__item', - Byond.IS_LTE_IE10 && 'Flex__item--iefix', - (0, t.computeBoxClassName)(s), - ]); - } - return u; - })()), - f = (r.computeFlexItemProps = (function () { - function u(s) { - var d = s.className, - C = s.style, - g = s.grow, - v = s.order, - p = s.shrink, - V = s.basis, - b = V === void 0 ? s.width : V, - B = s.align, - I = S(s, N); - return (0, t.computeBoxProps)( - Object.assign( - { - style: Object.assign({}, C, { - 'flex-grow': g !== void 0 && Number(g), - 'flex-shrink': p !== void 0 && Number(p), - 'flex-basis': (0, t.unit)(b), - order: v, - 'align-self': B, - }), - }, - I - ) - ); - } - return u; - })()), - i = function (s) { - var d = s.className, - C = S(s, y); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([d, c(s)]), - null, - 1, - Object.assign({}, f(C)) - ) - ); - }; - (i.defaultHooks = a.pureComponentHooks), (l.Item = i); - }, - 81753: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GridColumn = r.Grid = void 0); - var e = n(28823), - a = n(99753), - t = n(66586), - o = ['children'], - m = ['size', 'style']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function N(k, h) { - if (k == null) return {}; - var l = {}, - c = Object.keys(k), - f, - i; - for (i = 0; i < c.length; i++) - (f = c[i]), !(h.indexOf(f) >= 0) && (l[f] = k[f]); - return l; - } - var y = (r.Grid = (function () { - function k(h) { - var l = h.children, - c = N(h, o); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - a.Table, - Object.assign({}, c, { - children: (0, e.createComponentVNode)(2, a.Table.Row, { - children: l, - }), - }) - ) - ); - } - return k; - })()); - y.defaultHooks = t.pureComponentHooks; - var S = (r.GridColumn = (function () { - function k(h) { - var l = h.size, - c = l === void 0 ? 1 : l, - f = h.style, - i = N(h, m); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - a.Table.Cell, - Object.assign( - { style: Object.assign({ width: c + '%' }, f) }, - i - ) - ) - ); - } - return k; - })()); - (y.defaultHooks = t.pureComponentHooks), (y.Column = S); - }, - 69433: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.IconStack = r.Icon = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = [ - 'name', - 'size', - 'spin', - 'className', - 'style', - 'rotation', - 'inverse', - ], - m = ['className', 'style', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function N(h, l) { - if (h == null) return {}; - var c = {}, - f = Object.keys(h), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = h[i]); - return c; - } - var y = /-o$/, - S = (r.Icon = (function () { - function h(l) { - var c = l.name, - f = l.size, - i = l.spin, - u = l.className, - s = l.style, - d = s === void 0 ? {} : s, - C = l.rotation, - g = l.inverse, - v = N(l, o); - f && (d['font-size'] = f * 100 + '%'), - typeof C == 'number' && - (d.transform = 'rotate(' + C + 'deg)'); - var p = y.test(c), - V = c.replace(y, ''); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { - as: 'i', - className: (0, a.classes)([ - 'Icon', - u, - p ? 'far' : 'fas', - 'fa-' + V, - i && 'fa-spin', - ]), - style: d, - }, - v - ) - ) - ); - } - return h; - })()); - S.defaultHooks = a.pureComponentHooks; - var k = (r.IconStack = (function () { - function h(l) { - var c = l.className, - f = l.style, - i = f === void 0 ? {} : f, - u = l.children, - s = N(l, m); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { - as: 'span', - class: (0, a.classes)(['IconStack', c]), - style: i, - }, - s, - { children: u } - ) - ) - ); - } - return h; - })()); - S.Stack = k; - }, - 51190: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.toInputValue = r.Input = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(31068), - m = [ - 'selfClear', - 'onInput', - 'onChange', - 'onEnter', - 'value', - 'maxLength', - 'placeholder', - 'autofocus', - 'disabled', - 'multiline', - 'cols', - 'rows', - ], - N = ['className', 'fluid', 'monospace']; - function y(c, f) { - if (c == null) return {}; - var i = {}, - u = Object.keys(c), - s, - d; - for (d = 0; d < u.length; d++) - (s = u[d]), !(f.indexOf(s) >= 0) && (i[s] = c[s]); - return i; - } - function S(c, f) { - (c.prototype = Object.create(f.prototype)), - (c.prototype.constructor = c), - k(c, f); - } - function k(c, f) { - return ( - (k = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function i(u, s) { - return (u.__proto__ = s), u; - } - return i; - })()), - k(c, 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; - })()), - l = (r.Input = (function (c) { - S(f, c); - function f() { - var u; - return ( - (u = c.call(this) || this), - (u.inputRef = (0, e.createRef)()), - (u.state = { editing: !1 }), - (u.handleInput = function (s) { - var d = u.state.editing, - C = u.props.onInput; - d || u.setEditing(!0), C && C(s, s.target.value); - }), - (u.handleFocus = function (s) { - var d = u.state.editing; - d || u.setEditing(!0); - }), - (u.handleBlur = function (s) { - var d = u.state.editing, - C = u.props.onChange; - d && (u.setEditing(!1), C && C(s, s.target.value)); - }), - (u.handleKeyDown = function (s) { - var d = u.props, - C = d.onInput, - g = d.onChange, - v = d.onEnter; - if (s.keyCode === o.KEY_ENTER) { - u.setEditing(!1), - g && g(s, s.target.value), - C && C(s, s.target.value), - v && v(s, s.target.value), - u.props.selfClear - ? (s.target.value = '') - : s.target.blur(); - return; - } - if (s.keyCode === o.KEY_ESCAPE) { - u.setEditing(!1), - (s.target.value = p(u.props.value)), - s.target.blur(); - return; - } - }), - u - ); - } - var i = f.prototype; - return ( - (i.componentDidMount = (function () { - function u() { - var s = this, - d = this.props.value, - C = this.inputRef.current; - C && - ((C.value = p(d)), - (C.selectionStart = 0), - (C.selectionEnd = C.value.length)), - (this.props.autoFocus || this.props.autoSelect) && - setTimeout(function () { - C.focus(), s.props.autoSelect && C.select(); - }, 1); - } - return u; - })()), - (i.componentDidUpdate = (function () { - function u(s, d) { - var C = this.state.editing, - g = s.value, - v = this.props.value, - h = this.inputRef.current; - h && !C && g !== v && (h.value = p(v)); - } - return u; - })()), - (i.setEditing = (function () { - function u(s) { - this.setState({ editing: s }); - } - return u; - })()), - (i.render = (function () { - function u() { - var s = this.props, - d = s.selfClear, - C = s.onInput, - g = s.onChange, - v = s.onEnter, - h = s.value, - V = s.maxLength, - b = s.placeholder, - B = s.autofocus, - I = s.disabled, - w = s.multiline, - T = s.cols, - A = T === void 0 ? 32 : T, - x = s.rows, - E = x === void 0 ? 4 : x, - P = y(s, m), - D = P.className, - M = P.fluid, - O = P.monospace, - j = y(P, N); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { - className: (0, a.classes)([ - 'Input', - M && 'Input--fluid', - O && 'Input--monospace', - I && 'Input--disabled', - D, - ]), - }, - j, - { - children: [ - (0, e.createVNode)( - 1, - 'div', - 'Input__baseline', - '.', - 16 - ), - w - ? (0, e.createVNode)( - 128, - 'textarea', - 'Input__textarea', - null, - 1, - { - placeholder: b, - onInput: this.handleInput, - onFocus: this.handleFocus, - onBlur: this.handleBlur, - maxLength: V, - cols: A, - rows: E, - disabled: I, - }, - null, - this.inputRef - ) - : (0, e.createVNode)( - 64, - 'input', - 'Input__input', - null, - 1, - { - placeholder: b, - onInput: this.handleInput, - onFocus: this.handleFocus, - onBlur: this.handleBlur, - onKeyDown: this.handleKeyDown, - maxLength: V, - disabled: I, - }, - null, - this.inputRef - ), - ], - } - ) - ) - ); - } - return u; - })()), - f - ); - })(e.Component)); - }, - 35095: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Knob = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(93843), - m = n(41584), - N = n(43023), - y = [ - 'animated', - 'format', - 'maxValue', - 'minValue', - 'onChange', - 'onDrag', - 'step', - 'stepPixelSize', - 'suppressFlicker', - 'unit', - 'value', - 'className', - 'style', - 'fillValue', - 'color', - 'ranges', - 'size', - 'bipolar', - 'children', - 'popUpPosition', - ]; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function S(p, l) { - if (p == null) return {}; - var c = {}, - f = Object.keys(p), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = p[i]); - return c; - } - var k = (r.Knob = (function () { - function p(l) { - if (Byond.IS_LTE_IE8) - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - N.NumberInput, - Object.assign({}, l) - ) - ); - var c = l.animated, - f = l.format, - i = l.maxValue, - u = l.minValue, - s = l.onChange, - d = l.onDrag, - C = l.step, - g = l.stepPixelSize, - v = l.suppressFlicker, - h = l.unit, - V = l.value, - b = l.className, - B = l.style, - I = l.fillValue, - w = l.color, - T = l.ranges, - A = T === void 0 ? {} : T, - x = l.size, - E = x === void 0 ? 1 : x, - P = l.bipolar, - D = l.children, - M = l.popUpPosition, - O = S(l, y); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - m.DraggableControl, - Object.assign( - { dragMatrix: [0, -1] }, - { - animated: c, - format: f, - maxValue: i, - minValue: u, - onChange: s, - onDrag: d, - step: C, - stepPixelSize: g, - suppressFlicker: v, - unit: h, - value: V, - }, - { - children: (function () { - function j(F) { - var U = F.dragging, - _ = F.editing, - z = F.value, - H = F.displayValue, - $ = F.displayElement, - Y = F.inputElement, - X = F.handleDragStart, - re = (0, a.scale)(I != null ? I : H, u, i), - ae = (0, a.scale)(H, u, i), - se = - w || - (0, a.keyOfMatchingRange)(I != null ? I : z, A) || - 'default', - pe = (ae - 0.5) * 270; - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'Knob', - 'Knob--color--' + se, - P && 'Knob--bipolar', - b, - (0, o.computeBoxClassName)(O), - ]), - [ - (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(' + pe + 'deg)', - }, - } - ), - 2 - ), - U && - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'Knob__popupValue', - M && 'Knob__popupValue--' + M, - ]), - $, - 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': - ((P ? 2.75 : 2) - re * 1.5) * - Math.PI * - 50, - }, - cx: '50', - cy: '50', - r: '50', - } - ), - 2, - { viewBox: '0 0 100 100' } - ), - Y, - ], - 0, - Object.assign( - {}, - (0, o.computeBoxProps)( - Object.assign( - { - style: Object.assign( - { 'font-size': E + 'em' }, - B - ), - }, - O - ) - ), - { onMouseDown: X } - ) - ) - ); - } - return j; - })(), - } - ) - ) - ); - } - return p; - })()); - }, - 36563: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LabeledControls = void 0); - var e = n(28823), - a = n(92462), - t = ['children'], - o = ['label', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function m(S, k) { - if (S == null) return {}; - var h = {}, - l = Object.keys(S), - c, - f; - for (f = 0; f < l.length; f++) - (c = l[f]), !(k.indexOf(c) >= 0) && (h[c] = S[c]); - return h; - } - var N = (r.LabeledControls = (function () { - function S(k) { - var h = k.children, - l = m(k, t); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - a.Flex, - Object.assign( - { mx: -0.5, align: 'stretch', justify: 'space-between' }, - l, - { children: h } - ) - ) - ); - } - return S; - })()), - y = function (k) { - var h = k.label, - l = k.children, - c = m(k, 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: l, - }), - (0, e.createComponentVNode)(2, a.Flex.Item, { - color: 'label', - children: h, - }), - ], - } - ) - ) - ), - }); - }; - N.Item = y; - }, - 88488: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LabeledList = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(81878), - m = n(30341); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var N = (r.LabeledList = (function () { - function k(h) { - var l = h.children; - return (0, e.createVNode)(1, 'table', 'LabeledList', l, 0); - } - return k; - })()); - N.defaultHooks = a.pureComponentHooks; - var y = function (h) { - var l = h.className, - c = h.label, - f = h.labelColor, - i = f === void 0 ? 'label' : f, - u = h.color, - s = h.textAlign, - d = h.buttons, - C = h.tooltip, - g = h.content, - v = h.children, - p = (0, e.createVNode)( - 1, - 'tr', - (0, a.classes)(['LabeledList__row', l]), - [ - (0, e.createComponentVNode)(2, t.Box, { - as: 'td', - color: i, - className: (0, a.classes)([ - 'LabeledList__cell', - 'LabeledList__label', - ]), - children: c ? c + ':' : null, - }), - (0, e.createComponentVNode)(2, t.Box, { - as: 'td', - color: u, - textAlign: s, - className: (0, a.classes)([ - 'LabeledList__cell', - 'LabeledList__content', - ]), - colSpan: d ? void 0 : 2, - children: [g, v], - }), - d && - (0, e.createVNode)( - 1, - 'td', - 'LabeledList__cell LabeledList__buttons', - d, - 0 - ), - ], - 0 - ); - return ( - C && - (p = (0, e.createComponentVNode)(2, m.Tooltip, { - content: C, - children: p, - })), - p - ); - }; - y.defaultHooks = a.pureComponentHooks; - var S = function (h) { - var l = h.size ? (0, t.unit)(Math.max(0, h.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': l, 'padding-bottom': l } } - ), - 2 - ); - }; - (S.defaultHooks = a.pureComponentHooks), - (N.Item = y), - (N.Divider = S); - }, - 59743: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Modal = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(15148), - m = ['className', 'children', 'onEnter']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function N(S, k) { - if (S == null) return {}; - var p = {}, - l = Object.keys(S), - c, - f; - for (f = 0; f < l.length; f++) - (c = l[f]), !(k.indexOf(c) >= 0) && (p[c] = S[c]); - return p; - } - var y = (r.Modal = (function () { - function S(k) { - var p = k.className, - l = k.children, - c = k.onEnter, - f = N(k, m), - i; - return ( - c && - (i = (function () { - function u(s) { - s.keyCode === 13 && c(s); - } - return u; - })()), - (0, e.createComponentVNode)(2, o.Dimmer, { - onKeyDown: i, - children: (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Modal', - p, - (0, t.computeBoxClassName)(f), - ]), - l, - 0, - Object.assign({}, (0, t.computeBoxProps)(f)) - ) - ), - }) - ); - } - return S; - })()); - }, - 94405: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NanoMap = void 0); - var e = n(28823), - a = n(2971), - t = n(91819), - o = n(88488), - m = n(83611), - N = n(96820); - function y(s) { - if (s === void 0) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" - ); - return s; - } - function S(s, d) { - (s.prototype = Object.create(d.prototype)), - (s.prototype.constructor = s), - k(s, d); - } - function k(s, d) { - return ( - (k = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function C(g, v) { - return (g.__proto__ = v), g; - } - return C; - })()), - k(s, d) - ); - } - var p = function (d) { - return ( - d.stopPropagation && d.stopPropagation(), - d.preventDefault && d.preventDefault(), - (d.cancelBubble = !0), - (d.returnValue = !1), - !1 - ); - }, - l = (r.NanoMap = (function (s) { - S(d, s); - function d(g) { - var v; - v = s.call(this, g) || this; - var h = window.innerWidth / 2 - 256, - V = window.innerHeight / 2 - 256; - return ( - (v.state = { - offsetX: 128, - offsetY: 48, - transform: 'none', - dragging: !1, - originX: null, - originY: null, - zoom: 1, - }), - (v.handleDragStart = function (b) { - (v.ref = b.target), - v.setState({ - dragging: !1, - originX: b.screenX, - originY: b.screenY, - }), - document.addEventListener('mousemove', v.handleDragMove), - document.addEventListener('mouseup', v.handleDragEnd), - p(b); - }), - (v.handleDragMove = function (b) { - v.setState(function (B) { - var I = Object.assign({}, B), - w = b.screenX - I.originX, - T = b.screenY - I.originY; - return ( - B.dragging - ? ((I.offsetX += w), - (I.offsetY += T), - (I.originX = b.screenX), - (I.originY = b.screenY)) - : (I.dragging = !0), - I - ); - }), - p(b); - }), - (v.handleDragEnd = function (b) { - v.setState({ dragging: !1, originX: null, originY: null }), - document.removeEventListener( - 'mousemove', - v.handleDragMove - ), - document.removeEventListener('mouseup', v.handleDragEnd), - p(b); - }), - (v.handleZoom = function (b, B) { - v.setState(function (I) { - var w = Math.min(Math.max(B, 1), 8), - T = (w - I.zoom) * 1.5; - return ( - (I.zoom = w), - (I.offsetX = I.offsetX - 262 * T), - (I.offsetY = I.offsetY - 256 * T), - g.onZoom && g.onZoom(I.zoom), - I - ); - }); - }), - v - ); - } - var C = d.prototype; - return ( - (C.render = (function () { - function g() { - var v = (0, t.useBackend)(this.context), - h = v.config, - V = this.state, - b = V.dragging, - B = V.offsetX, - I = V.offsetY, - w = V.zoom, - T = w === void 0 ? 1 : w, - A = this.props.children, - x = h.map + '_nanomap_z1.png', - E = 510 * T + 'px', - P = { - width: E, - height: E, - 'margin-top': I + 'px', - 'margin-left': B + 'px', - overflow: 'hidden', - position: 'relative', - 'background-size': 'cover', - 'background-repeat': 'no-repeat', - 'text-align': 'center', - cursor: b ? 'move' : 'auto', - }, - D = { - width: '100%', - height: '100%', - position: 'absolute', - top: '50%', - left: '50%', - transform: 'translate(-50%, -50%)', - '-ms-interpolation-mode': 'nearest-neighbor', - }; - return (0, e.createComponentVNode)(2, a.Box, { - className: 'NanoMap__container', - children: [ - (0, e.createComponentVNode)(2, a.Box, { - style: P, - onMouseDown: this.handleDragStart, - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: (0, N.resolveAsset)(x), - style: D, - }), - (0, e.createComponentVNode)(2, a.Box, { - children: A, - }), - ], - }), - (0, e.createComponentVNode)(2, f, { - zoom: T, - onZoom: this.handleZoom, - }), - ], - }); - } - return g; - })()), - d - ); - })(e.Component)), - c = function (d, C) { - var g = d.x, - v = d.y, - h = d.zoom, - V = h === void 0 ? 1 : h, - b = d.icon, - B = d.tooltip, - I = d.color, - w = g * 2 * V - V - 3, - T = v * 2 * V - V - 3; - return (0, e.createVNode)( - 1, - 'div', - null, - (0, e.createComponentVNode)(2, a.Tooltip, { - content: B, - children: (0, e.createComponentVNode)(2, a.Box, { - position: 'absolute', - className: 'NanoMap__marker', - lineHeight: '0', - bottom: T + 'px', - left: w + 'px', - children: (0, e.createComponentVNode)(2, a.Icon, { - name: b, - color: I, - fontSize: '6px', - }), - }), - }), - 2 - ); - }; - l.Marker = c; - var f = function (d, C) { - return (0, e.createComponentVNode)(2, a.Box, { - className: 'NanoMap__zoomer', - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Zoom', - children: (0, e.createComponentVNode)(2, m.Slider, { - minValue: 1, - maxValue: 8, - stepPixelSize: 10, - format: (function () { - function g(v) { - return v + 'x'; - } - return g; - })(), - value: d.zoom, - onDrag: (function () { - function g(v, h) { - return d.onZoom(v, h); - } - return g; - })(), - }), - }), - }), - }); - }; - l.Zoomer = f; - var i, - u = (function (s) { - S(d, s); - function d(g) { - var v; - v = s.call(this, g) || this; - var h = (0, t.useBackend)(v.props.context), - V = h.act; - return ( - (v.state = { color: v.props.color }), - (v.handleClick = function (b) { - i !== void 0 && i.setState({ color: 'blue' }), - V('switch_camera', { name: v.props.name }), - (i = y(v)), - v.setState({ color: 'green' }); - }), - v - ); - } - var C = d.prototype; - return ( - (C.render = (function () { - function g() { - var v = - this.props.x * 2 * this.props.zoom - - this.props.zoom - - 3, - h = - this.props.y * 2 * this.props.zoom - - this.props.zoom - - 3; - return (0, e.createComponentVNode)( - 2, - a.Button, - { - onClick: this.handleClick, - position: 'absolute', - className: 'NanoMap__button', - lineHeight: '0', - color: this.props.status ? this.state.color : 'red', - bottom: h + 'px', - left: v + 'px', - children: (0, e.createComponentVNode)(2, a.Tooltip, { - content: this.props.tooltip, - }), - }, - this.props.key - ); - } - return g; - })()), - d - ); - })(e.Component); - l.NanoButton = u; - }, - 19153: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NoticeBox = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = ['className', 'color', 'info', 'warning', 'success', 'danger']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function m(y, S) { - if (y == null) return {}; - var k = {}, - h = Object.keys(y), - l, - c; - for (c = 0; c < h.length; c++) - (l = h[c]), !(S.indexOf(l) >= 0) && (k[l] = y[l]); - return k; - } - var N = (r.NoticeBox = (function () { - function y(S) { - var k = S.className, - h = S.color, - l = S.info, - c = S.warning, - f = S.success, - i = S.danger, - u = m(S, o); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { - className: (0, a.classes)([ - 'NoticeBox', - h && 'NoticeBox--color--' + h, - l && 'NoticeBox--type--info', - f && 'NoticeBox--type--success', - i && 'NoticeBox--type--danger', - k, - ]), - }, - u - ) - ) - ); - } - return y; - })()); - N.defaultHooks = a.pureComponentHooks; - }, - 43023: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NumberInput = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(15281), - m = n(93843); - function N(h, l) { - (h.prototype = Object.create(l.prototype)), - (h.prototype.constructor = h), - y(h, l); - } - function y(h, l) { - return ( - (y = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function c(f, i) { - return (f.__proto__ = i), f; - } - return c; - })()), - y(h, l) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var S = 400, - k = (r.NumberInput = (function (p) { - N(l, p); - function l(f) { - var i; - i = p.call(this, f) || this; - var u = f.value; - return ( - (i.inputRef = (0, e.createRef)()), - (i.state = { - value: u, - dragging: !1, - editing: !1, - internalValue: null, - origin: null, - suppressingFlicker: !1, - }), - (i.flickerTimer = null), - (i.suppressFlicker = function () { - var s = i.props.suppressFlicker; - s > 0 && - (i.setState({ suppressingFlicker: !0 }), - clearTimeout(i.flickerTimer), - (i.flickerTimer = setTimeout(function () { - return i.setState({ suppressingFlicker: !1 }); - }, s))); - }), - (i.handleDragStart = function (s) { - var d = i.props.value, - C = i.state.editing; - C || - ((document.body.style['pointer-events'] = 'none'), - (i.ref = s.target), - i.setState({ - dragging: !1, - origin: s.screenY, - value: d, - internalValue: d, - }), - (i.timer = setTimeout(function () { - i.setState({ dragging: !0 }); - }, 250)), - (i.dragInterval = setInterval(function () { - var g = i.state, - v = g.dragging, - h = g.value, - V = i.props.onDrag; - v && V && V(s, h); - }, i.props.updateRate || S)), - document.addEventListener('mousemove', i.handleDragMove), - document.addEventListener('mouseup', i.handleDragEnd)); - }), - (i.handleDragMove = function (s) { - var d = i.props, - C = d.minValue, - g = d.maxValue, - v = d.step, - h = d.stepPixelSize; - i.setState(function (V) { - var b = Object.assign({}, V), - B = b.origin - s.screenY; - if (V.dragging) { - var I = Number.isFinite(C) ? C % v : 0; - (b.internalValue = (0, a.clamp)( - b.internalValue + (B * v) / h, - C - v, - g + v - )), - (b.value = (0, a.clamp)( - b.internalValue - (b.internalValue % v) + I, - C, - g - )), - (b.origin = s.screenY); - } else Math.abs(B) > 4 && (b.dragging = !0); - return b; - }); - }), - (i.handleDragEnd = function (s) { - var d = i.props, - C = d.onChange, - g = d.onDrag, - v = i.state, - h = v.dragging, - V = v.value, - b = v.internalValue; - if ( - ((document.body.style['pointer-events'] = 'auto'), - clearTimeout(i.timer), - clearInterval(i.dragInterval), - i.setState({ dragging: !1, editing: !h, origin: null }), - document.removeEventListener( - 'mousemove', - i.handleDragMove - ), - document.removeEventListener('mouseup', i.handleDragEnd), - h) - ) - i.suppressFlicker(), C && C(s, V), g && g(s, V); - else if (i.inputRef) { - var B = i.inputRef.current; - B.value = b; - try { - B.focus(), B.select(); - } catch (I) {} - } - }), - i - ); - } - var c = l.prototype; - return ( - (c.render = (function () { - function f() { - var i = this, - u = this.state, - s = u.dragging, - d = u.editing, - C = u.value, - g = u.suppressingFlicker, - v = this.props, - h = v.className, - V = v.fluid, - b = v.animated, - B = v.value, - I = v.unit, - w = v.minValue, - T = v.maxValue, - A = v.height, - x = v.width, - E = v.lineHeight, - P = v.fontSize, - D = v.format, - M = v.onChange, - O = v.onDrag, - j = B; - (s || g) && (j = C); - var F = (0, e.createVNode)( - 1, - 'div', - 'NumberInput__content', - [ - b && !s && !g - ? (0, e.createComponentVNode)(2, o.AnimatedNumber, { - value: j, - format: D, - }) - : D - ? D(j) - : j, - I ? ' ' + I : '', - ], - 0, - { unselectable: Byond.IS_LTE_IE8 } - ); - return (0, e.createComponentVNode)(2, m.Box, { - className: (0, t.classes)([ - 'NumberInput', - V && 'NumberInput--fluid', - h, - ]), - minWidth: x, - minHeight: A, - lineHeight: E, - fontSize: P, - 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 - w) / (T - w)) * 100, - 0, - 100 - ) + '%', - }, - } - ), - 2 - ), - F, - (0, e.createVNode)( - 64, - 'input', - 'NumberInput__input', - null, - 1, - { - style: { - display: d ? void 0 : 'none', - height: A, - 'line-height': E, - 'font-size': P, - }, - onBlur: (function () { - function U(_) { - if (d) { - var z = (0, a.clamp)( - parseFloat(_.target.value), - w, - T - ); - if (Number.isNaN(z)) { - i.setState({ editing: !1 }); - return; - } - i.setState({ editing: !1, value: z }), - i.suppressFlicker(), - M && M(_, z), - O && O(_, z); - } - } - return U; - })(), - onKeyDown: (function () { - function U(_) { - if (_.keyCode === 13) { - var z = (0, a.clamp)( - parseFloat(_.target.value), - w, - T - ); - if (Number.isNaN(z)) { - i.setState({ editing: !1 }); - return; - } - i.setState({ editing: !1, value: z }), - i.suppressFlicker(), - M && M(_, z), - O && O(_, z); - return; - } - if (_.keyCode === 27) { - i.setState({ editing: !1 }); - return; - } - } - return U; - })(), - }, - null, - this.inputRef - ), - ], - }); - } - return f; - })()), - l - ); - })(e.Component)); - (k.defaultHooks = t.pureComponentHooks), - (k.defaultProps = { - minValue: -1 / 0, - maxValue: 1 / 0, - step: 1, - stepPixelSize: 1, - suppressFlicker: 50, - }); - }, - 21624: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Popper = void 0); - var e = n(60028), - a = n(28823); - function t(N, y) { - (N.prototype = Object.create(y.prototype)), - (N.prototype.constructor = N), - o(N, y); - } - function o(N, y) { - return ( - (o = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function S(k, p) { - return (k.__proto__ = p), k; - } - return S; - })()), - o(N, y) - ); - } - var m = (r.Popper = (function (N) { - t(y, N); - function y() { - var k; - return ( - (k = N.call(this) || this), - (k.renderedContent = void 0), - (k.popperInstance = void 0), - (y.id += 1), - k - ); - } - var S = y.prototype; - return ( - (S.componentDidMount = (function () { - function k() { - var p = this, - l = this.props, - c = l.additionalStyles, - f = l.options; - if ( - ((this.renderedContent = document.createElement('div')), c) - ) - for (var i = 0, u = Object.entries(c); i < u.length; i++) { - var s = u[i], - d = s[0], - C = s[1]; - this.renderedContent.style[d] = C; - } - this.renderPopperContent(function () { - document.body.appendChild(p.renderedContent), - (p.popperInstance = (0, e.createPopper)( - (0, a.findDOMfromVNode)(p.$LI, !0), - p.renderedContent, - f - )); - }); - } - return k; - })()), - (S.componentDidUpdate = (function () { - function k() { - var p = this; - this.renderPopperContent(function () { - var l; - return (l = p.popperInstance) == null ? void 0 : l.update(); - }); - } - return k; - })()), - (S.componentWillUnmount = (function () { - function k() { - var p, - l = this; - (p = this.popperInstance) == null || p.destroy(), - (0, a.render)(null, this.renderedContent, function () { - l.renderedContent.remove(); - }); - } - return k; - })()), - (S.renderPopperContent = (function () { - function k(p) { - (0, a.render)( - this.props.popperContent, - this.renderedContent, - p - ); - } - return k; - })()), - (S.render = (function () { - function k() { - return this.props.children; - } - return k; - })()), - y - ); - })(a.Component)); - m.id = 0; - }, - 24273: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.ProgressBarCountdown = r.ProgressBar = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(93843), - m = [ - 'className', - 'value', - 'minValue', - 'maxValue', - 'color', - 'ranges', - 'children', - 'fractionDigits', - ], - N = ['start', 'current', 'end']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function y(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 () { - function i(u, s) { - return (u.__proto__ = s), u; - } - return i; - })()), - S(c, f) - ); - } - function k(c, f) { - if (c == null) return {}; - var i = {}, - u = Object.keys(c), - s, - d; - for (d = 0; d < u.length; d++) - (s = u[d]), !(f.indexOf(s) >= 0) && (i[s] = c[s]); - return i; - } - var h = (r.ProgressBar = (function () { - function c(f) { - var i = f.className, - u = f.value, - s = f.minValue, - d = s === void 0 ? 0 : s, - C = f.maxValue, - g = C === void 0 ? 1 : C, - v = f.color, - p = f.ranges, - V = p === void 0 ? {} : p, - b = f.children, - B = f.fractionDigits, - I = B === void 0 ? 0 : B, - w = k(f, m), - T = (0, a.scale)(u, d, g), - A = b !== void 0, - x = v || (0, a.keyOfMatchingRange)(u, V) || 'default'; - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'ProgressBar', - 'ProgressBar--color--' + x, - i, - (0, o.computeBoxClassName)(w), - ]), - [ - (0, e.createVNode)( - 1, - 'div', - 'ProgressBar__fill ProgressBar__fill--animated', - null, - 1, - { style: { width: (0, a.clamp01)(T) * 100 + '%' } } - ), - (0, e.createVNode)( - 1, - 'div', - 'ProgressBar__content', - A ? b : (0, a.toFixed)(T * 100, I) + '%', - 0 - ), - ], - 4, - Object.assign({}, (0, o.computeBoxProps)(w)) - ) - ); - } - return c; - })()); - h.defaultHooks = t.pureComponentHooks; - var l = (r.ProgressBarCountdown = (function (c) { - y(f, c); - function f(u) { - var s; - return ( - (s = c.call(this, u) || this), - (s.timer = null), - (s.state = { value: Math.max(u.current * 100, 0) }), - s - ); - } - var i = f.prototype; - return ( - (i.tick = (function () { - function u() { - var s = Math.max(this.state.value + this.props.rate, 0); - s <= 0 && clearInterval(this.timer), - this.setState(function (d) { - return { value: s }; - }); - } - return u; - })()), - (i.componentDidMount = (function () { - function u() { - var s = this; - this.timer = setInterval(function () { - return s.tick(); - }, this.props.rate); - } - return u; - })()), - (i.componentWillUnmount = (function () { - function u() { - clearInterval(this.timer); - } - return u; - })()), - (i.render = (function () { - function u() { - var s = this.props, - d = s.start, - C = s.current, - g = s.end, - v = k(s, N), - p = (this.state.value / 100 - d) / (g - d); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - h, - Object.assign({ value: p }, v) - ) - ); - } - return u; - })()), - f - ); - })(e.Component)); - (l.defaultProps = { rate: 1e3 }), (h.Countdown = l); - }, - 49421: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RestrictedInput = void 0); - var e = n(28823), - a = n(66586), - t = n(58331), - o = n(93843), - m = n(31068), - N = ['onChange', 'onEnter', 'onInput', 'value'], - y = ['className', 'fluid', 'monospace']; - function S(u, s) { - if (u == null) return {}; - var d = {}, - C = Object.keys(u), - g, - v; - for (v = 0; v < C.length; v++) - (g = C[v]), !(s.indexOf(g) >= 0) && (d[g] = u[g]); - return d; - } - function k(u, s) { - (u.prototype = Object.create(s.prototype)), - (u.prototype.constructor = u), - h(u, s); - } - function h(u, s) { - return ( - (h = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function d(C, g) { - return (C.__proto__ = g), C; - } - return d; - })()), - h(u, s) - ); - } - var l = 0, - c = 1e4, - f = function (s, d, C, g) { - var v = d || l, - p = C || C === 0 ? C : c; - if (!s || !s.length) return String(v); - var V = g - ? parseFloat(s.replace(/[^\-\d.]/g, '')) - : parseInt(s.replace(/[^\-\d]/g, ''), 10); - return isNaN(V) ? String(v) : String((0, t.clamp)(V, v, p)); - }, - i = (r.RestrictedInput = (function (u) { - k(s, u); - function s() { - var C; - return ( - (C = u.call(this) || this), - (C.inputRef = (0, e.createRef)()), - (C.state = { editing: !1 }), - (C.handleBlur = function (g) { - var v = C.state.editing; - v && C.setEditing(!1); - }), - (C.handleChange = function (g) { - var v = C.props, - p = v.maxValue, - V = v.minValue, - b = v.onChange, - B = v.allowFloats; - (g.target.value = f(g.target.value, V, p, B)), - b && b(g, +g.target.value); - }), - (C.handleFocus = function (g) { - var v = C.state.editing; - v || C.setEditing(!0); - }), - (C.handleInput = function (g) { - var v = C.state.editing, - p = C.props.onInput; - v || C.setEditing(!0), p && p(g, +g.target.value); - }), - (C.handleKeyDown = function (g) { - var v = C.props, - p = v.maxValue, - V = v.minValue, - b = v.onChange, - B = v.onEnter, - I = v.allowFloats; - if (g.keyCode === m.KEY_ENTER) { - var w = f(g.target.value, V, p, I); - C.setEditing(!1), - b && b(g, +w), - B && B(g, +w), - g.target.blur(); - return; - } - if (g.keyCode === m.KEY_ESCAPE) { - if (C.props.onEscape) { - C.props.onEscape(g); - return; - } - C.setEditing(!1), - (g.target.value = C.props.value), - g.target.blur(); - return; - } - }), - C - ); - } - var d = s.prototype; - return ( - (d.componentDidMount = (function () { - function C() { - var g, - v = this, - p = this.props, - V = p.maxValue, - b = p.minValue, - B = p.allowFloats, - I = - (g = this.props.value) == null ? void 0 : g.toString(), - w = this.inputRef.current; - w && (w.value = f(I, b, V, B)), - (this.props.autoFocus || this.props.autoSelect) && - setTimeout(function () { - w.focus(), v.props.autoSelect && w.select(); - }, 1); - } - return C; - })()), - (d.componentDidUpdate = (function () { - function C(g, v) { - var p, - V, - b = this.props, - B = b.maxValue, - I = b.minValue, - w = b.allowFloats, - T = this.state.editing, - A = (p = g.value) == null ? void 0 : p.toString(), - x = - (V = this.props.value) == null ? void 0 : V.toString(), - E = this.inputRef.current; - E && - !T && - x !== A && - x !== E.value && - (E.value = f(x, I, B, w)); - } - return C; - })()), - (d.setEditing = (function () { - function C(g) { - this.setState({ editing: g }); - } - return C; - })()), - (d.render = (function () { - function C() { - var g = this.props, - v = g.onChange, - p = g.onEnter, - V = g.onInput, - b = g.value, - B = S(g, N), - I = B.className, - w = B.fluid, - T = B.monospace, - A = S(B, y); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Box, - Object.assign( - { - className: (0, a.classes)([ - 'Input', - w && 'Input--fluid', - T && 'Input--monospace', - I, - ]), - }, - A, - { - children: [ - (0, e.createVNode)( - 1, - 'div', - 'Input__baseline', - '.', - 16 - ), - (0, e.createVNode)( - 64, - 'input', - 'Input__input', - null, - 1, - { - onChange: this.handleChange, - onInput: this.handleInput, - onFocus: this.handleFocus, - onBlur: this.handleBlur, - onKeyDown: this.handleKeyDown, - type: 'number', - }, - null, - this.inputRef - ), - ], - } - ) - ) - ); - } - return C; - })()), - s - ); - })(e.Component)); - }, - 37479: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RoundGauge = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(15281), - m = n(93843), - N = [ - 'value', - 'minValue', - 'maxValue', - 'ranges', - 'alertAfter', - 'format', - 'size', - 'className', - 'style', - ]; - /** - * @file - * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) - * @license MIT - */ function y(k, h) { - if (k == null) return {}; - var l = {}, - c = Object.keys(k), - f, - i; - for (i = 0; i < c.length; i++) - (f = c[i]), !(h.indexOf(f) >= 0) && (l[f] = k[f]); - return l; - } - var S = (r.RoundGauge = (function () { - function k(h) { - if (Byond.IS_LTE_IE8) - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - Object.assign({}, h) - ) - ); - var l = h.value, - c = h.minValue, - f = c === void 0 ? 1 : c, - i = h.maxValue, - u = i === void 0 ? 1 : i, - s = h.ranges, - d = h.alertAfter, - C = h.format, - g = h.size, - v = g === void 0 ? 1 : g, - p = h.className, - V = h.style, - b = y(h, N), - B = (0, a.scale)(l, f, u), - I = (0, a.clamp01)(B), - w = s ? {} : { primary: [0, 1] }; - s && - Object.keys(s).forEach(function (A) { - var x = s[A]; - w[A] = [(0, a.scale)(x[0], f, u), (0, a.scale)(x[1], f, u)]; - }); - var T = null; - return ( - d < l && (T = (0, a.keyOfMatchingRange)(I, w)), - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - children: [ - (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'RoundGauge', - p, - (0, m.computeBoxClassName)(b), - ]), - (0, e.createVNode)( - 32, - 'svg', - null, - [ - d && - (0, e.createVNode)( - 32, - 'g', - (0, t.classes)([ - 'RoundGauge__alert', - T ? 'active RoundGauge__alert--' + T : '', - ]), - (0, e.createVNode)(32, 'path', null, null, 1, { - d: 'M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z', - }), - 2 - ), - (0, e.createVNode)( - 32, - 'g', - null, - (0, e.createVNode)( - 32, - 'circle', - 'RoundGauge__ringTrack', - null, - 1, - { cx: '50', cy: '50', r: '45' } - ), - 2 - ), - (0, e.createVNode)( - 32, - 'g', - null, - Object.keys(w).map(function (A, x) { - var E = w[A]; - return (0, e.createVNode)( - 32, - 'circle', - 'RoundGauge__ringFill RoundGauge--color--' + - A, - null, - 1, - { - style: { - 'stroke-dashoffset': Math.max( - (2 - (E[1] - E[0])) * Math.PI * 50, - 0 - ), - }, - transform: - 'rotate(' + - (180 + 180 * E[0]) + - ' 50 50)', - cx: '50', - cy: '50', - r: '45', - }, - x - ); - }), - 0 - ), - (0, e.createVNode)( - 32, - 'g', - 'RoundGauge__needle', - [ - (0, e.createVNode)( - 32, - 'polygon', - 'RoundGauge__needleLine', - null, - 1, - { points: '46,50 50,0 54,50' } - ), - (0, e.createVNode)( - 32, - 'circle', - 'RoundGauge__needleMiddle', - null, - 1, - { cx: '50', cy: '50', r: '8' } - ), - ], - 4, - { - transform: - 'rotate(' + (I * 180 - 90) + ' 50 50)', - } - ), - ], - 0, - { viewBox: '0 0 100 50' } - ), - 2, - Object.assign( - {}, - (0, m.computeBoxProps)( - Object.assign( - { - style: Object.assign( - { 'font-size': v + 'em' }, - V - ), - }, - b - ) - ) - ) - ) - ), - (0, e.createComponentVNode)(2, o.AnimatedNumber, { - value: l, - format: C, - size: v, - }), - ], - }) - ); - } - return k; - })()); - }, - 43308: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Section = void 0); - var e = n(28823), - a = n(66586), - t = n(33053), - o = n(93843), - m = [ - 'className', - 'title', - 'buttons', - 'fill', - 'fitted', - 'scrollable', - 'children', - ]; - function N(h, l) { - if (h == null) return {}; - var c = {}, - f = Object.keys(h), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = h[i]); - return c; - } - function y(h, l) { - (h.prototype = Object.create(l.prototype)), - (h.prototype.constructor = h), - S(h, l); - } - function S(h, l) { - return ( - (S = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function c(f, i) { - return (f.__proto__ = i), f; - } - return c; - })()), - S(h, l) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var k = (r.Section = (function (h) { - y(l, h); - function l(f) { - var i; - return ( - (i = h.call(this, f) || this), - (i.scrollableRef = void 0), - (i.scrollable = void 0), - (i.scrollableRef = (0, e.createRef)()), - (i.scrollable = f.scrollable), - i - ); - } - var c = l.prototype; - return ( - (c.componentDidMount = (function () { - function f() { - this.scrollable && - (0, t.addScrollableNode)(this.scrollableRef.current); - } - return f; - })()), - (c.componentWillUnmount = (function () { - function f() { - this.scrollable && - (0, t.removeScrollableNode)(this.scrollableRef.current); - } - return f; - })()), - (c.render = (function () { - function f() { - var i = this.props, - u = i.className, - s = i.title, - d = i.buttons, - C = i.fill, - g = i.fitted, - v = i.scrollable, - p = i.children, - V = N(i, m), - b = (0, a.canRender)(s) || (0, a.canRender)(d); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Section', - Byond.IS_LTE_IE8 && 'Section--iefix', - C && 'Section--fill', - g && 'Section--fitted', - v && 'Section--scrollable', - u, - (0, o.computeBoxClassName)(V), - ]), - [ - b && - (0, e.createVNode)( - 1, - 'div', - 'Section__title', - [ - (0, e.createVNode)( - 1, - 'span', - 'Section__titleText', - s, - 0 - ), - (0, e.createVNode)( - 1, - 'div', - 'Section__buttons', - d, - 0 - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'div', - 'Section__rest', - (0, e.createVNode)( - 1, - 'div', - 'Section__content', - p, - 0, - null, - null, - this.scrollableRef - ), - 2 - ), - ], - 0, - Object.assign({}, (0, o.computeBoxProps)(V)) - ) - ); - } - return f; - })()), - l - ); - })(e.Component)); - }, - 83611: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Slider = void 0); - var e = n(28823), - a = n(58331), - t = n(66586), - o = n(93843), - m = n(41584), - N = n(43023), - y = [ - 'animated', - 'format', - 'maxValue', - 'minValue', - 'onChange', - 'onDrag', - 'step', - 'stepPixelSize', - 'suppressFlicker', - 'unit', - 'value', - 'className', - 'fillValue', - 'color', - 'ranges', - 'children', - 'disabled', - ]; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function S(p, l) { - if (p == null) return {}; - var c = {}, - f = Object.keys(p), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = p[i]); - return c; - } - var k = (r.Slider = (function () { - function p(l) { - if (Byond.IS_LTE_IE8) - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - N.NumberInput, - Object.assign({}, l) - ) - ); - var c = l.animated, - f = l.format, - i = l.maxValue, - u = l.minValue, - s = l.onChange, - d = l.onDrag, - C = l.step, - g = l.stepPixelSize, - v = l.suppressFlicker, - h = l.unit, - V = l.value, - b = l.className, - B = l.fillValue, - I = l.color, - w = l.ranges, - T = w === void 0 ? {} : w, - A = l.children, - x = l.disabled, - E = S(l, y), - P = A !== void 0; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - m.DraggableControl, - Object.assign( - { dragMatrix: [1, 0] }, - { - animated: c, - format: f, - maxValue: i, - minValue: u, - onChange: s, - onDrag: d, - step: C, - stepPixelSize: g, - suppressFlicker: v, - unit: h, - value: V, - disabled: x, - }, - { - children: (function () { - function D(M) { - var O = M.dragging, - j = M.editing, - F = M.value, - U = M.displayValue, - _ = M.displayElement, - z = M.inputElement, - H = M.handleDragStart, - $ = B != null, - Y = (0, a.scale)(F, u, i), - X = (0, a.scale)(B != null ? B : U, u, i), - re = (0, a.scale)(U, u, i), - ae = - I || - (0, a.keyOfMatchingRange)(B != null ? B : F, T) || - 'default'; - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'Slider', - x && 'Slider__disabled', - 'ProgressBar', - x - ? 'ProgressBar--color--disabled' - : 'ProgressBar--color--' + ae, - b, - (0, o.computeBoxClassName)(E), - ]), - [ - (0, e.createVNode)( - 1, - 'div', - (0, t.classes)([ - 'ProgressBar__fill', - $ && 'ProgressBar__fill--animated', - ]), - null, - 1, - { - style: { - width: (0, a.clamp01)(X) * 100 + '%', - opacity: 0.4, - }, - } - ), - (0, e.createVNode)( - 1, - 'div', - 'ProgressBar__fill', - null, - 1, - { - style: { - width: - (0, a.clamp01)(Math.min(X, re)) * 100 + - '%', - }, - } - ), - (0, e.createVNode)( - 1, - 'div', - 'Slider__cursorOffset', - [ - (0, e.createVNode)( - 1, - 'div', - 'Slider__cursor' - ), - (0, e.createVNode)( - 1, - 'div', - 'Slider__pointer' - ), - O && - (0, e.createVNode)( - 1, - 'div', - 'Slider__popupValue', - _, - 0 - ), - ], - 0, - { - style: { - width: (0, a.clamp01)(re) * 100 + '%', - }, - } - ), - (0, e.createVNode)( - 1, - 'div', - 'ProgressBar__content', - P ? A : _, - 0 - ), - z, - ], - 0, - Object.assign( - { disabled: x }, - (0, o.computeBoxProps)(E), - { onMouseDown: H } - ) - ) - ); - } - return D; - })(), - } - ) - ) - ); - } - return p; - })()); - }, - 78581: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Stack = void 0); - var e = n(28823), - a = n(66586), - t = n(92462), - o = ['className', 'vertical', 'fill'], - m = ['className', 'innerRef'], - N = ['className', 'hidden']; - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ function y(l, c) { - if (l == null) return {}; - var f = {}, - i = Object.keys(l), - u, - s; - for (s = 0; s < i.length; s++) - (u = i[s]), !(c.indexOf(u) >= 0) && (f[u] = l[u]); - return f; - } - var S = (r.Stack = (function () { - function l(c) { - var f = c.className, - i = c.vertical, - u = c.fill, - s = y(c, o); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Stack', - u && 'Stack--fill', - i ? 'Stack--vertical' : 'Stack--horizontal', - f, - (0, t.computeFlexClassName)(c), - ]), - null, - 1, - Object.assign( - {}, - (0, t.computeFlexProps)( - Object.assign({ direction: i ? 'column' : 'row' }, s) - ) - ) - ) - ); - } - return l; - })()), - k = function (c) { - var f = c.className, - i = c.innerRef, - u = y(c, m); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Stack__item', - f, - (0, t.computeFlexItemClassName)(u), - ]), - null, - 1, - Object.assign({}, (0, t.computeFlexItemProps)(u)), - null, - i - ) - ); - }; - S.Item = k; - var h = function (c) { - var f = c.className, - i = c.hidden, - u = y(c, N); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Stack__item', - 'Stack__divider', - i && 'Stack__divider--hidden', - f, - (0, t.computeFlexItemClassName)(u), - ]), - null, - 1, - Object.assign({}, (0, t.computeFlexItemProps)(u)) - ) - ); - }; - S.Divider = h; - }, - 99753: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TableRow = r.TableCell = r.Table = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = ['className', 'collapsing', 'children'], - m = ['className', 'header'], - N = ['className', 'collapsing', 'header']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function y(l, c) { - if (l == null) return {}; - var f = {}, - i = Object.keys(l), - u, - s; - for (s = 0; s < i.length; s++) - (u = i[s]), !(c.indexOf(u) >= 0) && (f[u] = l[u]); - return f; - } - var S = (r.Table = (function () { - function l(c) { - var f = c.className, - i = c.collapsing, - u = c.children, - s = y(c, o); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'table', - (0, a.classes)([ - 'Table', - i && 'Table--collapsing', - f, - (0, t.computeBoxClassName)(s), - ]), - (0, e.createVNode)(1, 'tbody', null, u, 0), - 2, - Object.assign({}, (0, t.computeBoxProps)(s)) - ) - ); - } - return l; - })()); - S.defaultHooks = a.pureComponentHooks; - var k = (r.TableRow = (function () { - function l(c) { - var f = c.className, - i = c.header, - u = y(c, m); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'tr', - (0, a.classes)([ - 'Table__row', - i && 'Table__row--header', - f, - (0, t.computeBoxClassName)(c), - ]), - null, - 1, - Object.assign({}, (0, t.computeBoxProps)(u)) - ) - ); - } - return l; - })()); - k.defaultHooks = a.pureComponentHooks; - var h = (r.TableCell = (function () { - function l(c) { - var f = c.className, - i = c.collapsing, - u = c.header, - s = y(c, N); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'td', - (0, a.classes)([ - 'Table__cell', - i && 'Table__cell--collapsing', - u && 'Table__cell--header', - f, - (0, t.computeBoxClassName)(c), - ]), - null, - 1, - Object.assign({}, (0, t.computeBoxProps)(s)) - ) - ); - } - return l; - })()); - (h.defaultHooks = a.pureComponentHooks), (S.Row = k), (S.Cell = h); - }, - 96517: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Tabs = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(69433), - m = ['className', 'vertical', 'fill', 'fluid', 'children'], - N = [ - 'className', - 'selected', - 'color', - 'icon', - 'leftSlot', - 'rightSlot', - 'children', - ]; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function y(h, l) { - if (h == null) return {}; - var c = {}, - f = Object.keys(h), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = h[i]); - return c; - } - var S = (r.Tabs = (function () { - function h(l) { - var c = l.className, - f = l.vertical, - i = l.fill, - u = l.fluid, - s = l.children, - d = y(l, m); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Tabs', - f ? 'Tabs--vertical' : 'Tabs--horizontal', - i && 'Tabs--fill', - u && 'Tabs--fluid', - c, - (0, t.computeBoxClassName)(d), - ]), - s, - 0, - Object.assign({}, (0, t.computeBoxProps)(d)) - ) - ); - } - return h; - })()), - k = function (l) { - var c = l.className, - f = l.selected, - i = l.color, - u = l.icon, - s = l.leftSlot, - d = l.rightSlot, - C = l.children, - g = y(l, N); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Tab', - 'Tabs__Tab', - 'Tab--color--' + i, - f && 'Tab--selected', - c, - (0, t.computeBoxClassName)(g), - ]), - [ - ((0, a.canRender)(s) && - (0, e.createVNode)(1, 'div', 'Tab__left', s, 0)) || - (!!u && - (0, e.createVNode)( - 1, - 'div', - 'Tab__left', - (0, e.createComponentVNode)(2, o.Icon, { name: u }), - 2 - )), - (0, e.createVNode)(1, 'div', 'Tab__text', C, 0), - (0, a.canRender)(d) && - (0, e.createVNode)(1, 'div', 'Tab__right', d, 0), - ], - 0, - Object.assign({}, (0, t.computeBoxProps)(g)) - ) - ); - }; - S.Tab = k; - }, - 12764: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TextArea = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(51190), - m = n(31068), - N = [ - 'onChange', - 'onKeyDown', - 'onKeyPress', - 'onInput', - 'onFocus', - 'onBlur', - 'onEnter', - 'value', - 'maxLength', - 'placeholder', - ], - y = ['className', 'fluid']; - function S(c, f) { - if (c == null) return {}; - var i = {}, - u = Object.keys(c), - s, - d; - for (d = 0; d < u.length; d++) - (s = u[d]), !(f.indexOf(s) >= 0) && (i[s] = c[s]); - return i; - } - function k(c, f) { - (c.prototype = Object.create(f.prototype)), - (c.prototype.constructor = c), - h(c, f); - } - function h(c, f) { - return ( - (h = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function i(u, s) { - return (u.__proto__ = s), u; - } - return i; - })()), - h(c, f) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @author Warlockd - * @license MIT - */ var l = (r.TextArea = (function (c) { - k(f, c); - function f(u, s) { - var d; - (d = c.call(this, u, s) || this), - (d.textareaRef = u.innerRef || (0, e.createRef)()), - (d.fillerRef = (0, e.createRef)()), - (d.state = { editing: !1 }); - var C = u.dontUseTabForIndent, - g = C === void 0 ? !1 : C; - return ( - (d.handleOnInput = function (v) { - var h = d.state.editing, - V = d.props.onInput; - h || d.setEditing(!0), V && V(v, v.target.value); - }), - (d.handleOnChange = function (v) { - var h = d.state.editing, - V = d.props.onChange; - h && d.setEditing(!1), V && V(v, v.target.value); - }), - (d.handleKeyPress = function (v) { - var h = d.state.editing, - V = d.props.onKeyPress; - h || d.setEditing(!0), V && V(v, v.target.value); - }), - (d.handleKeyDown = function (v) { - var h = d.state.editing, - V = d.props, - b = V.onChange, - B = V.onInput, - I = V.onEnter, - w = V.onKeyDown; - if (v.keyCode === m.KEY_ENTER) { - d.setEditing(!1), - b && b(v, v.target.value), - B && B(v, v.target.value), - I && I(v, v.target.value), - d.props.selfClear && - ((v.target.value = ''), v.target.blur()); - return; - } - if (v.keyCode === m.KEY_ESCAPE) { - d.props.onEscape && d.props.onEscape(v), - d.setEditing(!1), - d.props.selfClear - ? (v.target.value = '') - : ((v.target.value = (0, o.toInputValue)( - d.props.value - )), - v.target.blur()); - return; - } - if ((h || d.setEditing(!0), w && w(v, v.target.value), !g)) { - var T = v.keyCode || v.which; - if (T === m.KEY_TAB) { - v.preventDefault(); - var A = v.target, - x = A.value, - E = A.selectionStart, - P = A.selectionEnd; - (v.target.value = - x.substring(0, E) + ' ' + x.substring(P)), - (v.target.selectionEnd = E + 1); - } - } - }), - (d.handleFocus = function (v) { - var h = d.state.editing; - h || d.setEditing(!0); - }), - (d.handleBlur = function (v) { - var h = d.state.editing, - V = d.props.onChange; - h && (d.setEditing(!1), V && V(v, v.target.value)); - }), - d - ); - } - var i = f.prototype; - return ( - (i.componentDidMount = (function () { - function u() { - var s = this, - d = this.props.value, - C = this.textareaRef.current; - C && (C.value = (0, o.toInputValue)(d)), - (this.props.autoFocus || this.props.autoSelect) && - setTimeout(function () { - C.focus(), s.props.autoSelect && C.select(); - }, 1); - } - return u; - })()), - (i.componentDidUpdate = (function () { - function u(s, d) { - var C = s.value, - g = this.props.value, - v = this.textareaRef.current; - v && - typeof g == 'string' && - C !== g && - (v.value = (0, o.toInputValue)(g)); - } - return u; - })()), - (i.setEditing = (function () { - function u(s) { - this.setState({ editing: s }); - } - return u; - })()), - (i.getValue = (function () { - function u() { - return ( - this.textareaRef.current && this.textareaRef.current.value - ); - } - return u; - })()), - (i.render = (function () { - function u() { - var s = this.props, - d = s.onChange, - C = s.onKeyDown, - g = s.onKeyPress, - v = s.onInput, - h = s.onFocus, - V = s.onBlur, - b = s.onEnter, - B = s.value, - I = s.maxLength, - w = s.placeholder, - T = S(s, N), - A = T.className, - x = T.fluid, - E = S(T, y); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Box, - Object.assign( - { - className: (0, a.classes)([ - 'TextArea', - x && 'TextArea--fluid', - A, - ]), - }, - E, - { - children: (0, e.createVNode)( - 128, - 'textarea', - 'TextArea__textarea', - null, - 1, - { - placeholder: w, - onChange: this.handleOnChange, - onKeyDown: this.handleKeyDown, - onKeyPress: this.handleKeyPress, - onInput: this.handleOnInput, - onFocus: this.handleFocus, - onBlur: this.handleBlur, - maxLength: I, - }, - null, - this.textareaRef - ), - } - ) - ) - ); - } - return u; - })()), - f - ); - })(e.Component)); - }, - 71218: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.TimeDisplay = void 0); - var n = function (t) { - (!t || t < 0) && (t = 0); - var o = Math.floor(t / 60).toString(10), - m = (Math.floor(t) % 60).toString(10); - return [o, m] - .map(function (N) { - return N.length < 2 ? '0' + N : N; - }) - .join(':'); - }, - e = (r.TimeDisplay = (function () { - function a(t) { - var o = t.totalSeconds, - m = o === void 0 ? 0 : o; - return n(m); - } - return a; - })()); - }, - 30341: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Tooltip = void 0); - var e = n(28823), - a = n(60028), - t; - function o(k, p) { - (k.prototype = Object.create(p.prototype)), - (k.prototype.constructor = k), - m(k, p); - } - function m(k, p) { - return ( - (m = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function l(c, f) { - return (c.__proto__ = f), c; - } - return l; - })()), - m(k, p) - ); - } - var N = { modifiers: [{ name: 'eventListeners', enabled: !1 }] }, - y = { - width: 0, - height: 0, - top: 0, - right: 0, - bottom: 0, - left: 0, - x: 0, - y: 0, - toJSON: (function () { - function k() { - return null; - } - return k; - })(), - }, - S = (r.Tooltip = (function (k) { - o(p, k); - function p() { - return k.apply(this, arguments) || this; - } - var l = p.prototype; - return ( - (l.getDOMNode = (function () { - function c() { - return (0, e.findDOMfromVNode)(this.$LI, !0); - } - return c; - })()), - (l.componentDidMount = (function () { - function c() { - var f = this, - i = this.getDOMNode(); - i && - (i.addEventListener('mouseenter', function () { - var u = p.renderedTooltip; - u === void 0 && - ((u = document.createElement('div')), - (u.className = 'Tooltip'), - document.body.appendChild(u), - (p.renderedTooltip = u)), - (p.currentHoveredElement = i), - (u.style.opacity = '1'), - f.renderPopperContent(); - }), - i.addEventListener('mouseleave', function () { - f.fadeOut(); - })); - } - return c; - })()), - (l.fadeOut = (function () { - function c() { - p.currentHoveredElement === this.getDOMNode() && - ((p.currentHoveredElement = void 0), - (p.renderedTooltip.style.opacity = '0')); - } - return c; - })()), - (l.renderPopperContent = (function () { - function c() { - var f = this, - i = p.renderedTooltip; - i && - (0, e.render)( - (0, e.createVNode)( - 1, - 'span', - null, - this.props.content, - 0 - ), - i, - function () { - var u = p.singletonPopper; - u === void 0 - ? ((u = (0, a.createPopper)( - p.virtualElement, - i, - Object.assign({}, N, { - placement: f.props.position || 'auto', - }) - )), - (p.singletonPopper = u)) - : (u.setOptions( - Object.assign({}, N, { - placement: f.props.position || 'auto', - }) - ), - u.update()); - }, - this.context - ); - } - return c; - })()), - (l.componentDidUpdate = (function () { - function c() { - p.currentHoveredElement === this.getDOMNode() && - this.renderPopperContent(); - } - return c; - })()), - (l.componentWillUnmount = (function () { - function c() { - this.fadeOut(); - } - return c; - })()), - (l.render = (function () { - function c() { - return this.props.children; - } - return c; - })()), - p - ); - })(e.Component)); - (t = S), - (S.renderedTooltip = void 0), - (S.singletonPopper = void 0), - (S.currentHoveredElement = void 0), - (S.virtualElement = { - getBoundingClientRect: (function () { - function k() { - var p, l; - return (p = - (l = t.currentHoveredElement) == null - ? void 0 - : l.getBoundingClientRect()) != null - ? p - : y; - } - return k; - })(), - }); - }, - 2971: function (L, 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.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(15281); - r.AnimatedNumber = e.AnimatedNumber; - var a = n(81789); - r.Autofocus = a.Autofocus; - var t = n(11316); - r.Blink = t.Blink; - var o = n(26558); - r.BlockQuote = o.BlockQuote; - var m = n(93843); - r.Box = m.Box; - var N = n(16699); - r.Button = N.Button; - var y = n(75614); - r.ByondUi = y.ByondUi; - var S = n(2909); - r.Chart = S.Chart; - var k = n(52760); - r.Collapsible = k.Collapsible; - var p = n(25762); - r.ColorBox = p.ColorBox; - var l = n(73712); - r.Countdown = l.Countdown; - var c = n(15148); - r.Dimmer = c.Dimmer; - var f = n(81878); - r.Divider = f.Divider; - var i = n(41584); - r.DraggableControl = i.DraggableControl; - var u = n(99936); - r.Dropdown = u.Dropdown; - var s = n(92462); - r.Flex = s.Flex; - var d = n(81753); - r.Grid = d.Grid; - var C = n(69433); - r.Icon = C.Icon; - var g = n(51190); - r.Input = g.Input; - var v = n(35095); - r.Knob = v.Knob; - var h = n(36563); - r.LabeledControls = h.LabeledControls; - var V = n(88488); - r.LabeledList = V.LabeledList; - var b = n(59743); - r.Modal = b.Modal; - var B = n(94405); - r.NanoMap = B.NanoMap; - var I = n(19153); - r.NoticeBox = I.NoticeBox; - var w = n(43023); - r.NumberInput = w.NumberInput; - var T = n(21624); - r.Popper = T.Popper; - var A = n(24273); - r.ProgressBar = A.ProgressBar; - var x = n(49421); - r.RestrictedInput = x.RestrictedInput; - var E = n(37479); - r.RoundGauge = E.RoundGauge; - var P = n(43308); - r.Section = P.Section; - var D = n(83611); - r.Slider = D.Slider; - var M = n(78581); - r.Stack = M.Stack; - var O = n(99753); - r.Table = O.Table; - var j = n(96517); - r.Tabs = j.Tabs; - var F = n(12764); - r.TextArea = F.TextArea; - var U = n(71218); - r.TimeDisplay = U.TimeDisplay; - var _ = n(30341); - r.Tooltip = _.Tooltip; - }, - 30381: function (L, 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', - other: '#C38312', - }, - damageType: { - oxy: '#3498db', - toxin: '#2ecc71', - burn: '#e67e22', - brute: '#e74c3c', - }, - }), - m = (r.CSS_COLORS = [ - 'black', - 'white', - 'red', - 'orange', - 'yellow', - 'olive', - 'green', - 'teal', - 'blue', - 'violet', - 'purple', - 'pink', - 'brown', - 'grey', - 'good', - 'average', - 'bad', - 'label', - ]), - N = (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' }, - ]), - y = [ - { id: 'o2', name: 'Oxygen', label: 'O\u2082', color: 'blue' }, - { id: 'n2', name: 'Nitrogen', label: 'N\u2082', color: 'red' }, - { - id: 'co2', - name: 'Carbon Dioxide', - label: 'CO\u2082', - color: 'grey', - }, - { id: 'plasma', name: 'Plasma', label: 'Plasma', color: 'pink' }, - { - id: 'water_vapor', - name: 'Water Vapor', - label: 'H\u2082O', - color: 'grey', - }, - { - id: 'nob', - name: 'Hyper-noblium', - label: 'Hyper-nob', - color: 'teal', - }, - { - id: 'n2o', - name: 'Nitrous Oxide', - label: 'N\u2082O', - color: 'red', - }, - { id: 'no2', name: 'Nitryl', label: 'NO\u2082', color: 'brown' }, - { - id: 'tritium', - name: 'Tritium', - label: 'Tritium', - color: 'green', - }, - { id: 'bz', name: 'BZ', label: 'BZ', color: 'purple' }, - { - id: 'stim', - name: 'Stimulum', - label: 'Stimulum', - color: 'purple', - }, - { - id: 'pluox', - name: 'Pluoxium', - label: 'Pluoxium', - color: 'blue', - }, - { id: 'miasma', name: 'Miasma', label: 'Miasma', color: 'olive' }, - { - id: 'hydrogen', - name: 'Hydrogen', - label: 'H\u2082', - color: 'white', - }, - { id: 'ab', name: 'Agent B', label: 'Agent B', color: 'purple' }, - ], - S = (r.getGasLabel = (function () { - function l(c, f) { - var i = String(c).toLowerCase(), - u = y.find(function (s) { - return s.id === i || s.name.toLowerCase() === i; - }); - return (u && u.label) || f || c; - } - return l; - })()), - k = (r.getGasColor = (function () { - function l(c) { - var f = String(c).toLowerCase(), - i = y.find(function (u) { - return u.id === f || u.name.toLowerCase() === f; - }); - return i && i.color; - } - return l; - })()), - p = (r.timeAgo = (function () { - function l(c, f) { - if (c > f) return 'in the future'; - (c = c / 10), (f = f / 10); - var i = f - c; - if (i > 3600) { - var u = Math.round(i / 3600); - return u + ' hour' + (u === 1 ? '' : 's') + ' ago'; - } else if (i > 60) { - var s = Math.round(i / 60); - return s + ' minute' + (s === 1 ? '' : 's') + ' ago'; - } else { - var d = Math.round(i); - return d + ' second' + (d === 1 ? '' : 's') + ' ago'; - } - return 'just now'; - } - return l; - })()); - }, - 28766: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.KitchenSink = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var m = n(69321), - N = function () { - return m.keys().map(function (k) { - return m(k); - }); - }, - y = (r.KitchenSink = (function () { - function S(k, h) { - var l = k.panel, - c = (0, a.useLocalState)(h, 'kitchenSinkTheme'), - f = c[0], - i = (0, a.useLocalState)(h, 'pageIndex', 0), - u = i[0], - s = i[1], - d = N(), - C = d[u], - g = l ? o.Pane : o.Window; - return (0, e.createComponentVNode)(2, g, { - 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: d.map(function (v, p) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - color: 'transparent', - selected: p === u, - onClick: (function () { - function V() { - return s(p); - } - return V; - })(), - children: v.meta.title, - }, - p - ); - }), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - position: 'relative', - grow: 1, - children: (0, e.createComponentVNode)(2, g.Content, { - scrollable: !0, - children: C.meta.render(), - }), - }), - ], - }), - }); - } - return S; - })()); - }, - 20697: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.toggleKitchenSink = - r.toggleDebugLayout = - r.openExternalBrowser = - void 0); - var e = n(90816); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var a = (r.toggleKitchenSink = (0, e.createAction)( - 'debug/toggleKitchenSink' - )), - t = (r.toggleDebugLayout = (0, e.createAction)( - 'debug/toggleDebugLayout' - )), - o = (r.openExternalBrowser = (0, e.createAction)( - 'debug/openExternalBrowser' - )); - }, - 72315: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.useDebug = void 0); - var e = n(90816), - a = n(94505); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var t = (r.useDebug = (function () { - function o(m) { - return (0, e.useSelector)(m, a.selectDebug); - } - return o; - })()); - }, - 39241: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.useDebug = - r.relayMiddleware = - r.debugReducer = - r.debugMiddleware = - r.KitchenSink = - void 0); - var e = n(72315); - r.useDebug = e.useDebug; - var a = n(28766); - r.KitchenSink = a.KitchenSink; - var t = n(57860); - (r.debugMiddleware = t.debugMiddleware), - (r.relayMiddleware = t.relayMiddleware); - var o = n(42702); - r.debugReducer = o.debugReducer; - }, - 57860: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.relayMiddleware = r.debugMiddleware = void 0); - var e = n(31068), - a = n(33053), - t = n(39891), - o = n(20697); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var m = ['backend/update', 'chat/message'], - N = (r.debugMiddleware = (function () { - function S(k) { - return ( - (0, t.acquireHotKey)(e.KEY_F11), - (0, t.acquireHotKey)(e.KEY_F12), - a.globalEvents.on('keydown', function (h) { - h.code === e.KEY_F11 && - k.dispatch((0, o.toggleDebugLayout)()), - h.code === e.KEY_F12 && - k.dispatch((0, o.toggleKitchenSink)()), - h.ctrl && - h.alt && - h.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 (h) { - return function (l) { - return h(l); - }; - } - ); - } - return S; - })()), - y = (r.relayMiddleware = (function () { - function S(k) { - var h = n(87454), - l = location.search === '?external'; - return ( - l - ? h.subscribe(function (c) { - var f = c.type, - i = c.payload; - f === 'relay' && - i.windowId === Byond.windowId && - k.dispatch( - Object.assign({}, i.action, { relayed: !0 }) - ); - }) - : ((0, t.acquireHotKey)(e.KEY_F10), - a.globalEvents.on('keydown', function (c) { - c === e.KEY_F10 && - k.dispatch((0, o.openExternalBrowser)()); - })), - function (c) { - return function (f) { - var i = f.type, - u = f.payload, - s = f.relayed; - if (i === o.openExternalBrowser.type) { - window.open(location.href + '?external', '_blank'); - return; - } - return ( - m.includes(i) && - !s && - !l && - h.sendMessage({ - type: 'relay', - payload: { windowId: Byond.windowId, action: f }, - }), - c(f) - ); - }; - } - ); - } - return S; - })()); - }, - 42702: function (L, 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, - m = t.payload; - return o === 'debug/toggleKitchenSink' - ? Object.assign({}, a, { kitchenSink: !a.kitchenSink }) - : o === 'debug/toggleDebugLayout' - ? Object.assign({}, a, { debugLayout: !a.debugLayout }) - : a; - } - return e; - })()); - }, - 94505: function (L, 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; - })()); - }, - 45360: function (L, 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(96417), - a = n(41202), - t = n(50175); - 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 F; - }; - var j, - F = {}, - U = Object.prototype, - _ = U.hasOwnProperty, - z = - Object.defineProperty || - function (Ve, ce, le) { - Ve[ce] = le.value; - }, - H = typeof Symbol == 'function' ? Symbol : {}, - $ = H.iterator || '@@iterator', - Y = H.asyncIterator || '@@asyncIterator', - X = H.toStringTag || '@@toStringTag'; - function re(Ve, ce, le) { - return ( - Object.defineProperty(Ve, ce, { - value: le, - enumerable: !0, - configurable: !0, - writable: !0, - }), - Ve[ce] - ); - } - try { - re({}, ''); - } catch (Ve) { - re = function (le, Ce, de) { - return (le[Ce] = de); - }; - } - function ae(Ve, ce, le, Ce) { - var de = ce && ce.prototype instanceof Z ? ce : Z, - Ne = Object.create(de.prototype), - Ae = new Oe(Ce || []); - return z(Ne, '_invoke', { value: ve(Ve, le, Ae) }), Ne; - } - function se(Ve, ce, le) { - try { - return { type: 'normal', arg: Ve.call(ce, le) }; - } catch (Ce) { - return { type: 'throw', arg: Ce }; - } - } - F.wrap = ae; - var pe = 'suspendedStart', - ye = 'suspendedYield', - Be = 'executing', - he = 'completed', - oe = {}; - function Z() {} - function q() {} - function ue() {} - var me = {}; - re(me, $, function () { - return this; - }); - var ne = Object.getPrototypeOf, - be = ne && ne(ne(We([]))); - be && be !== U && _.call(be, $) && (me = be); - var fe = (ue.prototype = Z.prototype = Object.create(me)); - function ge(Ve) { - ['next', 'throw', 'return'].forEach(function (ce) { - re(Ve, ce, function (le) { - return this._invoke(ce, le); - }); - }); - } - function ke(Ve, ce) { - function le(de, Ne, Ae, De) { - var je = se(Ve[de], Ve, Ne); - if (je.type !== 'throw') { - var _e = je.arg, - Ue = _e.value; - return Ue && typeof Ue == 'object' && _.call(Ue, '__await') - ? ce.resolve(Ue.__await).then( - function (Ke) { - le('next', Ke, Ae, De); - }, - function (Ke) { - le('throw', Ke, Ae, De); - } - ) - : ce.resolve(Ue).then( - function (Ke) { - (_e.value = Ke), Ae(_e); - }, - function (Ke) { - return le('throw', Ke, Ae, De); - } - ); - } - De(je.arg); - } - var Ce; - z(this, '_invoke', { - value: (function () { - function de(Ne, Ae) { - function De() { - return new ce(function (je, _e) { - le(Ne, Ae, je, _e); - }); - } - return (Ce = Ce ? Ce.then(De, De) : De()); - } - return de; - })(), - }); - } - function ve(Ve, ce, le) { - var Ce = pe; - return function (de, Ne) { - if (Ce === Be) throw new Error('Generator is already running'); - if (Ce === he) { - if (de === 'throw') throw Ne; - return { value: j, done: !0 }; - } - for (le.method = de, le.arg = Ne; ; ) { - var Ae = le.delegate; - if (Ae) { - var De = Se(Ae, le); - if (De) { - if (De === oe) continue; - return De; - } - } - if (le.method === 'next') le.sent = le._sent = le.arg; - else if (le.method === 'throw') { - if (Ce === pe) throw ((Ce = he), le.arg); - le.dispatchException(le.arg); - } else le.method === 'return' && le.abrupt('return', le.arg); - Ce = Be; - var je = se(Ve, ce, le); - if (je.type === 'normal') { - if (((Ce = le.done ? he : ye), je.arg === oe)) continue; - return { value: je.arg, done: le.done }; - } - je.type === 'throw' && - ((Ce = he), (le.method = 'throw'), (le.arg = je.arg)); - } - }; - } - function Se(Ve, ce) { - var le = ce.method, - Ce = Ve.iterator[le]; - if (Ce === j) - return ( - (ce.delegate = null), - (le === 'throw' && - Ve.iterator.return && - ((ce.method = 'return'), - (ce.arg = j), - Se(Ve, ce), - ce.method === 'throw')) || - (le !== 'return' && - ((ce.method = 'throw'), - (ce.arg = new TypeError( - "The iterator does not provide a '" + le + "' method" - )))), - oe - ); - var de = se(Ce, Ve.iterator, ce.arg); - if (de.type === 'throw') - return ( - (ce.method = 'throw'), - (ce.arg = de.arg), - (ce.delegate = null), - oe - ); - var Ne = de.arg; - return Ne - ? Ne.done - ? ((ce[Ve.resultName] = Ne.value), - (ce.next = Ve.nextLoc), - ce.method !== 'return' && - ((ce.method = 'next'), (ce.arg = j)), - (ce.delegate = null), - oe) - : Ne - : ((ce.method = 'throw'), - (ce.arg = new TypeError('iterator result is not an object')), - (ce.delegate = null), - oe); - } - function we(Ve) { - var ce = { tryLoc: Ve[0] }; - 1 in Ve && (ce.catchLoc = Ve[1]), - 2 in Ve && ((ce.finallyLoc = Ve[2]), (ce.afterLoc = Ve[3])), - this.tryEntries.push(ce); - } - function xe(Ve) { - var ce = Ve.completion || {}; - (ce.type = 'normal'), delete ce.arg, (Ve.completion = ce); - } - function Oe(Ve) { - (this.tryEntries = [{ tryLoc: 'root' }]), - Ve.forEach(we, this), - this.reset(!0); - } - function We(Ve) { - if (Ve || Ve === '') { - var ce = Ve[$]; - if (ce) return ce.call(Ve); - if (typeof Ve.next == 'function') return Ve; - if (!isNaN(Ve.length)) { - var le = -1, - Ce = (function () { - function de() { - for (; ++le < Ve.length; ) - if (_.call(Ve, le)) - return (de.value = Ve[le]), (de.done = !1), de; - return (de.value = j), (de.done = !0), de; - } - return de; - })(); - return (Ce.next = Ce); - } - } - throw new TypeError(typeof Ve + ' is not iterable'); - } - return ( - (q.prototype = ue), - z(fe, 'constructor', { value: ue, configurable: !0 }), - z(ue, 'constructor', { value: q, configurable: !0 }), - (q.displayName = re(ue, X, 'GeneratorFunction')), - (F.isGeneratorFunction = function (Ve) { - var ce = typeof Ve == 'function' && Ve.constructor; - return ( - !!ce && - (ce === q || - (ce.displayName || ce.name) === 'GeneratorFunction') - ); - }), - (F.mark = function (Ve) { - return ( - Object.setPrototypeOf - ? Object.setPrototypeOf(Ve, ue) - : ((Ve.__proto__ = ue), re(Ve, X, 'GeneratorFunction')), - (Ve.prototype = Object.create(fe)), - Ve - ); - }), - (F.awrap = function (Ve) { - return { __await: Ve }; - }), - ge(ke.prototype), - re(ke.prototype, Y, function () { - return this; - }), - (F.AsyncIterator = ke), - (F.async = function (Ve, ce, le, Ce, de) { - de === void 0 && (de = Promise); - var Ne = new ke(ae(Ve, ce, le, Ce), de); - return F.isGeneratorFunction(ce) - ? Ne - : Ne.next().then(function (Ae) { - return Ae.done ? Ae.value : Ne.next(); - }); - }), - ge(fe), - re(fe, X, 'Generator'), - re(fe, $, function () { - return this; - }), - re(fe, 'toString', function () { - return '[object Generator]'; - }), - (F.keys = function (Ve) { - var ce = Object(Ve), - le = []; - for (var Ce in ce) le.push(Ce); - return ( - le.reverse(), - (function () { - function de() { - for (; le.length; ) { - var Ne = le.pop(); - if (Ne in ce) - return (de.value = Ne), (de.done = !1), de; - } - return (de.done = !0), de; - } - return de; - })() - ); - }), - (F.values = We), - (Oe.prototype = { - constructor: Oe, - reset: (function () { - function Ve(ce) { - if ( - ((this.prev = 0), - (this.next = 0), - (this.sent = this._sent = j), - (this.done = !1), - (this.delegate = null), - (this.method = 'next'), - (this.arg = j), - this.tryEntries.forEach(xe), - !ce) - ) - for (var le in this) - le.charAt(0) === 't' && - _.call(this, le) && - !isNaN(+le.slice(1)) && - (this[le] = j); - } - return Ve; - })(), - stop: (function () { - function Ve() { - this.done = !0; - var ce = this.tryEntries[0].completion; - if (ce.type === 'throw') throw ce.arg; - return this.rval; - } - return Ve; - })(), - dispatchException: (function () { - function Ve(ce) { - if (this.done) throw ce; - var le = this; - function Ce(_e, Ue) { - return ( - (Ae.type = 'throw'), - (Ae.arg = ce), - (le.next = _e), - Ue && ((le.method = 'next'), (le.arg = j)), - !!Ue - ); - } - for (var de = this.tryEntries.length - 1; de >= 0; --de) { - var Ne = this.tryEntries[de], - Ae = Ne.completion; - if (Ne.tryLoc === 'root') return Ce('end'); - if (Ne.tryLoc <= this.prev) { - var De = _.call(Ne, 'catchLoc'), - je = _.call(Ne, 'finallyLoc'); - if (De && je) { - if (this.prev < Ne.catchLoc) - return Ce(Ne.catchLoc, !0); - if (this.prev < Ne.finallyLoc) - return Ce(Ne.finallyLoc); - } else if (De) { - if (this.prev < Ne.catchLoc) - return Ce(Ne.catchLoc, !0); - } else { - if (!je) - throw new Error( - 'try statement without catch or finally' - ); - if (this.prev < Ne.finallyLoc) - return Ce(Ne.finallyLoc); - } - } - } - } - return Ve; - })(), - abrupt: (function () { - function Ve(ce, le) { - for (var Ce = this.tryEntries.length - 1; Ce >= 0; --Ce) { - var de = this.tryEntries[Ce]; - if ( - de.tryLoc <= this.prev && - _.call(de, 'finallyLoc') && - this.prev < de.finallyLoc - ) { - var Ne = de; - break; - } - } - Ne && - (ce === 'break' || ce === 'continue') && - Ne.tryLoc <= le && - le <= Ne.finallyLoc && - (Ne = null); - var Ae = Ne ? Ne.completion : {}; - return ( - (Ae.type = ce), - (Ae.arg = le), - Ne - ? ((this.method = 'next'), - (this.next = Ne.finallyLoc), - oe) - : this.complete(Ae) - ); - } - return Ve; - })(), - complete: (function () { - function Ve(ce, le) { - if (ce.type === 'throw') throw ce.arg; - return ( - ce.type === 'break' || ce.type === 'continue' - ? (this.next = ce.arg) - : ce.type === 'return' - ? ((this.rval = this.arg = ce.arg), - (this.method = 'return'), - (this.next = 'end')) - : ce.type === 'normal' && le && (this.next = le), - oe - ); - } - return Ve; - })(), - finish: (function () { - function Ve(ce) { - for (var le = this.tryEntries.length - 1; le >= 0; --le) { - var Ce = this.tryEntries[le]; - if (Ce.finallyLoc === ce) - return ( - this.complete(Ce.completion, Ce.afterLoc), xe(Ce), oe - ); - } - } - return Ve; - })(), - catch: (function () { - function Ve(ce) { - for (var le = this.tryEntries.length - 1; le >= 0; --le) { - var Ce = this.tryEntries[le]; - if (Ce.tryLoc === ce) { - var de = Ce.completion; - if (de.type === 'throw') { - var Ne = de.arg; - xe(Ce); - } - return Ne; - } - } - throw new Error('illegal catch attempt'); - } - return Ve; - })(), - delegateYield: (function () { - function Ve(ce, le, Ce) { - return ( - (this.delegate = { - iterator: We(ce), - resultName: le, - nextLoc: Ce, - }), - this.method === 'next' && (this.arg = j), - oe - ); - } - return Ve; - })(), - }), - F - ); - } - function m(j, F, U, _, z, H, $) { - try { - var Y = j[H]($), - X = Y.value; - } catch (re) { - U(re); - return; - } - Y.done ? F(X) : Promise.resolve(X).then(_, z); - } - function N(j) { - return function () { - var F = this, - U = arguments; - return new Promise(function (_, z) { - var H = j.apply(F, U); - function $(X) { - m(H, _, z, $, Y, 'next', X); - } - function Y(X) { - m(H, _, z, $, Y, 'throw', X); - } - $(void 0); - }); - }; - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var y = (0, t.createLogger)('drag'), - S = Byond.windowId, - k = !1, - p = !1, - l = [0, 0], - c, - f, - i, - u, - s, - d = (r.setWindowKey = (function () { - function j(F) { - S = F; - } - return j; - })()), - C = (r.getWindowPosition = (function () { - function j() { - return [window.screenLeft, window.screenTop]; - } - return j; - })()), - g = (r.getWindowSize = (function () { - function j() { - return [window.innerWidth, window.innerHeight]; - } - return j; - })()), - v = (r.setWindowPosition = (function () { - function j(F) { - var U = (0, a.vecAdd)(F, l); - return Byond.winset(Byond.windowId, { pos: U[0] + ',' + U[1] }); - } - return j; - })()), - h = (r.setWindowSize = (function () { - function j(F) { - return Byond.winset(Byond.windowId, { - size: F[0] + 'x' + F[1], - }); - } - return j; - })()), - V = (r.getScreenPosition = (function () { - function j() { - return [0 - l[0], 0 - l[1]]; - } - return j; - })()), - b = (r.getScreenSize = (function () { - function j() { - return [window.screen.availWidth, window.screen.availHeight]; - } - return j; - })()), - B = function (F, U, _) { - _ === void 0 && (_ = 50); - for (var z = [U], H, $ = 0; $ < F.length; $++) { - var Y = F[$]; - Y !== U && (z.length < _ ? z.push(Y) : (H = Y)); - } - return [z, H]; - }, - I = (r.storeWindowGeometry = (function () { - var j = N( - o().mark( - (function () { - function F() { - var U, _, z, H; - return o().wrap( - (function () { - function $(Y) { - for (;;) - switch ((Y.prev = Y.next)) { - case 0: - return ( - y.log('storing geometry'), - (U = { pos: C(), size: g() }), - e.storage.set(S, U), - (Y.t0 = B), - (Y.next = 6), - e.storage.get('geometries') - ); - case 6: - if (((Y.t1 = Y.sent), Y.t1)) { - Y.next = 9; - break; - } - Y.t1 = []; - case 9: - (Y.t2 = Y.t1), - (Y.t3 = S), - (_ = (0, Y.t0)(Y.t2, Y.t3)), - (z = _[0]), - (H = _[1]), - H && e.storage.remove(H), - e.storage.set('geometries', z); - case 16: - case 'end': - return Y.stop(); - } - } - return $; - })(), - F - ); - } - return F; - })() - ) - ); - return (function () { - function F() { - return j.apply(this, arguments); - } - return F; - })(); - })()), - w = (r.recallWindowGeometry = (function () { - var j = N( - o().mark( - (function () { - function F(U) { - var _, z, H, $; - return o().wrap( - (function () { - function Y(X) { - for (;;) - switch ((X.prev = X.next)) { - case 0: - if ( - (U === void 0 && (U = {}), - (X.t0 = U.fancy), - !X.t0) - ) { - X.next = 6; - break; - } - return (X.next = 5), e.storage.get(S); - case 5: - X.t0 = X.sent; - case 6: - return ( - (_ = X.t0), - _ && y.log('recalled geometry:', _), - (z = (_ == null ? void 0 : _.pos) || U.pos), - (H = U.size), - (X.next = 12), - c - ); - case 12: - ($ = [ - window.screen.availWidth, - window.screen.availHeight, - ]), - H && - ((H = [ - Math.min($[0], H[0]), - Math.min($[1], H[1]), - ]), - h(H)), - z - ? (H && U.locked && (z = A(z, H)[1]), - v(z)) - : H && - ((z = (0, a.vecAdd)( - (0, a.vecScale)($, 0.5), - (0, a.vecScale)(H, -0.5), - (0, a.vecScale)(l, -1) - )), - v(z)); - case 15: - case 'end': - return X.stop(); - } - } - return Y; - })(), - F - ); - } - return F; - })() - ) - ); - return (function () { - function F(U) { - return j.apply(this, arguments); - } - return F; - })(); - })()), - T = (r.setupDrag = (function () { - var j = N( - o().mark( - (function () { - function F() { - return o().wrap( - (function () { - function U(_) { - for (;;) - switch ((_.prev = _.next)) { - case 0: - return ( - (c = Byond.winget( - Byond.windowId, - 'pos' - ).then(function (z) { - return [ - z.x - window.screenLeft, - z.y - window.screenTop, - ]; - })), - (_.next = 3), - c - ); - case 3: - (l = _.sent), y.debug('screen offset', l); - case 5: - case 'end': - return _.stop(); - } - } - return U; - })(), - F - ); - } - return F; - })() - ) - ); - return (function () { - function F() { - return j.apply(this, arguments); - } - return F; - })(); - })()), - A = function (F, U) { - for ( - var _ = V(), z = b(), H = [F[0], F[1]], $ = !1, Y = 0; - Y < 2; - Y++ - ) { - var X = _[Y], - re = _[Y] + z[Y]; - F[Y] < X - ? ((H[Y] = X), ($ = !0)) - : F[Y] + U[Y] > re && ((H[Y] = re - U[Y]), ($ = !0)); - } - return [$, H]; - }, - x = (r.dragStartHandler = (function () { - function j(F) { - y.log('drag start'), - (k = !0), - (f = [ - window.screenLeft - F.screenX, - window.screenTop - F.screenY, - ]), - document.addEventListener('mousemove', P), - document.addEventListener('mouseup', E), - P(F); - } - return j; - })()), - E = function j(F) { - y.log('drag end'), - P(F), - document.removeEventListener('mousemove', P), - document.removeEventListener('mouseup', j), - (k = !1), - I(); - }, - P = function (F) { - k && - (F.preventDefault(), - v((0, a.vecAdd)([F.screenX, F.screenY], f))); - }, - D = (r.resizeStartHandler = (function () { - function j(F, U) { - return function (_) { - (i = [F, U]), - y.log('resize start', i), - (p = !0), - (f = [ - window.screenLeft - _.screenX, - window.screenTop - _.screenY, - ]), - (u = [window.innerWidth, window.innerHeight]), - document.addEventListener('mousemove', O), - document.addEventListener('mouseup', M), - O(_); - }; - } - return j; - })()), - M = function j(F) { - y.log('resize end', s), - O(F), - document.removeEventListener('mousemove', O), - document.removeEventListener('mouseup', j), - (p = !1), - I(); - }, - O = function (F) { - p && - (F.preventDefault(), - (s = (0, a.vecAdd)( - u, - (0, a.vecMultiply)( - i, - (0, a.vecAdd)( - [F.screenX, F.screenY], - (0, a.vecInverse)([window.screenLeft, window.screenTop]), - f, - [1, 1] - ) - ) - )), - (s[0] = Math.max(s[0], 150)), - (s[1] = Math.max(s[1], 50)), - h(s)); - }; - }, - 33053: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.setupGlobalEvents = - r.removeScrollableNode = - r.globalEvents = - r.canStealFocus = - r.addScrollableNode = - r.KeyEvent = - void 0); - var e = n(70654), - a = n(31068); - /** - * Normalized browser focus events and BYOND-specific focus helpers. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var t = (r.globalEvents = new e.EventEmitter()), - o = !1, - m = (r.setupGlobalEvents = (function () { - function p(V) { - V === void 0 && (V = {}), (o = !!V.ignoreWindowFocus); - } - return p; - })()), - N, - y = !0, - S = function p(V, b) { - if (o) { - y = !0; - return; - } - if ((N && (clearTimeout(N), (N = null)), b)) { - N = setTimeout(function () { - return p(V); - }); - return; - } - y !== V && - ((y = V), - t.emit(V ? 'window-focus' : 'window-blur'), - t.emit('window-focus-change', V)); - }, - k = null, - h = (r.canStealFocus = (function () { - function p(V) { - var b = String(V.tagName).toLowerCase(); - return b === 'input' || b === 'textarea'; - } - return p; - })()), - l = function (V) { - c(), (k = V), k.addEventListener('blur', c); - }, - c = function p() { - k && (k.removeEventListener('blur', p), (k = null)); - }, - f = null, - i = null, - u = [], - s = (r.addScrollableNode = (function () { - function p(V) { - u.push(V); - } - return p; - })()), - d = (r.removeScrollableNode = (function () { - function p(V) { - var b = u.indexOf(V); - b >= 0 && u.splice(b, 1); - } - return p; - })()), - C = function (V) { - if (!(k || !y)) - for (var b = document.body; V && V !== b; ) { - if (u.includes(V)) { - if (V.contains(f)) return; - (f = V), V.focus(); - return; - } - V = V.parentNode; - } - }; - window.addEventListener('mousemove', function (p) { - var V = p.target; - V !== i && ((i = V), C(V)); - }), - window.addEventListener('focusin', function (p) { - if (((i = null), (f = p.target), S(!0), h(p.target))) { - l(p.target); - return; - } - }), - window.addEventListener('focusout', function (p) { - (i = null), S(!1, !0); - }), - window.addEventListener('blur', function (p) { - (i = null), S(!1, !0); - }), - window.addEventListener('beforeunload', function (p) { - S(!1); - }); - var g = {}, - v = (r.KeyEvent = (function () { - function p(b, B, I) { - (this.event = b), - (this.type = B), - (this.code = window.event ? b.which : b.keyCode), - (this.ctrl = b.ctrlKey), - (this.shift = b.shiftKey), - (this.alt = b.altKey), - (this.repeat = !!I); - } - var V = p.prototype; - return ( - (V.hasModifierKeys = (function () { - function b() { - return this.ctrl || this.alt || this.shift; - } - return b; - })()), - (V.isModifierKey = (function () { - function b() { - return ( - this.code === a.KEY_CTRL || - this.code === a.KEY_SHIFT || - this.code === a.KEY_ALT - ); - } - return b; - })()), - (V.isDown = (function () { - function b() { - return this.type === 'keydown'; - } - return b; - })()), - (V.isUp = (function () { - function b() { - return this.type === 'keyup'; - } - return b; - })()), - (V.toString = (function () { - function b() { - 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 b; - })()), - p - ); - })()); - document.addEventListener('keydown', function (p) { - if (!h(p.target)) { - var V = p.keyCode, - b = new v(p, 'keydown', g[V]); - t.emit('keydown', b), t.emit('key', b), (g[V] = !0); - } - }), - document.addEventListener('keyup', function (p) { - if (!h(p.target)) { - var V = p.keyCode, - b = new v(p, 'keyup'); - t.emit('keyup', b), t.emit('key', b), (g[V] = !1); - } - }); - }, - 16671: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.focusWindow = r.focusMap = void 0); - /** - * Various focus helpers. - * - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.focusMap = (function () { - function a() { - Byond.winset('paramapwindow.map', { focus: !0 }); - } - return a; - })()), - e = (r.focusWindow = (function () { - function a() { - Byond.winset(Byond.windowId, { focus: !0 }); - } - return a; - })()); - }, - 48300: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.formatSiUnit = - r.formatPower = - r.formatMoney = - r.formatDb = - void 0); - var e = n(58331); - /** - * @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 S(k, h, l) { - if ( - (h === void 0 && (h = -t), - l === void 0 && (l = ''), - typeof k != 'number' || !Number.isFinite(k)) - ) - return k; - var c = Math.floor(Math.log10(k)), - f = Math.floor(Math.max(h * 3, c)), - i = Math.floor(c / 3), - u = Math.floor(f / 3), - s = (0, e.clamp)(t + u, 0, a.length), - d = a[s], - C = k / Math.pow(1e3, u), - g = i > h ? 2 + u * 3 - f : 0, - v = (0, e.toFixed)(C, g) + ' ' + d + l; - return v.trim(); - } - return S; - })()), - m = (r.formatPower = (function () { - function S(k, h) { - return h === void 0 && (h = 0), o(k, h, 'W'); - } - return S; - })()), - N = (r.formatMoney = (function () { - function S(k, h) { - if ((h === void 0 && (h = 0), !Number.isFinite(k))) return k; - var l = (0, e.round)(k, h); - h > 0 && (l = (0, e.toFixed)(k, h)), (l = String(l)); - var c = l.length, - f = l.indexOf('.'); - f === -1 && (f = c); - for (var i = '', u = 0; u < c; u++) - u > 0 && u < f && (f - u) % 3 === 0 && (i += '\u2009'), - (i += l.charAt(u)); - return i; - } - return S; - })()), - y = (r.formatDb = (function () { - function S(k) { - var h = (20 * Math.log(k)) / Math.log(10), - l = h >= 0 ? '+' : h < 0 ? '\u2013' : '', - c = Math.abs(h); - return ( - c === 1 / 0 ? (c = 'Inf') : (c = (0, e.toFixed)(c, 2)), - l + c + ' dB' - ); - } - return S; - })()); - }, - 39891: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.setupHotKeys = - r.releaseHotKey = - r.releaseHeldKeys = - r.acquireHotKey = - void 0); - var e = m(n(31068)), - a = n(33053), - t = n(50175); - function o(s) { - if (typeof WeakMap != 'function') return null; - var d = new WeakMap(), - C = new WeakMap(); - return (o = function (v) { - return v ? C : d; - })(s); - } - function m(s, d) { - if (!d && s && s.__esModule) return s; - if (s === null || (typeof s != 'object' && typeof s != 'function')) - return { default: s }; - var C = o(d); - if (C && C.has(s)) return C.get(s); - var g = { __proto__: null }, - v = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var p in s) - if ( - p !== 'default' && - Object.prototype.hasOwnProperty.call(s, p) - ) { - var V = v ? Object.getOwnPropertyDescriptor(s, p) : null; - V && (V.get || V.set) - ? Object.defineProperty(g, p, V) - : (g[p] = s[p]); - } - return (g.default = s), C && C.set(s, g), g; - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var N = (0, t.createLogger)('hotkeys'), - y = {}, - S = [ - 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, - ], - k = {}, - p = function (d) { - if (d === 16) return 'Shift'; - if (d === 17) return 'Ctrl'; - if (d === 18) return 'Alt'; - if (d === 33) return 'Northeast'; - if (d === 34) return 'Southeast'; - if (d === 35) return 'Southwest'; - if (d === 36) return 'Northwest'; - if (d === 37) return 'West'; - if (d === 38) return 'North'; - if (d === 39) return 'East'; - if (d === 40) return 'South'; - if (d === 45) return 'Insert'; - if (d === 46) return 'Delete'; - if ((d >= 48 && d <= 57) || (d >= 65 && d <= 90)) - return String.fromCharCode(d); - if (d >= 96 && d <= 105) return 'Numpad' + (d - 96); - if (d >= 112 && d <= 123) return 'F' + (d - 111); - if (d === 188) return ','; - if (d === 189) return '-'; - if (d === 190) return '.'; - }, - l = function (d) { - var C = String(d); - if (C === 'Ctrl+F5' || C === 'Ctrl+R') { - location.reload(); - return; - } - if ( - C !== 'Ctrl+F' && - !( - d.event.defaultPrevented || - d.isModifierKey() || - S.includes(d.code) - ) - ) { - C === 'F5' && - (d.event.preventDefault(), (d.event.returnValue = !1)); - var g = p(d.code); - if (g) { - var v = y[g]; - if (v) return N.debug('macro', v), Byond.command(v); - if (d.isDown() && !k[g]) { - k[g] = !0; - var h = 'Key_Down "' + g + '"'; - return N.debug(h), Byond.command(h); - } - if (d.isUp() && k[g]) { - k[g] = !1; - var V = 'Key_Up "' + g + '"'; - return N.debug(V), Byond.command(V); - } - } - } - }, - c = (r.acquireHotKey = (function () { - function s(d) { - S.push(d); - } - return s; - })()), - f = (r.releaseHotKey = (function () { - function s(d) { - var C = S.indexOf(d); - C >= 0 && S.splice(C, 1); - } - return s; - })()), - i = (r.releaseHeldKeys = (function () { - function s() { - for (var d = 0, C = Object.keys(k); d < C.length; d++) { - var g = C[d]; - k[g] && - ((k[g] = !1), - N.log('releasing key "' + g + '"'), - Byond.command('Key_Up "' + g + '"')); - } - } - return s; - })()), - u = (r.setupHotKeys = (function () { - function s() { - Byond.winget('default.*').then(function (d) { - for ( - var C = {}, g = 0, v = Object.keys(d); - g < v.length; - g++ - ) { - var h = v[g], - V = h.split('.'), - b = V[1], - B = V[2]; - b && B && (C[b] || (C[b] = {}), (C[b][B] = d[h])); - } - for ( - var I = /\\"/g, - w = (function () { - function D(M) { - return M.substring(1, M.length - 1).replace(I, '"'); - } - return D; - })(), - T = 0, - A = Object.keys(C); - T < A.length; - T++ - ) { - var x = A[T], - E = C[x], - P = w(E.name); - y[P] = w(E.command); - } - N.debug('loaded macros', y); - }), - a.globalEvents.on('window-blur', function () { - i(); - }), - a.globalEvents.on('key', function (d) { - l(d); - }); - } - return s; - })()); - }, - 89163: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AICard = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AICard = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - if (l.has_ai === 0) - return (0, e.createComponentVNode)(2, o.Window, { - width: 250, - height: 120, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Stored AI', - children: (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createVNode)( - 1, - 'h3', - null, - 'No AI detected.', - 16 - ), - }), - }), - }), - }); - var c = null; - return ( - l.integrity >= 75 - ? (c = 'green') - : l.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: l.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: l.integrity / 100, - } - ), - } - ), - } - ), - (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: (0, e.createVNode)( - 1, - 'h2', - null, - l.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: - (!!l.has_laws && - (0, e.createComponentVNode)(2, t.Box, { - children: l.laws.map(function (f, i) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { children: f }, - i - ); - }), - })) || - (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: l.wireless - ? 'check' - : 'times', - content: l.wireless - ? 'Enabled' - : 'Disabled', - color: l.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: l.radio ? 'check' : 'times', - content: l.radio - ? 'Enabled' - : 'Disabled', - color: l.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: - l.flushing || l.integrity === 0, - confirmColor: 'red', - content: 'Wipe AI', - onClick: (function () { - function f() { - return p('wipe'); - } - return f; - })(), - } - ), - } - ), - ], - } - ), - } - ), - }), - ], - }), - }), - }) - ); - } - return N; - })()); - }, - 46817: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AIFixer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AIFixer = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - if (l.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; - (l.stat === 2 || l.stat === null) && (c = !1); - var f = null; - l.integrity >= 75 - ? (f = 'green') - : l.integrity >= 25 - ? (f = 'yellow') - : (f = 'red'); - var i = !0; - return ( - l.integrity >= 100 && l.stat !== 2 && (i = !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: l.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: l.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: - (!!l.has_laws && - (0, e.createComponentVNode)(2, t.Box, { - children: l.laws.map(function (u, s) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { inline: !0, children: u }, - s - ); - }), - })) || - (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: l.wireless - ? 'times' - : 'check', - content: l.wireless - ? 'Disabled' - : 'Enabled', - color: l.wireless - ? 'red' - : 'green', - onClick: (function () { - function u() { - return p('wireless'); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Subspace Transceiver', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: l.radio - ? 'times' - : 'check', - content: l.radio - ? 'Disabled' - : 'Enabled', - color: l.radio - ? 'red' - : 'green', - onClick: (function () { - function u() { - return p('radio'); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Start Repairs', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: 'wrench', - disabled: !i || l.active, - content: - !i || l.active - ? 'Already Repaired' - : 'Repair', - onClick: (function () { - function u() { - return p('fix'); - } - return u; - })(), - } - ), - } - ), - ], - } - ), - (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - lineHeight: 2, - children: l.active - ? 'Reconstruction in progress.' - : '', - }), - ], - } - ), - }), - ], - }), - }), - }) - ); - } - return N; - })()); - }, - 20420: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.APC = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(29723), - N = (r.APC = (function () { - function p(l, 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, k), - }), - }); - } - return p; - })()), - y = { - 2: { - color: 'good', - externalPowerText: 'External Power', - chargingText: 'Fully Charged', - }, - 1: { - color: 'average', - externalPowerText: 'Low External Power', - chargingText: 'Charging', - }, - 0: { - color: 'bad', - externalPowerText: 'No External Power', - chargingText: 'Not Charging', - }, - }, - S = { - 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', - }, - }, - k = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.locked && !u.siliconUser, - d = u.normallyLocked, - C = y[u.externalPower] || y[0], - g = y[u.chargingStatus] || y[0], - v = u.powerChannels || [], - h = S[u.malfStatus] || S[0], - V = u.powerCellStatus / 100; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.InterfaceLockNoticeBox), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Power Status', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Main Breaker', - color: C.color, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: u.isOperating ? 'power-off' : 'times', - content: u.isOperating ? 'On' : 'Off', - selected: u.isOperating && !s, - color: u.isOperating ? '' : 'bad', - disabled: s, - onClick: (function () { - function b() { - return i('breaker'); - } - return b; - })(), - }), - children: ['[ ', C.externalPowerText, ' ]'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Power Cell', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { color: 'good', value: V } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Charge Mode', - color: g.color, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: u.chargeMode ? 'sync' : 'times', - content: u.chargeMode ? 'Auto' : 'Off', - selected: u.chargeMode, - disabled: s, - onClick: (function () { - function b() { - return i('charge'); - } - return b; - })(), - }), - children: ['[ ', g.chargingText, ' ]'], - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Power Channels', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - v.map(function (b) { - var B = b.topicParams; - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: b.title, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - mx: 2, - color: b.status >= 2 ? 'good' : 'bad', - children: b.status >= 2 ? 'On' : 'Off', - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync', - content: 'Auto', - selected: - !s && (b.status === 1 || b.status === 3), - disabled: s, - onClick: (function () { - function I() { - return i('channel', B.auto); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'power-off', - content: 'On', - selected: !s && b.status === 2, - disabled: s, - onClick: (function () { - function I() { - return i('channel', B.on); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: 'Off', - selected: !s && b.status === 0, - disabled: s, - onClick: (function () { - function I() { - return i('channel', B.off); - } - return I; - })(), - }), - ], - 4 - ), - children: [b.powerLoad, ' W'], - }, - b.title - ); - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Total Load', - children: (0, e.createVNode)( - 1, - 'b', - null, - [u.totalLoad, (0, e.createTextVNode)(' W')], - 0 - ), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Misc', - buttons: - !!u.siliconUser && - (0, e.createFragment)( - [ - !!u.malfStatus && - (0, e.createComponentVNode)(2, t.Button, { - icon: h.icon, - content: h.content, - color: 'bad', - onClick: (function () { - function b() { - return i(h.action); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'lightbulb-o', - content: 'Overload', - onClick: (function () { - function b() { - return i('overload'); - } - return b; - })(), - }), - ], - 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: 0.4, - icon: u.coverLocked ? 'lock' : 'unlock', - content: u.coverLocked ? 'Engaged' : 'Disengaged', - disabled: s, - onClick: (function () { - function b() { - return i('cover'); - } - return b; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Emergency Lighting', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'lightbulb-o', - content: u.emergencyLights ? 'Enabled' : 'Disabled', - disabled: s, - onClick: (function () { - function b() { - return i('emergency_lighting'); - } - return b; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Night Shift Lighting', - buttons: (0, e.createComponentVNode)(2, t.Button, { - mt: 0.4, - icon: 'lightbulb-o', - content: u.nightshiftLights - ? 'Enabled' - : 'Disabled', - onClick: (function () { - function b() { - return i('toggle_nightshift'); - } - return b; - })(), - }), - }), - ], - }), - }), - ], - 4 - ); - }; - }, - 16822: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ATM = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ATM = (function () { - function f(i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.view_screen, - v = C.authenticated_account, - h = C.ticks_left_locked_down, - V = C.linked_db, - b; - if (h > 0) - b = (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 (!V) - b = (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 (v) - switch (g) { - case 1: - b = (0, e.createComponentVNode)(2, y); - break; - case 2: - b = (0, e.createComponentVNode)(2, S); - break; - case 3: - b = (0, e.createComponentVNode)(2, l); - break; - default: - b = (0, e.createComponentVNode)(2, k); - } - else b = (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, N), - (0, e.createComponentVNode)(2, t.Section, { - children: b, - }), - ], - }), - }); - } - return f; - })()), - N = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.machine_id, - v = C.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: v, - icon: 'eject', - onClick: (function () { - function h() { - return d('insert_card'); - } - return h; - })(), - }), - } - ), - }), - ], - }); - }, - y = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.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 v() { - return d('change_security_level', { - new_security_level: 1, - }); - } - return v; - })(), - }), - }), - (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 === 2, - onClick: (function () { - function v() { - return d('change_security_level', { - new_security_level: 2, - }); - } - return v; - })(), - }), - }), - (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, c), - ], - }); - }, - S = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = (0, a.useLocalState)(u, 'targetAccNumber', 0), - v = g[0], - h = g[1], - V = (0, a.useLocalState)(u, 'fundsAmount', 0), - b = V[0], - B = V[1], - I = (0, a.useLocalState)(u, 'purpose', 0), - w = I[0], - T = I[1], - A = C.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 x(E, P) { - return h(P); - } - return x; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Funds to Transfer', - children: (0, e.createComponentVNode)(2, t.Input, { - onInput: (function () { - function x(E, P) { - return B(P); - } - return x; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Transaction Purpose', - children: (0, e.createComponentVNode)(2, t.Input, { - fluid: !0, - onInput: (function () { - function x(E, P) { - return T(P); - } - return x; - })(), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Divider), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Transfer', - icon: 'sign-out-alt', - onClick: (function () { - function x() { - return d('transfer', { - target_acc_number: v, - funds_amount: b, - purpose: w, - }); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Divider), - (0, e.createComponentVNode)(2, c), - ], - }); - }, - k = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = (0, a.useLocalState)(u, 'fundsAmount', 0), - v = g[0], - h = g[1], - V = C.owner_name, - b = C.money; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Welcome, ' + V, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Logout', - icon: 'sign-out-alt', - onClick: (function () { - function B() { - return d('logout'); - } - return B; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Account Balance', - children: ['$', b], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Withdrawal Amount', - children: (0, e.createComponentVNode)(2, t.Input, { - onInput: (function () { - function B(I, w) { - return h(w); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Withdraw Funds', - icon: 'sign-out-alt', - onClick: (function () { - function B() { - return d('withdrawal', { funds_amount: v }); - } - return B; - })(), - }), - }), - ], - }), - }), - (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 B() { - return d('view_screen', { view_screen: 1 }); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Make transfer', - icon: 'exchange-alt', - onClick: (function () { - function B() { - return d('view_screen', { view_screen: 2 }); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'View transaction log', - icon: 'list', - onClick: (function () { - function B() { - return d('view_screen', { view_screen: 3 }); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Print balance statement', - icon: 'print', - onClick: (function () { - function B() { - return d('balance_statement'); - } - return B; - })(), - }), - }), - ], - }), - ], - 4 - ); - }, - p = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = (0, a.useLocalState)(u, 'accountID', null), - v = g[0], - h = g[1], - V = (0, a.useLocalState)(u, 'accountPin', null), - b = V[0], - B = V[1], - I = C.machine_id, - w = C.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 T(A, x) { - return h(x); - } - return T; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Pin', - children: (0, e.createComponentVNode)(2, t.Input, { - placeholder: '6 Digit Number', - onInput: (function () { - function T(A, x) { - return B(x); - } - return T; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Login', - icon: 'sign-in-alt', - onClick: (function () { - function T() { - return d('attempt_auth', { - account_num: v, - account_pin: b, - }); - } - return T; - })(), - }), - }), - ], - }), - }); - }, - l = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.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 (v) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: v.time, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: v.purpose, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - color: v.is_deposit ? 'green' : 'red', - children: ['$', v.amount], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: v.target_name, - }), - ], - }, - v - ); - }), - ], - }), - (0, e.createComponentVNode)(2, t.Divider), - (0, e.createComponentVNode)(2, c), - ], - }); - }, - c = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data; - return (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'sign-out-alt', - onClick: (function () { - function g() { - return d('view_screen', { view_screen: 0 }); - } - return g; - })(), - }); - }; - }, - 90698: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AccountsUplinkTerminal = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(99753), - N = n(84947), - y = n(51185), - S = n(69774), - k = (r.AccountsUplinkTerminal = (function () { - function C(g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = b.loginState, - I = b.currentPage, - w; - if (B.logged_in) - I === 1 - ? (w = (0, e.createComponentVNode)(2, l)) - : I === 2 - ? (w = (0, e.createComponentVNode)(2, s)) - : I === 3 && (w = (0, e.createComponentVNode)(2, d)); - else - return (0, e.createComponentVNode)(2, N.Window, { - width: 800, - height: 600, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, S.LoginScreen), - }), - }), - }); - return (0, e.createComponentVNode)(2, N.Window, { - width: 800, - height: 600, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, y.LoginInfo), - (0, e.createComponentVNode)(2, p), - (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - children: w, - }), - ], - }), - }), - }); - } - return C; - })()), - p = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.data, - b = (0, t.useLocalState)(v, 'tabIndex', 0), - B = b[0], - I = b[1], - w = V.login_state; - return (0, e.createComponentVNode)(2, o.Stack, { - vertical: !0, - mb: 1, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Tabs, { - children: [ - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'list', - selected: B === 0, - onClick: (function () { - function T() { - return I(0); - } - return T; - })(), - children: 'User Accounts', - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'list', - selected: B === 1, - onClick: (function () { - function T() { - return I(1); - } - return T; - })(), - children: 'Department Accounts', - }), - ], - }), - }), - }); - }, - l = function (g, v) { - var h = (0, t.useLocalState)(v, 'tabIndex', 0), - V = h[0]; - switch (V) { - case 0: - return (0, e.createComponentVNode)(2, c); - case 1: - return (0, e.createComponentVNode)(2, f); - default: - return "You are somehow on a tab that doesn't exist! Please let a coder know."; - } - }, - c = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = b.accounts, - I = (0, t.useLocalState)(v, 'searchText', ''), - w = I[0], - T = I[1], - A = (0, t.useLocalState)(v, 'sortId', 'owner_name'), - x = A[0], - E = A[1], - P = (0, t.useLocalState)(v, 'sortOrder', !0), - D = P[0], - M = P[1]; - return (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, u), - (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', - }), - ], - }), - B.filter( - (0, a.createSearch)(w, function (O) { - return ( - O.owner_name + - '|' + - O.account_number + - '|' + - O.suspended + - '|' + - O.money - ); - }) - ) - .sort(function (O, j) { - var F = D ? 1 : -1; - return O[x].localeCompare(j[x]) * F; - }) - .map(function (O) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'AccountsUplinkTerminal__listRow--' + - O.suspended, - onClick: (function () { - function j() { - return V('view_account_detail', { - account_num: O.account_number, - }); - } - return j; - })(), - 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 - ); - }), - ], - }), - }), - }), - ], - }); - }, - f = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = b.department_accounts; - return (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - 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, m.TableCell, { - children: 'Department Name', - }), - (0, e.createComponentVNode)(2, m.TableCell, { - children: 'Account Number', - }), - (0, e.createComponentVNode)(2, m.TableCell, { - children: 'Account Status', - }), - (0, e.createComponentVNode)(2, m.TableCell, { - children: 'Account Balance', - }), - ], - }), - B.map(function (I) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'AccountsUplinkTerminal__listRow--' + - I.suspended, - onClick: (function () { - function w() { - return V('view_account_detail', { - account_num: I.account_number, - }); - } - return w; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'wallet', - }), - ' ', - I.name, - ], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: ['#', I.account_number], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: I.suspended, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: I.money, - }), - ], - }, - I.account_number - ); - }), - ], - }), - }), - }), - }); - }, - i = function (g, v) { - var h = (0, t.useLocalState)(v, 'sortId', 'name'), - V = h[0], - b = h[1], - B = (0, t.useLocalState)(v, 'sortOrder', !0), - I = B[0], - w = B[1], - T = g.id, - A = g.children; - return (0, e.createComponentVNode)(2, o.Table.Cell, { - children: (0, e.createComponentVNode)(2, o.Button, { - color: V !== T && 'transparent', - width: '100%', - onClick: (function () { - function x() { - V === T ? w(!I) : (b(T), w(!0)); - } - return x; - })(), - children: [ - A, - V === T && - (0, e.createComponentVNode)(2, o.Icon, { - name: I ? 'sort-up' : 'sort-down', - ml: '0.25rem;', - }), - ], - }), - }); - }, - u = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = b.is_printing, - I = (0, t.useLocalState)(v, 'searchText', ''), - w = I[0], - T = I[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 A() { - return V('create_new_account'); - } - return A; - })(), - }), - }), - (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 A(x, E) { - return T(E); - } - return A; - })(), - }), - }), - ], - }); - }, - s = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = b.account_number, - I = b.owner_name, - w = b.money, - T = b.suspended, - A = b.transactions, - x = b.account_pin, - E = b.is_department_account; - 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: '#' + B + ' / ' + I, - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'arrow-left', - content: 'Back', - onClick: (function () { - function P() { - return V('back'); - } - return P; - })(), - }), - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Number', - children: ['#', B], - }), - !!E && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Pin', - children: x, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Pin Actions', - children: (0, e.createComponentVNode)(2, o.Button, { - ml: 1, - icon: 'user-cog', - content: 'Set New Pin', - disabled: !!E, - onClick: (function () { - function P() { - return V('set_account_pin', { - account_number: B, - }); - } - return P; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Holder', - children: I, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Balance', - children: w, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Status', - color: T ? 'red' : 'green', - children: [ - T ? 'Suspended' : 'Active', - (0, e.createComponentVNode)(2, o.Button, { - ml: 1, - content: T ? 'Unsuspend' : 'Suspend', - icon: T ? 'unlock' : 'lock', - onClick: (function () { - function P() { - return V('toggle_suspension'); - } - return P; - })(), - }), - ], - }), - ], - }), - }), - }), - (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', - }), - ], - }), - A.map(function (P) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: P.time, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: P.purpose, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - color: P.is_deposit ? 'green' : 'red', - children: ['$', P.amount], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: P.target_name, - }), - ], - }, - P - ); - }), - ], - }), - }), - }), - ], - }); - }, - d = function (g, v) { - var h = (0, t.useBackend)(v), - V = h.act, - b = h.data, - B = (0, t.useLocalState)(v, 'accName', ''), - I = B[0], - w = B[1], - T = (0, t.useLocalState)(v, 'accDeposit', ''), - A = T[0], - x = T[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 E() { - return V('back'); - } - return E; - })(), - }), - 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 E(P, D) { - return w(D); - } - return E; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Initial Deposit', - children: (0, e.createComponentVNode)(2, o.Input, { - placeholder: '0', - onChange: (function () { - function E(P, D) { - return x(D); - } - return E; - })(), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, o.Button, { - mt: 1, - fluid: !0, - content: 'Create Account', - onClick: (function () { - function E() { - return V('finalise_create_account', { - holder_name: I, - starting_funds: A, - }); - } - return E; - })(), - }), - ], - }); - }; - }, - 66895: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.AgentCardInfo = r.AgentCardAppearances = r.AgentCard = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AgentCard = (function () { - function S(k, p) { - var l = (0, a.useLocalState)(p, 'tabIndex', 0), - c = l[0], - f = l[1], - i = (function () { - function u(s) { - switch (s) { - case 0: - return (0, e.createComponentVNode)(2, N); - case 1: - return (0, e.createComponentVNode)(2, y); - default: - return (0, e.createComponentVNode)(2, N); - } - } - return u; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 425, - height: 500, - theme: 'syndicate', - 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, { - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Tabs, { - fluid: !0, - children: [ - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: c === 0, - onClick: (function () { - function u() { - return f(0); - } - return u; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'table', - }), - ' Card Info', - ], - }, - 'Card Info' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: c === 1, - onClick: (function () { - function u() { - return f(1); - } - return u; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'id-card', - }), - ' Appearance', - ], - }, - 'Appearance' - ), - ], - }), - }), - i(c), - ], - }), - }), - }); - } - return S; - })()), - N = (r.AgentCardInfo = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.registered_name, - u = f.sex, - s = f.age, - d = f.assignment, - C = f.associated_account_number, - g = f.blood_type, - v = f.dna_hash, - h = f.fingerprint_hash, - V = f.photo, - b = f.ai_tracking; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Card Info', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Name', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: i || '[UNSET]', - onClick: (function () { - function B() { - return c('change_name'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Sex', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - iconRight: !1, - content: u || '[UNSET]', - onClick: (function () { - function B() { - return c('change_sex'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Age', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: s || '[UNSET]', - onClick: (function () { - function B() { - return c('change_age'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Rank', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: d || '[UNSET]', - onClick: (function () { - function B() { - return c('change_occupation'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Fingerprints', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: h || '[UNSET]', - onClick: (function () { - function B() { - return c('change_fingerprints'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Blood Type', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: g || '[UNSET]', - onClick: (function () { - function B() { - return c('change_blood_type'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'DNA Hash', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: v || '[UNSET]', - onClick: (function () { - function B() { - return c('change_dna_hash'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Money Account', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: C || '[UNSET]', - onClick: (function () { - function B() { - return c('change_money_account'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Photo', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: V ? 'Update' : '[UNSET]', - onClick: (function () { - function B() { - return c('change_photo'); - } - return B; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Card Settings', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Card Info', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Delete Card Info', - onClick: (function () { - function B() { - return c('delete_info'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Access', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Reset Access', - onClick: (function () { - function B() { - return c('clear_access'); - } - return B; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'AI Tracking', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: b ? 'Untrackable' : 'Trackable', - onClick: (function () { - function B() { - return c('change_ai_tracking'); - } - return B; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - ], - 4 - ); - } - return S; - })()), - y = (r.AgentCardAppearances = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = (0, a.useLocalState)(p, 'selectedAppearance', null), - u = i[0], - s = i[1], - d = f.appearances; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Card Appearance', - children: d.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - compact: !0, - m: 0.5, - color: 'translucent', - selected: C === u, - content: (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jped;base64,' + C.image, - style: { - width: '64px', - 'vertical-align': 'middle', - '-ms-interpolation-mode': 'nearest-neighbor', - }, - onClick: (function () { - function g() { - s(C), - c('change_appearance', { - new_appearance: C.name, - }); - } - return g; - })(), - }), - }, - C.name - ); - }), - }), - }); - } - return S; - })()); - }, - 26354: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AiAirlock = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = { - 2: { color: 'good', localStatusText: 'Offline' }, - 1: { color: 'average', localStatusText: 'Caution' }, - 0: { color: 'bad', localStatusText: 'Optimal' }, - }, - N = (r.AiAirlock = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = m[c.power.main] || m[0], - i = m[c.power.backup] || m[0], - u = m[c.shock] || m[0]; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 400, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Power Status', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Main', - color: f.color, - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - mb: 0.5, - icon: 'lightbulb-o', - disabled: !c.power.main, - content: 'Disrupt', - onClick: (function () { - function s() { - return l('disrupt-main'); - } - return s; - })(), - } - ), - 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: i.color, - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - mb: 0.5, - icon: 'lightbulb-o', - disabled: !c.power.backup, - content: 'Disrupt', - onClick: (function () { - function s() { - return l('disrupt-backup'); - } - return s; - })(), - } - ), - 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: u.color, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - mr: 0.5, - icon: 'wrench', - disabled: !( - c.wires.shock && c.shock !== 2 - ), - content: 'Restore', - onClick: (function () { - function s() { - return l('shock-restore'); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - mr: 0.5, - icon: 'bolt', - disabled: !c.wires.shock, - content: 'Temporary', - onClick: (function () { - function s() { - return l('shock-temp'); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'bolt', - disabled: - !c.wires.shock || c.shock === 0, - content: 'Permanent', - onClick: (function () { - function s() { - return l('shock-perm'); - } - return s; - })(), - }), - ], - 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: 0.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 s() { - return l('idscan-toggle'); - } - return s; - })(), - } - ), - 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 s() { - return l('emergency-toggle'); - } - return s; - })(), - } - ), - } - ), - (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: 0.5, - icon: c.locked ? 'lock' : 'unlock', - content: c.locked ? 'Lowered' : 'Raised', - selected: c.locked, - disabled: !c.wires.bolts, - onClick: (function () { - function s() { - return l('bolt-toggle'); - } - return s; - })(), - } - ), - 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: 0.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 s() { - return l('light-toggle'); - } - return s; - })(), - } - ), - 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: 0.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 s() { - return l('safe-toggle'); - } - return s; - })(), - } - ), - 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: 0.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 s() { - return l('speed-toggle'); - } - return s; - })(), - } - ), - 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 s() { - return l('open-close'); - } - return s; - })(), - } - ), - children: - !!(c.locked || c.welded) && - (0, e.createVNode)( - 1, - 'span', - null, - [ - (0, e.createTextVNode)('[Door is '), - c.locked ? 'bolted' : '', - c.locked && c.welded ? ' and ' : '', - c.welded ? 'welded' : '', - (0, e.createTextVNode)('!]'), - ], - 0 - ), - } - ), - ], - } - ), - }), - ], - }), - }); - } - return y; - })()); - }, - 26673: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AirAlarm = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(29723), - N = (r.AirAlarm = (function () { - function u(s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.locked; - return (0, e.createComponentVNode)(2, o.Window, { - width: 570, - height: h ? 310 : 755, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, m.InterfaceLockNoticeBox), - (0, e.createComponentVNode)(2, S), - !h && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, p), - ], - 4 - ), - ], - }), - }); - } - return u; - })()), - y = function (s) { - return s === 0 ? 'green' : s === 1 ? 'orange' : 'red'; - }, - S = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.air, - V = v.mode, - b = v.atmos_alarm, - B = v.locked, - I = v.alarmActivated, - w = v.rcon, - T = v.target_temp, - A; - return ( - h.danger.overall === 0 - ? b === 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: y(h.danger.pressure), - children: [ - (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: h.pressure } - ), - ' kPa', - !B && - (0, e.createFragment)( - [ - (0, e.createTextVNode)('\xA0'), - (0, e.createComponentVNode)(2, t.Button, { - content: - V === 3 - ? 'Deactivate Panic Siphon' - : 'Activate Panic Siphon', - selected: V === 3, - icon: 'exclamation-triangle', - onClick: (function () { - function x() { - return g('mode', { - mode: V === 3 ? 1 : 3, - }); - } - return x; - })(), - }), - ], - 4 - ), - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Oxygen', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.oxygen / 100, - fractionDigits: '1', - color: y(h.danger.oxygen), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Nitrogen', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.nitrogen / 100, - fractionDigits: '1', - color: y(h.danger.nitrogen), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Carbon Dioxide', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.co2 / 100, - fractionDigits: '1', - color: y(h.danger.co2), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Toxins', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.plasma / 100, - fractionDigits: '1', - color: y(h.danger.plasma), - } - ), - }), - h.contents.n2o > 0.1 && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Nitrous Oxide', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.n2o / 100, - fractionDigits: '1', - color: y(h.danger.n2o), - } - ), - }), - h.contents.other > 0.1 && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Other', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: h.contents.other / 100, - fractionDigits: '1', - color: y(h.danger.other), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Temperature', - children: (0, e.createComponentVNode)(2, t.Box, { - color: y(h.danger.temperature), - children: [ - (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: h.temperature } - ), - ' K /', - ' ', - (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: h.temperature_c } - ), - ' C\xA0', - (0, e.createComponentVNode)(2, t.Button, { - icon: 'thermometer-full', - content: T + ' C', - onClick: (function () { - function x() { - return g('temperature'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: h.thermostat_state ? 'On' : 'Off', - selected: h.thermostat_state, - icon: 'power-off', - onClick: (function () { - function x() { - return g('thermostat_state'); - } - return x; - })(), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Local Status', - children: (0, e.createComponentVNode)(2, t.Box, { - color: y(h.danger.overall), - children: [ - A, - !B && - (0, e.createFragment)( - [ - (0, e.createTextVNode)('\xA0'), - (0, e.createComponentVNode)(2, t.Button, { - content: I - ? 'Reset Alarm' - : 'Activate Alarm', - selected: I, - onClick: (function () { - function x() { - return g( - I ? 'atmos_reset' : 'atmos_alarm' - ); - } - return x; - })(), - }), - ], - 4 - ), - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Remote Control Settings', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Off', - selected: w === 1, - onClick: (function () { - function x() { - return g('set_rcon', { rcon: 1 }); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Auto', - selected: w === 2, - onClick: (function () { - function x() { - return g('set_rcon', { rcon: 2 }); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'On', - selected: w === 3, - onClick: (function () { - function x() { - return g('set_rcon', { rcon: 3 }); - } - return x; - })(), - }), - ], - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Box, { - children: 'Unable to acquire air sample!', - }), - }) - ); - }, - k = function (s, d) { - var C = (0, a.useLocalState)(d, 'tabIndex', 0), - g = C[0], - v = C[1]; - return (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 0, - onClick: (function () { - function h() { - return v(0); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'sign-out-alt', - }), - ' Vent Control', - ], - }, - 'Vents' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 1, - onClick: (function () { - function h() { - return v(1); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'sign-in-alt', - }), - ' Scrubber Control', - ], - }, - 'Scrubbers' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 2, - onClick: (function () { - function h() { - return v(2); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { name: 'cog' }), - ' Mode', - ], - }, - 'Mode' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 3, - onClick: (function () { - function h() { - return v(3); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'tachometer-alt', - }), - ' Thresholds', - ], - }, - 'Thresholds' - ), - ], - }); - }, - p = function (s, d) { - var C = (0, a.useLocalState)(d, 'tabIndex', 0), - g = C[0], - v = C[1]; - switch (g) { - case 0: - return (0, e.createComponentVNode)(2, l); - case 1: - return (0, e.createComponentVNode)(2, c); - case 2: - return (0, e.createComponentVNode)(2, f); - case 3: - return (0, e.createComponentVNode)(2, i); - default: - return "WE SHOULDN'T BE HERE!"; - } - }, - l = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.vents; - return h.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: V.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: V.power ? 'On' : 'Off', - selected: V.power, - icon: 'power-off', - onClick: (function () { - function b() { - return g('command', { - cmd: 'power', - val: !V.power, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: V.direction ? 'Blowing' : 'Siphoning', - icon: V.direction - ? 'sign-out-alt' - : 'sign-in-alt', - onClick: (function () { - function b() { - return g('command', { - cmd: 'direction', - val: !V.direction, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Pressure Checks', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'External', - selected: V.checks === 1, - onClick: (function () { - function b() { - return g('command', { - cmd: 'checks', - val: 1, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Internal', - selected: V.checks === 2, - onClick: (function () { - function b() { - return g('command', { - cmd: 'checks', - val: 2, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'External Pressure Target', - children: [ - (0, e.createComponentVNode)(2, t.AnimatedNumber, { - value: V.external, - }), - ' kPa\xA0', - (0, e.createComponentVNode)(2, t.Button, { - content: 'Set', - icon: 'cog', - onClick: (function () { - function b() { - return g('command', { - cmd: 'set_external_pressure', - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Reset', - icon: 'redo-alt', - onClick: (function () { - function b() { - return g('command', { - cmd: 'set_external_pressure', - val: 101.325, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - ], - }), - ], - }), - }, - V.name - ); - }); - }, - c = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.scrubbers; - return h.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: V.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: V.power ? 'On' : 'Off', - selected: V.power, - icon: 'power-off', - onClick: (function () { - function b() { - return g('command', { - cmd: 'power', - val: !V.power, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: V.scrubbing ? 'Scrubbing' : 'Siphoning', - icon: V.scrubbing ? 'filter' : 'sign-in-alt', - onClick: (function () { - function b() { - return g('command', { - cmd: 'scrubbing', - val: !V.scrubbing, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Range', - children: (0, e.createComponentVNode)(2, t.Button, { - content: V.widenet ? 'Extended' : 'Normal', - selected: V.widenet, - icon: 'expand-arrows-alt', - onClick: (function () { - function b() { - return g('command', { - cmd: 'widenet', - val: !V.widenet, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Filtering', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Carbon Dioxide', - selected: V.filter_co2, - onClick: (function () { - function b() { - return g('command', { - cmd: 'co2_scrub', - val: !V.filter_co2, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Plasma', - selected: V.filter_toxins, - onClick: (function () { - function b() { - return g('command', { - cmd: 'tox_scrub', - val: !V.filter_toxins, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Nitrous Oxide', - selected: V.filter_n2o, - onClick: (function () { - function b() { - return g('command', { - cmd: 'n2o_scrub', - val: !V.filter_n2o, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Oxygen', - selected: V.filter_o2, - onClick: (function () { - function b() { - return g('command', { - cmd: 'o2_scrub', - val: !V.filter_o2, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Nitrogen', - selected: V.filter_n2, - onClick: (function () { - function b() { - return g('command', { - cmd: 'n2_scrub', - val: !V.filter_n2, - id_tag: V.id_tag, - }); - } - return b; - })(), - }), - ], - }), - ], - }), - }, - V.name - ); - }); - }, - f = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.modes, - V = v.presets, - b = v.emagged, - B = v.mode, - I = v.preset; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'System Mode', - children: (0, e.createComponentVNode)(2, t.Table, { - children: h.map(function (w) { - return ( - (!w.emagonly || (w.emagonly && !!b)) && - (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: w.name, - icon: 'cog', - selected: w.id === B, - onClick: (function () { - function T() { - return g('mode', { mode: w.id }); - } - return T; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: w.desc, - }), - ], - }, - w.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: V.map(function (w) { - 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: w.name, - icon: 'cog', - selected: w.id === I, - onClick: (function () { - function T() { - return g('preset', { preset: w.id }); - } - return T; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: w.desc, - }), - ], - }, - w.name - ); - }), - }), - ], - }), - ], - 4 - ); - }, - i = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.thresholds; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Alarm Thresholds', - children: (0, e.createComponentVNode)(2, t.Table, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - width: '20%', - children: 'Value', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - color: 'red', - width: '20%', - children: 'Danger Min', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - color: 'orange', - width: '20%', - children: 'Warning Min', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - color: 'orange', - width: '20%', - children: 'Warning Max', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - color: 'red', - width: '20%', - children: 'Danger Max', - }), - ], - }), - h.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: V.name, - }), - V.settings.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: - b.selected === -1 ? 'Off' : b.selected, - onClick: (function () { - function B() { - return g('command', { - cmd: 'set_threshold', - env: b.env, - var: b.val, - }); - } - return B; - })(), - } - ), - }, - b.val - ); - }), - ], - }, - V.name - ); - }), - ], - }), - }); - }; - }, - 98565: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AirlockAccessController = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AirlockAccessController = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.exterior_status, - f = l.interior_status, - i = l.processing, - u, - s; - return ( - c === 'open' - ? (u = (0, e.createComponentVNode)(2, t.Button, { - width: '50%', - content: 'Lock Exterior Door', - icon: 'exclamation-triangle', - disabled: i, - onClick: (function () { - function d() { - return p('force_ext'); - } - return d; - })(), - })) - : (u = (0, e.createComponentVNode)(2, t.Button, { - width: '50%', - content: 'Cycle to Exterior', - icon: 'arrow-circle-left', - disabled: i, - onClick: (function () { - function d() { - return p('cycle_ext_door'); - } - return d; - })(), - })), - f === 'open' - ? (s = (0, e.createComponentVNode)(2, t.Button, { - width: '49%', - content: 'Lock Interior Door', - icon: 'exclamation-triangle', - disabled: i, - color: f === 'open' ? 'red' : i ? 'yellow' : null, - onClick: (function () { - function d() { - return p('force_int'); - } - return d; - })(), - })) - : (s = (0, e.createComponentVNode)(2, t.Button, { - width: '49%', - content: 'Cycle to Interior', - icon: 'arrow-circle-right', - disabled: i, - onClick: (function () { - function d() { - return p('cycle_int_door'); - } - return d; - })(), - })), - (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: [u, s], - }), - }), - ], - }), - }) - ); - } - return N; - })()); - }, - 76385: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AirlockElectronics = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(14635), - N = 1, - y = 2, - S = 4, - k = 8, - p = (r.AirlockElectronics = (function () { - function f(i, u) { - 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, l), - (0, e.createComponentVNode)(2, c), - ], - }), - }), - }); - } - return f; - })()), - l = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.unrestricted_dir; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Access Control', - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - mb: 1, - children: 'Unrestricted Access From:', - }), - (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'arrow-left', - content: 'East', - selected: g & S ? 'selected' : null, - onClick: (function () { - function v() { - return d('unrestricted_access', { - unres_dir: S, - }); - } - return v; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'arrow-up', - content: 'South', - selected: g & y ? 'selected' : null, - onClick: (function () { - function v() { - return d('unrestricted_access', { - unres_dir: y, - }); - } - return v; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'arrow-right', - content: 'West', - selected: g & k ? 'selected' : null, - onClick: (function () { - function v() { - return d('unrestricted_access', { - unres_dir: k, - }); - } - return v; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'arrow-down', - content: 'North', - selected: g & N ? 'selected' : null, - onClick: (function () { - function v() { - return d('unrestricted_access', { - unres_dir: N, - }); - } - return v; - })(), - }), - }), - ], - }), - ], - }), - }); - }, - c = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.selected_accesses, - v = C.one_access, - h = C.regions; - return (0, e.createComponentVNode)(2, m.AccessList, { - usedByRcd: 1, - rcdButtons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - checked: v, - content: 'One', - onClick: (function () { - function V() { - return d('set_one_access', { access: 'one' }); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - checked: !v, - content: 'All', - onClick: (function () { - function V() { - return d('set_one_access', { access: 'all' }); - } - return V; - })(), - }), - ], - 4 - ), - accesses: h, - selectedList: g, - accessMod: (function () { - function V(b) { - return d('set', { access: b }); - } - return V; - })(), - grantAll: (function () { - function V() { - return d('grant_all'); - } - return V; - })(), - denyAll: (function () { - function V() { - return d('clear_all'); - } - return V; - })(), - grantDep: (function () { - function V(b) { - return d('grant_region', { region: b }); - } - return V; - })(), - denyDep: (function () { - function V(b) { - return d('deny_region', { region: b }); - } - return V; - })(), - }); - }; - }, - 55666: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AlertModal = void 0); - var e = n(28823), - a = n(2146), - t = n(91819), - o = n(31068), - m = n(2971), - N = n(84947), - y = -1, - S = 1, - k = (r.AlertModal = (function () { - function c(f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.autofocus, - g = d.buttons, - v = g === void 0 ? [] : g, - h = d.large_buttons, - V = d.message, - b = V === void 0 ? '' : V, - B = d.timeout, - I = d.title, - w = (0, t.useLocalState)(i, 'selected', 0), - T = w[0], - A = w[1], - x = - 110 + - (b.length > 30 ? Math.ceil(b.length / 4) : 0) + - (b.length && h ? 5 : 0), - E = 325 + (v.length > 2 ? 100 : 0), - P = (function () { - function D(M) { - T === 0 && M === y - ? A(v.length - 1) - : T === v.length - 1 && M === S - ? A(0) - : A(T + M); - } - return D; - })(); - return (0, e.createComponentVNode)(2, N.Window, { - title: I, - height: x, - width: E, - children: [ - !!B && - (0, e.createComponentVNode)(2, a.Loader, { value: B }), - (0, e.createComponentVNode)(2, N.Window.Content, { - onKeyDown: (function () { - function D(M) { - var O = window.event ? M.which : M.keyCode; - O === o.KEY_SPACE || O === o.KEY_ENTER - ? s('choose', { choice: v[T] }) - : O === o.KEY_ESCAPE - ? s('cancel') - : O === o.KEY_LEFT - ? (M.preventDefault(), P(y)) - : (O === o.KEY_TAB || O === o.KEY_RIGHT) && - (M.preventDefault(), P(S)); - } - return D; - })(), - children: (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - m: 1, - children: (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - overflow: 'hidden', - children: b, - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: [ - !!C && - (0, e.createComponentVNode)(2, m.Autofocus), - (0, e.createComponentVNode)(2, p, { - selected: T, - }), - ], - }), - ], - }), - }), - }), - ], - }); - } - return c; - })()), - p = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.data, - d = s.buttons, - C = d === void 0 ? [] : d, - g = s.large_buttons, - v = s.swapped_buttons, - h = f.selected; - return (0, e.createComponentVNode)(2, m.Flex, { - fill: !0, - align: 'center', - direction: v ? 'row' : 'row-reverse', - justify: 'space-around', - wrap: !0, - children: - C == null - ? void 0 - : C.map(function (V, b) { - return g && C.length < 3 - ? (0, e.createComponentVNode)( - 2, - m.Flex.Item, - { - grow: !0, - children: (0, e.createComponentVNode)(2, l, { - button: V, - id: b.toString(), - selected: h === b, - }), - }, - b - ) - : (0, e.createComponentVNode)( - 2, - m.Flex.Item, - { - grow: g ? 1 : 0, - children: (0, e.createComponentVNode)(2, l, { - button: V, - id: b.toString(), - selected: h === b, - }), - }, - b - ); - }), - }); - }, - l = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.large_buttons, - g = f.button, - v = f.selected, - h = g.length > 7 ? '100%' : 7; - return (0, e.createComponentVNode)(2, m.Button, { - mx: C ? 1 : 0, - pt: C ? 0.33 : 0, - content: g, - fluid: !!C, - onClick: (function () { - function V() { - return s('choose', { choice: g }); - } - return V; - })(), - selected: v, - textAlign: 'center', - height: !!C && 2, - width: !C && h, - }); - }; - }, - 16504: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AppearanceChanger = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AppearanceChanger = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.change_race, - i = c.species, - u = c.specimen, - s = c.change_gender, - d = c.gender, - C = c.has_gender, - g = c.change_eye_color, - v = c.change_skin_tone, - h = c.change_skin_color, - V = c.change_head_accessory_color, - b = c.change_hair_color, - B = c.change_secondary_hair_color, - I = c.change_facial_hair_color, - w = c.change_secondary_facial_hair_color, - T = c.change_head_marking_color, - A = c.change_body_marking_color, - x = c.change_tail_marking_color, - E = c.change_head_accessory, - P = c.head_accessory_styles, - D = c.head_accessory_style, - M = c.change_hair, - O = c.hair_styles, - j = c.hair_style, - F = c.change_hair_gradient, - U = c.change_facial_hair, - _ = c.facial_hair_styles, - z = c.facial_hair_style, - H = c.change_head_markings, - $ = c.head_marking_styles, - Y = c.head_marking_style, - X = c.change_body_markings, - re = c.body_marking_styles, - ae = c.body_marking_style, - se = c.change_tail_markings, - pe = c.tail_marking_styles, - ye = c.tail_marking_style, - Be = c.change_body_accessory, - he = c.body_accessory_styles, - oe = c.body_accessory_style, - Z = c.change_alt_head, - q = c.alt_head_styles, - ue = c.alt_head_style, - me = !1; - return ( - (g || v || h || V || b || B || I || w || T || A || x) && - (me = !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: i.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.specimen, - selected: ne.specimen === u, - onClick: (function () { - function be() { - return l('race', { race: ne.specimen }); - } - return be; - })(), - }, - ne.specimen - ); - }), - }), - !!s && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Gender', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Male', - selected: d === 'male', - onClick: (function () { - function ne() { - return l('gender', { gender: 'male' }); - } - return ne; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Female', - selected: d === 'female', - onClick: (function () { - function ne() { - return l('gender', { gender: 'female' }); - } - return ne; - })(), - }), - !C && - (0, e.createComponentVNode)(2, t.Button, { - content: 'Genderless', - selected: d === 'plural', - onClick: (function () { - function ne() { - return l('gender', { - gender: 'plural', - }); - } - return ne; - })(), - }), - ], - }), - !!me && (0, e.createComponentVNode)(2, N), - !!E && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Head accessory', - children: P.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.headaccessorystyle, - selected: ne.headaccessorystyle === D, - onClick: (function () { - function be() { - return l('head_accessory', { - head_accessory: ne.headaccessorystyle, - }); - } - return be; - })(), - }, - ne.headaccessorystyle - ); - }), - }), - !!M && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Hair', - children: O.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.hairstyle, - selected: ne.hairstyle === j, - onClick: (function () { - function be() { - return l('hair', { - hair: ne.hairstyle, - }); - } - return be; - })(), - }, - ne.hairstyle - ); - }), - }), - !!F && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Hair Gradient', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Change Style', - onClick: (function () { - function ne() { - return l('hair_gradient'); - } - return ne; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Change Offset', - onClick: (function () { - function ne() { - return l('hair_gradient_offset'); - } - return ne; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Change Color', - onClick: (function () { - function ne() { - return l('hair_gradient_colour'); - } - return ne; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Change Alpha', - onClick: (function () { - function ne() { - return l('hair_gradient_alpha'); - } - return ne; - })(), - }), - ], - }), - !!U && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Facial hair', - children: _.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.facialhairstyle, - selected: ne.facialhairstyle === z, - onClick: (function () { - function be() { - return l('facial_hair', { - facial_hair: ne.facialhairstyle, - }); - } - return be; - })(), - }, - ne.facialhairstyle - ); - }), - }), - !!H && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Head markings', - children: $.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.headmarkingstyle, - selected: ne.headmarkingstyle === Y, - onClick: (function () { - function be() { - return l('head_marking', { - head_marking: ne.headmarkingstyle, - }); - } - return be; - })(), - }, - ne.headmarkingstyle - ); - }), - }), - !!X && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Body markings', - children: re.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.bodymarkingstyle, - selected: ne.bodymarkingstyle === ae, - onClick: (function () { - function be() { - return l('body_marking', { - body_marking: ne.bodymarkingstyle, - }); - } - return be; - })(), - }, - ne.bodymarkingstyle - ); - }), - }), - !!se && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Tail markings', - children: pe.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.tailmarkingstyle, - selected: ne.tailmarkingstyle === ye, - onClick: (function () { - function be() { - return l('tail_marking', { - tail_marking: ne.tailmarkingstyle, - }); - } - return be; - })(), - }, - ne.tailmarkingstyle - ); - }), - }), - !!Be && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Body accessory', - children: he.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.bodyaccessorystyle, - selected: ne.bodyaccessorystyle === oe, - onClick: (function () { - function be() { - return l('body_accessory', { - body_accessory: ne.bodyaccessorystyle, - }); - } - return be; - })(), - }, - ne.bodyaccessorystyle - ); - }), - }), - !!Z && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Alternate head', - children: q.map(function (ne) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: ne.altheadstyle, - selected: ne.altheadstyle === ue, - onClick: (function () { - function be() { - return l('alt_head', { - alt_head: ne.altheadstyle, - }); - } - return be; - })(), - }, - ne.altheadstyle - ); - }), - }), - ], - }), - }), - }) - ); - } - return y; - })()), - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = 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 (i) { - return ( - !!c[i.key] && - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: i.text, - onClick: (function () { - function u() { - return l(i.action); - } - return u; - })(), - }, - i.key - ) - ); - }), - }); - }; - }, - 77280: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosAlertConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AtmosAlertConsole = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.priority || [], - f = l.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 (i) { - return (0, e.createVNode)( - 1, - 'li', - 'color-bad', - i, - 0, - null, - i - ); - }), - f.length === 0 && - (0, e.createVNode)( - 1, - 'li', - 'color-good', - 'No Minor Alerts', - 16 - ), - f.map(function (i) { - return (0, e.createVNode)( - 1, - 'li', - 'color-average', - i, - 0, - null, - i - ); - }), - ], - 0 - ), - }), - }), - }); - } - return N; - })()); - }, - 66274: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosControl = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(99753), - m = n(84947), - N = function (c) { - if (c === 0) - return (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: 'Good', - }); - if (c === 1) - return (0, e.createComponentVNode)(2, t.Box, { - color: 'orange', - bold: !0, - children: 'Warning', - }); - if (c === 2) - return (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - bold: !0, - children: 'DANGER', - }); - }, - y = function (c) { - if (c === 0) return 'green'; - if (c === 1) return 'orange'; - if (c === 2) return 'red'; - }, - S = (r.AtmosControl = (function () { - function l(c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = (0, a.useLocalState)(f, 'tabIndex', 0), - C = d[0], - g = d[1], - v = (function () { - function h(V) { - switch (V) { - case 0: - return (0, e.createComponentVNode)(2, k); - case 1: - return (0, e.createComponentVNode)(2, p); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return h; - })(); - return (0, e.createComponentVNode)(2, m.Window, { - width: 800, - height: 600, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: C === 0, - children: (0, e.createComponentVNode)(2, t.Box, { - fillPositionedParent: !0, - children: [ - (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: C === 0, - onClick: (function () { - function h() { - return g(0); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'table', - }), - ' Data View', - ], - }, - 'DataView' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: C === 1, - onClick: (function () { - function h() { - return g(1); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'map-marked-alt', - }), - ' Map View', - ], - }, - 'MapView' - ), - ], - }), - v(C), - ], - }), - }), - }); - } - return l; - })()), - k = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.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', - }), - ], - }), - d.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, o.TableCell, { - children: C.name, - }), - (0, e.createComponentVNode)(2, o.TableCell, { - children: N(C.danger), - }), - (0, e.createComponentVNode)(2, o.TableCell, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'cog', - content: 'Access', - onClick: (function () { - function g() { - return u('open_alarm', { aref: C.ref }); - } - return g; - })(), - } - ), - }), - ], - }, - C.name - ); - }), - ], - }), - }); - }, - p = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.data, - s = (0, a.useLocalState)(f, 'zoom', 1), - d = s[0], - C = s[1], - g = u.alarms; - return (0, e.createComponentVNode)(2, t.Box, { - height: '526px', - mb: '0.5rem', - overflow: 'hidden', - children: (0, e.createComponentVNode)(2, t.NanoMap, { - onZoom: (function () { - function v(h) { - return C(h); - } - return v; - })(), - children: g - .filter(function (v) { - return v.z === 3; - }) - .map(function (v) { - return (0, e.createComponentVNode)( - 2, - t.NanoMap.Marker, - { - x: v.x, - y: v.y, - zoom: d, - icon: 'circle', - tooltip: v.name, - color: y(v.danger), - }, - v.ref - ); - }), - }), - }); - }; - }, - 90588: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosFilter = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AtmosFilter = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.on, - f = l.pressure, - i = l.max_pressure, - u = l.filter_type, - s = l.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 d() { - return p('power'); - } - return d; - })(), - }), - }), - (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 d() { - return p('min_pressure'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - unit: 'kPa', - width: 6.1, - lineHeight: 1.5, - step: 10, - minValue: 0, - maxValue: i, - value: f, - onDrag: (function () { - function d(C, g) { - return p('custom_pressure', { - pressure: g, - }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - textAlign: 'center', - disabled: f === i, - width: 2.2, - onClick: (function () { - function d() { - return p('max_pressure'); - } - return d; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Filter', - children: s.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.gas_type === u, - content: d.label, - onClick: (function () { - function C() { - return p('set_filter', { - filter: d.gas_type, - }); - } - return C; - })(), - }, - d.label - ); - }), - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 87486: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosMixer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AtmosMixer = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.on, - i = c.pressure, - u = c.max_pressure, - s = c.node1_concentration, - d = 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 C() { - return l('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: i === 0, - width: 2.2, - onClick: (function () { - function C() { - return l('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: i, - onDrag: (function () { - function C(g, v) { - return l('custom_pressure', { - pressure: v, - }); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - textAlign: 'center', - disabled: i === u, - width: 2.2, - onClick: (function () { - function C() { - return l('max_pressure'); - } - return C; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, N, { - node_name: 'Node 1', - node_ref: s, - }), - (0, e.createComponentVNode)(2, N, { - node_name: 'Node 2', - node_ref: d, - }), - ], - }), - }), - }), - }); - } - return y; - })()), - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = S.node_name, - i = S.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: i === 0, - onClick: (function () { - function u() { - return l('set_node', { - node_name: f, - concentration: (i - 10) / 100, - }); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - unit: '%', - width: 6.1, - lineHeight: 1.5, - stepPixelSize: 10, - minValue: 0, - maxValue: 100, - value: i, - onChange: (function () { - function u(s, d) { - return l('set_node', { - node_name: f, - concentration: d / 100, - }); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - textAlign: 'center', - width: 2.2, - disabled: i === 100, - onClick: (function () { - function u() { - return l('set_node', { - node_name: f, - concentration: (i + 10) / 100, - }); - } - return u; - })(), - }), - ], - }); - }; - }, - 46714: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosPump = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.AtmosPump = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.on, - f = l.rate, - i = l.max_rate, - u = l.gas_unit, - s = l.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 d() { - return p('power'); - } - return d; - })(), - }), - }), - (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 d() { - return p('min_rate'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - unit: u, - width: 6.1, - lineHeight: 1.5, - step: s, - minValue: 0, - maxValue: i, - value: f, - onDrag: (function () { - function d(C, g) { - return p('custom_rate', { rate: g }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - textAlign: 'center', - disabled: f === i, - width: 2.2, - onClick: (function () { - function d() { - return p('max_rate'); - } - return d; - })(), - }), - ], - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 66032: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosTankControl = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(58331), - m = n(30381), - N = n(84947), - y = (r.AtmosTankControl = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.sensors || {}; - return (0, e.createComponentVNode)(2, N.Window, { - width: 400, - height: 400, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - scrollable: !0, - children: [ - Object.keys(i).map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: u, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - Object.keys(i[u]).indexOf('pressure') > -1 - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Pressure', - children: [i[u].pressure, ' kpa'], - } - ) - : '', - Object.keys(i[u]).indexOf('temperature') > -1 - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Temperature', - children: [i[u].temperature, ' K'], - } - ) - : '', - ['o2', 'n2', 'plasma', 'co2', 'n2o'].map( - function (s) { - return Object.keys(i[u]).indexOf(s) > -1 - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: (0, m.getGasLabel)(s), - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - color: (0, m.getGasColor)(s), - value: i[u][s], - minValue: 0, - maxValue: 100, - children: - (0, o.toFixed)(i[u][s], 2) + - '%', - } - ), - }, - (0, m.getGasLabel)(s) - ) - : ''; - } - ), - ], - } - ), - }, - u - ); - }), - f.inlet && Object.keys(f.inlet).length > 0 - ? (0, e.createComponentVNode)(2, t.Section, { - title: 'Inlet Control', - 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: (f.inlet.on, 'power-off'), - content: f.inlet.on ? 'On' : 'Off', - color: f.inlet.on ? null : 'red', - selected: f.inlet.on, - onClick: (function () { - function u() { - return c('toggle_active', { - dev: 'inlet', - }); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Rate', - children: (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - animated: !0, - unit: 'L/s', - width: 6.1, - lineHeight: 1.5, - step: 1, - minValue: 0, - maxValue: 50, - value: f.inlet.rate, - onDrag: (function () { - function u(s, d) { - return c('set_pressure', { - dev: 'inlet', - val: d, - }); - } - return u; - })(), - } - ), - } - ), - ], - } - ), - }) - : '', - f.outlet && Object.keys(f.outlet).length > 0 - ? (0, e.createComponentVNode)(2, t.Section, { - title: 'Outlet Control', - 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: (f.outlet.on, 'power-off'), - content: f.outlet.on ? 'On' : 'Off', - color: f.outlet.on ? null : 'red', - selected: f.outlet.on, - onClick: (function () { - function u() { - return c('toggle_active', { - dev: 'outlet', - }); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Rate', - children: (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - animated: !0, - unit: 'kPa', - width: 6.1, - lineHeight: 1.5, - step: 10, - minValue: 0, - maxValue: 5066, - value: f.outlet.rate, - onDrag: (function () { - function u(s, d) { - return c('set_pressure', { - dev: 'outlet', - val: d, - }); - } - return u; - })(), - } - ), - } - ), - ], - } - ), - }) - : '', - ], - }), - }); - } - return S; - })()); - }, - 62343: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Autolathe = void 0); - var e = n(28823), - a = n(90955), - t = n(72026), - o = n(91819), - m = n(2971), - N = n(84947), - y = n(37843), - S = function (l, c, f, i) { - return l.requirements === null - ? !0 - : !( - l.requirements.metal * i > c || l.requirements.glass * i > f - ); - }, - k = (r.Autolathe = (function () { - function p(l, c) { - var f = (0, o.useBackend)(c), - i = f.act, - u = f.data, - s = u.total_amount, - d = u.max_amount, - C = u.metal_amount, - g = u.glass_amount, - v = u.busyname, - h = u.busyamt, - V = u.showhacked, - b = u.buildQueue, - B = u.buildQueueLen, - I = u.recipes, - w = u.categories, - T = (0, o.useSharedState)(c, 'category', 0), - A = T[0], - x = T[1]; - A === 0 && (A = 'Tools'); - var E = C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'), - P = g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'), - D = s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'), - M = (0, o.useSharedState)(c, 'search_text', ''), - O = M[0], - j = M[1], - F = (0, y.createSearch)(O, function (H) { - return H.name; - }), - U = ''; - B > 0 && - (U = b.map(function (H, $) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { - children: (0, e.createComponentVNode)( - 2, - m.Button, - { - fluid: !0, - icon: 'times', - color: 'transparent', - content: b[$][0], - onClick: (function () { - function Y() { - return i('remove_from_queue', { - remove_from_queue: b.indexOf(H) + 1, - }); - } - return Y; - })(), - }, - H - ), - }, - $ - ); - })); - var _ = (0, a.flow)([ - (0, t.filter)(function (H) { - return ( - (H.category.indexOf(A) > -1 || O) && - (u.showhacked || !H.hacked) - ); - }), - O && (0, t.filter)(F), - (0, t.sortBy)(function (H) { - return H.name.toLowerCase(); - }), - ])(I), - z = 'Build'; - return ( - O - ? (z = "Results for: '" + O + "':") - : A && (z = 'Build (' + A + ')'), - (0, e.createComponentVNode)(2, N.Window, { - width: 750, - height: 525, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - horizontal: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - width: '70%', - children: (0, e.createComponentVNode)( - 2, - m.Section, - { - fill: !0, - scrollable: !0, - title: z, - buttons: (0, e.createComponentVNode)( - 2, - m.Dropdown, - { - width: '150px', - options: w, - selected: A, - onSelected: (function () { - function H($) { - return x($); - } - return H; - })(), - } - ), - children: [ - (0, e.createComponentVNode)(2, m.Input, { - fluid: !0, - placeholder: 'Search for...', - onInput: (function () { - function H($, Y) { - return j(Y); - } - return H; - })(), - mb: 1, - }), - _.map(function (H) { - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - children: [ - (0, e.createVNode)( - 1, - 'img', - null, - null, - 1, - { - src: - 'data:image/jpeg;base64,' + - H.image, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '0px', - 'margin-left': '0px', - }, - } - ), - (0, e.createComponentVNode)( - 2, - m.Button, - { - mr: 1, - icon: 'hammer', - selected: - u.busyname === H.name && - u.busyamt === 1, - disabled: !S( - H, - u.metal_amount, - u.glass_amount, - 1 - ), - onClick: (function () { - function $() { - return i('make', { - make: H.uid, - multiplier: 1, - }); - } - return $; - })(), - children: (0, y.toTitleCase)( - H.name - ), - } - ), - H.max_multiplier >= 10 && - (0, e.createComponentVNode)( - 2, - m.Button, - { - mr: 1, - icon: 'hammer', - selected: - u.busyname === H.name && - u.busyamt === 10, - disabled: !S( - H, - u.metal_amount, - u.glass_amount, - 10 - ), - onClick: (function () { - function $() { - return i('make', { - make: H.uid, - multiplier: 10, - }); - } - return $; - })(), - children: '10x', - } - ), - H.max_multiplier >= 25 && - (0, e.createComponentVNode)( - 2, - m.Button, - { - mr: 1, - icon: 'hammer', - selected: - u.busyname === H.name && - u.busyamt === 25, - disabled: !S( - H, - u.metal_amount, - u.glass_amount, - 25 - ), - onClick: (function () { - function $() { - return i('make', { - make: H.uid, - multiplier: 25, - }); - } - return $; - })(), - children: '25x', - } - ), - H.max_multiplier > 25 && - (0, e.createComponentVNode)( - 2, - m.Button, - { - mr: 1, - icon: 'hammer', - selected: - u.busyname === H.name && - u.busyamt === - H.max_multiplier, - disabled: !S( - H, - u.metal_amount, - u.glass_amount, - H.max_multiplier - ), - onClick: (function () { - function $() { - return i('make', { - make: H.uid, - multiplier: - H.max_multiplier, - }); - } - return $; - })(), - children: [ - H.max_multiplier, - 'x', - ], - } - ), - (H.requirements && - Object.keys(H.requirements) - .map(function ($) { - return ( - (0, y.toTitleCase)($) + - ': ' + - H.requirements[$] - ); - }) - .join(', ')) || - (0, e.createComponentVNode)( - 2, - m.Box, - { - children: - 'No resources required.', - } - ), - ], - }, - H.ref - ); - }), - ], - } - ), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - width: '30%', - children: [ - (0, e.createComponentVNode)(2, m.Section, { - title: 'Materials', - children: (0, e.createComponentVNode)( - 2, - m.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { label: 'Metal', children: E } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { label: 'Glass', children: P } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { label: 'Total', children: D } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: 'Storage', - children: [u.fill_percent, '% Full'], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, m.Section, { - title: 'Building', - children: (0, e.createComponentVNode)( - 2, - m.Box, - { - color: v ? 'green' : '', - children: v || 'Nothing', - } - ), - }), - (0, e.createComponentVNode)(2, m.Section, { - title: 'Build Queue', - height: 23.7, - children: [ - U, - (0, e.createComponentVNode)(2, m.Button, { - mt: 0.5, - fluid: !0, - icon: 'times', - content: 'Clear All', - color: 'red', - disabled: !u.buildQueueLen, - onClick: (function () { - function H() { - return i('clear_queue'); - } - return H; - })(), - }), - ], - }), - ], - }), - ], - }), - }), - }) - ); - } - return p; - })()); - }, - 13940: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BioChipPad = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.BioChipPad = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.implant, - f = l.contains_case; - return (0, e.createComponentVNode)(2, o.Window, { - width: 410, - height: 400, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Bio-chip Mini-Computer', - 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, - } - ), - ], - }), - ], - 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!', - }), - (0, e.createComponentVNode)(2, t.Button, { - mt: 2, - content: 'Eject Case', - icon: 'eject', - disabled: !f, - onClick: (function () { - function i() { - return p('eject_case'); - } - return i; - })(), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 55295: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Biogenerator = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(48154), - N = (r.Biogenerator = (function () { - function l(c, f) { - var i = (0, a.useBackend)(f), - u = i.data, - s = i.config, - d = u.container, - C = u.processing, - g = 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, m.Operating, { - operating: C, - name: g, - }), - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, k), - d - ? (0, e.createComponentVNode)(2, p) - : (0, e.createComponentVNode)(2, y), - ], - }), - }), - }); - } - return l; - })()), - y = function (c, f) { - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - 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: 'silver', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'flask', - size: 5, - mb: '10px', - }), - (0, e.createVNode)(1, 'br'), - 'The biogenerator is missing a container.', - ], - }), - }), - }); - }, - S = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.biomass, - C = s.container, - g = s.container_curr_reagents, - v = 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: d, - }), - (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: g, - maxValue: v, - children: (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - children: g + ' / ' + v + ' units', - }), - }) - : (0, e.createComponentVNode)(2, t.Stack.Item, { - children: 'None', - }), - ], - }), - ], - }); - }, - k = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = 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: !d, - tooltip: d - ? '' - : 'There are no plants in the biogenerator.', - tooltipPosition: 'top-start', - content: 'Activate', - onClick: (function () { - function g() { - return u('activate'); - } - return g; - })(), - }), - }), - (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 g() { - return u('detach_container'); - } - return g; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '30%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'eject', - disabled: !d, - tooltip: d - ? '' - : 'There are no stored plants to eject.', - tooltipPosition: 'top-end', - content: 'Eject Plants', - onClick: (function () { - function g() { - return u('eject_plants'); - } - return g; - })(), - }), - }), - ], - }), - }); - }, - p = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.biomass, - C = s.product_list, - g = (0, a.useSharedState)(f, 'vendAmount', 1), - v = g[0], - h = g[1], - V = Object.entries(C).map(function (b, B) { - var I = Object.entries(b[1]).map(function (w) { - return w[1]; - }); - return (0, e.createComponentVNode)( - 2, - t.Collapsible, - { - title: b[0], - open: !0, - children: I.map(function (w) { - 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: w.name, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - textAlign: 'right', - width: '20%', - children: [ - w.cost * v, - (0, e.createComponentVNode)(2, t.Icon, { - ml: '5px', - name: 'leaf', - size: 1.2, - color: '#3d8c40', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - textAlign: 'right', - width: '40%', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Vend', - disabled: d < w.cost * v, - icon: 'arrow-circle-down', - onClick: (function () { - function T() { - return u('create', { - id: w.id, - amount: v, - }); - } - return T; - })(), - } - ), - }), - ], - }, - w - ); - }), - }, - b[0] - ); - }); - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Products', - fill: !0, - scrollable: !0, - height: 32, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - mr: '5px', - color: 'silver', - children: 'Amount to vend:', - }), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - value: v, - width: '32px', - minValue: 1, - maxValue: 10, - stepPixelSize: 7, - onChange: (function () { - function b(B, I) { - return h(I); - } - return b; - })(), - }), - ], - 4 - ), - children: V, - }); - }; - }, - 92247: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BlueSpaceArtilleryControl = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.BlueSpaceArtilleryControl = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c; - return ( - l.ready - ? (c = (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - color: 'green', - children: 'Ready', - })) - : l.reloadtime_text - ? (c = (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Reloading In', - color: 'red', - children: l.reloadtime_text, - } - )) - : (c = (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Status', - color: 'red', - children: 'No cannon connected!', - } - )), - (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 150, - 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.notice && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Alert', - color: 'red', - children: l.notice, - } - ), - c, - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Target', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'crosshairs', - content: l.target ? l.target : 'None', - onClick: (function () { - function f() { - return p('recalibrate'); - } - return f; - })(), - } - ), - } - ), - l.ready === 1 && - !!l.target && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Firing', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'skull', - content: 'FIRE!', - color: 'red', - onClick: (function () { - function f() { - return p('fire'); - } - return f; - })(), - } - ), - } - ), - !l.connected && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Maintenance', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'wrench', - content: 'Complete Deployment', - onClick: (function () { - function f() { - return p('build'); - } - return f; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - }), - }), - }) - ); - } - return N; - })()); - }, - 74594: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BluespaceTap = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(48300), - N = (r.BluespaceTap = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.product || [], - i = c.desiredLevel, - u = c.inputLevel, - s = c.points, - d = c.totalPoints, - C = c.powerUse, - g = c.availablePower, - v = c.maxLevel, - h = c.emagged, - V = c.safeLevels, - b = c.nextLevelPower, - B = (i > u && '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', - }), - u > V && - (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: u } - ), - (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: i === 0, - tooltip: 'Set to 0', - onClick: (function () { - function I() { - return l('set', { - set_level: 0, - }); - } - return I; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'step-backward', - tooltip: - 'Decrease to actual input level', - disabled: i === 0, - onClick: (function () { - function I() { - return l('set', { - set_level: u, - }); - } - return I; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'backward', - disabled: i === 0, - tooltip: - 'Decrease one step', - onClick: (function () { - function I() { - return l('decrease'); - } - return I; - })(), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: 1, - mx: 1, - children: (0, - e.createComponentVNode)( - 2, - t.Slider, - { - value: i, - fillValue: u, - minValue: 0, - color: B, - maxValue: v, - stepPixelSize: 20, - step: 1, - onChange: (function () { - function I(w, T) { - return l('set', { - set_level: T, - }); - } - return I; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'forward', - disabled: i === v, - tooltip: - 'Increase one step', - tooltipPosition: 'left', - onClick: (function () { - function I() { - return l('increase'); - } - return I; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'fast-forward', - disabled: i === v, - tooltip: 'Set to max', - tooltipPosition: 'left', - onClick: (function () { - function I() { - return l('set', { - set_level: v, - }); - } - return I; - })(), - } - ), - ], - } - ), - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Current Power Use', - children: (0, m.formatPower)(C), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Power for next level', - children: (0, m.formatPower)(b), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Surplus Power', - children: (0, m.formatPower)(g), - } - ), - ], - } - ), - }), - }), - (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: s, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Total Points', - children: d, - } - ), - ], - } - ), - } - ), - }), - (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 (I) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: I.name, - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - disabled: I.price >= s, - onClick: (function () { - function w() { - return l('vend', { - target: I.key, - }); - } - return w; - })(), - content: I.price, - } - ), - }, - I.key - ); - }), - } - ), - } - ), - }), - ], - }), - }), - ], - }), - }), - }); - } - return y; - })()); - }, - 31876: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BodyScanner = void 0); - var e = n(28823), - a = n(58331), - t = n(37843), - o = n(91819), - m = n(2971), - N = n(84947), - y = [ - ['good', 'Alive'], - ['average', 'Critical'], - ['bad', 'DEAD'], - ], - S = [ - ['hasVirus', 'bad', 'Viral pathogen detected in blood stream.'], - ['blind', 'average', 'Cataracts detected.'], - [ - 'colourblind', - 'average', - 'Photoreceptor abnormalities detected.', - ], - ['nearsighted', 'average', 'Retinal misalignment detected.'], - ], - k = [ - ['Respiratory', 'oxyLoss'], - ['Brain', 'brainLoss'], - ['Toxin', 'toxLoss'], - ['Radiation', 'radLoss'], - ['Brute', 'bruteLoss'], - ['Cellular', 'cloneLoss'], - ['Burn', 'fireLoss'], - ['Inebriation', 'drunkenness'], - ], - p = { average: [0.25, 0.5], bad: [0.5, 1 / 0] }, - l = function (B, I) { - for (var w = [], T = 0; T < B.length; T += 2) - w.push(I(B[T], B[T + 1], T)); - return w; - }, - c = function (B) { - return B.length > 0 - ? B.filter(function (I) { - return !!I; - }).reduce(function (I, w) { - return (0, e.createFragment)( - [ - I, - (0, e.createComponentVNode)( - 2, - m.Box, - { children: w }, - w - ), - ], - 0 - ); - }, null) - : null; - }, - f = function (B) { - if (B > 100) { - if (B < 300) return 'mild infection'; - if (B < 400) return 'mild infection+'; - if (B < 500) return 'mild infection++'; - if (B < 700) return 'acute infection'; - if (B < 800) return 'acute infection+'; - if (B < 900) return 'acute infection++'; - if (B >= 900) return 'septic'; - } - return ''; - }, - i = (r.BodyScanner = (function () { - function b(B, I) { - var w = (0, o.useBackend)(I), - T = w.data, - A = T.occupied, - x = T.occupant, - E = x === void 0 ? {} : x, - P = A - ? (0, e.createComponentVNode)(2, u, { occupant: E }) - : (0, e.createComponentVNode)(2, V); - return (0, e.createComponentVNode)(2, N.Window, { - width: 700, - height: 600, - title: 'Body Scanner', - children: (0, e.createComponentVNode)(2, N.Window.Content, { - scrollable: !0, - children: P, - }), - }); - } - return b; - })()), - u = function (B) { - var I = B.occupant; - return (0, e.createComponentVNode)(2, m.Box, { - children: [ - (0, e.createComponentVNode)(2, s, { occupant: I }), - (0, e.createComponentVNode)(2, d, { occupant: I }), - (0, e.createComponentVNode)(2, C, { occupant: I }), - (0, e.createComponentVNode)(2, v, { organs: I.extOrgan }), - (0, e.createComponentVNode)(2, h, { organs: I.intOrgan }), - ], - }); - }, - s = function (B, I) { - var w = (0, o.useBackend)(I), - T = w.act, - A = w.data, - x = A.occupant; - return (0, e.createComponentVNode)(2, m.Section, { - title: 'Occupant', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.Button, { - icon: 'print', - onClick: (function () { - function E() { - return T('print_p'); - } - return E; - })(), - children: 'Print Report', - }), - (0, e.createComponentVNode)(2, m.Button, { - icon: 'user-slash', - onClick: (function () { - function E() { - return T('ejectify'); - } - return E; - })(), - children: 'Eject', - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Name', - children: x.name, - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Health', - children: (0, e.createComponentVNode)(2, m.ProgressBar, { - min: '0', - max: x.maxHealth, - value: x.health / x.maxHealth, - ranges: { - good: [0.5, 1 / 0], - average: [0, 0.5], - bad: [-1 / 0, 0], - }, - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Status', - color: y[x.stat][0], - children: y[x.stat][1], - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Temperature', - children: [ - (0, e.createComponentVNode)(2, m.AnimatedNumber, { - value: (0, a.round)(x.bodyTempC), - }), - '\xB0C,\xA0', - (0, e.createComponentVNode)(2, m.AnimatedNumber, { - value: (0, a.round)(x.bodyTempF), - }), - '\xB0F', - ], - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Implants', - children: x.implant_len - ? (0, e.createComponentVNode)(2, m.Box, { - children: x.implant - .map(function (E) { - return E.name; - }) - .join(', '), - }) - : (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'None', - }), - }), - ], - }), - }); - }, - d = function (B) { - var I = B.occupant; - return I.hasBorer || - I.blind || - I.colourblind || - I.nearsighted || - I.hasVirus - ? (0, e.createComponentVNode)(2, m.Section, { - title: 'Abnormalities', - children: S.map(function (w, T) { - if (I[w[0]]) - return (0, e.createComponentVNode)( - 2, - m.Box, - { color: w[1], bold: w[1] === 'bad', children: w[2] }, - w[2] - ); - }), - }) - : (0, e.createComponentVNode)(2, m.Section, { - title: 'Abnormalities', - children: (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'No abnormalities found.', - }), - }); - }, - C = function (B) { - var I = B.occupant; - return (0, e.createComponentVNode)(2, m.Section, { - title: 'Damage', - children: (0, e.createComponentVNode)(2, m.Table, { - children: l(k, function (w, T, A) { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.Table.Row, { - color: 'label', - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: [w[0], ':'], - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: !!T && T[0] + ':', - }), - ], - }), - (0, e.createComponentVNode)(2, m.Table.Row, { - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: (0, e.createComponentVNode)(2, g, { - value: I[w[1]], - marginBottom: A < k.length - 2, - }), - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: - !!T && - (0, e.createComponentVNode)(2, g, { - value: I[T[1]], - }), - }), - ], - }), - ], - 4 - ); - }), - }), - }); - }, - g = function (B) { - return (0, e.createComponentVNode)(2, m.ProgressBar, { - min: '0', - max: '100', - value: B.value / 100, - mt: '0.5rem', - mb: !!B.marginBottom && '0.5rem', - ranges: p, - children: (0, a.round)(B.value), - }); - }, - v = function (B) { - return B.organs.length === 0 - ? (0, e.createComponentVNode)(2, m.Section, { - title: 'External Organs', - children: (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'N/A', - }), - }) - : (0, e.createComponentVNode)(2, m.Section, { - title: 'External Organs', - children: (0, e.createComponentVNode)(2, m.Table, { - children: [ - (0, e.createComponentVNode)(2, m.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: 'Name', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'center', - children: 'Damage', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'right', - children: 'Injuries', - }), - ], - }), - B.organs.map(function (I, w) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - color: - (!!I.status.dead && 'bad') || - ((!!I.internalBleeding || - !!I.burnWound || - !!I.lungRuptured || - !!I.status.broken || - !!I.open || - I.germ_level > 100) && - 'average') || - (!!I.status.robotic && 'label'), - width: '33%', - children: (0, t.capitalize)(I.name), - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - m: -0.5, - min: '0', - max: I.maxHealth, - mt: w > 0 && '0.5rem', - value: I.totalLoss / I.maxHealth, - ranges: p, - children: (0, e.createComponentVNode)( - 2, - m.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - m.Tooltip, - { - content: 'Total damage', - children: (0, - e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: [ - (0, - e.createComponentVNode)( - 2, - m.Icon, - { - name: 'heartbeat', - mr: 0.5, - } - ), - (0, a.round)(I.totalLoss), - ], - } - ), - } - ), - !!I.bruteLoss && - (0, e.createComponentVNode)( - 2, - m.Tooltip, - { - content: 'Brute damage', - children: (0, - e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - children: [ - (0, - e.createComponentVNode)( - 2, - m.Icon, - { - name: 'bone', - mr: 0.5, - } - ), - (0, a.round)( - I.bruteLoss - ), - ], - } - ), - } - ), - !!I.fireLoss && - (0, e.createComponentVNode)( - 2, - m.Tooltip, - { - content: 'Burn damage', - children: (0, - e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: [ - (0, - e.createComponentVNode)( - 2, - m.Icon, - { - name: 'fire', - mr: 0.5, - } - ), - (0, a.round)( - I.fireLoss - ), - ], - } - ), - } - ), - ], - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'right', - verticalAlign: 'top', - width: '33%', - pt: w > 0 && 'calc(0.5rem + 2px)', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - color: 'average', - inline: !0, - children: c([ - !!I.internalBleeding && - 'Internal bleeding', - !!I.burnWound && - 'Critical tissue burns', - !!I.lungRuptured && 'Ruptured lung', - !!I.status.broken && I.status.broken, - f(I.germ_level), - !!I.open && 'Open incision', - ]), - }), - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - children: [ - c([ - !!I.status.splinted && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'good', - children: 'Splinted', - } - ), - !!I.status.robotic && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'label', - children: 'Robotic', - } - ), - !!I.status.dead && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'bad', - bold: !0, - children: 'DEAD', - } - ), - ]), - c( - I.shrapnel.map(function (T) { - return T.known - ? T.name - : 'Unknown object'; - }) - ), - ], - }), - ], - }), - ], - }, - w - ); - }), - ], - }), - }); - }, - h = function (B) { - return B.organs.length === 0 - ? (0, e.createComponentVNode)(2, m.Section, { - title: 'Internal Organs', - children: (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'N/A', - }), - }) - : (0, e.createComponentVNode)(2, m.Section, { - title: 'Internal Organs', - children: (0, e.createComponentVNode)(2, m.Table, { - children: [ - (0, e.createComponentVNode)(2, m.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: 'Name', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'center', - children: 'Damage', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'right', - children: 'Injuries', - }), - ], - }), - B.organs.map(function (I, w) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - color: - (!!I.dead && 'bad') || - (I.germ_level > 100 && 'average') || - (I.robotic > 0 && 'label'), - width: '33%', - children: (0, t.capitalize)(I.name), - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - min: '0', - max: I.maxHealth, - value: I.damage / I.maxHealth, - mt: w > 0 && '0.5rem', - ranges: p, - children: (0, a.round)(I.damage), - } - ), - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'right', - verticalAlign: 'top', - width: '33%', - pt: w > 0 && 'calc(0.5rem + 2px)', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - color: 'average', - inline: !0, - children: c([f(I.germ_level)]), - }), - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - children: c([ - I.robotic === 1 && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'label', - children: 'Robotic', - } - ), - I.robotic === 2 && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'label', - children: 'Assisted', - } - ), - !!I.dead && - (0, e.createComponentVNode)( - 2, - m.Box, - { - color: 'bad', - bold: !0, - children: 'DEAD', - } - ), - ]), - }), - ], - }), - ], - }, - w - ); - }), - ], - }), - }); - }, - V = function () { - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, m.Icon, { - name: 'user-slash', - mb: '0.5rem', - size: '5', - }), - (0, e.createVNode)(1, 'br'), - 'No occupant detected.', - ], - }), - }), - }); - }; - }, - 73440: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BookBinder = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = n(92462), - y = (r.BookBinder = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.selectedbook, - u = f.book_categories, - s = []; - return ( - u.map(function (d) { - return (s[d.description] = d.category_id); - }), - (0, e.createComponentVNode)(2, o.Window, { - width: 600, - height: 400, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (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.Section, { - fill: !0, - title: 'Book Binder', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'print', - width: 'auto', - content: 'Print Book', - onClick: (function () { - function d() { - return c('print_book'); - } - return d; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, t.Box, { - ml: 10, - fontSize: '1.2rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'search-plus', - verticalAlign: 'middle', - size: 3, - mr: '1rem', - }), - 'Book Binder', - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Title', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - textAlign: 'left', - icon: 'pen', - width: 'auto', - content: i.title, - onClick: (function () { - function d() { - return (0, m.modalOpen)( - p, - 'edit_selected_title' - ); - } - return d; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Author', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - textAlign: 'left', - icon: 'pen', - width: 'auto', - content: i.author, - onClick: (function () { - function d() { - return (0, m.modalOpen)( - p, - 'edit_selected_author' - ); - } - return d; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Select Categories', - children: (0, - e.createComponentVNode)( - 2, - t.Box, - { - children: (0, - e.createComponentVNode)( - 2, - t.Dropdown, - { - width: '190px', - options: u.map( - function (d) { - return d.description; - } - ), - onSelected: - (function () { - function d(C) { - return c( - 'toggle_binder_category', - { - category_id: - s[C], - } - ); - } - return d; - })(), - } - ), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Summary', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pen', - width: 'auto', - content: 'Edit Summary', - onClick: (function () { - function d() { - return (0, m.modalOpen)( - p, - 'edit_selected_summary' - ); - } - return d; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { children: i.summary } - ), - ], - } - ), - (0, e.createVNode)(1, 'br'), - u - .filter(function (d) { - return i.categories.includes( - d.category_id - ); - }) - .map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: d.description, - selected: !0, - icon: 'unlink', - onClick: (function () { - function C() { - return c( - 'toggle_binder_category', - { - category_id: - d.category_id, - } - ); - } - return C; - })(), - }, - d.category_id - ); - }), - ], - } - ), - }), - ], - }), - }), - }), - ], - }) - ); - } - return S; - })()); - }, - 40730: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotClean = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(86041), - N = (r.BotClean = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.locked, - i = c.noaccess, - u = c.maintpanel, - s = c.on, - d = c.autopatrol, - C = c.canhack, - g = c.emagged, - v = c.remote_disabled, - h = c.painame, - V = c.cleanblood, - b = c.area; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 400, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, m.BotStatus), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Cleaning Settings', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: V, - content: 'Clean Blood', - disabled: i, - onClick: (function () { - function B() { - return l('blood'); - } - return B; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Misc Settings', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: b - ? 'Reset Area Selection' - : 'Restrict to Current Area', - onClick: (function () { - function B() { - return l('area'); - } - return B; - })(), - }), - b !== null && - (0, e.createComponentVNode)(2, t.LabeledList, { - mb: 1, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Locked Area', children: b } - ), - }), - ], - }), - h && - (0, e.createComponentVNode)(2, t.Section, { - title: 'pAI', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'eject', - content: h, - disabled: i, - onClick: (function () { - function B() { - return l('ejectpai'); - } - return B; - })(), - }), - }), - ], - }), - }); - } - return y; - })()); - }, - 36078: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotFloor = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(86041), - N = (r.BotFloor = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.noaccess, - i = c.painame, - u = c.hullplating, - s = c.replace, - d = c.eat, - C = c.make, - g = c.fixfloor, - v = c.nag_empty, - h = c.magnet, - V = c.tiles_amount; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 510, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, m.BotStatus), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Floor Settings', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - mb: '5px', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Tiles Left', children: V } - ), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: u, - content: 'Add tiles to new hull plating', - tooltip: - 'Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches', - disabled: f, - onClick: (function () { - function b() { - return l('autotile'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: s, - content: 'Add floor tiles on exposed hull plating', - tooltip: - 'Example: It will add tiles to maintenance', - disabled: f, - onClick: (function () { - function b() { - return l('replacetiles'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: g, - content: 'Repair damaged tiles and platings', - disabled: f, - onClick: (function () { - function b() { - return l('fixfloors'); - } - return b; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Miscellaneous', - children: [ - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: d, - content: 'Finds tiles', - disabled: f, - onClick: (function () { - function b() { - return l('eattiles'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: C, - content: - 'Make pieces of metal into tiles when empty', - disabled: f, - onClick: (function () { - function b() { - return l('maketiles'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: v, - content: 'Transmit notice when empty', - disabled: f, - onClick: (function () { - function b() { - return l('nagonempty'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: h, - content: 'Traction Magnets', - disabled: f, - onClick: (function () { - function b() { - return l('anchored'); - } - return b; - })(), - }), - ], - }), - i && - (0, e.createComponentVNode)(2, t.Section, { - title: 'pAI', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - icon: 'eject', - content: i, - disabled: f, - onClick: (function () { - function b() { - return l('ejectpai'); - } - return b; - })(), - } - ), - }), - ], - }), - }); - } - return y; - })()); - }, - 89121: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotHonk = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(86041), - N = (r.BotHonk = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 220, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, m.BotStatus), - }), - }); - } - return y; - })()); - }, - 39805: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotMed = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(86041), - N = (r.BotMed = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.locked, - i = c.noaccess, - u = c.maintpanel, - s = c.on, - d = c.autopatrol, - C = c.canhack, - g = c.emagged, - v = c.remote_disabled, - h = c.painame, - V = c.shut_up, - b = c.declare_crit, - B = c.stationary_mode, - I = c.heal_threshold, - w = c.injection_amount, - T = c.use_beaker, - A = c.treat_virus, - x = c.reagent_glass; - 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: [ - (0, e.createComponentVNode)(2, m.BotStatus), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Communication Settings', - children: [ - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - content: 'Speaker', - checked: !V, - disabled: i, - onClick: (function () { - function E() { - return l('toggle_speaker'); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - content: 'Critical Patient Alerts', - checked: b, - disabled: i, - onClick: (function () { - function E() { - return l('toggle_critical_alerts'); - } - return E; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Treatment Settings', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Healing Threshold', - children: (0, e.createComponentVNode)( - 2, - t.Slider, - { - value: I.value, - minValue: I.min, - maxValue: I.max, - step: 5, - disabled: i, - onChange: (function () { - function E(P, D) { - return l('set_heal_threshold', { - target: D, - }); - } - return E; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Injection Level', - children: (0, e.createComponentVNode)( - 2, - t.Slider, - { - value: w.value, - minValue: w.min, - maxValue: w.max, - step: 5, - format: (function () { - function E(P) { - return P + 'u'; - } - return E; - })(), - disabled: i, - onChange: (function () { - function E(P, D) { - return l('set_injection_amount', { - target: D, - }); - } - return E; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Reagent Source', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: T - ? 'Beaker' - : 'Internal Synthesizer', - icon: T ? 'flask' : 'cogs', - disabled: i, - onClick: (function () { - function E() { - return l('toggle_use_beaker'); - } - return E; - })(), - } - ), - } - ), - x && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Beaker', - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - inline: !0, - width: '100%', - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: 1, - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: x.amount, - minValue: 0, - maxValue: x.max_amount, - children: [ - x.amount, - ' / ', - x.max_amount, - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - ml: 1, - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - content: 'Eject', - disabled: i, - onClick: (function () { - function E() { - return l( - 'eject_reagent_glass' - ); - } - return E; - })(), - } - ), - } - ), - ], - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - mt: 1, - fluid: !0, - content: 'Treat Viral Infections', - checked: A, - disabled: i, - onClick: (function () { - function E() { - return l('toggle_treat_viral'); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - content: 'Stationary Mode', - checked: B, - disabled: i, - onClick: (function () { - function E() { - return l('toggle_stationary_mode'); - } - return E; - })(), - }), - ], - }), - h && - (0, e.createComponentVNode)(2, t.Section, { - title: 'pAI', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'eject', - content: h, - disabled: i, - onClick: (function () { - function E() { - return l('ejectpai'); - } - return E; - })(), - }), - }), - ], - }), - }), - }); - } - return y; - })()); - }, - 35519: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotSecurity = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(86041), - N = (r.BotSecurity = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.noaccess, - i = c.painame, - u = c.check_id, - s = c.check_weapons, - d = c.check_warrant, - C = c.arrest_mode, - g = c.arrest_declare; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 445, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, m.BotStatus), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Who To Arrest', - children: [ - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: u, - content: 'Unidentifiable Persons', - disabled: f, - onClick: (function () { - function v() { - return l('authid'); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: s, - content: 'Unauthorized Weapons', - disabled: f, - onClick: (function () { - function v() { - return l('authweapon'); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: d, - content: 'Wanted Criminals', - disabled: f, - onClick: (function () { - function v() { - return l('authwarrant'); - } - return v; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Arrest Procedure', - children: [ - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: C, - content: 'Detain Targets Indefinitely', - disabled: f, - onClick: (function () { - function v() { - return l('arrtype'); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - fluid: !0, - checked: g, - content: 'Announce Arrests On Radio', - disabled: f, - onClick: (function () { - function v() { - return l('arrdeclare'); - } - return v; - })(), - }), - ], - }), - i && - (0, e.createComponentVNode)(2, t.Section, { - title: 'pAI', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'eject', - content: i, - disabled: f, - onClick: (function () { - function v() { - return l('ejectpai'); - } - return v; - })(), - }), - }), - ], - }), - }); - } - return y; - })()); - }, - 71169: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BrigCells = void 0); - var e = n(28823), - a = n(84947), - t = n(2971), - o = n(91819), - m = function (k, p) { - var l = k.cell, - c = (0, o.useBackend)(p), - f = c.act, - i = l.cell_id, - u = l.occupant, - s = l.crimes, - d = l.brigged_by, - C = l.time_left_seconds, - g = l.time_set_seconds, - v = l.ref, - h = ''; - C > 0 && (h += ' BrigCells__listRow--active'); - var V = function () { - f('release', { ref: v }); - }; - return (0, e.createComponentVNode)(2, t.Table.Row, { - className: h, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { children: i }), - (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: d }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)(2, t.TimeDisplay, { - totalSeconds: g, - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)(2, t.TimeDisplay, { - totalSeconds: C, - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)(2, t.Button, { - type: 'button', - onClick: V, - children: 'Release', - }), - }), - ], - }); - }, - N = function (k) { - var p = k.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 (l) { - return (0, e.createComponentVNode)( - 2, - m, - { cell: l }, - l.ref - ); - }), - ], - }); - }, - y = (r.BrigCells = (function () { - function S(k, p) { - var l = (0, o.useBackend)(p), - c = l.act, - f = l.data, - i = 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, N, { - cells: i, - }), - }), - }), - }), - }); - } - return S; - })()); - }, - 19070: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BrigTimer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.BrigTimer = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - (l.nameText = l.occupant), - l.timing && - (l.prisoner_hasrec - ? (l.nameText = (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: l.occupant, - })) - : (l.nameText = (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: l.occupant, - }))); - var c = 'pencil-alt'; - l.prisoner_name && - (l.prisoner_hasrec || (c = 'exclamation-triangle')); - var f = [], - i = 0; - for (i = 0; i < l.spns.length; i++) f.push(l.spns[i]); - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: l.timing ? 237 : 396, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Cell Information', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Cell ID', children: l.cell_id } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Occupant', children: l.nameText } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Crimes', children: l.crimes } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Brigged By', children: l.brigged_by } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Time Brigged For', - children: l.time_set, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Time Left', children: l.time_left } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Actions', - children: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'lightbulb-o', - content: 'Flash', - disabled: !l.isAllowed, - onClick: (function () { - function u() { - return p('flash'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync', - content: 'Reset Timer', - disabled: !l.timing || !l.isAllowed, - onClick: (function () { - function u() { - return p('restart_timer'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: 'Release Prisoner', - disabled: !l.timing || !l.isAllowed, - onClick: (function () { - function u() { - return p('stop'); - } - return u; - })(), - }), - ], - 4 - ), - } - ), - ], - } - ), - }), - !l.timing && - (0, e.createComponentVNode)(2, t.Section, { - title: 'New Prisoner', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Prisoner Name', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: c, - content: l.prisoner_name - ? l.prisoner_name - : '-----', - disabled: !l.isAllowed, - onClick: (function () { - function u() { - return p('prisoner_name'); - } - return u; - })(), - }), - !!l.spns.length && - (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - disabled: - !l.isAllowed || !l.spns.length, - options: l.spns, - width: '250px', - onSelected: (function () { - function u(s) { - return p('prisoner_name', { - prisoner_name: s, - }); - } - return u; - })(), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Prisoner Crimes', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: l.prisoner_charge - ? l.prisoner_charge - : '-----', - disabled: !l.isAllowed, - onClick: (function () { - function u() { - return p('prisoner_charge'); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Prisoner Time', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: l.prisoner_time - ? l.prisoner_time - : '-----', - disabled: !l.isAllowed, - onClick: (function () { - function u() { - return p('prisoner_time'); - } - return u; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Start', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'gavel', - content: 'Start Sentence', - disabled: - !l.prisoner_name || - !l.prisoner_charge || - !l.prisoner_time || - !l.isAllowed, - onClick: (function () { - function u() { - return p('start'); - } - return u; - })(), - } - ), - } - ), - ], - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 59681: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.CameraConsoleContent = r.CameraConsole = void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(66586), - m = n(37843), - N = n(91819), - y = n(2971), - S = n(84947); - String.prototype.trimLongStr = function (f) { - return this.length > f ? this.substring(0, f) + '...' : this; - }; - var k = function (i, u) { - var s, d; - if (!u) return []; - var C = i.findIndex(function (g) { - return g.name === u.name; - }); - return [ - (s = i[C - 1]) == null ? void 0 : s.name, - (d = i[C + 1]) == null ? void 0 : d.name, - ]; - }, - p = function (i, u) { - u === void 0 && (u = ''); - var s = (0, m.createSearch)(u, function (d) { - return d.name; - }); - return (0, t.flow)([ - (0, a.filter)(function (d) { - return d == null ? void 0 : d.name; - }), - u && (0, a.filter)(s), - (0, a.sortBy)(function (d) { - return d.name; - }), - ])(i); - }, - l = (r.CameraConsole = (function () { - function f(i, u) { - var s = (0, N.useBackend)(u), - d = s.act, - C = s.data, - g = s.config, - v = C.mapRef, - h = C.activeCamera, - V = p(C.cameras), - b = k(V, h), - B = b[0], - I = b[1]; - return (0, e.createComponentVNode)(2, S.Window, { - width: 870, - height: 708, - children: [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__left', - (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, y.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, c), - }), - }), - 2 - ), - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__right', - [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbar', - [ - (0, e.createVNode)(1, 'b', null, 'Camera: ', 16), - (h && h.name) || '\u2014', - ], - 0 - ), - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbarRight', - [ - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-left', - disabled: !B, - onClick: (function () { - function w() { - return d('switch_camera', { name: B }); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-right', - disabled: !I, - onClick: (function () { - function w() { - return d('switch_camera', { name: I }); - } - return w; - })(), - }), - ], - 4 - ), - (0, e.createComponentVNode)(2, y.ByondUi, { - className: 'CameraConsole__map', - params: { id: v, type: 'map' }, - }), - ], - 4 - ), - ], - }); - } - return f; - })()), - c = (r.CameraConsoleContent = (function () { - function f(i, u) { - var s = (0, N.useBackend)(u), - d = s.act, - C = s.data, - g = (0, N.useLocalState)(u, 'searchText', ''), - v = g[0], - h = g[1], - V = C.activeCamera, - b = p(C.cameras, v); - return (0, e.createComponentVNode)(2, y.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, y.Stack.Item, { - children: (0, e.createComponentVNode)(2, y.Input, { - fluid: !0, - placeholder: 'Search for a camera', - onInput: (function () { - function B(I, w) { - return h(w); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, y.Stack.Item, { - grow: !0, - m: 0, - children: (0, e.createComponentVNode)(2, y.Section, { - fill: !0, - scrollable: !0, - children: b.map(function (B) { - return (0, e.createVNode)( - 1, - 'div', - (0, o.classes)([ - 'Button', - 'Button--fluid', - 'Button--color--transparent', - V && B.name === V.name && 'Button--selected', - ]), - B.name.trimLongStr(23), - 0, - { - title: B.name, - onClick: (function () { - function I() { - return d('switch_camera', { name: B.name }); - } - return I; - })(), - }, - B.name - ); - }), - }), - }), - ], - }); - } - return f; - })()); - }, - 64487: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.CameraConsoleOldContent = - r.CameraConsoleMapContent = - r.CameraConsole220 = - void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(66586), - m = n(37843), - N = n(91819), - y = n(2971), - S = n(84947), - k = function (u, s) { - var d, C; - if (!s) return []; - var g = u.findIndex(function (v) { - return v.name === s.name; - }); - return [ - (d = u[g - 1]) == null ? void 0 : d.name, - (C = u[g + 1]) == null ? void 0 : C.name, - ]; - }, - p = function (u, s) { - s === void 0 && (s = ''); - var d = (0, m.createSearch)(s, function (C) { - return C.name; - }); - return (0, t.flow)([ - (0, a.filter)(function (C) { - return C == null ? void 0 : C.name; - }), - s && (0, a.filter)(d), - (0, a.sortBy)(function (C) { - return C.name; - }), - ])(u); - }, - l = (r.CameraConsole220 = (function () { - function i(u, s) { - var d = (0, N.useLocalState)(s, 'tabIndex', 0), - C = d[0], - g = d[1], - v = (function () { - function h(V) { - switch (V) { - case 0: - return (0, e.createComponentVNode)(2, c); - case 1: - return (0, e.createComponentVNode)(2, f); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return h; - })(); - return (0, e.createComponentVNode)(2, S.Window, { - width: 1170, - height: 755, - children: (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, y.Stack, { - children: (0, e.createComponentVNode)(2, y.Box, { - fillPositionedParent: !0, - children: [ - (0, e.createComponentVNode)(2, y.Stack.Item, { - width: C === 1 ? '222px' : '475px', - textAlign: 'center', - children: (0, e.createComponentVNode)(2, y.Tabs, { - fluid: !0, - ml: C === 1 ? 1 : 0, - mt: C === 1 ? 1 : 0, - children: [ - (0, e.createComponentVNode)( - 2, - y.Tabs.Tab, - { - selected: C === 0, - onClick: (function () { - function h() { - return g(0); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, y.Icon, { - name: 'map-marked-alt', - }), - ' \u041A\u0430\u0440\u0442\u0430', - ], - }, - 'Map' - ), - (0, e.createComponentVNode)( - 2, - y.Tabs.Tab, - { - selected: C === 1, - onClick: (function () { - function h() { - return g(1); - } - return h; - })(), - children: [ - (0, e.createComponentVNode)(2, y.Icon, { - name: 'table', - }), - ' \u0421\u043F\u0438\u0441\u043E\u043A', - ], - }, - 'List' - ), - ], - }), - }), - v(C), - ], - }), - }), - }), - }); - } - return i; - })()), - c = (r.CameraConsoleMapContent = (function () { - function i(u, s) { - var d = (0, N.useBackend)(s), - C = d.act, - g = d.data, - v = d.config, - h = p(g.cameras), - V = (0, N.useLocalState)(s, 'zoom', 1), - b = V[0], - B = V[1], - I = g.mapRef, - w = g.activeCamera, - T = g.stationLevel, - A = k(h, w), - x = A[0], - E = A[1]; - return (0, e.createComponentVNode)(2, y.Stack, { - fill: !0, - vertical: !0, - style: { display: 'flex' }, - children: [ - (0, e.createComponentVNode)(2, y.Stack.Item, { - height: '100%', - style: { display: 'flex', flex: '0 0 475px' }, - children: (0, e.createComponentVNode)(2, y.NanoMap, { - onZoom: (function () { - function P(D) { - return B(D); - } - return P; - })(), - children: h - .filter(function (P) { - return P.z === T; - }) - .map(function (P) { - return (0, e.createComponentVNode)( - 2, - y.NanoMap.NanoButton, - { - activeCamera: w, - x: P.x, - y: P.y, - context: s, - zoom: b, - icon: 'circle', - tooltip: P.name, - name: P.name, - color: 'blue', - status: P.status, - }, - P.ref - ); - }), - }), - }), - (0, e.createComponentVNode)(2, y.Stack.Item, { - height: '100%', - resizable: !0, - className: 'CameraConsole__right_map', - children: [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__header', - [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbar', - [ - (0, e.createVNode)( - 1, - 'b', - null, - '\u041A\u0430\u043C\u0435\u0440\u0430: ', - 16 - ), - (w && w.name) || '\u2014', - ], - 0 - ), - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbarRight', - [ - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-left', - disabled: !x, - onClick: (function () { - function P() { - return C('switch_camera', { name: x }); - } - return P; - })(), - }), - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-right', - disabled: !E, - onClick: (function () { - function P() { - return C('switch_camera', { name: E }); - } - return P; - })(), - }), - ], - 4 - ), - ], - 4 - ), - (0, e.createComponentVNode)(2, y.ByondUi, { - resizable: !0, - className: 'CameraConsole__map', - overflow: 'hidden', - params: { id: I, type: 'map' }, - }), - ], - }), - ], - }); - } - return i; - })()), - f = (r.CameraConsoleOldContent = (function () { - function i(u, s) { - var d = (0, N.useBackend)(s), - C = d.act, - g = d.data, - v = d.config, - h = g.mapRef, - V = g.activeCamera, - b = (0, N.useLocalState)(s, 'searchText', ''), - B = b[0], - I = b[1], - w = p(g.cameras, B), - T = k(w, V), - A = T[0], - x = T[1]; - return (0, e.createComponentVNode)(2, y.Stack.Item, { - children: [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__left', - (0, e.createComponentVNode)(2, S.Window.Content, { - 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.Input, - { - width: '215px', - placeholder: - '\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443', - onInput: (function () { - function E(P, D) { - return I(D); - } - return E; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, y.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - y.Section, - { - fill: !0, - scrollable: !0, - children: w.map(function (E) { - return (0, e.createVNode)( - 1, - 'div', - (0, o.classes)([ - 'Button', - 'Button--fluid', - E.status - ? 'Button--color--transparent' - : 'Button--color--danger', - 'Button--ellipsis', - V && - E.name === V.name && - 'Button--selected', - ]), - E.name, - 0, - { - title: E.name, - onClick: (function () { - function P() { - return C('switch_camera', { - name: E.name, - }); - } - return P; - })(), - }, - E.name - ); - }), - } - ), - }), - ], - }), - }), - 2 - ), - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__right', - [ - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbar', - [ - (0, e.createVNode)( - 1, - 'b', - null, - '\u041A\u0430\u043C\u0435\u0440\u0430: ', - 16 - ), - (V && V.name) || '\u2014', - ], - 0 - ), - (0, e.createVNode)( - 1, - 'div', - 'CameraConsole__toolbarRight', - [ - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-left', - disabled: !A, - onClick: (function () { - function E() { - return C('switch_camera', { name: A }); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, y.Button, { - icon: 'chevron-right', - disabled: !x, - onClick: (function () { - function E() { - return C('switch_camera', { name: x }); - } - return E; - })(), - }), - ], - 4 - ), - (0, e.createComponentVNode)(2, y.ByondUi, { - className: 'CameraConsole__map', - params: { id: h, type: 'map' }, - }), - ], - 4 - ), - ], - }); - } - return i; - })()); - }, - 21348: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Canister = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(48300), - N = n(84947), - y = (r.Canister = (function () { - function S(k, p) { - var l = (0, t.useBackend)(p), - c = l.act, - f = l.data, - i = f.portConnected, - u = f.tankPressure, - s = f.releasePressure, - d = f.defaultReleasePressure, - C = f.minReleasePressure, - g = f.maxReleasePressure, - v = f.valveOpen, - h = f.name, - V = f.canLabel, - b = f.colorContainer, - B = f.color_index, - I = f.hasHoldingTank, - w = f.holdingTank, - T = ''; - B.prim && (T = b.prim.options[B.prim].name); - var A = ''; - B.sec && (A = b.sec.options[B.sec].name); - var x = ''; - B.ter && (x = b.ter.options[B.ter].name); - var E = ''; - B.quart && (E = b.quart.options[B.quart].name); - var P = [], - D = [], - M = [], - O = [], - j = 0; - for (j = 0; j < b.prim.options.length; j++) - P.push(b.prim.options[j].name); - for (j = 0; j < b.sec.options.length; j++) - D.push(b.sec.options[j].name); - for (j = 0; j < b.ter.options.length; j++) - M.push(b.ter.options[j].name); - for (j = 0; j < b.quart.options.length; j++) - O.push(b.quart.options[j].name); - var F = ''; - return ( - V && - (F = (0, e.createComponentVNode)(2, o.Section, { - title: 'Paint', - children: (0, e.createComponentVNode)( - 2, - o.LabeledControls, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - minWidth: '110px', - label: b.prim.name, - children: (0, e.createComponentVNode)( - 2, - o.Dropdown, - { - over: !0, - selected: T, - disabled: !V, - options: P, - width: '110px', - onSelected: (function () { - function U(_) { - return c('recolor', { - nc: P.indexOf(_), - ctype: 'prim', - }); - } - return U; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - minWidth: '110px', - label: b.sec.name, - children: (0, e.createComponentVNode)( - 2, - o.Dropdown, - { - over: !0, - selected: A, - disabled: !V, - options: D, - width: '110px', - onSelected: (function () { - function U(_) { - return c('recolor', { - nc: D.indexOf(_), - ctype: 'sec', - }); - } - return U; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - minWidth: '110px', - label: b.ter.name, - children: (0, e.createComponentVNode)( - 2, - o.Dropdown, - { - over: !0, - selected: x, - disabled: !V, - options: M, - width: '110px', - onSelected: (function () { - function U(_) { - return c('recolor', { - nc: M.indexOf(_), - ctype: 'ter', - }); - } - return U; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - minWidth: '110px', - label: b.quart.name, - children: (0, e.createComponentVNode)( - 2, - o.Dropdown, - { - over: !0, - selected: E, - disabled: !V, - options: O, - width: '110px', - onSelected: (function () { - function U(_) { - return c('recolor', { - nc: O.indexOf(_), - ctype: 'quart', - }); - } - return U; - })(), - } - ), - } - ), - ], - } - ), - })), - (0, e.createComponentVNode)(2, N.Window, { - width: 600, - height: V ? 300 : 230, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, o.Section, { - title: h, - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'pencil-alt', - content: 'Relabel', - disabled: !V, - onClick: (function () { - function U() { - return c('relabel'); - } - return U; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - o.LabeledControls, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - minWidth: '66px', - label: 'Pressure', - children: (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { - value: u, - format: (function () { - function U(_) { - return _ < 1e4 - ? (0, a.toFixed)(_) + ' kPa' - : (0, m.formatSiUnit)( - _ * 1e3, - 1, - 'Pa' - ); - } - return U; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - label: 'Regulator', - children: (0, e.createComponentVNode)( - 2, - o.Box, - { - position: 'relative', - left: '-8px', - children: [ - (0, e.createComponentVNode)( - 2, - o.Knob, - { - size: 1.25, - color: !!v && 'yellow', - value: s, - unit: 'kPa', - minValue: C, - maxValue: g, - step: 5, - stepPixelSize: 1, - onDrag: (function () { - function U(_, z) { - return c('pressure', { - pressure: z, - }); - } - return U; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - position: 'absolute', - top: '-2px', - right: '-20px', - color: 'transparent', - icon: 'fast-forward', - tooltip: 'Max Release Pressure', - onClick: (function () { - function U() { - return c('pressure', { - pressure: g, - }); - } - return U; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - position: 'absolute', - top: '16px', - right: '-20px', - color: 'transparent', - icon: 'undo', - tooltip: 'Reset Release Pressure', - onClick: (function () { - function U() { - return c('pressure', { - pressure: d, - }); - } - return U; - })(), - } - ), - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - label: 'Valve', - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - my: 0.5, - width: '50px', - lineHeight: 2, - fontSize: '11px', - color: v - ? I - ? 'caution' - : 'danger' - : null, - content: v ? 'Open' : 'Closed', - onClick: (function () { - function U() { - return c('valve'); - } - return U; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledControls.Item, - { - mr: 1, - label: 'Port', - children: (0, e.createComponentVNode)( - 2, - o.Tooltip, - { - content: i - ? 'Connected' - : 'Disconnected', - position: 'top', - children: (0, e.createComponentVNode)( - 2, - o.Box, - { - position: 'relative', - children: (0, - e.createComponentVNode)(2, o.Icon, { - size: 1.25, - name: i ? 'plug' : 'times', - color: i ? 'good' : 'bad', - }), - } - ), - } - ), - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.Section, { - title: 'Holding Tank', - buttons: - !!I && - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eject', - content: 'Eject', - onClick: (function () { - function U() { - return c('eject'); - } - return U; - })(), - }), - children: [ - !!I && - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Label', children: w.name } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Pressure', - children: [ - (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { value: w.tankPressure } - ), - ' kPa', - ], - } - ), - ], - }), - !I && - (0, e.createComponentVNode)(2, o.Box, { - color: 'average', - children: 'No Holding Tank', - }), - ], - }), - F, - ], - }), - }) - ); - } - return S; - })()); - }, - 13944: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.CardComputerNoRecords = - r.CardComputerNoCard = - r.CardComputerLoginWarning = - r.CardComputer = - void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(14635), - N = n(30381), - y = N.COLORS.department, - S = (r.CardComputerLoginWarning = (function () { - function c() { - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Warning', - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - grow: !0, - textAlign: 'center', - fontSize: 1.75, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'user', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, t.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'Not logged in', - ], - }), - }), - }); - } - return c; - })()), - k = (r.CardComputerNoCard = (function () { - function c() { - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Card Missing', - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - grow: !0, - textAlign: 'center', - fontSize: 1.75, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'id-card', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, t.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'No card to modify', - ], - }), - }), - }); - } - return c; - })()), - p = (r.CardComputerNoRecords = (function () { - function c() { - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Records', - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - grow: !0, - textAlign: 'center', - fontSize: 1.75, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'scroll', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, t.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'No records', - ], - }), - }), - }); - } - return c; - })()), - l = (r.CardComputer = (function () { - function c(f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'id-card', - selected: d.mode === 0, - onClick: (function () { - function h() { - return s('mode', { mode: 0 }); - } - return h; - })(), - children: 'Job Transfers', - }), - !d.target_dept && - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'id-card', - selected: d.mode === 2, - onClick: (function () { - function h() { - return s('mode', { mode: 2 }); - } - return h; - })(), - children: 'Access Modification', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'folder-open', - selected: d.mode === 1, - onClick: (function () { - function h() { - return s('mode', { mode: 1 }); - } - return h; - })(), - children: 'Job Management', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'scroll', - selected: d.mode === 3, - onClick: (function () { - function h() { - return s('mode', { mode: 3 }); - } - return h; - })(), - children: 'Records', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'users', - selected: d.mode === 4, - onClick: (function () { - function h() { - return s('mode', { mode: 4 }); - } - return h; - })(), - children: 'Department', - }), - ], - }), - g = (0, e.createComponentVNode)(2, t.Section, { - title: 'Authentication', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Login/Logout', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: d.scan_name ? 'sign-out-alt' : 'id-card', - selected: d.scan_name, - content: d.scan_name - ? 'Log Out: ' + d.scan_name - : '-----', - onClick: (function () { - function h() { - return s('scan'); - } - return h; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Card To Modify', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: d.modify_name ? 'eject' : 'id-card', - selected: d.modify_name, - content: d.modify_name - ? 'Remove Card: ' + d.modify_name - : '-----', - onClick: (function () { - function h() { - return s('modify'); - } - return h; - })(), - }), - }), - ], - }), - }), - v; - switch (d.mode) { - case 0: - !d.authenticated || !d.scan_name - ? (v = (0, e.createComponentVNode)(2, S)) - : d.modify_name - ? (v = (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Card Information', - children: [ - !d.target_dept && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Registered Name', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: - !d.modify_owner || - d.modify_owner === 'Unknown' - ? 'exclamation-triangle' - : 'pencil-alt', - selected: d.modify_name, - content: d.modify_owner, - onClick: (function () { - function h() { - return s('reg'); - } - return h; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Account Number', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: d.account_number - ? 'pencil-alt' - : 'exclamation-triangle', - selected: d.account_number, - content: d.account_number - ? d.account_number - : 'None', - onClick: (function () { - function h() { - return s('account'); - } - return h; - })(), - } - ), - } - ), - ], - 4 - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Latest Transfer', - children: d.modify_lastlog || '---', - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: d.target_dept - ? 'Department Job Transfer' - : 'Job Transfer', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - d.target_dept - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Department', - children: d.jobs_dept.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: (function () { - function V() { - return s('assign', { - assign_target: h, - }); - } - return V; - })(), - }, - h - ); - } - ), - } - ) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Special', - children: d.jobs_top.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Engineering', - labelColor: y.engineering, - children: - d.jobs_engineering.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === - h, - content: h, - color: d.jobFormats[ - h - ] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Medical', - labelColor: y.medical, - children: d.jobs_medical.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Science', - labelColor: y.science, - children: d.jobs_science.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Security', - labelColor: y.security, - children: d.jobs_security.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Service', - labelColor: y.service, - children: d.jobs_service.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Supply', - labelColor: y.supply, - children: d.jobs_supply.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: - (function () { - function V() { - return s( - 'assign', - { - assign_target: - h, - } - ); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - ], - 4 - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Retirement', - children: d.jobs_assistant.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : '', - onClick: (function () { - function V() { - return s('assign', { - assign_target: h, - }); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - !!d.iscentcom && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'CentCom', - labelColor: y.centcom, - children: d.jobs_centcom.map( - function (h) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.modify_rank === h, - content: h, - color: d.jobFormats[h] - ? d.jobFormats[h] - : 'purple', - onClick: (function () { - function V() { - return s('assign', { - assign_target: h, - }); - } - return V; - })(), - }, - h - ); - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Demotion', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - disabled: - d.modify_assignment === - 'Demoted' || - d.modify_assignment === - 'Terminated', - content: 'Demoted', - tooltip: - "Assistant access, 'demoted' title.", - color: 'red', - icon: 'times', - onClick: (function () { - function h() { - return s('demote'); - } - return h; - })(), - }, - 'Demoted' - ), - } - ), - !!d.canterminate && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Non-Crew', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - disabled: - d.modify_assignment === - 'Terminated', - content: 'Terminated', - tooltip: - 'Zero access. Not crew.', - color: 'red', - icon: 'eraser', - onClick: (function () { - function h() { - return s('terminate'); - } - return h; - })(), - }, - 'Terminate' - ), - } - ), - ], - } - ), - }), - !d.target_dept && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Card Skins', - children: [ - d.card_skins.map(function (h) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.current_skin === h.skin, - content: h.display_name, - onClick: (function () { - function V() { - return s('skin', { - skin_target: h.skin, - }); - } - return V; - })(), - }, - h.skin - ); - }), - !!d.iscentcom && - (0, e.createComponentVNode)(2, t.Box, { - children: d.all_centcom_skins.map( - function (h) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: - d.current_skin === h.skin, - content: h.display_name, - color: 'purple', - onClick: (function () { - function V() { - return s('skin', { - skin_target: h.skin, - }); - } - return V; - })(), - }, - h.skin - ); - } - ), - }), - ], - }), - ], - 0 - )) - : (v = (0, e.createComponentVNode)(2, k)); - break; - case 1: - d.auth_or_ghost - ? (v = (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Section, { - color: d.cooldown_time ? 'red' : '', - children: [ - 'Next Change Available:', - d.cooldown_time ? d.cooldown_time : 'Now', - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Job Slots', - 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, - textAlign: 'center', - children: 'Title', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Used Slots', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Total Slots', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Free Slots', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Close Slot', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Open Slot', - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - bold: !0, - textAlign: 'center', - children: 'Priority', - } - ), - ], - } - ), - d.job_slots.map(function (h) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - height: 2, - className: 'candystripe', - children: [ - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Box, - { - color: h.is_priority - ? 'green' - : '', - children: h.title, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: h.current_positions, - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: h.total_positions, - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: - (h.total_positions > - h.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: - d.cooldown_time || - !h.can_close, - onClick: (function () { - function V() { - return s( - 'make_job_unavailable', - { job: h.title } - ); - } - return V; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - content: '+', - disabled: - d.cooldown_time || - !h.can_open, - onClick: (function () { - function V() { - return s( - 'make_job_available', - { job: h.title } - ); - } - return V; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: - (d.target_dept && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'green', - children: - d.priority_jobs.indexOf( - h.title - ) > -1 - ? 'Yes' - : '', - } - )) || - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: h.is_priority - ? 'Yes' - : 'No', - selected: h.is_priority, - disabled: - d.cooldown_time || - !h.can_prioritize, - onClick: (function () { - function V() { - return s( - 'prioritize_job', - { job: h.title } - ); - } - return V; - })(), - } - ), - } - ), - ], - }, - h.title - ); - }), - ], - } - ), - }), - ], - })) - : (v = (0, e.createComponentVNode)(2, S)); - break; - case 2: - !d.authenticated || !d.scan_name - ? (v = (0, e.createComponentVNode)(2, S)) - : d.modify_name - ? (v = (0, e.createComponentVNode)(2, m.AccessList, { - accesses: d.regions, - selectedList: d.selectedAccess, - accessMod: (function () { - function h(V) { - return s('set', { access: V }); - } - return h; - })(), - grantAll: (function () { - function h() { - return s('grant_all'); - } - return h; - })(), - denyAll: (function () { - function h() { - return s('clear_all'); - } - return h; - })(), - grantDep: (function () { - function h(V) { - return s('grant_region', { region: V }); - } - return h; - })(), - denyDep: (function () { - function h(V) { - return s('deny_region', { region: V }); - } - return h; - })(), - })) - : (v = (0, e.createComponentVNode)(2, k)); - break; - case 3: - d.authenticated - ? d.records.length - ? (v = (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Records', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: 'Delete All Records', - disabled: - !d.authenticated || - d.records.length === 0 || - d.target_dept, - onClick: (function () { - function h() { - return s('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' } - ), - !!d.iscentcom && - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { bold: !0, children: 'Deleted By' } - ), - ], - }), - d.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 } - ), - !!d.iscentcom && - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { children: h.deletedby } - ), - ], - }, - h.timestamp - ); - }), - ], - }), - !!d.iscentcom && - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: 'Delete MY Records', - color: 'purple', - disabled: - !d.authenticated || - d.records.length === 0, - onClick: (function () { - function h() { - return s('wipe_my_logs'); - } - return h; - })(), - } - ), - }), - ], - })) - : (v = (0, e.createComponentVNode)(2, p)) - : (v = (0, e.createComponentVNode)(2, S)); - break; - case 4: - !d.authenticated || !d.scan_name - ? (v = (0, e.createComponentVNode)(2, S)) - : (v = (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Your Team', - children: (0, e.createComponentVNode)(2, t.Table, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - height: 2, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: 'Name', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: 'Rank', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: 'Sec Status', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: 'Actions', - }), - ], - }), - d.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 V() { - return s('remote_demote', { - remote_demote: h.name, - }); - } - return V; - })(), - } - ), - } - ), - ], - }, - h.title - ); - }), - ], - }), - })); - break; - default: - v = (0, e.createComponentVNode)(2, t.Section, { - title: 'Warning', - color: 'red', - children: 'ERROR: Unknown Mode.', - }); - } - return (0, e.createComponentVNode)(2, o.Window, { - width: 800, - height: 800, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: g, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: C, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: v, - }), - ], - }), - }), - }); - } - return c; - })()); - }, - 62486: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CargoConsole = void 0); - var e = n(28823), - a = n(90955), - t = n(72026), - o = n(91819), - m = n(2971), - N = n(84947), - y = n(37843), - S = (r.CargoConsole = (function () { - function u(s, d) { - return (0, e.createComponentVNode)(2, N.Window, { - width: 900, - height: 800, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, p), - (0, e.createComponentVNode)(2, l), - (0, e.createComponentVNode)(2, c), - (0, e.createComponentVNode)(2, i), - ], - }), - }), - }); - } - return u; - })()), - k = function (s, d) { - var C = (0, o.useLocalState)(d, 'contentsModal', null), - g = C[0], - v = C[1], - h = (0, o.useLocalState)(d, 'contentsModalTitle', null), - V = h[0], - b = h[1]; - if (g !== null && V !== null) - return (0, e.createComponentVNode)(2, m.Modal, { - maxWidth: '75%', - width: window.innerWidth + 'px', - maxHeight: window.innerHeight * 0.75 + 'px', - mx: 'auto', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - width: '100%', - bold: !0, - children: (0, e.createVNode)( - 1, - 'h1', - null, - [V, (0, e.createTextVNode)(' contents:')], - 0 - ), - }), - (0, e.createComponentVNode)(2, m.Box, { - children: g.map(function (B) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { children: ['- ', B] }, - B - ); - }), - }), - (0, e.createComponentVNode)(2, m.Box, { - m: 2, - children: (0, e.createComponentVNode)(2, m.Button, { - content: 'Close', - onClick: (function () { - function B() { - v(null), b(null); - } - return B; - })(), - }), - }), - ], - }); - }, - p = function (s, d) { - var C = (0, o.useBackend)(d), - g = C.act, - v = C.data, - h = v.is_public, - V = v.timeleft, - b = v.moving, - B = v.at_station, - I, - w; - return ( - !b && !B - ? ((I = 'Docked off-station'), (w = 'Call Shuttle')) - : !b && B - ? ((I = 'Docked at the station'), (w = 'Return Shuttle')) - : b && - ((w = 'In Transit...'), - V !== 1 - ? (I = 'Shuttle is en route (ETA: ' + V + ' minutes)') - : (I = 'Shuttle is en route (ETA: ' + V + ' minute)')), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Section, { - title: 'Status', - children: (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Shuttle Status', - children: I, - }), - h === 0 && - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Controls', - children: [ - (0, e.createComponentVNode)(2, m.Button, { - content: w, - disabled: b, - onClick: (function () { - function T() { - return g('moveShuttle'); - } - return T; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - content: 'View Central Command Messages', - onClick: (function () { - function T() { - return g('showMessages'); - } - return T; - })(), - }), - ], - }), - ], - }), - }), - }) - ); - }, - l = function (s, d) { - var C, - g = (0, o.useBackend)(d), - v = g.act, - h = g.data, - V = h.accounts, - b = (0, o.useLocalState)(d, 'selectedAccount'), - B = b[0], - I = b[1], - w = []; - return ( - V.map(function (T) { - return (w[T.name] = T.account_UID); - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Section, { - title: 'Payment', - children: [ - (0, e.createComponentVNode)(2, m.Dropdown, { - width: '190px', - options: V.map(function (T) { - return T.name; - }), - selected: - (C = V.filter(function (T) { - return T.account_UID === B; - })[0]) == null - ? void 0 - : C.name, - onSelected: (function () { - function T(A) { - return I(w[A]); - } - return T; - })(), - }), - V.filter(function (T) { - return T.account_UID === B; - }).map(function (T) { - return (0, e.createComponentVNode)( - 2, - m.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: 'Account Name', - children: (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { mt: 1, children: T.name } - ), - } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: 'Balance', - children: (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { children: T.balance } - ), - } - ), - ], - }, - T.account_UID - ); - }), - ], - }), - }) - ); - }, - c = function (s, d) { - var C = (0, o.useBackend)(d), - g = C.act, - v = C.data, - h = v.requests, - V = v.categories, - b = v.supply_packs, - B = (0, o.useSharedState)(d, 'category', 'Emergency'), - I = B[0], - w = B[1], - T = (0, o.useSharedState)(d, 'search_text', ''), - A = T[0], - x = T[1], - E = (0, o.useLocalState)(d, 'contentsModal', null), - P = E[0], - D = E[1], - M = (0, o.useLocalState)(d, 'contentsModalTitle', null), - O = M[0], - j = M[1], - F = (0, y.createSearch)(A, function (Y) { - return Y.name; - }), - U = (0, o.useLocalState)(d, 'selectedAccount'), - _ = U[0], - z = U[1], - H = (0, a.flow)([ - (0, t.filter)(function (Y) { - return ( - Y.cat === - V.filter(function (X) { - return X.name === I; - })[0].category || A - ); - }), - A && (0, t.filter)(F), - (0, t.sortBy)(function (Y) { - return Y.name.toLowerCase(); - }), - ])(b), - $ = 'Crate Catalogue'; - return ( - A - ? ($ = "Results for '" + A + "':") - : I && ($ = 'Browsing ' + I), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Section, { - title: $, - buttons: (0, e.createComponentVNode)(2, m.Dropdown, { - width: '190px', - options: V.map(function (Y) { - return Y.name; - }), - selected: I, - onSelected: (function () { - function Y(X) { - return w(X); - } - return Y; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, m.Input, { - fluid: !0, - placeholder: 'Search for...', - onInput: (function () { - function Y(X, re) { - return x(re); - } - return Y; - })(), - mb: 1, - }), - (0, e.createComponentVNode)(2, m.Box, { - maxHeight: 25, - overflowY: 'auto', - overflowX: 'hidden', - children: (0, e.createComponentVNode)(2, m.Table, { - m: '0.5rem', - children: H.map(function (Y) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - bold: !0, - children: [ - Y.name, - ' (', - Y.cost, - ' Credits)', - ], - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - textAlign: 'right', - pr: 1, - children: [ - (0, e.createComponentVNode)(2, m.Button, { - content: 'Order 1', - icon: 'shopping-cart', - disabled: !_, - onClick: (function () { - function X() { - return g('order', { - crate: Y.ref, - multiple: !1, - account: _, - }); - } - return X; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - content: 'Order Multiple', - icon: 'cart-plus', - disabled: !_ || Y.singleton, - onClick: (function () { - function X() { - return g('order', { - crate: Y.ref, - multiple: !0, - account: _, - }); - } - return X; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - content: 'View Contents', - icon: 'search', - onClick: (function () { - function X() { - D(Y.contents), j(Y.name); - } - return X; - })(), - }), - ], - }), - ], - }, - Y.name - ); - }), - }), - }), - ], - }), - }) - ); - }, - f = function (s, d) { - var C = s.request, - g, - v; - switch (C.department) { - case 'Engineering': - (v = 'CE'), (g = 'orange'); - break; - case 'Medical': - (v = 'CMO'), (g = 'teal'); - break; - case 'Science': - (v = 'RD'), (g = 'purple'); - break; - case 'Supply': - (v = 'CT'), (g = 'brown'); - break; - case 'Service': - (v = 'HOP'), (g = 'olive'); - break; - case 'Security': - (v = 'HOS'), (g = 'red'); - break; - case 'Command': - (v = 'CAP'), (g = 'blue'); - break; - case 'Assistant': - (v = 'Any Head'), (g = 'grey'); - break; - } - return (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - mt: 0.5, - children: 'Approval Required:', - }), - !!C.req_cargo_approval && - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Button, { - color: 'brown', - content: 'QM', - icon: 'user-tie', - tooltip: - 'This Order requires approval from the QM still', - }), - }), - !!C.req_head_approval && - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Button, { - color: g, - content: v, - disabled: C.req_cargo_approval, - icon: 'user-tie', - tooltip: C.req_cargo_approval - ? 'This Order first requires approval from the QM before the ' + - v + - ' can approve it' - : 'This Order requires approval from the ' + - v + - ' still', - }), - }), - ], - }); - }, - i = function (s, d) { - var C = (0, o.useBackend)(d), - g = C.act, - v = C.data, - h = v.requests, - V = v.orders, - b = v.shipments; - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - scrollable: !0, - title: 'Orders', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - bold: !0, - children: 'Requests', - }), - (0, e.createComponentVNode)(2, m.Table, { - children: h.map(function (B) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - className: 'Cargo_RequestList', - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - mb: 1, - children: [ - (0, e.createComponentVNode)(2, m.Box, { - children: [ - 'Order #', - B.ordernum, - ': ', - B.supply_type, - ' (', - B.cost, - ' credits) for', - ' ', - (0, e.createVNode)( - 1, - 'b', - null, - B.orderedby, - 0 - ), - ' with', - ' ', - B.department - ? 'The ' + B.department + ' Department' - : 'Their Personal', - ' ', - 'Account', - ], - }), - (0, e.createComponentVNode)(2, m.Box, { - italic: !0, - children: ['Reason: ', B.comment], - }), - (0, e.createComponentVNode)(2, f, { - request: B, - }), - ], - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - textAlign: 'right', - children: [ - (0, e.createComponentVNode)(2, m.Button, { - content: 'Approve', - color: 'green', - disabled: !B.can_approve, - onClick: (function () { - function I() { - return g('approve', { - ordernum: B.ordernum, - }); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - content: 'Deny', - color: 'red', - disabled: !B.can_deny, - onClick: (function () { - function I() { - return g('deny', { - ordernum: B.ordernum, - }); - } - return I; - })(), - }), - ], - }), - ], - }, - B.ordernum - ); - }), - }), - (0, e.createComponentVNode)(2, m.Box, { - bold: !0, - children: 'Orders Awaiting Delivery', - }), - (0, e.createComponentVNode)(2, m.Table, { - m: '0.5rem', - children: V.map(function (B) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - children: (0, e.createComponentVNode)( - 2, - m.Table.Cell, - { - children: [ - (0, e.createComponentVNode)(2, m.Box, { - children: [ - '- #', - B.ordernum, - ': ', - B.supply_type, - ' for ', - (0, e.createVNode)( - 1, - 'b', - null, - B.orderedby, - 0 - ), - ], - }), - (0, e.createComponentVNode)(2, m.Box, { - italic: !0, - children: ['Reason: ', B.comment], - }), - ], - } - ), - }, - B.ordernum - ); - }), - }), - (0, e.createComponentVNode)(2, m.Box, { - bold: !0, - children: 'Order in Transit', - }), - (0, e.createComponentVNode)(2, m.Table, { - m: '0.5rem', - children: b.map(function (B) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - children: (0, e.createComponentVNode)( - 2, - m.Table.Cell, - { - children: [ - (0, e.createComponentVNode)(2, m.Box, { - children: [ - '- #', - B.ordernum, - ': ', - B.supply_type, - ' for ', - (0, e.createVNode)( - 1, - 'b', - null, - B.orderedby, - 0 - ), - ], - }), - (0, e.createComponentVNode)(2, m.Box, { - italic: !0, - children: ['Reason: ', B.comment], - }), - ], - } - ), - }, - B.ordernum - ); - }), - }), - ], - }); - }; - }, - 86885: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ChangelogView = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ChangelogView = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = (0, a.useLocalState)(S, 'onlyRecent', 0), - f = c[0], - i = c[1], - u = l.cl_data, - s = l.last_cl, - d = { - FIX: (0, e.createComponentVNode)(2, t.Icon, { - name: 'tools', - title: 'Fix', - }), - WIP: (0, e.createComponentVNode)(2, t.Icon, { - name: 'hard-hat', - title: 'WIP', - color: 'orange', - }), - TWEAK: (0, e.createComponentVNode)(2, t.Icon, { - name: 'sliders-h', - title: 'Tweak', - }), - SOUNDADD: (0, e.createComponentVNode)(2, t.Icon, { - name: 'volume-up', - title: 'Sound Added', - color: 'green', - }), - SOUNDDEL: (0, e.createComponentVNode)(2, t.Icon, { - name: 'volume-mute', - title: 'Sound Removed', - color: 'red', - }), - CODEADD: (0, e.createComponentVNode)(2, t.Icon, { - name: 'plus', - title: 'Code Addition', - color: 'green', - }), - CODEDEL: (0, e.createComponentVNode)(2, t.Icon, { - name: 'minus', - title: 'Code Removal', - color: 'red', - }), - IMAGEADD: (0, e.createComponentVNode)(2, t.Icon, { - name: 'folder-plus', - title: 'Sprite Addition', - color: 'green', - }), - IMAGEDEL: (0, e.createComponentVNode)(2, t.Icon, { - name: 'folder-minus', - title: 'Sprite Removal', - color: 'red', - }), - SPELLCHECK: (0, e.createComponentVNode)(2, t.Icon, { - name: 'font', - title: 'Spelling/Grammar Fix', - }), - EXPERIMENT: (0, e.createComponentVNode)(2, t.Icon, { - name: 'exclamation-triangle', - title: 'Experimental', - color: 'orange', - }), - }, - C = (function () { - function g(v) { - return v in d - ? d[v] - : (0, e.createComponentVNode)(2, t.Icon, { - name: 'plus', - color: 'green', - }); - } - return g; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 750, - height: 800, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'ParadiseSS13 Changelog', - mt: 2, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: f - ? 'Showing all changes' - : 'Showing changes since last connection', - onClick: (function () { - function g() { - return i(!f); - } - return g; - })(), - }), - children: u.map(function (g) { - return ( - (!f && g.merge_ts <= s) || - (0, e.createComponentVNode)( - 2, - t.Section, - { - mb: 2, - title: g.author + ' - Merged on ' + g.merge_date, - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: '#' + g.num, - onClick: (function () { - function v() { - return p('open_pr', { pr_number: g.num }); - } - return v; - })(), - } - ), - children: g.entries.map(function (v) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - m: 1, - children: [C(v.etype), ' ', v.etext], - }, - v - ); - }), - }, - g - ) - ); - }), - }), - }), - }); - } - return N; - })()); - }, - 56975: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ChemDispenser = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(83326), - m = n(84947), - N = [1, 5, 10, 20, 30, 50], - y = [1, 5, 10], - S = (r.ChemDispenser = (function () { - function c(f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.chemicals; - return (0, e.createComponentVNode)(2, m.Window, { - width: 400, - height: 400 + C.length * 8, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, p), - (0, e.createComponentVNode)(2, l), - ], - }), - }), - }); - } - return c; - })()), - k = function (f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.amount, - g = d.energy, - v = d.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: g, - minValue: 0, - maxValue: v, - ranges: { - good: [v * 0.5, 1 / 0], - average: [v * 0.25, v * 0.5], - bad: [-1 / 0, v * 0.25], - }, - children: [g, ' / ', v, ' Units'], - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Dispense', - verticalAlign: 'middle', - children: (0, e.createComponentVNode)(2, t.Stack, { - children: N.map(function (h, V) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '15%', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - icon: 'cog', - selected: C === h, - content: h, - onClick: (function () { - function b() { - return s('amount', { amount: h }); - } - return b; - })(), - } - ), - }, - V - ); - }), - }), - }), - ], - }), - }), - }); - }, - p = function (f, i) { - for ( - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.chemicals, - g = C === void 0 ? [] : C, - v = [], - h = 0; - h < (g.length + 1) % 3; - h++ - ) - v.push(!0); - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: d.glass ? 'Drink Dispenser' : 'Chemical Dispenser', - children: [ - g.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - m: 0.1, - width: '32.5%', - icon: 'arrow-circle-down', - overflow: 'hidden', - textOverflow: 'ellipsis', - content: V.title, - style: { 'margin-left': '2px' }, - onClick: (function () { - function B() { - return s('dispense', { reagent: V.id }); - } - return B; - })(), - }, - b - ); - }), - v.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { grow: !0, basis: '25%' }, - b - ); - }), - ], - }), - }); - }, - l = function (f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.isBeakerLoaded, - g = d.beakerCurrentVolume, - v = d.beakerMaxVolume, - h = d.beakerContents, - V = h === void 0 ? [] : h; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - height: 16, - children: (0, e.createComponentVNode)(2, t.Section, { - title: d.glass ? 'Glass' : 'Beaker', - fill: !0, - scrollable: !0, - buttons: (0, e.createComponentVNode)(2, t.Box, { - children: [ - !!C && - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: 'label', - mr: 2, - children: [g, ' / ', v, ' units'], - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: 'Eject', - disabled: !C, - onClick: (function () { - function b() { - return s('ejectBeaker'); - } - return b; - })(), - }), - ], - }), - children: (0, e.createComponentVNode)(2, o.BeakerContents, { - beakerLoaded: C, - beakerContents: V, - buttons: (function () { - function b(B) { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Isolate', - icon: 'compress-arrows-alt', - onClick: (function () { - function I() { - return s('remove', { - reagent: B.id, - amount: -1, - }); - } - return I; - })(), - }), - y.map(function (I, w) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: I, - onClick: (function () { - function T() { - return s('remove', { - reagent: B.id, - amount: I, - }); - } - return T; - })(), - }, - w - ); - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'ALL', - onClick: (function () { - function I() { - return s('remove', { - reagent: B.id, - amount: B.volume, - }); - } - return I; - })(), - }), - ], - 0 - ); - } - return b; - })(), - }), - }), - }); - }; - }, - 48734: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ChemHeater = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(83326), - N = n(84947), - y = (r.ChemHeater = (function () { - function p(l, c) { - return (0, e.createComponentVNode)(2, N.Window, { - width: 350, - height: 275, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, k), - ], - }), - }), - }); - } - return p; - })()), - S = function (l, c) { - var f = (0, t.useBackend)(c), - i = f.act, - u = f.data, - s = u.targetTemp, - d = u.targetTempReached, - C = u.autoEject, - g = u.isActive, - v = u.currentTemp, - h = u.isBeakerLoaded; - return (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - title: 'Settings', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - content: 'Auto-eject', - icon: C ? 'toggle-on' : 'toggle-off', - selected: C, - onClick: (function () { - function V() { - return i('toggle_autoeject'); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - content: g ? 'On' : 'Off', - icon: 'power-off', - selected: g, - disabled: !h, - onClick: (function () { - function V() { - return i('toggle_on'); - } - return V; - })(), - }), - ], - 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)(s, 0), - minValue: 0, - maxValue: 1e3, - onDrag: (function () { - function V(b, B) { - return i('adjust_temperature', { target: B }); - } - return V; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Reading', - color: d ? 'good' : 'average', - children: - (h && - (0, e.createComponentVNode)(2, o.AnimatedNumber, { - value: v, - format: (function () { - function V(b) { - return (0, a.toFixed)(b) + ' K'; - } - return V; - })(), - })) || - '\u2014', - }), - ], - }), - }), - }); - }, - k = function (l, c) { - var f = (0, t.useBackend)(c), - i = f.act, - u = f.data, - s = u.isBeakerLoaded, - d = u.beakerCurrentVolume, - C = u.beakerMaxVolume, - g = u.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: - !!s && - (0, e.createComponentVNode)(2, o.Box, { - children: [ - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - color: 'label', - mr: 2, - children: [d, ' / ', C, ' units'], - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eject', - content: 'Eject', - onClick: (function () { - function v() { - return i('eject_beaker'); - } - return v; - })(), - }), - ], - }), - children: (0, e.createComponentVNode)(2, m.BeakerContents, { - beakerLoaded: s, - beakerContents: g, - }), - }), - }); - }; - }, - 35918: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ChemMaster = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(83326), - N = n(22677), - y = n(66586), - S = n(50175), - k = ['icon']; - function p(x, E) { - if (x == null) return {}; - var P = {}, - D = Object.keys(x), - M, - O; - for (O = 0; O < D.length; O++) - (M = D[O]), !(E.indexOf(M) >= 0) && (P[M] = x[M]); - return P; - } - function l(x, E) { - (x.prototype = Object.create(E.prototype)), - (x.prototype.constructor = x), - c(x, E); - } - function c(x, E) { - return ( - (c = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function P(D, M) { - return (D.__proto__ = M), D; - } - return P; - })()), - c(x, E) - ); - } - var f = (0, S.createLogger)('ChemMaster'), - i = [1, 5, 10], - u = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = E.args.analysis; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: O.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: j.name, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Description', - children: (j.desc || '').length > 0 ? j.desc : 'N/A', - }), - j.blood_type && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Blood type', children: j.blood_type } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Blood DNA', - className: 'LabeledList__breakContents', - children: j.blood_dna, - } - ), - ], - 4 - ), - !O.condi && - (0, e.createComponentVNode)(2, t.Button, { - icon: O.printing ? 'spinner' : 'print', - disabled: O.printing, - iconSpin: !!O.printing, - ml: '0.5rem', - content: 'Print', - onClick: (function () { - function F() { - return M('print', { - idx: j.idx, - beaker: E.args.beaker, - }); - } - return F; - })(), - }), - ], - }), - }), - }), - }); - }, - s = (r.ChemMaster = (function () { - function x(E, P) { - var D = (0, a.useBackend)(P), - M = D.data, - O = M.condi, - j = M.beaker, - F = M.beaker_reagents, - U = F === void 0 ? [] : F, - _ = M.buffer_reagents, - z = _ === void 0 ? [] : _, - H = M.mode; - return (0, e.createComponentVNode)(2, o.Window, { - width: 575, - height: 650, - children: [ - (0, e.createComponentVNode)(2, N.ComplexModal), - (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, d, { - beaker: j, - beakerReagents: U, - bufferNonEmpty: z.length > 0, - }), - (0, e.createComponentVNode)(2, C, { - mode: H, - bufferReagents: z, - }), - (0, e.createComponentVNode)(2, g, { - isCondiment: O, - bufferNonEmpty: z.length > 0, - }), - (0, e.createComponentVNode)(2, A), - ], - }), - }), - ], - }); - } - return x; - })()), - d = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = E.beaker, - j = E.beakerReagents, - F = E.bufferNonEmpty; - 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 U() { - return M('eject'); - } - return U; - })(), - }) - : (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - disabled: !O, - content: 'Eject and Clear Buffer', - onClick: (function () { - function U() { - return M('eject'); - } - return U; - })(), - }), - children: O - ? (0, e.createComponentVNode)(2, m.BeakerContents, { - beakerLoaded: !0, - beakerContents: j, - buttons: (function () { - function U(_, z) { - return (0, e.createComponentVNode)(2, t.Box, { - mb: z < j.length - 1 && '2px', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Analyze', - mb: '0', - onClick: (function () { - function H() { - return (0, N.modalOpen)(P, 'analyze', { - idx: z + 1, - beaker: 1, - }); - } - return H; - })(), - }), - i.map(function (H, $) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: H, - mb: '0', - onClick: (function () { - function Y() { - return M('add', { - id: _.id, - amount: H, - }); - } - return Y; - })(), - }, - $ - ); - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'All', - mb: '0', - onClick: (function () { - function H() { - return M('add', { - id: _.id, - amount: _.volume, - }); - } - return H; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Custom..', - mb: '0', - onClick: (function () { - function H() { - return (0, N.modalOpen)(P, 'addcustom', { - id: _.id, - }); - } - return H; - })(), - }), - ], - }); - } - return U; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - children: 'No beaker loaded.', - }), - }), - }); - }, - C = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = E.mode, - j = E.bufferReagents, - F = j === void 0 ? [] : j; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Buffer', - fill: !0, - scrollable: !0, - buttons: (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - children: [ - 'Transferring to\xA0', - (0, e.createComponentVNode)(2, t.Button, { - icon: O ? 'flask' : 'trash', - color: !O && 'bad', - content: O ? 'Beaker' : 'Disposal', - onClick: (function () { - function U() { - return M('toggle'); - } - return U; - })(), - }), - ], - }), - children: - F.length > 0 - ? (0, e.createComponentVNode)(2, m.BeakerContents, { - beakerLoaded: !0, - beakerContents: F, - buttons: (function () { - function U(_, z) { - return (0, e.createComponentVNode)(2, t.Box, { - mb: z < F.length - 1 && '2px', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Analyze', - mb: '0', - onClick: (function () { - function H() { - return (0, N.modalOpen)(P, 'analyze', { - idx: z + 1, - beaker: 0, - }); - } - return H; - })(), - }), - i.map(function (H, $) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: H, - mb: '0', - onClick: (function () { - function Y() { - return M('remove', { - id: _.id, - amount: H, - }); - } - return Y; - })(), - }, - $ - ); - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'All', - mb: '0', - onClick: (function () { - function H() { - return M('remove', { - id: _.id, - amount: _.volume, - }); - } - return H; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Custom..', - mb: '0', - onClick: (function () { - function H() { - return (0, N.modalOpen)( - P, - 'removecustom', - { id: _.id } - ); - } - return H; - })(), - }), - ], - }); - } - return U; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - children: 'Buffer is empty.', - }), - }), - }); - }, - g = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act; - return !E.bufferNonEmpty && E.isCondiment - ? (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Production', - 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: 'tint-slash', - mb: '0.5rem', - size: '5', - }), - (0, e.createVNode)(1, 'br'), - 'Buffer is empty.', - ], - }), - }), - }), - }) - : (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Production', - children: E.isCondiment - ? (0, e.createComponentVNode)(2, T) - : (0, e.createComponentVNode)(2, v), - }), - }); - }, - v = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = [ - { name: 'Pills', icon: 'pills' }, - { name: 'Patches', icon: 'plus-square' }, - { name: 'Bottles', icon: 'wine-bottle' }, - ], - F = function (_) { - switch (_) { - case 1: - return (0, e.createComponentVNode)(2, B); - case 2: - return (0, e.createComponentVNode)(2, I); - case 3: - return (0, e.createComponentVNode)(2, w); - default: - return 'UNKNOWN INTERFACE'; - } - }; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Tabs, { - children: j.map(function (U, _) { - return ( - (_ += 1), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: U.icon, - selected: O.production_mode === _, - onClick: (function () { - function z() { - return M('set_production_mode', { mode: _ }); - } - return z; - })(), - children: U.name, - }, - _ - ) - ); - }), - }), - F(O.production_mode), - ], - 0 - ); - }, - h = (function (x) { - l(E, x); - function E() { - var D; - return ( - (D = x.call(this) || this), - (D.handleMouseUp = function (M) { - var O = D.props, - j = O.placeholder, - F = O.onMouseUp; - M.button === 1 && ((M.target.value = j), M.target.select()), - F && F(M); - }), - D - ); - } - var P = E.prototype; - return ( - (P.render = (function () { - function D() { - var M = (0, a.useBackend)(this.context), - O = M.data, - j = O.maxnamelength; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Input, - Object.assign( - { maxLength: j, onMouseUp: this.handleMouseUp }, - this.props - ) - ) - ); - } - return D; - })()), - E - ); - })(e.Component), - V = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = E.children, - F = E.maxQuantity, - U = E.medicineName, - _ = E.placeholderName, - z = E.productionType, - H = E.quantity, - $ = O.buffer_reagents, - Y = $ === void 0 ? [] : $; - return (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - j, - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Quantity', - children: (0, e.createComponentVNode)(2, t.Slider, { - value: H, - minValue: 1, - maxValue: F, - onChange: (function () { - function X(re, ae) { - return M('set_' + z + '_amount', { amount: ae }); - } - return X; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Name', - children: (0, e.createComponentVNode)(2, h, { - fluid: !0, - value: U, - placeholder: _, - onChange: (function () { - function X(re, ae) { - return M('set_' + z + '_name', { name: ae }); - } - return X; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: 'Create', - color: 'green', - disabled: Y.length <= 0, - onClick: (function () { - function X() { - return M('create_' + z); - } - return X; - })(), - }), - }), - ], - }); - }, - b = function (E, P) { - var D = E.icon, - M = p(E, k); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Button, - Object.assign( - { style: { padding: 0, 'line-height': 0 } }, - M, - { - children: (0, e.createComponentVNode)(2, t.Box, { - className: (0, y.classes)(['chem_master32x32', D]), - }), - } - ) - ) - ); - }, - B = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = O.maxpills, - F = O.pillamount, - U = O.pillname, - _ = O.pillplaceholdername, - z = O.pillsprite, - H = O.pillstyles, - $ = H.map(function (Y) { - var X = Y.id, - re = Y.sprite; - return (0, e.createComponentVNode)( - 2, - b, - { - icon: re, - color: 'translucent', - onClick: (function () { - function ae() { - return M('set_pills_style', { style: X }); - } - return ae; - })(), - selected: z === X, - }, - X - ); - }); - return (0, e.createComponentVNode)(2, V, { - maxQuantity: j, - medicineName: U, - placeholderName: _, - productionType: 'pills', - quantity: F, - children: (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Style', - children: $, - }), - }); - }, - I = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = O.maxpatches, - F = O.patchamount, - U = O.patchname, - _ = O.patchplaceholdername; - return (0, e.createComponentVNode)(2, V, { - maxQuantity: j, - medicineName: U, - placeholderName: _, - productionType: 'patches', - quantity: F, - }); - }, - w = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = O.bottlesprite, - F = O.maxbottles, - U = O.bottleamount, - _ = O.bottlename, - z = O.bottleplaceholdername, - H = O.bottlestyles, - $ = H.map(function (Y) { - var X = Y.id, - re = Y.sprite; - return (0, e.createComponentVNode)( - 2, - b, - { - icon: re, - color: 'translucent', - onClick: (function () { - function ae() { - return M('set_bottles_style', { style: X }); - } - return ae; - })(), - selected: j === X, - }, - X - ); - }); - return (0, e.createComponentVNode)(2, V, { - maxQuantity: F, - medicineName: _, - placeholderName: z, - productionType: 'bottles', - quantity: U, - children: (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Style', - children: $, - }), - }); - }, - T = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'box', - content: 'Create condiment pack (10u max)', - mb: '0.5rem', - onClick: (function () { - function O() { - return (0, N.modalOpen)(P, 'create_condi_pack'); - } - return O; - })(), - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'wine-bottle', - content: 'Create bottle (50u max)', - mb: '0', - onClick: (function () { - function O() { - return M('create_condi_bottle'); - } - return O; - })(), - }), - ], - 4 - ); - }, - A = function (E, P) { - var D = (0, a.useBackend)(P), - M = D.act, - O = D.data, - j = O.loaded_pill_bottle_style, - F = O.containerstyles, - U = O.loaded_pill_bottle, - _ = { width: '20px', height: '20px' }, - z = F.map(function (H) { - var $ = H.color, - Y = H.name, - X = j === $; - return (0, e.createComponentVNode)( - 2, - t.Button, - { - style: { - position: 'relative', - width: _.width, - height: _.height, - }, - onClick: (function () { - function re() { - return M('set_container_style', { style: $ }); - } - return re; - })(), - icon: X && 'check', - iconStyle: { position: 'relative', 'z-index': 1 }, - tooltip: Y, - tooltipPosition: 'top', - children: [ - !X && - (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: _.width, - height: _.height, - 'background-color': $, - opacity: 0.6, - filter: 'alpha(opacity=60)', - }, - }), - ], - }, - $ - ); - }); - 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: !U, - content: 'Eject Container', - onClick: (function () { - function H() { - return M('ejectp'); - } - return H; - })(), - }), - children: U - ? (0, e.createComponentVNode)(2, t.LabeledList, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Style', - style: { position: 'relative' }, - children: [ - (0, e.createComponentVNode)(2, t.Button, { - style: { width: _.width, height: _.height }, - icon: 'tint-slash', - onClick: (function () { - function H() { - return M('clear_container_style'); - } - return H; - })(), - selected: !j, - tooltip: 'Default', - tooltipPosition: 'top', - }), - z, - ], - } - ), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - children: 'No pill bottle or patch pack loaded.', - }), - }), - }); - }; - (0, N.modalRegisterBodyOverride)('analyze', u); - }, - 8573: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CloningConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(96820), - N = 1, - y = 32, - S = 128, - k = (r.CloningConsole = (function () { - function u(s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.tab, - V = v.has_scanner, - b = v.pod_amount; - return (0, e.createComponentVNode)(2, o.Window, { - width: 640, - height: 520, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Cloning Console', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Connected scanner', - children: V ? 'Online' : 'Missing', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Connected pods', children: b } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: h === 1, - icon: 'home', - onClick: (function () { - function B() { - return g('menu', { tab: 1 }); - } - return B; - })(), - children: 'Main Menu', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: h === 2, - icon: 'user', - onClick: (function () { - function B() { - return g('menu', { tab: 2 }); - } - return B; - })(), - children: 'Damage Configuration', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, p), - }), - ], - }), - }); - } - return u; - })()), - p = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = g.tab, - h; - return ( - v === 1 - ? (h = (0, e.createComponentVNode)(2, l)) - : v === 2 && (h = (0, e.createComponentVNode)(2, c)), - h - ); - }, - l = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.pods, - V = v.pod_amount, - b = v.selected_pod_UID; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - !V && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'Notice: No pods connected.', - }), - !!V && - h.map(function (B, I) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - layer: 2, - title: 'Pod ' + (I + 1), - children: (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - basis: '96px', - shrink: 0, - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: (0, m.resolveAsset)( - 'pod_' + - (B.cloning ? 'cloning' : 'idle') + - '.gif' - ), - style: { - width: '100%', - '-ms-interpolation-mode': - 'nearest-neighbor', - }, - }), - (0, e.createComponentVNode)(2, t.Button, { - selected: b === B.uid, - onClick: (function () { - function w() { - return g('select_pod', { uid: B.uid }); - } - return w; - })(), - children: 'Select', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Progress', - children: [ - !B.cloning && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'average', - children: 'Pod is inactive.', - } - ), - !!B.cloning && - (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: B.clone_progress, - maxValue: 100, - color: 'good', - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Biomass', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: B.biomass, - ranges: { - good: [ - (2 * - B.biomass_storage_capacity) / - 3, - B.biomass_storage_capacity, - ], - average: [ - B.biomass_storage_capacity / - 3, - (2 * - B.biomass_storage_capacity) / - 3, - ], - bad: [ - 0, - B.biomass_storage_capacity / - 3, - ], - }, - minValue: 0, - maxValue: - B.biomass_storage_capacity, - children: [ - B.biomass, - '/', - B.biomass_storage_capacity + - ' (' + - (100 * B.biomass) / - B.biomass_storage_capacity + - '%)', - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Sanguine Reagent', - children: B.sanguine_reagent, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Osseous Reagent', - children: B.osseous_reagent, - } - ), - ], - } - ), - }), - ], - }), - }, - B - ); - }), - ], - }); - }, - c = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.selected_pod_data, - V = v.has_scanned, - b = v.scanner_has_patient, - B = v.feedback, - I = v.scan_successful, - w = v.cloning_cost, - T = v.has_scanner; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - !T && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'Notice: No scanner connected.', - }), - !!T && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - layer: 2, - title: 'Scanner Info', - buttons: (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'hourglass-half', - onClick: (function () { - function A() { - return g('scan'); - } - return A; - })(), - children: 'Scan', - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - onClick: (function () { - function A() { - return g('eject'); - } - return A; - })(), - children: 'Eject Patient', - }), - ], - }), - children: [ - !V && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: b - ? 'No scan detected for current patient.' - : 'No patient is in the scanner.', - }), - !!V && - (0, e.createComponentVNode)(2, t.Box, { - color: B.color, - children: B.text, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - layer: 2, - title: 'Damages Breakdown', - children: (0, e.createComponentVNode)(2, t.Box, { - children: [ - (!I || !V) && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'No valid scan detected.', - }), - !!I && - !!V && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - onClick: (function () { - function A() { - return g('fix_all'); - } - return A; - })(), - children: - 'Repair All Damages', - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - onClick: (function () { - function A() { - return g('fix_none'); - } - return A; - })(), - children: 'Repair No Damages', - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { grow: 1 } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - onClick: (function () { - function A() { - return g('clone'); - } - return A; - })(), - children: 'Clone', - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - height: '25px', - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '40%', - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: w[0], - maxValue: - h.biomass_storage_capacity, - ranges: { - bad: [ - (2 * - h.biomass_storage_capacity) / - 3, - h.biomass_storage_capacity, - ], - average: [ - h.biomass_storage_capacity / - 3, - (2 * - h.biomass_storage_capacity) / - 3, - ], - good: [ - 0, - h.biomass_storage_capacity / - 3, - ], - }, - color: - w[0] > h.biomass - ? 'bad' - : null, - children: [ - 'Biomass: ', - w[0], - '/', - h.biomass, - '/', - h.biomass_storage_capacity, - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '30%', - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: w[1], - maxValue: - h.max_reagent_capacity, - ranges: { - bad: [ - (2 * - h.max_reagent_capacity) / - 3, - h.max_reagent_capacity, - ], - average: [ - h.max_reagent_capacity / 3, - (2 * - h.max_reagent_capacity) / - 3, - ], - good: [ - 0, - h.max_reagent_capacity / 3, - ], - }, - color: - w[1] > h.sanguine_reagent - ? 'bad' - : 'good', - children: [ - 'Sanguine: ', - w[1], - '/', - h.sanguine_reagent, - '/', - h.max_reagent_capacity, - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '30%', - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: w[2], - maxValue: - h.max_reagent_capacity, - ranges: { - bad: [ - (2 * - h.max_reagent_capacity) / - 3, - h.max_reagent_capacity, - ], - average: [ - h.max_reagent_capacity / 3, - (2 * - h.max_reagent_capacity) / - 3, - ], - good: [ - 0, - h.max_reagent_capacity / 3, - ], - }, - color: - w[2] > h.osseous_reagent - ? 'bad' - : 'good', - children: [ - 'Osseous: ', - w[2], - '/', - h.osseous_reagent, - '/', - h.max_reagent_capacity, - ], - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, f), - (0, e.createComponentVNode)(2, i), - ], - }), - ], - }), - }), - ], - }), - ], - }); - }, - f = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.patient_limb_data, - V = v.limb_list, - b = v.desired_limb_data; - return (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Limbs', - children: V.map(function (B, I) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - align: 'baseline', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - width: '15%', - height: '20px', - children: [h[B][4], ':', ' '], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: 1, - }), - h[B][3] === 0 && - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '60%', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: b[B][0] + b[B][1], - maxValue: h[B][5], - ranges: { - good: [0, h[B][5] / 3], - average: [h[B][5] / 3, (2 * h[B][5]) / 3], - bad: [(2 * h[B][5]) / 3, h[B][5]], - }, - children: [ - 'Post-Cloning Damage: ', - (0, e.createComponentVNode)(2, t.Icon, { - name: 'bone', - }), - ' ' + b[B][0] + ' / ', - (0, e.createComponentVNode)(2, t.Icon, { - name: 'fire', - }), - ' ' + b[B][1], - ], - } - ), - }), - h[B][3] !== 0 && - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '60%', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - color: 'bad', - value: 0, - children: [ - "The patient's ", - h[B][4], - ' is missing!', - ], - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - !!h[B][3] && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: !b[B][3], - onClick: (function () { - function w() { - return g('toggle_limb_repair', { - limb: B, - type: 'replace', - }); - } - return w; - })(), - children: 'Replace Limb', - } - ), - }), - !h[B][3] && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - disabled: !(h[B][0] || h[B][1]), - checked: !(b[B][0] || b[B][1]), - onClick: (function () { - function w() { - return g('toggle_limb_repair', { - limb: B, - type: 'damage', - }); - } - return w; - })(), - children: 'Repair Damages', - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - disabled: !(h[B][2] & N), - checked: !(b[B][2] & N), - onClick: (function () { - function w() { - return g('toggle_limb_repair', { - limb: B, - type: 'bone', - }); - } - return w; - })(), - children: 'Mend Bone', - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - disabled: !(h[B][2] & y), - checked: !(b[B][2] & y), - onClick: (function () { - function w() { - return g('toggle_limb_repair', { - limb: B, - type: 'ib', - }); - } - return w; - })(), - children: 'Mend IB', - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - disabled: !(h[B][2] & S), - checked: !(b[B][2] & S), - onClick: (function () { - function w() { - return g('toggle_limb_repair', { - limb: B, - type: 'critburn', - }); - } - return w; - })(), - children: 'Mend Critical Burn', - } - ), - ], - }), - ], - }), - ], - }, - B - ); - }), - }); - }, - i = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.patient_organ_data, - V = v.organ_list, - b = v.desired_organ_data; - return (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Organs', - children: V.map(function (B, I) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)(2, t.Stack, { - align: 'baseline', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - width: '20%', - height: '20px', - children: [h[B][3], ':', ' '], - }), - h[B][5] !== 'heart' && - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - !!h[B][2] && - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: !b[B][2] && !b[B][1], - onClick: (function () { - function w() { - return g('toggle_organ_repair', { - organ: B, - type: 'replace', - }); - } - return w; - })(), - children: 'Replace Organ', - } - ), - !h[B][2] && - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - disabled: !h[B][0], - checked: !b[B][0], - onClick: (function () { - function w() { - return g( - 'toggle_organ_repair', - { organ: B, type: 'damage' } - ); - } - return w; - })(), - children: 'Repair Damages', - } - ), - }), - ], - } - ), - }), - h[B][5] === 'heart' && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: - 'Heart replacement is required for cloning.', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: 1, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '35%', - children: [ - !!h[B][2] && - (0, e.createComponentVNode)(2, t.ProgressBar, { - color: 'bad', - value: 0, - children: [ - "The patient's ", - h[B][3], - ' is missing!', - ], - }), - !h[B][2] && - (0, e.createComponentVNode)(2, t.ProgressBar, { - value: b[B][0], - maxValue: h[B][4], - ranges: { - good: [0, h[B][4] / 3], - average: [h[B][4] / 3, (2 * h[B][4]) / 3], - bad: [(2 * h[B][4]) / 3, h[B][4]], - }, - children: 'Post-Cloning Damage: ' + b[B][0], - }), - ], - }), - ], - }), - }, - B - ); - }), - }); - }; - }, - 58378: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CloningPod = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.CloningPod = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.biomass, - f = l.biomass_storage_capacity, - i = l.sanguine_reagent, - u = l.osseous_reagent, - s = l.organs, - d = l.currently_cloning; - 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.Section, { - title: 'Liquid Storage', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - height: '25px', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - width: '25%', - children: ['Biomass:', ' '], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: 1, - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: c, - ranges: { - good: [(2 * f) / 3, f], - average: [f / 3, (2 * f) / 3], - bad: [0, f / 3], - }, - minValue: 0, - maxValue: f, - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - height: '25px', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - width: '25%', - children: ['Sanguine Reagent:', ' '], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: i + ' units', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: 1, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - value: 0, - minValue: 0, - maxValue: i, - step: 1, - unit: 'units', - onChange: (function () { - function C(g, v) { - return p('remove_reagent', { - reagent: 'sanguine_reagent', - amount: v, - }); - } - return C; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Remove All', - onClick: (function () { - function C() { - return p('purge_reagent', { - reagent: 'sanguine_reagent', - }); - } - return C; - })(), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - height: '25px', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - width: '25%', - children: ['Osseous Reagent:', ' '], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: u + ' units', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: 1, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - value: 0, - minValue: 0, - maxValue: u, - step: 1, - unit: 'units', - onChange: (function () { - function C(g, v) { - return p('remove_reagent', { - reagent: 'osseous_reagent', - amount: v, - }); - } - return C; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Remove All', - onClick: (function () { - function C() { - return p('purge_reagent', { - reagent: 'osseous_reagent', - }); - } - return C; - })(), - } - ), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Organ Storage', - children: [ - !d && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - !s && - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'Notice: No organs loaded.', - }), - !!s && - s.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { children: C.name } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { grow: 1 } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - content: 'Eject', - onClick: (function () { - function g() { - return p('eject_organ', { - organ_ref: C.ref, - }); - } - return g; - })(), - } - ), - } - ), - ], - }, - C - ); - }), - ], - }), - !!d && - (0, e.createComponentVNode)(2, t.Stack, { - height: '100%', - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - bold: !0, - grow: '1', - textAlign: 'center', - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'lock', - size: '5', - mb: 3, - }), - (0, e.createVNode)(1, 'br'), - 'Unable to access organ storage while cloning.', - ], - } - ), - }), - ], - }), - ], - }), - }); - } - return N; - })()); - }, - 14283: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ColourMatrixTester = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ColourMatrixTester = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.colour_data, - f = [ - [ - { name: 'RR', idx: 0 }, - { name: 'RG', idx: 1 }, - { name: 'RB', idx: 2 }, - { name: 'RA', idx: 3 }, - ], - [ - { name: 'GR', idx: 4 }, - { name: 'GG', idx: 5 }, - { name: 'GB', idx: 6 }, - { name: 'GA', idx: 7 }, - ], - [ - { name: 'BR', idx: 8 }, - { name: 'BG', idx: 9 }, - { name: 'BB', idx: 10 }, - { name: 'BA', idx: 11 }, - ], - [ - { name: 'AR', idx: 12 }, - { name: 'AG', idx: 13 }, - { name: 'AB', idx: 14 }, - { name: 'AA', idx: 15 }, - ], - ]; - return (0, e.createComponentVNode)(2, o.Window, { - width: 360, - height: 190, - 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, { - fill: !0, - title: 'Modify Matrix', - children: f.map(function (i) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - textAlign: 'center', - textColor: 'label', - children: i.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - mt: 1, - children: [ - u.name, - ':\xA0', - (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - width: 4, - value: c[u.idx], - step: 0.05, - minValue: -5, - maxValue: 5, - stepPixelSize: 5, - onChange: (function () { - function s(d, C) { - return p('setvalue', { - idx: u.idx + 1, - value: C, - }); - } - return s; - })(), - } - ), - ], - }, - u.name - ); - }), - }, - i - ); - }), - }), - }), - }), - }); - } - return N; - })()); - }, - 98577: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CommunicationsComputer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (s) { - switch (s) { - case 1: - return (0, e.createComponentVNode)(2, S); - case 2: - return (0, e.createComponentVNode)(2, l); - case 3: - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, c), - }), - }); - case 4: - return (0, e.createComponentVNode)(2, i); - default: - return 'ERROR. Unknown menu_state. Please contact NT Technical Support.'; - } - }, - N = (r.CommunicationsComputer = (function () { - function u(s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.menu_state; - 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.Stack, { - fill: !0, - vertical: !0, - children: [(0, e.createComponentVNode)(2, y), m(h)], - }), - }), - }); - } - return u; - })()), - y = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.authenticated, - V = v.noauthbutton, - b = v.esc_section, - B = v.esc_callable, - I = v.esc_recallable, - w = v.esc_status, - T = v.authhead, - A = v.is_ai, - x = v.lastCallLoc, - E = !1, - P; - return ( - h - ? h === 1 - ? (P = 'Command') - : h === 2 - ? (P = 'Captain') - : h === 3 - ? (P = 'CentComm Officer') - : h === 4 - ? ((P = 'CentComm Secure Connection'), (E = !0)) - : (P = 'ERROR: Report This Bug!') - : (P = 'Not Logged In'), - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Authentication', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: - (E && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Access', children: P } - )) || - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Actions', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: h ? 'sign-out-alt' : 'id-card', - selected: h, - disabled: V, - content: h - ? 'Log Out (' + P + ')' - : 'Log In', - onClick: (function () { - function D() { - return g('auth'); - } - return D; - })(), - } - ), - } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: - !!b && - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Escape Shuttle', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - !!w && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Status', children: w } - ), - !!B && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Options', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'rocket', - content: 'Call Shuttle', - disabled: !T, - onClick: (function () { - function D() { - return g('callshuttle'); - } - return D; - })(), - } - ), - } - ), - !!I && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Options', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'times', - content: 'Recall Shuttle', - disabled: !T || A, - onClick: (function () { - function D() { - return g('cancelshuttle'); - } - return D; - })(), - } - ), - } - ), - !!x && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Last Call/Recall From', - children: x, - } - ), - ], - } - ), - }), - }), - ], - 4 - ) - ); - }, - S = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.is_admin; - return h - ? (0, e.createComponentVNode)(2, k) - : (0, e.createComponentVNode)(2, p); - }, - k = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.is_admin, - V = v.gamma_armory_location, - b = v.admin_levels, - B = v.authenticated, - I = v.ert_allowed; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'CentComm Actions', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Change Alert', - children: (0, e.createComponentVNode)(2, f, { - levels: b, - required_access: h, - use_confirm: 1, - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Announcement', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'bullhorn', - content: 'Make Central Announcement', - disabled: !h, - onClick: (function () { - function w() { - return g('send_to_cc_announcement_page'); - } - return w; - })(), - }), - B === 4 && - (0, e.createComponentVNode)(2, t.Button, { - icon: 'plus', - content: 'Make Other Announcement', - disabled: !h, - onClick: (function () { - function w() { - return g('make_other_announcement'); - } - return w; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Response Team', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'ambulance', - content: 'Dispatch ERT', - disabled: !h, - onClick: (function () { - function w() { - return g('dispatch_ert'); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - checked: I, - content: I - ? 'ERT calling enabled' - : 'ERT calling disabled', - tooltip: I - ? 'Command can request an ERT' - : 'ERTs cannot be requested', - disabled: !h, - onClick: (function () { - function w() { - return g('toggle_ert_allowed'); - } - return w; - })(), - selected: null, - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Nuclear Device', - children: (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - icon: 'bomb', - content: 'Get Authentication Codes', - disabled: !h, - onClick: (function () { - function w() { - return g('send_nuke_codes'); - } - return w; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Gamma Armory', - children: (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - icon: 'biohazard', - content: V - ? 'Send Gamma Armory' - : 'Recall Gamma Armory', - disabled: !h, - onClick: (function () { - function w() { - return g('move_gamma_armory'); - } - return w; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Other', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'coins', - content: 'View Economy', - disabled: !h, - onClick: (function () { - function w() { - return g('view_econ'); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fax', - content: 'Fax Manager', - disabled: !h, - onClick: (function () { - function w() { - return g('view_fax'); - } - return w; - })(), - }), - ], - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'View Command accessible controls', - children: (0, e.createComponentVNode)(2, p), - }), - ], - }); - }, - p = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.msg_cooldown, - V = v.emagged, - b = v.cc_cooldown, - B = v.security_level_color, - I = v.str_security_level, - w = v.levels, - T = v.authcapt, - A = v.authhead, - x = v.messages, - E = 'Make Priority Announcement'; - h > 0 && (E += ' (' + h + 's)'); - var P = V ? 'Message [UNKNOWN]' : 'Message CentComm', - D = 'Request Authentication Codes'; - return ( - b > 0 && ((P += ' (' + b + 's)'), (D += ' (' + b + 's)')), - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Captain-Only Actions', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Current Alert', - color: B, - children: I, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Change Alert', - children: (0, e.createComponentVNode)(2, f, { - levels: w, - required_access: T, - }), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Announcement', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'bullhorn', - content: E, - disabled: !T || h > 0, - onClick: (function () { - function M() { - return g('announce'); - } - return M; - })(), - } - ), - } - ), - (!!V && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Transmit', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'broadcast-tower', - color: 'red', - content: P, - disabled: !T || b > 0, - onClick: (function () { - function M() { - return g('MessageSyndicate'); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync-alt', - content: 'Reset Relays', - disabled: !T, - onClick: (function () { - function M() { - return g('RestoreBackup'); - } - return M; - })(), - }), - ], - } - )) || - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Transmit', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'broadcast-tower', - content: P, - disabled: !T || b > 0, - onClick: (function () { - function M() { - return g('MessageCentcomm'); - } - return M; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Nuclear Device', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'bomb', - content: D, - disabled: !T || b > 0, - onClick: (function () { - function M() { - return g('nukerequest'); - } - return M; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - 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: !A, - onClick: (function () { - function M() { - return g('status'); - } - return M; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Incoming Messages', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'folder-open', - content: 'View (' + x.length + ')', - disabled: !A, - onClick: (function () { - function M() { - return g('messagelist'); - } - return M; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Misc', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'sync-alt', - content: - 'Restart Nano-Mob Hunter GO! Server', - disabled: !A, - onClick: (function () { - function M() { - return g('RestartNanoMob'); - } - return M; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - ], - 4 - ) - ); - }, - l = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.stat_display, - V = v.authhead, - b = v.current_message_title, - B = h.presets.map(function (w) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: w.label, - selected: w.name === h.type, - disabled: !V, - onClick: (function () { - function T() { - return g('setstat', { statdisp: w.name }); - } - return T; - })(), - }, - w.name - ); - }), - I = h.alerts.map(function (w) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: w.label, - selected: w.alert === h.icon, - disabled: !V, - onClick: (function () { - function T() { - return g('setstat', { statdisp: 3, alert: w.alert }); - } - return T; - })(), - }, - w.alert - ); - }); - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Modify Status Screens', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-circle-left', - content: 'Back To Main Menu', - onClick: (function () { - function w() { - return g('main'); - } - return w; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Presets', - children: B, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Alerts', - children: I, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Message Line 1', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'pencil-alt', - content: h.line_1, - disabled: !V, - onClick: (function () { - function w() { - return g('setmsg1'); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Message Line 2', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'pencil-alt', - content: h.line_2, - disabled: !V, - onClick: (function () { - function w() { - return g('setmsg2'); - } - return w; - })(), - }), - }), - ], - }), - }), - }); - }, - c = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.authhead, - V = v.current_message_title, - b = v.current_message, - B = v.messages, - I = v.security_level, - w; - if (V) - w = (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: V, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: 'Return To Message List', - disabled: !h, - onClick: (function () { - function A() { - return g('messagelist'); - } - return A; - })(), - }), - children: (0, e.createComponentVNode)(2, t.Box, { - children: b, - }), - }), - }); - else { - var T = B.map(function (A) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: A.title, - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eye', - content: 'View', - disabled: !h || V === A.title, - onClick: (function () { - function x() { - return g('messagelist', { msgid: A.id }); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - icon: 'times', - content: 'Delete', - disabled: !h, - onClick: (function () { - function x() { - return g('delmessage', { msgid: A.id }); - } - return x; - })(), - }), - ], - }, - A.id - ); - }); - w = (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 A() { - return g('main'); - } - return A; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: T, - }), - }); - } - return (0, e.createComponentVNode)(2, t.Box, { children: w }); - }, - f = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = s.levels, - V = s.required_access, - b = s.use_confirm, - B = v.security_level; - return b - ? h.map(function (I) { - return (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - icon: I.icon, - content: I.name, - disabled: !V || I.id === B, - tooltip: I.tooltip, - onClick: (function () { - function w() { - return g('newalertlevel', { level: I.id }); - } - return w; - })(), - }, - I.name - ); - }) - : h.map(function (I) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: I.icon, - content: I.name, - disabled: !V || I.id === B, - tooltip: I.tooltip, - onClick: (function () { - function w() { - return g('newalertlevel', { level: I.id }); - } - return w; - })(), - }, - I.name - ); - }); - }, - i = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.act, - v = C.data, - h = v.is_admin, - V = v.possible_cc_sounds; - if (!h) return g('main'); - var b = (0, a.useLocalState)(d, 'subtitle', ''), - B = b[0], - I = b[1], - w = (0, a.useLocalState)(d, 'text', ''), - T = w[0], - A = w[1], - x = (0, a.useLocalState)(d, 'classified', 0), - E = x[0], - P = x[1], - D = (0, a.useLocalState)(d, 'beepsound', 'Beep'), - M = D[0], - O = D[1]; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Central Command Report', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-circle-left', - content: 'Back To Main Menu', - onClick: (function () { - function j() { - return g('main'); - } - return j; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, t.Input, { - placeholder: 'Enter Subtitle here.', - fluid: !0, - value: B, - onChange: (function () { - function j(F, U) { - return I(U); - } - return j; - })(), - mb: '5px', - }), - (0, e.createComponentVNode)(2, t.Input, { - placeholder: - 'Enter Announcement here,\nMultiline input is accepted.', - rows: 10, - fluid: !0, - multiline: 1, - value: T, - onChange: (function () { - function j(F, U) { - return A(U); - } - return j; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - content: 'Send Announcement', - fluid: !0, - icon: 'paper-plane', - center: !0, - mt: '5px', - textAlign: 'center', - onClick: (function () { - function j() { - return g('make_cc_announcement', { - subtitle: B, - text: T, - classified: E, - beepsound: M, - }); - } - return j; - })(), - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Dropdown, { - width: '260px', - height: '20px', - options: V, - selected: M, - onSelected: (function () { - function j(F) { - return O(F); - } - return j; - })(), - disabled: E, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'volume-up', - mx: '5px', - disabled: E, - tooltip: 'Test sound', - onClick: (function () { - function j() { - return g('test_sound', { sound: M }); - } - return j; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: E, - content: 'Classified', - fluid: !0, - tooltip: E - ? 'Sent to station communications consoles' - : 'Publically announced', - onClick: (function () { - function j() { - return P(!E); - } - return j; - })(), - } - ), - }), - ], - }), - ], - }), - }); - }; - }, - 70611: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CompostBin = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.CompostBin = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.biomass, - f = l.compost, - i = l.biomass_capacity, - u = l.compost_capacity, - s = (0, a.useSharedState)(S, 'vendAmount', 1), - d = s[0], - C = s[1]; - return (0, e.createComponentVNode)(2, o.Window, { - width: 300, - height: 175, - 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, { - label: 'Resources', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Biomass', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - ml: 1, - width: 17, - value: c, - minValue: 0, - maxValue: i, - ranges: { - good: [i * 0.5, 1 / 0], - average: [i * 0.25, i * 0.5], - bad: [-1 / 0, i * 0.25], - }, - children: [c, ' / ', i, ' Units'], - } - ), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Compost', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - ml: 0.5, - mt: 1, - width: 17, - value: f, - minValue: 0, - maxValue: u, - ranges: { - good: [u * 0.5, 1 / 0], - average: [u * 0.25, u * 0.5], - bad: [-1 / 0, u * 0.25], - }, - children: [f, ' / ', u, ' Units'], - } - ), - } - ), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Controls', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - mr: '5px', - color: 'silver', - children: 'Soil clumps to make:', - }), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - value: d, - width: '32px', - minValue: 1, - maxValue: 10, - stepPixelSize: 7, - onChange: (function () { - function g(v, h) { - return C(h); - } - return g; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - align: 'center', - content: 'Make Soil', - disabled: f < 25 * d, - icon: 'arrow-circle-down', - onClick: (function () { - function g() { - return p('create', { amount: d }); - } - return g; - })(), - } - ), - } - ), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 73744: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Contractor = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(73712), - N = n(84947); - function y(g, v) { - (g.prototype = Object.create(v.prototype)), - (g.prototype.constructor = g), - S(g, v); - } - function S(g, v) { - return ( - (S = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function h(V, b) { - return (V.__proto__ = b), V; - } - return h; - })()), - S(g, v) - ); - } - var k = { - 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', - ], - l = (r.Contractor = (function () { - function g(v, h) { - var V = (0, t.useBackend)(h), - b = V.act, - B = V.data, - I; - B.unauthorized - ? (I = (0, e.createComponentVNode)(2, o.Flex.Item, { - grow: '1', - backgroundColor: 'rgba(0, 0, 0, 0.8)', - children: (0, e.createComponentVNode)(2, d, { - height: '100%', - allMessages: ['ERROR: UNAUTHORIZED USER'], - finishedTimeout: 100, - onFinished: (function () { - function x() {} - return x; - })(), - }), - })) - : B.load_animation_completed - ? (I = (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: - B.page === 1 - ? (0, e.createComponentVNode)(2, i, { - height: '100%', - }) - : (0, e.createComponentVNode)(2, s, { - height: '100%', - }), - }), - ], - 4 - )) - : (I = (0, e.createComponentVNode)(2, o.Flex.Item, { - grow: '1', - backgroundColor: 'rgba(0, 0, 0, 0.8)', - children: (0, e.createComponentVNode)(2, d, { - height: '100%', - allMessages: p, - finishedTimeout: 3e3, - onFinished: (function () { - function x() { - return b('complete_load_animation'); - } - return x; - })(), - }), - })); - var w = (0, t.useLocalState)(h, 'viewingPhoto', ''), - T = w[0], - A = w[1]; - return (0, e.createComponentVNode)(2, N.Window, { - theme: 'syndicate', - width: 500, - height: 600, - children: [ - T && (0, e.createComponentVNode)(2, C), - (0, e.createComponentVNode)(2, N.Window.Content, { - className: 'Contractor', - children: (0, e.createComponentVNode)(2, o.Flex, { - direction: 'column', - height: '100%', - children: I, - }), - }), - ], - }); - } - return g; - })()), - c = function (v, h) { - var V = (0, t.useBackend)(h), - b = V.act, - B = V.data, - I = B.tc_available, - w = B.tc_paid_out, - T = B.completed_contracts, - A = B.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'], - }), - }, - v, - { - children: (0, e.createComponentVNode)(2, o.Flex, { - children: [ - (0, e.createComponentVNode)(2, o.Box, { - flexBasis: '50%', - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'TC Available', - verticalAlign: 'middle', - children: (0, e.createComponentVNode)( - 2, - o.Flex, - { - align: 'center', - children: [ - (0, e.createComponentVNode)( - 2, - o.Flex.Item, - { - grow: '1', - children: [I, ' TC'], - } - ), - (0, e.createComponentVNode)( - 2, - o.Button, - { - disabled: I <= 0, - content: 'Claim', - mx: '0.75rem', - mb: '0', - flexBasis: 'content', - onClick: (function () { - function x() { - return b('claim'); - } - return x; - })(), - } - ), - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'TC Earned', children: [w, ' 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', - inline: !0, - children: T, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Contractor Status', - verticalAlign: 'middle', - children: 'ACTIVE', - } - ), - ], - } - ), - }), - ], - }), - } - ) - ) - ); - }, - f = function (v, h) { - var V = (0, t.useBackend)(h), - b = V.act, - B = V.data, - I = B.page; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Tabs, - Object.assign({}, v, { - children: [ - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - selected: I === 1, - onClick: (function () { - function w() { - return b('page', { page: 1 }); - } - return w; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'suitcase', - }), - 'Contracts', - ], - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - selected: I === 2, - onClick: (function () { - function w() { - return b('page', { page: 2 }); - } - return w; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'shopping-cart', - }), - 'Hub', - ], - }), - ], - }) - ) - ); - }, - i = function (v, h) { - var V = (0, t.useBackend)(h), - b = V.act, - B = V.data, - I = B.contracts, - w = B.contract_active, - T = B.can_extract, - A = - !!w && - I.filter(function (M) { - return M.status === 1; - })[0], - x = A && A.time_left > 0, - E = (0, t.useLocalState)(h, 'viewingPhoto', ''), - P = E[0], - D = 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: !T || x, - icon: 'parachute-box', - content: [ - 'Call Extraction', - x && - (0, e.createComponentVNode)(2, m.Countdown, { - timeLeft: A.time_left, - format: (function () { - function M(O, j) { - return ' (' + j.substr(3) + ')'; - } - return M; - })(), - }), - ], - onClick: (function () { - function M() { - return b('extract'); - } - return M; - })(), - }), - }, - v, - { - children: I.slice() - .sort(function (M, O) { - return M.status === 1 - ? -1 - : O.status === 1 - ? 1 - : M.status - O.status; - }) - .map(function (M) { - var O; - 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: M.status === 1 && 'good', - children: M.target_name, - }), - (0, e.createComponentVNode)(2, o.Flex.Item, { - basis: 'content', - children: - M.has_photo && - (0, e.createComponentVNode)(2, o.Button, { - icon: 'camera', - mb: '-0.5rem', - ml: '0.5rem', - onClick: (function () { - function j() { - return D( - 'target_photo_' + M.uid + '.png' - ); - } - return j; - })(), - }), - }), - ], - }), - className: 'Contractor__Contract', - buttons: (0, e.createComponentVNode)(2, o.Box, { - width: '100%', - children: [ - !!k[M.status] && - (0, e.createComponentVNode)(2, o.Box, { - color: k[M.status][1], - inline: !0, - mt: M.status !== 1 && '0.125rem', - mr: '0.25rem', - lineHeight: '20px', - children: k[M.status][0], - }), - M.status === 1 && - (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - icon: 'ban', - color: 'bad', - content: 'Abort', - ml: '0.5rem', - onClick: (function () { - function j() { - return b('abort'); - } - return j; - })(), - } - ), - ], - }), - children: (0, e.createComponentVNode)(2, o.Flex, { - children: [ - (0, e.createComponentVNode)(2, o.Flex.Item, { - grow: '2', - mr: '0.5rem', - children: [ - M.fluff_message, - !!M.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 ', - M.completed_time, - ], - }), - !!M.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.', - ], - }), - !!M.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: ', - M.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', - u(M), - ], - }), - (O = M.difficulties) == null - ? void 0 - : O.map(function (j, F) { - return (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - disabled: !!w, - content: - j.name + - ' (' + - j.reward + - ' TC)', - onClick: (function () { - function U() { - return b('activate', { - uid: M.uid, - difficulty: F + 1, - }); - } - return U; - })(), - }, - F - ); - }), - !!M.objective && - (0, e.createComponentVNode)(2, o.Box, { - color: 'white', - bold: !0, - children: [ - M.objective.extraction_name, - (0, e.createVNode)(1, 'br'), - '(', - (M.objective.rewards.tc || 0) + - ' TC', - ',\xA0', - (M.objective.rewards.credits || 0) + - ' Credits', - ')', - ], - }), - ], - }), - ], - }), - }, - M.uid - ); - }), - } - ) - ) - ); - }, - u = function (v) { - if (!(!v.objective || v.status > 1)) { - var h = v.objective.locs.user_area_id, - V = v.objective.locs.user_coords, - b = v.objective.locs.target_area_id, - B = v.objective.locs.target_coords, - I = h === b; - return (0, e.createComponentVNode)(2, o.Flex.Item, { - children: (0, e.createComponentVNode)(2, o.Icon, { - name: I ? 'dot-circle-o' : 'arrow-alt-circle-right-o', - color: I ? 'green' : 'yellow', - rotation: I - ? null - : -(0, a.rad2deg)(Math.atan2(B[1] - V[1], B[0] - V[0])), - lineHeight: I ? null : '0.85', - size: '1.5', - }), - }); - } - }, - s = function (v, h) { - var V = (0, t.useBackend)(h), - b = V.act, - B = V.data, - I = B.rep, - w = B.buyables; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Section, - Object.assign( - { title: 'Available Purchases', overflow: 'auto' }, - v, - { - children: w.map(function (T) { - return (0, e.createComponentVNode)( - 2, - o.Section, - { - title: T.name, - children: [ - T.description, - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, o.Button.Confirm, { - disabled: I < T.cost || T.stock === 0, - icon: 'shopping-cart', - content: 'Buy (' + T.cost + ' Rep)', - mt: '0.5rem', - onClick: (function () { - function A() { - return b('purchase', { uid: T.uid }); - } - return A; - })(), - }), - T.stock > -1 && - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: T.stock === 0 ? 'bad' : 'good', - ml: '0.5rem', - children: [T.stock, ' in stock'], - }), - ], - }, - T.uid - ); - }), - } - ) - ) - ); - }, - d = (function (g) { - y(v, g); - function v(V) { - var b; - return ( - (b = g.call(this, V) || this), - (b.timer = null), - (b.state = { currentIndex: 0, currentDisplay: [] }), - b - ); - } - var h = v.prototype; - return ( - (h.tick = (function () { - function V() { - var b = this.props, - B = this.state; - if (B.currentIndex <= b.allMessages.length) { - this.setState(function (w) { - return { currentIndex: w.currentIndex + 1 }; - }); - var I = B.currentDisplay; - I.push(b.allMessages[B.currentIndex]); - } else - clearTimeout(this.timer), - setTimeout(b.onFinished, b.finishedTimeout); - } - return V; - })()), - (h.componentDidMount = (function () { - function V() { - var b = this, - B = this.props.linesPerSecond, - I = B === void 0 ? 2.5 : B; - this.timer = setInterval(function () { - return b.tick(); - }, 1e3 / I); - } - return V; - })()), - (h.componentWillUnmount = (function () { - function V() { - clearTimeout(this.timer); - } - return V; - })()), - (h.render = (function () { - function V() { - return (0, e.createComponentVNode)(2, o.Box, { - m: 1, - children: this.state.currentDisplay.map(function (b) { - return (0, e.createFragment)( - [b, (0, e.createVNode)(1, 'br')], - 0, - b - ); - }), - }); - } - return V; - })()), - v - ); - })(e.Component), - C = function (v, h) { - var V = (0, t.useLocalState)(h, 'viewingPhoto', ''), - b = V[0], - B = V[1]; - return (0, e.createComponentVNode)(2, o.Modal, { - className: 'Contractor__photoZoom', - children: [ - (0, e.createComponentVNode)(2, o.Box, { as: 'img', src: b }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'times', - content: 'Close', - color: 'grey', - mt: '1rem', - onClick: (function () { - function I() { - return B(''); - } - return I; - })(), - }), - ], - }); - }; - }, - 57392: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ConveyorSwitch = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ConveyorSwitch = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.slowFactor, - f = l.oneWay, - i = l.position; - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 135, - 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: - i > 0 ? 'forward' : i < 0 ? 'reverse' : 'neutral', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Allow reverse', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: !f, - onClick: (function () { - function u() { - return p('toggleOneWay'); - } - return u; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Slowdown factor', - children: (0, e.createComponentVNode)(2, t.Flex, { - children: [ - (0, e.createComponentVNode)(2, t.Flex.Item, { - mx: '1px', - children: [ - ' ', - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-left', - onClick: (function () { - function u() { - return p('slowFactor', { - value: c - 5, - }); - } - return u; - })(), - }), - ' ', - ], - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - mx: '1px', - children: [ - ' ', - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-left', - onClick: (function () { - function u() { - return p('slowFactor', { - value: c - 1, - }); - } - return u; - })(), - }), - ' ', - ], - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Slider, - { - width: '100px', - mx: '1px', - value: c, - fillValue: c, - minValue: 1, - maxValue: 50, - step: 1, - format: (function () { - function u(s) { - return s + 'x'; - } - return u; - })(), - onChange: (function () { - function u(s, d) { - return p('slowFactor', { value: d }); - } - return u; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - mx: '1px', - children: [ - ' ', - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-right', - onClick: (function () { - function u() { - return p('slowFactor', { - value: c + 1, - }); - } - return u; - })(), - }), - ' ', - ], - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - mx: '1px', - children: [ - ' ', - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-right', - onClick: (function () { - function u() { - return p('slowFactor', { - value: c + 5, - }); - } - return u; - })(), - }), - ' ', - ], - }), - ], - }), - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 91413: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CrewMonitor = void 0); - var e = n(28823), - a = n(72026), - t = n(37843), - o = n(91819), - m = n(2971), - N = n(99753), - y = n(30381), - S = n(84947), - k = function (u, s) { - return u.dead - ? 'Deceased' - : parseInt(u.health, 10) <= s - ? 'Critical' - : parseInt(u.stat, 10) === 1 - ? 'Unconscious' - : 'Living'; - }, - p = function (u, s) { - return u.dead - ? 'red' - : parseInt(u.health, 10) <= s - ? 'orange' - : parseInt(u.stat, 10) === 1 - ? 'blue' - : 'green'; - }, - l = (r.CrewMonitor = (function () { - function i(u, s) { - var d = (0, o.useBackend)(s), - C = d.act, - g = d.data, - v = (0, o.useLocalState)(s, 'tabIndex', 0), - h = v[0], - V = v[1], - b = (function () { - function B(I) { - switch (I) { - case 0: - return (0, e.createComponentVNode)(2, c); - case 1: - return (0, e.createComponentVNode)(2, f); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return B; - })(); - return (0, e.createComponentVNode)(2, S.Window, { - width: 800, - height: 600, - children: (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - fillPositionedParent: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Tabs, { - children: [ - (0, e.createComponentVNode)( - 2, - m.Tabs.Tab, - { - icon: 'table', - selected: h === 0, - onClick: (function () { - function B() { - return V(0); - } - return B; - })(), - children: 'Data View', - }, - 'DataView' - ), - (0, e.createComponentVNode)( - 2, - m.Tabs.Tab, - { - icon: 'map-marked-alt', - selected: h === 1, - onClick: (function () { - function B() { - return V(1); - } - return B; - })(), - children: 'Map View', - }, - 'MapView' - ), - ], - }), - }), - b(h), - ], - }), - }), - }); - } - return i; - })()), - c = function (u, s) { - var d = (0, o.useBackend)(s), - C = d.act, - g = d.data, - v = (0, a.sortBy)(function (A) { - return A.name; - })(g.crewmembers || []), - h = g.possible_levels, - V = g.viewing_current_z_level, - b = g.is_advanced, - B = (0, o.useLocalState)(s, 'search', ''), - I = B[0], - w = B[1], - T = (0, t.createSearch)(I, function (A) { - return A.name + '|' + A.assignment + '|' + A.area; - }); - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - scrollable: !0, - backgroundColor: 'transparent', - children: [ - (0, e.createComponentVNode)(2, m.Stack, { - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - width: '100%', - ml: '5px', - children: (0, e.createComponentVNode)(2, m.Input, { - placeholder: - 'Search by name, assignment or location..', - width: '100%', - onInput: (function () { - function A(x, E) { - return w(E); - } - return A; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: b - ? (0, e.createComponentVNode)(2, m.Dropdown, { - mr: '5px', - width: '50px', - options: h, - selected: V, - onSelected: (function () { - function A(x) { - return C('switch_level', { new_level: x }); - } - return A; - })(), - }) - : null, - }), - ], - }), - (0, e.createComponentVNode)(2, m.Table, { - m: '0.5rem', - children: [ - (0, e.createComponentVNode)(2, m.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: 'Name', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: 'Status', - }), - (0, e.createComponentVNode)(2, m.Table.Cell, { - children: 'Location', - }), - ], - }), - v.filter(T).map(function (A) { - return (0, e.createComponentVNode)( - 2, - m.Table.Row, - { - bold: !!A.is_command, - children: [ - (0, e.createComponentVNode)(2, N.TableCell, { - children: [A.name, ' (', A.assignment, ')'], - }), - (0, e.createComponentVNode)(2, N.TableCell, { - children: [ - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - color: p(A, g.critThreshold), - children: k(A, g.critThreshold), - }), - A.sensor_type >= 2 || g.ignoreSensors - ? (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - ml: 1, - children: [ - '(', - (0, e.createComponentVNode)( - 2, - m.Box, - { - inline: !0, - color: y.COLORS.damageType.oxy, - children: A.oxy, - } - ), - '|', - (0, e.createComponentVNode)( - 2, - m.Box, - { - inline: !0, - color: y.COLORS.damageType.toxin, - children: A.tox, - } - ), - '|', - (0, e.createComponentVNode)( - 2, - m.Box, - { - inline: !0, - color: y.COLORS.damageType.burn, - children: A.fire, - } - ), - '|', - (0, e.createComponentVNode)( - 2, - m.Box, - { - inline: !0, - color: y.COLORS.damageType.brute, - children: A.brute, - } - ), - ')', - ], - }) - : null, - ], - }), - (0, e.createComponentVNode)(2, N.TableCell, { - children: - A.sensor_type === 3 || g.ignoreSensors - ? g.isAI || g.isObserver - ? (0, e.createComponentVNode)( - 2, - m.Button, - { - fluid: !0, - icon: 'location-arrow', - content: - A.area + - ' (' + - A.x + - ', ' + - A.y + - ')', - onClick: (function () { - function x() { - return C('track', { - track: A.ref, - }); - } - return x; - })(), - } - ) - : A.area + ' (' + A.x + ', ' + A.y + ')' - : (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - color: 'grey', - children: 'Not Available', - }), - }), - ], - }, - A.name - ); - }), - ], - }), - ], - }); - }, - f = function (u, s) { - var d = (0, o.useBackend)(s), - C = d.act, - g = d.data, - v = (0, o.useLocalState)(s, 'zoom', 1), - h = v[0], - V = v[1]; - return (0, e.createComponentVNode)(2, m.Box, { - height: '526px', - mb: '0.5rem', - overflow: 'hidden', - children: (0, e.createComponentVNode)(2, m.NanoMap, { - onZoom: (function () { - function b(B) { - return V(B); - } - return b; - })(), - children: g.crewmembers - .filter(function (b) { - return b.sensor_type === 3 || g.ignoreSensors; - }) - .map(function (b) { - return (0, e.createComponentVNode)( - 2, - m.NanoMap.Marker, - { - x: b.x, - y: b.y, - zoom: h, - icon: 'circle', - tooltip: b.name + ' (' + b.assignment + ')', - color: p(b, g.critThreshold), - onClick: (function () { - function B() { - return g.isObserver - ? C('track', { track: b.ref }) - : null; - } - return B; - })(), - }, - b.ref - ); - }), - }), - }); - }; - }, - 55104: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Cryo = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = [ - { label: 'Resp.', type: 'oxyLoss' }, - { label: 'Toxin', type: 'toxLoss' }, - { label: 'Brute', type: 'bruteLoss' }, - { label: 'Burn', type: 'fireLoss' }, - ], - N = [ - ['good', 'Conscious'], - ['average', 'Unconscious'], - ['bad', 'DEAD'], - ], - y = (r.Cryo = (function () { - function p(l, c) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 520, - 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, S), - }), - }), - }); - } - return p; - })()), - S = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.isOperating, - d = u.hasOccupant, - C = u.occupant, - g = C === void 0 ? [] : C, - v = u.cellTemperature, - h = u.cellTemperatureStatus, - V = u.isBeakerLoaded, - b = u.cooldownProgress, - B = u.auto_eject_healthy, - I = u.auto_eject_dead; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Occupant', - fill: !0, - scrollable: !0, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'user-slash', - onClick: (function () { - function w() { - return i('ejectOccupant'); - } - return w; - })(), - disabled: !d, - children: 'Eject', - }), - children: d - ? (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Occupant', - children: g.name || 'Unknown', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Health', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - min: g.health, - max: g.maxHealth, - value: g.health / g.maxHealth, - color: g.health > 0 ? 'good' : 'average', - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: Math.round(g.health) } - ), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Status', - color: N[g.stat][0], - children: N[g.stat][1], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Temperature', - children: [ - (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: Math.round(g.bodyTemperature) } - ), - ' K', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - m.map(function (w) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: w.label, - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: g[w.type] / 100, - ranges: { bad: [0.01, 1 / 0] }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: Math.round(g[w.type]) } - ), - } - ), - }, - w.id - ); - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - align: '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 detected.', - ], - } - ), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Cell', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - onClick: (function () { - function w() { - return i('ejectBeaker'); - } - return w; - })(), - disabled: !V, - children: 'Eject Beaker', - }), - 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', - onClick: (function () { - function w() { - return i(s ? 'switchOff' : 'switchOn'); - } - return w; - })(), - selected: s, - children: s ? 'On' : 'Off', - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Temperature', - color: h, - children: [ - (0, e.createComponentVNode)(2, t.AnimatedNumber, { - value: v, - }), - ' K', - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Beaker', - children: (0, e.createComponentVNode)(2, k), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Dosage interval', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - ranges: { - average: [-1 / 0, 99], - good: [99, 1 / 0], - }, - color: !V && 'average', - value: b, - minValue: 0, - maxValue: 100, - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Divider), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Auto-eject healthy occupants', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: B ? 'toggle-on' : 'toggle-off', - selected: B, - onClick: (function () { - function w() { - return i( - B - ? 'auto_eject_healthy_off' - : 'auto_eject_healthy_on' - ); - } - return w; - })(), - children: B ? 'On' : 'Off', - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Auto-eject dead occupants', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: I ? 'toggle-on' : 'toggle-off', - selected: I, - onClick: (function () { - function w() { - return i( - I - ? 'auto_eject_dead_off' - : 'auto_eject_dead_on' - ); - } - return w; - })(), - children: I ? 'On' : 'Off', - }), - }), - ], - }), - }), - }), - ], - 4 - ); - }, - k = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.isBeakerLoaded, - d = u.beakerLabel, - C = u.beakerVolume; - return s - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: !d && 'average', - children: [d || 'No label', ':'], - }), - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: !C && 'bad', - ml: 1, - children: C - ? (0, e.createComponentVNode)(2, t.AnimatedNumber, { - value: C, - format: (function () { - function g(v) { - return Math.round(v) + ' units remaining'; - } - return g; - })(), - }) - : 'Beaker is empty', - }), - ], - 4 - ) - : (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: 'bad', - children: 'No beaker loaded', - }); - }; - }, - 1763: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CryopodConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(37843), - N = (r.CryopodConsole = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.account_name, - u = f.allow_items; - return (0, e.createComponentVNode)(2, o.Window, { - title: 'Cryopod Console', - width: 400, - height: 480, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Hello, ' + (i || '[REDACTED]') + '!', - children: - 'This automated cryogenic freezing unit will safely store your corporeal form until your next assignment.', - }), - (0, e.createComponentVNode)(2, y), - !!u && (0, e.createComponentVNode)(2, S), - ], - }), - }); - } - return k; - })()), - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.frozen_crew; - return (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Stored Crew', - children: i.length - ? (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: i.map(function (u, s) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: u.name, children: u.rank }, - s - ); - }), - }), - }) - : (0, e.createComponentVNode)(2, t.NoticeBox, { - children: 'No stored crew!', - }), - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.frozen_items, - s = function (C) { - var g = C.toString(); - return ( - g.startsWith('the ') && (g = g.slice(4, g.length)), - (0, m.toTitleCase)(g) - ); - }; - return (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Stored Items', - children: u.length - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: u.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: s(d.name), - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'arrow-down', - content: 'Drop', - mr: 1, - onClick: (function () { - function C() { - return f('one_item', { - item: d.uid, - }); - } - return C; - })(), - } - ), - }, - d - ); - }), - } - ), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Drop All Items', - color: 'red', - onClick: (function () { - function d() { - return f('all_items'); - } - return d; - })(), - }), - ], - 4 - ) - : (0, e.createComponentVNode)(2, t.NoticeBox, { - children: 'No stored items!', - }), - }); - }; - }, - 69055: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DNAModifier = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = [ - ['good', 'Alive'], - ['average', 'Critical'], - ['bad', 'DEAD'], - ], - y = [ - ['ui', 'Modify U.I.', 'dna'], - ['se', 'Modify S.E.', 'dna'], - ['buffer', 'Transfer Buffers', 'syringe'], - ['rejuvenators', 'Rejuvenators', 'flask'], - ], - S = [5, 10, 20, 30, 50], - k = (r.DNAModifier = (function () { - function h(V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.irradiating, - A = w.dnaBlockSize, - x = w.occupant; - (b.dnaBlockSize = A), - (b.isDNAInvalid = - !x.isViableSubject || - !x.uniqueIdentity || - !x.structuralEnzymes); - var E; - return ( - T && (E = (0, e.createComponentVNode)(2, g, { duration: T })), - (0, e.createComponentVNode)(2, o.Window, { - width: 660, - height: 775, - children: [ - (0, e.createComponentVNode)(2, m.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, l), - }), - ], - }), - }), - ], - }) - ); - } - return h; - })()), - p = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.locked, - A = w.hasOccupant, - x = w.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: T, - icon: T ? 'toggle-on' : 'toggle-off', - content: T ? 'Engaged' : 'Disengaged', - onClick: (function () { - function E() { - return I('toggleLock'); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !A || T, - icon: 'user-slash', - content: 'Eject', - onClick: (function () { - function E() { - return I('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: x.name } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Health', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - min: x.minHealth, - max: x.maxHealth, - value: x.health / x.maxHealth, - ranges: { - good: [0.5, 1 / 0], - average: [0, 0.5], - bad: [-1 / 0, 0], - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Status', - color: N[x.stat][0], - children: N[x.stat][1], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - ], - } - ), - }), - b.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: x.radiationLevel / 100, - color: 'average', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Unique Enzymes', - children: w.occupant.uniqueEnzymes - ? w.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.', - }), - }); - }, - l = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.selectedMenuKey, - A = w.hasOccupant, - x = w.occupant; - if (A) { - if (b.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 ( - T === 'ui' - ? (E = (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, c), - (0, e.createComponentVNode)(2, i), - ], - 4 - )) - : T === 'se' - ? (E = (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, f), - (0, e.createComponentVNode)(2, i), - ], - 4 - )) - : T === 'buffer' - ? (E = (0, e.createComponentVNode)(2, u)) - : T === 'rejuvenators' && - (E = (0, e.createComponentVNode)(2, C)), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Tabs, { - children: y.map(function (P, D) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: P[2], - selected: T === P[0], - onClick: (function () { - function M() { - return I('selectMenuKey', { key: P[0] }); - } - return M; - })(), - children: P[1], - }, - D - ); - }), - }), - E, - ], - }) - ); - }, - c = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.selectedUIBlock, - A = w.selectedUISubBlock, - x = w.selectedUITarget, - E = w.occupant; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Modify Unique Identifier', - children: [ - (0, e.createComponentVNode)(2, v, { - dnaString: E.uniqueIdentity, - selectedBlock: T, - selectedSubblock: A, - blockSize: b.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: x, - format: (function () { - function P(D) { - return D.toString(16).toUpperCase(); - } - return P; - })(), - ml: '0', - onChange: (function () { - function P(D, M) { - return I('changeUITarget', { value: M }); - } - return P; - })(), - }), - } - ), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'radiation', - content: 'Irradiate Block', - mt: '0.5rem', - onClick: (function () { - function P() { - return I('pulseUIRadiation'); - } - return P; - })(), - }), - ], - }); - }, - f = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.selectedSEBlock, - A = w.selectedSESubBlock, - x = w.occupant; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Modify Structural Enzymes', - children: [ - (0, e.createComponentVNode)(2, v, { - dnaString: x.structuralEnzymes, - selectedBlock: T, - selectedSubblock: A, - blockSize: b.dnaBlockSize, - action: 'selectSEBlock', - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'radiation', - content: 'Irradiate Block', - onClick: (function () { - function E() { - return I('pulseSERadiation'); - } - return E; - })(), - }), - ], - }); - }, - i = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.radiationIntensity, - A = w.radiationDuration; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Radiation Emitter', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Intensity', - children: (0, e.createComponentVNode)(2, t.Knob, { - minValue: 1, - maxValue: 10, - stepPixelSize: 20, - value: T, - popUpPosition: 'right', - ml: '0', - onChange: (function () { - function x(E, P) { - return I('radiationIntensity', { value: P }); - } - return x; - })(), - }), - }), - (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 x(E, P) { - return I('radiationDuration', { value: P }); - } - return x; - })(), - }), - }), - ], - }), - (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 x() { - return I('pulseRadiation'); - } - return x; - })(), - }), - ], - }); - }, - u = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.buffers, - A = T.map(function (x, E) { - return (0, e.createComponentVNode)( - 2, - s, - { id: E + 1, name: 'Buffer ' + (E + 1), buffer: x }, - 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, d), - }), - ], - }); - }, - s = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = V.id, - A = V.name, - x = V.buffer, - E = w.isInjectorReady, - P = A + (x.data ? ' - ' + x.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: P, - mx: '0', - lineHeight: '18px', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button.Confirm, { - disabled: !x.data, - icon: 'trash', - content: 'Clear', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'clear', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !x.data, - icon: 'pen', - content: 'Rename', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'changeLabel', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !x.data || !w.hasDisk, - icon: 'save', - content: 'Export', - tooltip: - 'Exports this buffer to the currently loaded data disk.', - tooltipPosition: 'bottom-start', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'saveDisk', - id: T, - }); - } - return D; - })(), - }), - ], - 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 D() { - return I('bufferOption', { - option: 'saveUI', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-circle-down', - content: 'Subject U.I and U.E.', - mb: '0', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'saveUIAndUE', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-circle-down', - content: 'Subject S.E.', - mb: '0', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'saveSE', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !w.hasDisk || !w.disk.data, - icon: 'arrow-circle-down', - content: 'From Disk', - mb: '0', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'loadDisk', - id: T, - }); - } - return D; - })(), - }), - ], - }), - !!x.data && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Subject', - children: - x.owner || - (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'Unknown', - }), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Data Type', - children: [ - x.type === 'ui' - ? 'Unique Identifiers' - : 'Structural Enzymes', - !!x.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 D() { - return I('bufferOption', { - option: 'createInjector', - id: T, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !E, - icon: E ? 'syringe' : 'spinner', - iconSpin: !E, - content: 'Block Injector', - mb: '0', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'createInjector', - id: T, - block: 1, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'user', - content: 'Subject', - mb: '0', - onClick: (function () { - function D() { - return I('bufferOption', { - option: 'transfer', - id: T, - }); - } - return D; - })(), - }), - ], - } - ), - ], - 4 - ), - ], - }), - !x.data && - (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - mt: '0.5rem', - children: 'This buffer is empty.', - }), - ], - }), - }); - }, - d = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.hasDisk, - A = w.disk; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Data Disk', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button.Confirm, { - disabled: !T || !A.data, - icon: 'trash', - content: 'Wipe', - onClick: (function () { - function x() { - return I('wipeDisk'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !T, - icon: 'eject', - content: 'Eject', - onClick: (function () { - function x() { - return I('ejectDisk'); - } - return x; - })(), - }), - ], - 4 - ), - children: T - ? 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.', - ], - }), - }); - }, - C = function (V, b) { - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = w.isBeakerLoaded, - A = w.beakerVolume, - x = w.beakerLabel; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Rejuvenators and Beaker', - buttons: (0, e.createComponentVNode)(2, t.Button, { - disabled: !T, - icon: 'eject', - content: 'Eject', - onClick: (function () { - function E() { - return I('ejectBeaker'); - } - return E; - })(), - }), - children: T - ? (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Inject', - children: [ - S.map(function (E, P) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - disabled: E > A, - icon: 'syringe', - content: E, - onClick: (function () { - function D() { - return I('injectRejuvenators', { - amount: E, - }); - } - return D; - })(), - }, - P - ); - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: A <= 0, - icon: 'syringe', - content: 'All', - onClick: (function () { - function E() { - return I('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: x || '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 - ), - ], - }), - }), - }); - }, - g = function (V, b) { - 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 '), - V.duration, - (0, e.createTextVNode)(' second'), - V.duration === 1 ? '' : 's', - ], - 0 - ), - }), - ], - }); - }, - v = function (V, b) { - for ( - var B = (0, a.useBackend)(b), - I = B.act, - w = B.data, - T = V.dnaString, - A = V.selectedBlock, - x = V.selectedSubblock, - E = V.blockSize, - P = V.action, - D = T.split(''), - M = 0, - O = [], - j = function () { - for ( - var _ = F / E + 1, - z = [], - H = function () { - var X = $ + 1; - z.push( - (0, e.createComponentVNode)(2, t.Button, { - selected: A === _ && x === X, - content: D[F + $], - mb: '0', - onClick: (function () { - function re() { - return I(P, { block: _, subblock: X }); - } - return re; - })(), - }) - ); - }, - $ = 0; - $ < E; - $++ - ) - H(); - O.push( - (0, e.createComponentVNode)(2, t.Stack.Item, { - mb: '1rem', - mr: '1rem', - width: 7.8, - textAlign: 'right', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - mr: '0.5rem', - fontFamily: 'monospace', - children: _, - }), - z, - ], - }) - ); - }, - F = 0; - F < D.length; - F += E - ) - j(); - return (0, e.createComponentVNode)(2, t.Flex, { - wrap: 'wrap', - children: O, - }); - }; - }, - 94406: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DestinationTagger = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.DestinationTagger = (function () { - function N(y, S) { - var k, - p = (0, a.useBackend)(S), - l = p.act, - c = p.data, - f = c.destinations, - i = c.selected_destination_id, - u = f[i - 1]; - return (0, e.createComponentVNode)(2, o.Window, { - width: 355, - height: 330, - 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, { - fill: !0, - scrollable: !0, - textAlign: 'center', - title: 'TagMaster 3.1', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - width: '100%', - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - inline: !0, - children: 'Selected:', - }), - ' ', - (k = u.name) != null ? k : 'None', - ], - }), - (0, e.createComponentVNode)(2, t.Box, { - mt: 1.5, - children: (0, e.createComponentVNode)(2, t.Stack, { - overflowY: 'auto', - wrap: 'wrap', - align: 'center', - justify: 'space-evenly', - direction: 'row', - children: f.map(function (s, d) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - m: '2px', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - width: '105px', - textAlign: 'center', - content: s.name, - selected: s.id === i, - onClick: (function () { - function C() { - return l('select_destination', { - destination: s.id, - }); - } - return C; - })(), - } - ), - }, - d - ); - }), - }), - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 17585: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DisposalBin = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.DisposalBin = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c, - f; - return ( - l.mode === 2 - ? ((c = 'good'), (f = 'Ready')) - : l.mode <= 0 - ? ((c = 'bad'), (f = 'N/A')) - : l.mode === 1 - ? ((c = 'average'), (f = 'Pressurizing')) - : ((c = 'average'), (f = 'Idle')), - (0, e.createComponentVNode)(2, o.Window, { - width: 300, - height: 260, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Status', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'State', color: c, children: f } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Pressure', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - ranges: { - bad: [-1 / 0, 0], - average: [0, 99], - good: [99, 1 / 0], - }, - value: l.pressure, - minValue: 0, - maxValue: 100, - } - ), - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Controls', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Handle', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'toggle-off', - disabled: l.isAI || l.panel_open, - content: 'Disengaged', - selected: l.flushing - ? null - : 'selected', - onClick: (function () { - function i() { - return p('disengageHandle'); - } - return i; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'toggle-on', - disabled: l.isAI || l.panel_open, - content: 'Engaged', - selected: l.flushing - ? 'selected' - : null, - onClick: (function () { - function i() { - return p('engageHandle'); - } - return i; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Power', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'toggle-off', - disabled: l.mode === -1, - content: 'Off', - selected: l.mode ? null : 'selected', - onClick: (function () { - function i() { - return p('pumpOff'); - } - return i; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'toggle-on', - disabled: l.mode === -1, - content: 'On', - selected: l.mode ? 'selected' : null, - onClick: (function () { - function i() { - return p('pumpOn'); - } - return i; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Eject', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'sign-out-alt', - disabled: l.isAI, - content: 'Eject Contents', - onClick: (function () { - function i() { - return p('eject'); - } - return i; - })(), - } - ), - } - ), - ], - } - ), - }), - ], - }), - }) - ); - } - return N; - })()); - }, - 64636: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DnaVault = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.DnaVault = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.completed; - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 270, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N), - !!i && (0, e.createComponentVNode)(2, y), - ], - }), - }), - }); - } - return S; - })()), - N = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.dna, - u = f.dna_max, - s = f.plants, - d = f.plants_max, - C = f.animals, - g = f.animals_max, - v = 0.66, - h = 0.33; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'DNA Vault Database', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Human DNA', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: i / u, - ranges: { - good: [v, 1 / 0], - average: [h, v], - bad: [-1 / 0, h], - }, - children: i + ' / ' + u + ' Samples', - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Plant DNA', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: s / d, - ranges: { - good: [v, 1 / 0], - average: [h, v], - bad: [-1 / 0, h], - }, - children: s + ' / ' + d + ' Samples', - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Animal DNA', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: C / g, - ranges: { - good: [v, 1 / 0], - average: [h, v], - bad: [-1 / 0, h], - }, - children: C + ' / ' + g + ' Samples', - } - ), - }), - ], - }), - }), - }); - }, - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.choiceA, - u = f.choiceB, - s = f.used; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Personal Gene Therapy', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - bold: !0, - textAlign: 'center', - mb: 1, - children: 'Applicable Gene Therapy Treatments', - }), - (!s && - (0, e.createComponentVNode)(2, t.Grid, { - children: [ - (0, e.createComponentVNode)(2, t.Grid.Column, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - bold: !0, - content: i, - textAlign: 'center', - onClick: (function () { - function d() { - return c('gene', { choice: i }); - } - return d; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Grid.Column, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - bold: !0, - content: u, - textAlign: 'center', - onClick: (function () { - function d() { - return c('gene', { choice: u }); - } - return d; - })(), - }), - }), - ], - })) || - (0, e.createComponentVNode)(2, t.Box, { - bold: !0, - textAlign: 'center', - mb: 1, - children: - 'Users DNA deemed unstable. Unable to provide more upgrades.', - }), - ], - }), - }); - }; - }, - 13015: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DroneConsole = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.DroneConsole = (function () { - function k(p, l) { - return (0, e.createComponentVNode)(2, m.Window, { - width: 420, - height: 500, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, y), - (0, e.createComponentVNode)(2, S), - ], - }), - }); - } - return k; - })()), - y = function (p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.drone_fab, - s = i.fab_power, - d = i.drone_prod, - C = i.drone_progress, - g = function () { - return u - ? (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'External Power', - children: (0, e.createComponentVNode)(2, o.Box, { - color: s ? 'good' : 'bad', - children: ['[ ', s ? 'Online' : 'Offline', ' ]'], - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Drone Production', - children: (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - value: C / 100, - ranges: { - good: [0.7, 1 / 0], - average: [0.4, 0.7], - bad: [-1 / 0, 0.4], - }, - } - ), - }), - ], - }) - : (0, e.createComponentVNode)(2, o.NoticeBox, { - textAlign: 'center', - danger: 1, - children: (0, e.createComponentVNode)(2, o.Flex, { - inline: 1, - direction: 'column', - children: [ - (0, e.createComponentVNode)(2, o.Flex.Item, { - children: 'FABRICATOR NOT DETECTED.', - }), - (0, e.createComponentVNode)(2, o.Flex.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: 'search', - content: 'Search', - onClick: (function () { - function h() { - return f('find_fab'); - } - return h; - })(), - } - ), - }), - ], - }), - }); - }; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Drone Fabricator', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'power-off', - content: d ? 'Online' : 'Offline', - color: d ? 'green' : 'red', - onClick: (function () { - function v() { - return f('toggle_fab'); - } - return v; - })(), - }), - children: g(), - }); - }, - S = function (p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.drones, - s = i.area_list, - d = i.selected_area, - C = i.ping_cd, - g = function (V, b) { - var B, I; - return ( - V === 2 - ? ((B = 'bad'), (I = 'Disabled')) - : V === 1 || !b - ? ((B = 'average'), (I = 'Inactive')) - : ((B = 'good'), (I = 'Active')), - (0, e.createComponentVNode)(2, o.Box, { - color: B, - children: I, - }) - ); - }, - v = function () { - if (u.length) - return (0, e.createComponentVNode)(2, o.Box, { - py: 0.2, - children: (0, e.createComponentVNode)(2, o.Divider), - }); - }; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Maintenance Units', - children: [ - (0, e.createComponentVNode)(2, o.Flex, { - children: [ - (0, e.createComponentVNode)(2, o.Flex.Item, { - children: 'Request Drone presence in area:\xA0', - }), - (0, e.createComponentVNode)(2, o.Flex.Item, { - children: (0, e.createComponentVNode)(2, o.Dropdown, { - options: s, - selected: d, - width: '125px', - onSelected: (function () { - function h(V) { - return f('set_area', { area: V }); - } - return h; - })(), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, o.Button, { - content: 'Send Ping', - icon: 'broadcast-tower', - disabled: C || !u.length, - title: u.length ? null : 'No active drones!', - fluid: 1, - textAlign: 'center', - py: 0.4, - mt: 0.6, - onClick: (function () { - function h() { - return f('ping'); - } - return h; - })(), - }), - (0, e.createComponentVNode)(2, v), - u.map(function (h) { - return (0, e.createComponentVNode)( - 2, - o.Section, - { - title: (0, a.toTitleCase)(h.name), - buttons: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: 'sync', - content: 'Resync', - disabled: h.stat === 2 || h.sync_cd, - onClick: (function () { - function V() { - return f('resync', { uid: h.uid }); - } - return V; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - icon: 'power-off', - content: 'Recall', - disabled: h.stat === 2 || h.pathfinding, - tooltip: h.pathfinding - ? 'This drone is currently pathfinding, please wait.' - : null, - tooltipPosition: 'left', - color: 'bad', - onClick: (function () { - function V() { - return f('recall', { uid: h.uid }); - } - return V; - })(), - } - ), - }), - ], - }), - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Status', - children: g(h.stat, h.client), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Integrity', - children: (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - value: h.health, - ranges: { - good: [0.7, 1 / 0], - average: [0.4, 0.7], - bad: [-1 / 0, 0.4], - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Charge', - children: (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - value: h.charge, - ranges: { - good: [0.7, 1 / 0], - average: [0.4, 0.7], - bad: [-1 / 0, 0.4], - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Location', children: h.location } - ), - ], - } - ), - }, - h.name - ); - }), - ], - }); - }; - }, - 97673: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.EFTPOS = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.EFTPOS = (function () { - function k(p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.transaction_locked, - s = i.machine_name; - return (0, e.createComponentVNode)(2, m.Window, { - width: 500, - height: 250, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Section, { - title: 'POS Terminal ' + s, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - content: u ? 'Unlock EFTPOS' : 'Lock EFTPOS', - tooltip: - 'Enter pin to modify transactions and EFTPOS settings', - icon: u ? 'lock-open' : 'lock', - onClick: (function () { - function d() { - return f('toggle_lock'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - content: 'Reset EFTPOS', - tooltip: 'Requires Captain, HoP or CC access', - icon: 'sync', - onClick: (function () { - function d() { - return f('reset'); - } - return d; - })(), - }), - ], - 4 - ), - children: u - ? (0, e.createComponentVNode)(2, y) - : (0, e.createComponentVNode)(2, S), - }), - }), - }); - } - return k; - })()), - y = function (p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.transaction_amount, - s = i.transaction_paid; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Box, { - mt: 2, - bold: !0, - width: '100%', - fontSize: '3rem', - color: s ? 'green' : 'red', - align: 'center', - justify: 'center', - children: ['Payment ', s ? 'Accepted' : 'Due', ': $', u], - }), - (0, e.createComponentVNode)(2, o.Box, { - mt: 0.5, - fontSize: '1.25rem', - align: 'center', - justify: 'center', - children: s - ? 'This transaction has been processed successfully ' - : 'Swipe your card to finish this transaction.', - }), - ], - 4 - ); - }, - S = function (p, l) { - var c, - f = (0, t.useBackend)(l), - i = f.act, - u = f.data, - s = (0, t.useLocalState)(l, 'searchText', ''), - d = s[0], - C = s[1], - g = u.transaction_purpose, - v = u.transaction_amount, - h = u.linked_account, - V = u.available_accounts, - b = []; - return ( - V.map(function (B) { - return (b[B.name] = B.UID); - }), - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Transaction Purpose', - children: (0, e.createComponentVNode)(2, o.Button, { - content: g, - icon: 'edit', - onClick: (function () { - function B() { - return i('trans_purpose'); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Value', - children: (0, e.createComponentVNode)(2, o.Button, { - content: v ? '$' + v : '$0', - icon: 'edit', - onClick: (function () { - function B() { - return i('trans_value'); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Linked Account', - children: [ - (0, e.createComponentVNode)(2, o.Box, { - mb: 0.5, - children: h.name, - }), - (0, e.createComponentVNode)(2, o.Input, { - width: '190px', - placeholder: 'Search by name', - onInput: (function () { - function B(I, w) { - return C(w); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, o.Dropdown, { - mt: 0.6, - width: '190px', - options: V.filter( - (0, a.createSearch)(d, function (B) { - return B.name; - }) - ).map(function (B) { - return B.name; - }), - selected: - (c = V.filter(function (B) { - return B.UID === h.UID; - })[0]) == null - ? void 0 - : c.name, - onSelected: (function () { - function B(I) { - return i('link_account', { account: b[I] }); - } - return B; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Actions', - children: (0, e.createComponentVNode)(2, o.Button, { - content: 'Change access code', - icon: 'key', - onClick: (function () { - function B() { - return i('change_code'); - } - return B; - })(), - }), - }), - ], - }) - ); - }; - }, - 29206: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ERTOverview = r.ERTManager = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(37843), - N = function (f) { - switch (f) { - case 0: - return (0, e.createComponentVNode)(2, k); - case 1: - return (0, e.createComponentVNode)(2, p); - case 2: - return (0, e.createComponentVNode)(2, l); - default: - return "SOMETHING WENT VERY WRONG PLEASE AHELP, WAIT YOU'RE AN ADMIN, OH FUUUUCK! call a coder or something"; - } - }, - y = (r.ERTManager = (function () { - function c(f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = (0, a.useLocalState)(i, 'tabIndex', 0), - g = C[0], - v = C[1]; - return (0, e.createComponentVNode)(2, o.Window, { - width: 360, - height: 505, - 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), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Tabs, { - fluid: !0, - children: [ - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 0, - onClick: (function () { - function h() { - v(0); - } - return h; - })(), - icon: 'ambulance', - children: 'Send ERT', - }, - 'SendERT' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 1, - onClick: (function () { - function h() { - v(1); - } - return h; - })(), - icon: 'book', - children: 'Read ERT Requests', - }, - 'ReadERTRequests' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: g === 2, - onClick: (function () { - function h() { - v(2); - } - return h; - })(), - icon: 'times', - children: 'Deny ERT', - }, - 'DenyERT' - ), - ], - }), - }), - N(g), - ], - }), - }), - }); - } - return c; - })()), - S = (r.ERTOverview = (function () { - function c(f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.security_level_color, - g = d.str_security_level, - v = d.ert_request_answered; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Overview', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Current Alert', - color: C, - children: g, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'ERT Request', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: v, - textColor: v ? null : 'bad', - content: v ? 'Answered' : 'Unanswered', - onClick: (function () { - function h() { - return s('toggle_ert_request_answered'); - } - return h; - })(), - tooltip: - 'Checking this box will disable the next ERT reminder notification', - selected: null, - } - ), - }), - ], - }), - }), - }); - } - return c; - })()), - k = function (f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = [0, 1, 2, 3, 4, 5], - g = (0, a.useLocalState)(i, 'silentERT', !1), - v = g[0], - h = g[1]; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Send ERT', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - width: 5, - content: 'Amber', - textAlign: 'center', - color: d.ert_type === 'Amber' ? 'orange' : '', - onClick: (function () { - function V() { - return s('ert_type', { ert_type: 'Amber' }); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: 5, - content: 'Red', - textAlign: 'center', - color: d.ert_type === 'Red' ? 'red' : '', - onClick: (function () { - function V() { - return s('ert_type', { ert_type: 'Red' }); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: 5, - content: 'Gamma', - textAlign: 'center', - color: d.ert_type === 'Gamma' ? 'purple' : '', - onClick: (function () { - function V() { - return s('ert_type', { ert_type: 'Gamma' }); - } - return V; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Commander', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: d.com ? 'toggle-on' : 'toggle-off', - selected: d.com, - content: d.com ? 'Yes' : 'No', - onClick: (function () { - function V() { - return s('toggle_com'); - } - return V; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Security', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.sec === V, - content: V, - onClick: (function () { - function B() { - return s('set_sec', { set_sec: V }); - } - return B; - })(), - }, - 'sec' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Medical', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.med === V, - content: V, - onClick: (function () { - function B() { - return s('set_med', { set_med: V }); - } - return B; - })(), - }, - 'med' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Engineering', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.eng === V, - content: V, - onClick: (function () { - function B() { - return s('set_eng', { set_eng: V }); - } - return B; - })(), - }, - 'eng' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Paranormal', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.par === V, - content: V, - onClick: (function () { - function B() { - return s('set_par', { set_par: V }); - } - return B; - })(), - }, - 'par' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Janitor', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.jan === V, - content: V, - onClick: (function () { - function B() { - return s('set_jan', { set_jan: V }); - } - return B; - })(), - }, - 'jan' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Cyborg', - children: C.map(function (V, b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: d.cyb === V, - content: V, - onClick: (function () { - function B() { - return s('set_cyb', { set_cyb: V }); - } - return B; - })(), - }, - 'cyb' + V - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Security Module', - children: (0, e.createComponentVNode)(2, t.Button, { - width: 10.5, - disabled: d.ert_type !== 'Red' || !d.cyb, - icon: d.secborg ? 'toggle-on' : 'toggle-off', - color: d.secborg ? 'red' : '', - content: d.secborg - ? 'Enabled' - : d.ert_type !== 'Red' - ? 'Unavailable' - : 'Disabled', - textAlign: 'center', - onClick: (function () { - function V() { - return s('toggle_secborg'); - } - return V; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Silent ERT', - children: (0, e.createComponentVNode)(2, t.Button, { - width: 10.5, - icon: v ? 'microphone-slash' : 'microphone', - content: v ? 'Silenced' : 'Public', - textAlign: 'center', - selected: v, - onClick: (function () { - function V() { - return h(!v); - } - return V; - })(), - tooltip: v - ? 'This ERT will not be announced to the station' - : 'This ERT will be announced to the station on dispatch', - tooltipPosition: 'top', - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Total Slots', - children: (0, e.createComponentVNode)(2, t.Box, { - color: d.total > d.spawnpoints ? 'red' : 'green', - children: [ - d.total, - ' total, versus ', - d.spawnpoints, - ' spawnpoints', - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Dispatch', - children: (0, e.createComponentVNode)(2, t.Button, { - width: 10.5, - textAlign: 'center', - icon: 'ambulance', - content: 'Send ERT', - onClick: (function () { - function V() { - return s('dispatch_ert', { silent: v }); - } - return V; - })(), - }), - }), - ], - }), - }), - }); - }, - p = function (f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = d.ert_request_messages; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: - C && C.length - ? C.map(function (g) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: g.time, - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: g.sender_real_name, - onClick: (function () { - function v() { - return s('view_player_panel', { - uid: g.sender_uid, - }); - } - return v; - })(), - tooltip: 'View player panel', - } - ), - children: g.message, - }, - (0, m.decodeHtmlEntities)(g.time) - ); - }) - : (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: 'broadcast-tower', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, t.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'No ERT requests.', - ], - } - ), - }), - }), - }); - }, - l = function (f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d = u.data, - C = (0, a.useLocalState)(i, 'text', ''), - g = C[0], - v = C[1]; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Input, { - placeholder: - 'Enter ERT denial reason here,\nMultiline input is accepted.', - rows: 19, - fluid: !0, - multiline: 1, - value: g, - onChange: (function () { - function h(V, b) { - return v(b); - } - return h; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - content: 'Deny ERT', - fluid: !0, - icon: 'times', - center: !0, - mt: 2, - textAlign: 'center', - onClick: (function () { - function h() { - return s('deny_ert', { reason: g }); - } - return h; - })(), - }), - ], - }), - }); - }; - }, - 77877: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.EconomyManager = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = (r.EconomyManager = (function () { - function S(k, p) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 600, - height: 350, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - className: 'Layout__content--flexColumn', - children: (0, e.createComponentVNode)(2, y), - }), - ], - }); - } - return S; - })()), - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.next_payroll_time; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.4rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'coins', - verticalAlign: 'middle', - size: 3, - mr: '1rem', - }), - 'Economy Manager', - ], - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.LabeledList, { - label: 'Pay Bonuses and Deductions', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Global', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'dollar-sign', - width: 'auto', - content: 'Global Payroll Modification', - onClick: (function () { - function u() { - return c('payroll_modification', { - mod_type: 'global', - }); - } - return u; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Department Accounts', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'dollar-sign', - width: 'auto', - content: - 'Department Account Payroll Modification', - onClick: (function () { - function u() { - return c('payroll_modification', { - mod_type: 'department', - }); - } - return u; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Department Members', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'dollar-sign', - width: 'auto', - content: - 'Department Members Payroll Modification', - onClick: (function () { - function u() { - return c('payroll_modification', { - mod_type: 'department_members', - }); - } - return u; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Single Accounts', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'dollar-sign', - width: 'auto', - content: 'Crew Member Payroll Modification', - onClick: (function () { - function u() { - return c('payroll_modification', { - mod_type: 'crew_member', - }); - } - return u; - })(), - }), - }), - ], - }), - (0, e.createVNode)(1, 'hr'), - (0, e.createComponentVNode)(2, t.Box, { - mb: 0.5, - children: ['Next Payroll in: ', i, ' Minutes'], - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-left', - width: 'auto', - color: 'bad', - content: 'Delay Payroll', - onClick: (function () { - function u() { - return c('delay_payroll'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: 'auto', - content: 'Set Payroll Time', - onClick: (function () { - function u() { - return c('set_payroll'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-right', - width: 'auto', - color: 'good', - content: 'Accelerate Payroll', - onClick: (function () { - function u() { - return c('accelerate_payroll'); - } - return u; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.NoticeBox, { - children: [ - (0, e.createVNode)(1, 'b', null, 'WARNING:', 16), - ' You take full responsibility for unbalancing the economy with these buttons', - ], - }), - ], - 4 - ); - }; - }, - 10707: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Electropack = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.Electropack = (function () { - function y(S, k) { - var p = (0, t.useBackend)(k), - l = p.act, - c = p.data, - f = c.power, - i = c.code, - u = c.frequency, - s = c.minFrequency, - d = c.maxFrequency; - return (0, e.createComponentVNode)(2, m.Window, { - width: 360, - height: 135, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Section, { - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Power', - children: (0, e.createComponentVNode)(2, o.Button, { - icon: f ? 'power-off' : 'times', - content: f ? 'On' : 'Off', - selected: f, - onClick: (function () { - function C() { - return l('power'); - } - return C; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Frequency', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'sync', - content: 'Reset', - onClick: (function () { - function C() { - return l('reset', { reset: 'freq' }); - } - return C; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - o.NumberInput, - { - animate: !0, - unit: 'kHz', - step: 0.2, - stepPixelSize: 6, - minValue: s / 10, - maxValue: d / 10, - value: u / 10, - format: (function () { - function C(g) { - return (0, a.toFixed)(g, 1); - } - return C; - })(), - width: '80px', - onChange: (function () { - function C(g, v) { - return l('freq', { freq: v }); - } - return C; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Code', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'sync', - content: 'Reset', - onClick: (function () { - function C() { - return l('reset', { reset: 'code' }); - } - return C; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - o.NumberInput, - { - animate: !0, - step: 1, - stepPixelSize: 6, - minValue: 1, - maxValue: 100, - value: i, - width: '80px', - onChange: (function () { - function C(g, v) { - return l('code', { code: v }); - } - return C; - })(), - } - ), - }), - ], - }), - }), - }), - }); - } - return y; - })()); - }, - 85307: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.EmotePanelContent = r.EmotePanel = void 0); - var e = n(28823), - a = n(91819), - t = n(84947), - o = n(2971), - m = n(37843), - N = (r.EmotePanel = (function () { - function S(k, p) { - return (0, e.createComponentVNode)(2, t.Window, { - width: 500, - height: 550, - children: (0, e.createComponentVNode)(2, t.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, y), - }), - }), - }); - } - return S; - })()), - y = (r.EmotePanelContent = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.emotes, - u = (0, a.useLocalState)(p, 'searchText', ''), - s = u[0], - d = u[1], - C = (0, a.useLocalState)(p, 'filterVisible', ''), - g = C[0], - v = C[1], - h = (0, a.useLocalState)(p, 'filterAudible', ''), - V = h[0], - b = h[1], - B = (0, a.useLocalState)(p, 'filterSound', ''), - I = B[0], - w = B[1], - T = (0, a.useLocalState)(p, 'filterHands', ''), - A = T[0], - x = T[1], - E = (0, a.useLocalState)(p, 'filterTargettable', ''), - P = E[0], - D = E[1], - M = (0, a.useLocalState)(p, 'useTarget', ''), - O = M[0], - j = M[1], - F = (0, e.createComponentVNode)(2, o.Input, { - placeholder: - '\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...', - fluid: !0, - onInput: (function () { - function U(_, z) { - return d(z); - } - return U; - })(), - }); - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - title: '\u0424\u0438\u043B\u044C\u0442\u0440\u044B', - buttons: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eye', - align: 'center', - tooltip: - '\u0412\u0438\u0434\u0438\u043C\u044B\u0439', - selected: g, - onClick: (function () { - function U() { - return v(!g); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'comment', - align: 'center', - tooltip: - '\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439', - selected: V, - onClick: (function () { - function U() { - return b(!V); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'volume-up', - align: 'center', - tooltip: '\u0417\u0432\u0443\u043A', - selected: I, - onClick: (function () { - function U() { - return w(!I); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'hand-paper', - align: 'center', - tooltip: '\u0420\u0443\u043A\u0438', - selected: A, - onClick: (function () { - function U() { - return x(!A); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'crosshairs', - height: '100%', - align: 'center', - tooltip: '\u0426\u0435\u043B\u044C', - selected: P, - onClick: (function () { - function U() { - return D(!P); - } - return U; - })(), - }), - ], - }), - children: F, - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: - s.length > 0 - ? '\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "' + - s + - '"' - : '\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'crosshairs', - selected: O, - onClick: (function () { - function U() { - return j(!O); - } - return U; - })(), - children: - '\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C', - }), - children: (0, e.createComponentVNode)(2, o.Stack, { - children: (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: i - .filter(function (U) { - return ( - U.key && - (s.length > 0 - ? U.key - .toLowerCase() - .includes(s.toLowerCase()) || - U.name - .toLowerCase() - .includes(s.toLowerCase()) - : !0) && - (g ? U.visible : !0) && - (V ? U.audible : !0) && - (I ? U.sound : !0) && - (A ? U.hands : !0) && - (P ? U.targettable : !0) - ); - }) - .map(function (U) { - return (0, e.createComponentVNode)( - 2, - o.Button, - { - onClick: (function () { - function _() { - return c('play_emote', { - emote_key: U.key, - useTarget: O, - }); - } - return _; - })(), - children: [ - U.visible - ? (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'eye' } - ) - : '', - U.audible - ? (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'comment' } - ) - : '', - U.sound - ? (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'volume-up' } - ) - : '', - U.hands - ? (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'hand-paper' } - ) - : '', - U.targettable - ? (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'crosshairs' } - ) - : '', - U.name, - ], - }, - U.name - ); - }), - } - ), - }), - }), - }), - ], - 4 - ); - } - return S; - })()); - }, - 52640: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.EvolutionMenu = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(90955), - y = n(72026), - S = (r.EvolutionMenu = (function () { - function l(c, f) { - return (0, e.createComponentVNode)(2, m.Window, { - width: 480, - height: 580, - theme: 'changeling', - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, p), - ], - }), - }), - }); - } - return l; - })()), - k = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.evo_points, - C = s.can_respec; - return (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Section, { - title: 'Evolution Points', - height: 5.5, - children: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - mt: 0.5, - color: 'label', - children: 'Points remaining:', - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - mt: 0.5, - ml: 2, - bold: !0, - color: '#1b945c', - children: d, - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, o.Button, { - ml: 2.5, - disabled: !C, - content: 'Readapt', - icon: 'sync', - onClick: (function () { - function g() { - return u('readapt'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - tooltip: - 'By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.', - tooltipPosition: 'bottom', - icon: 'question-circle', - }), - ], - }), - ], - }), - }), - }); - }, - p = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.evo_points, - C = s.ability_tabs, - g = s.purchased_abilities, - v = s.view_mode, - h = (0, t.useLocalState)(f, 'selectedTab', C[0]), - V = h[0], - b = h[1], - B = (0, t.useLocalState)(f, 'searchText', ''), - I = B[0], - w = B[1], - T = (0, t.useLocalState)(f, 'ability_tabs', C[0].abilities), - A = T[0], - x = T[1], - E = function (O, j) { - if ((j === void 0 && (j = ''), !O || O.length === 0)) - return []; - var F = (0, a.createSearch)(j, function (U) { - return U.name + '|' + U.description; - }); - return (0, N.flow)([ - (0, y.filter)(function (U) { - return U == null ? void 0 : U.name; - }), - (0, y.filter)(F), - (0, y.sortBy)(function (U) { - return U == null ? void 0 : U.name; - }), - ])(O); - }, - P = function (O) { - if ((w(O), O === '')) return x(V.abilities); - x( - E( - C.map(function (j) { - return j.abilities; - }).flat(), - O - ) - ); - }, - D = function (O) { - b(O), x(O.abilities), w(''); - }; - return (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: 'Abilities', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Input, { - width: '200px', - placeholder: 'Search Abilities', - onInput: (function () { - function M(O, j) { - P(j); - } - return M; - })(), - value: I, - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: v ? 'square-o' : 'check-square-o', - selected: !v, - content: 'Compact', - onClick: (function () { - function M() { - return u('set_view_mode', { mode: 0 }); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: v ? 'check-square-o' : 'square-o', - selected: v, - content: 'Expanded', - onClick: (function () { - function M() { - return u('set_view_mode', { mode: 1 }); - } - return M; - })(), - }), - ], - 4 - ), - children: [ - (0, e.createComponentVNode)(2, o.Tabs, { - children: C.map(function (M) { - return (0, e.createComponentVNode)( - 2, - o.Tabs.Tab, - { - selected: I === '' && V === M, - onClick: (function () { - function O() { - D(M); - } - return O; - })(), - children: M.category, - }, - M - ); - }), - }), - A.map(function (M, O) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - p: 0.5, - mx: -1, - className: 'candystripe', - children: [ - (0, e.createComponentVNode)(2, o.Stack, { - align: 'center', - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - ml: 0.5, - color: '#dedede', - children: M.name, - }), - g.includes(M.power_path) && - (0, e.createComponentVNode)(2, o.Stack.Item, { - ml: 2, - bold: !0, - color: '#1b945c', - children: '(Purchased)', - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - mr: 3, - textAlign: 'right', - grow: 1, - children: [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: ['Cost:', ' '], - }), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - bold: !0, - color: '#1b945c', - children: M.cost, - }), - ], - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - textAlign: 'right', - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - mr: 0.5, - disabled: - M.cost > d || g.includes(M.power_path), - content: 'Evolve', - onClick: (function () { - function j() { - return u('purchase', { - power_path: M.power_path, - }); - } - return j; - })(), - } - ), - }), - ], - }), - !!v && - (0, e.createComponentVNode)(2, o.Stack, { - color: '#8a8a8a', - my: 1, - ml: 1.5, - width: '95%', - children: M.description + ' ' + M.helptext, - }), - ], - }, - O - ); - }), - ], - }), - }); - }; - }, - 70672: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ExosuitFabricator = void 0); - var e = n(28823), - a = n(66586), - t = n(37843), - o = n(91819), - m = n(2971), - N = n(73712), - y = n(84947), - S = ['id', 'amount', 'lineDisplay', 'onClick']; - function k(g, v) { - if (g == null) return {}; - var h = {}, - V = Object.keys(g), - b, - B; - for (B = 0; B < V.length; B++) - (b = V[B]), !(v.indexOf(b) >= 0) && (h[b] = g[b]); - return h; - } - var p = 2e3, - l = { bananium: 'clown', tranquillite: 'mime' }, - c = (r.ExosuitFabricator = (function () { - function g(v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = B.building; - return (0, e.createComponentVNode)(2, y.Window, { - width: 950, - height: 625, - children: (0, e.createComponentVNode)(2, y.Window.Content, { - className: 'Exofab', - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, i), - }), - I && - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, u), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - width: '30%', - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, f), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, s), - }), - ], - }), - }), - ], - }), - }), - }); - } - return g; - })()), - f = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = B.materials, - w = B.capacity, - T = Object.values(I).reduce(function (A, x) { - return A + x; - }, 0); - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - scrollable: !0, - title: 'Materials', - className: 'Exofab__materials', - buttons: (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - mt: '0.25rem', - children: [((T / w) * 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, - d, - { - mt: -2, - id: A, - bold: A === 'metal' || A === 'glass', - onClick: (function () { - function x() { - return b('withdraw', { id: A }); - } - return x; - })(), - }, - A - ); - }), - }); - }, - i = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = B.curCategory, - w = B.categories, - T = B.designs, - A = B.syncing, - x = (0, o.useLocalState)(h, 'searchText', ''), - E = x[0], - P = x[1], - D = (0, t.createSearch)(E, function (O) { - return O.name; - }), - M = T.filter(D); - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - scrollable: !0, - className: 'Exofab__designs', - title: (0, e.createComponentVNode)(2, m.Dropdown, { - className: 'Exofab__dropdown', - selected: I, - options: w, - onSelected: (function () { - function O(j) { - return b('category', { cat: j }); - } - return O; - })(), - }), - buttons: (0, e.createComponentVNode)(2, m.Box, { - mt: '2px', - children: [ - (0, e.createComponentVNode)(2, m.Button, { - icon: 'plus', - content: 'Queue all', - onClick: (function () { - function O() { - return b('queueall'); - } - return O; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - disabled: A, - iconSpin: A, - icon: 'sync-alt', - content: A - ? 'Synchronizing...' - : 'Synchronize with R&D servers', - onClick: (function () { - function O() { - return b('sync'); - } - return O; - })(), - }), - ], - }), - children: [ - (0, e.createComponentVNode)(2, m.Input, { - placeholder: 'Search by name...', - mb: '0.5rem', - width: '100%', - onInput: (function () { - function O(j, F) { - return P(F); - } - return O; - })(), - }), - M.map(function (O) { - return (0, e.createComponentVNode)( - 2, - C, - { design: O }, - O.id - ); - }), - M.length === 0 && - (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'No designs found.', - }), - ], - }); - }, - u = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = B.building, - w = B.buildStart, - T = B.buildEnd, - A = B.worldTime; - return (0, e.createComponentVNode)(2, m.Section, { - className: 'Exofab__building', - stretchContents: !0, - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar.Countdown, - { - start: w, - current: A, - end: T, - children: (0, e.createComponentVNode)(2, m.Stack, { - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Icon, { - name: 'cog', - spin: !0, - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: [ - 'Building ', - I, - '\xA0(', - (0, e.createComponentVNode)(2, N.Countdown, { - current: A, - timeLeft: T - A, - format: (function () { - function x(E, P) { - return P.substr(3); - } - return x; - })(), - }), - ')', - ], - }), - ], - }), - } - ), - }); - }, - s = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = B.queue, - w = B.processingQueue, - T = Object.entries(B.queueDeficit).filter(function (x) { - return x[1] < 0; - }), - A = I.reduce(function (x, E) { - return x + E.time; - }, 0); - return (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - scrollable: !0, - className: 'Exofab__queue', - title: 'Queue', - buttons: (0, e.createComponentVNode)(2, m.Box, { - children: [ - (0, e.createComponentVNode)(2, m.Button, { - selected: w, - icon: w ? 'toggle-on' : 'toggle-off', - content: 'Process', - onClick: (function () { - function x() { - return b('process'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - disabled: I.length === 0, - icon: 'eraser', - content: 'Clear', - onClick: (function () { - function x() { - return b('unqueueall'); - } - return x; - })(), - }), - ], - }), - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: - I.length === 0 - ? (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'The queue is empty.', - }) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - className: 'Exofab__queue--queue', - grow: !0, - overflow: 'auto', - children: I.map(function (x, E) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { - color: x.notEnough && 'bad', - children: [ - E + 1, - '. ', - x.name, - E > 0 && - (0, e.createComponentVNode)( - 2, - m.Button, - { - icon: 'arrow-up', - onClick: (function () { - function P() { - return b('queueswap', { - from: E + 1, - to: E, - }); - } - return P; - })(), - } - ), - E < I.length - 1 && - (0, e.createComponentVNode)( - 2, - m.Button, - { - icon: 'arrow-down', - onClick: (function () { - function P() { - return b('queueswap', { - from: E + 1, - to: E + 2, - }); - } - return P; - })(), - } - ), - (0, e.createComponentVNode)(2, m.Button, { - icon: 'times', - color: 'red', - onClick: (function () { - function P() { - return b('unqueue', { - index: E + 1, - }); - } - return P; - })(), - }), - ], - }, - E - ); - }), - }), - A > 0 && - (0, e.createComponentVNode)(2, m.Stack.Item, { - className: 'Exofab__queue--time', - children: [ - (0, e.createComponentVNode)(2, m.Divider), - 'Processing time:', - (0, e.createComponentVNode)(2, m.Icon, { - name: 'clock', - mx: '0.5rem', - }), - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - bold: !0, - children: new Date((A / 10) * 1e3) - .toISOString() - .substr(14, 5), - }), - ], - }), - Object.keys(T).length > 0 && - (0, e.createComponentVNode)(2, m.Stack.Item, { - className: 'Exofab__queue--deficit', - shrink: '0', - children: [ - (0, e.createComponentVNode)(2, m.Divider), - 'Lacking materials to complete:', - T.map(function (x) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { - children: (0, e.createComponentVNode)( - 2, - d, - { - id: x[0], - amount: -x[1], - lineDisplay: !0, - } - ), - }, - x[0] - ); - }), - ], - }), - ], - 0 - ), - }), - }); - }, - d = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = v.id, - w = v.amount, - T = v.lineDisplay, - A = v.onClick, - x = k(v, S), - E = B.materials[I] || 0, - P = w || E; - if (!(P <= 0 && !(I === 'metal' || I === 'glass'))) { - var D = w && w > E; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - m.Stack, - Object.assign( - { - align: 'center', - className: (0, a.classes)([ - 'Exofab__material', - T && 'Exofab__material--line', - ]), - }, - x, - { - children: T - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - className: (0, a.classes)([ - 'materials32x32', - I, - ]), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - className: 'Exofab__material--amount', - color: D && 'bad', - ml: 0, - mr: 1, - children: P.toLocaleString('en-US'), - }), - ], - 4 - ) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - basis: 'content', - children: (0, e.createComponentVNode)( - 2, - m.Button, - { - width: '85%', - color: 'transparent', - onClick: A, - children: (0, e.createComponentVNode)( - 2, - m.Box, - { - mt: 1, - className: (0, a.classes)([ - 'materials32x32', - I, - ]), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: '1', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - className: 'Exofab__material--name', - children: I, - }), - (0, e.createComponentVNode)(2, m.Box, { - className: 'Exofab__material--amount', - children: [ - P.toLocaleString('en-US'), - ' cm\xB3 (', - Math.round((P / p) * 10) / 10, - ' ', - 'sheets)', - ], - }), - ], - }), - ], - 4 - ), - } - ) - ) - ); - } - }, - C = function (v, h) { - var V = (0, o.useBackend)(h), - b = V.act, - B = V.data, - I = v.design; - return (0, e.createComponentVNode)(2, m.Box, { - className: 'Exofab__design', - children: [ - (0, e.createComponentVNode)(2, m.Button, { - disabled: I.notEnough || B.building, - icon: 'cog', - content: I.name, - onClick: (function () { - function w() { - return b('build', { id: I.id }); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - icon: 'plus-circle', - onClick: (function () { - function w() { - return b('queue', { id: I.id }); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, m.Box, { - className: 'Exofab__design--cost', - children: Object.entries(I.cost).map(function (w) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { - children: (0, e.createComponentVNode)(2, d, { - id: w[0], - amount: w[1], - lineDisplay: !0, - }), - }, - w[0] - ); - }), - }), - (0, e.createComponentVNode)(2, m.Stack, { - className: 'Exofab__design--time', - children: (0, e.createComponentVNode)(2, m.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, m.Icon, { - name: 'clock', - }), - I.time > 0 - ? (0, e.createFragment)( - [I.time / 10, (0, e.createTextVNode)(' seconds')], - 0 - ) - : 'Instant', - ], - }), - }), - ], - }); - }; - }, - 25627: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ExperimentConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = new Map([ - [0, { text: 'Conscious', color: 'good' }], - [1, { text: 'Unconscious', color: 'average' }], - [2, { text: 'Deceased', color: 'bad' }], - ]), - N = new Map([ - [0, { label: 'Probe', icon: 'thermometer' }], - [1, { label: 'Dissect', icon: 'brain' }], - [2, { label: 'Analyze', icon: 'search' }], - ]), - y = (r.ExperimentConsole = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.open, - u = f.feedback, - s = f.occupant, - d = f.occupant_name, - C = f.occupant_status, - g = (function () { - function h() { - if (!s) - return (0, e.createComponentVNode)(2, t.NoticeBox, { - children: 'No specimen detected.', - }); - var V = (function () { - function B() { - return m.get(C); - } - return B; - })(), - b = V(); - return (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Name', - children: d, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - color: b.color, - children: b.text, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Experiments', - children: [0, 1, 2].map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: N.get(B).icon, - content: N.get(B).label, - onClick: (function () { - function I() { - return c('experiment', { - experiment_type: B, - }); - } - return I; - })(), - }, - B - ); - }), - }), - ], - }); - } - return h; - })(), - v = g(); - return (0, e.createComponentVNode)(2, o.Window, { - theme: 'abductor', - 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.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Status', children: u } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Scanner', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: 'Eject', - disabled: !i, - onClick: (function () { - function h() { - return c('door'); - } - return h; - })(), - }), - children: v, - }), - ], - }), - }); - } - return S; - })()); - }, - 14172: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ExternalAirlockController = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = 0, - N = 1013, - y = function (p) { - var l = 'good', - c = 80, - f = 95, - i = 110, - u = 120; - return ( - p < c - ? (l = 'bad') - : p < f || p > i - ? (l = 'average') - : p > u && (l = 'bad'), - l - ); - }, - S = (r.ExternalAirlockController = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.chamber_pressure, - s = i.exterior_status, - d = i.interior_status, - C = i.processing; - return (0, e.createComponentVNode)(2, o.Window, { - width: 330, - height: 205, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Information', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Chamber Pressure', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - color: y(u), - value: u, - minValue: m, - maxValue: N, - children: [u, ' kPa'], - } - ), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Actions', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Abort', - icon: 'ban', - color: 'red', - disabled: !C, - onClick: (function () { - function g() { - return f('abort'); - } - return g; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - width: '49%', - content: 'Cycle to Exterior', - icon: 'arrow-circle-left', - disabled: C, - onClick: (function () { - function g() { - return f('cycle_ext'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: '50%', - content: 'Cycle to Interior', - icon: 'arrow-circle-right', - disabled: C, - onClick: (function () { - function g() { - return f('cycle_int'); - } - return g; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - width: '49%', - content: 'Force Exterior Door', - icon: 'exclamation-triangle', - color: - d === 'open' ? 'red' : C ? 'yellow' : null, - onClick: (function () { - function g() { - return f('force_ext'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: '50%', - content: 'Force Interior Door', - icon: 'exclamation-triangle', - color: - d === 'open' ? 'red' : C ? 'yellow' : null, - onClick: (function () { - function g() { - return f('force_int'); - } - return g; - })(), - }), - ], - }), - ], - }), - ], - }), - }); - } - return k; - })()); - }, - 61893: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.FaxMachine = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.FaxMachine = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - return (0, e.createComponentVNode)(2, o.Window, { - width: 540, - height: 295, - 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: l.scan_name ? 'eject' : 'id-card', - selected: l.scan_name, - content: l.scan_name - ? l.scan_name - : '-----', - tooltip: l.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: l.authenticated - ? 'sign-out-alt' - : 'id-card', - selected: l.authenticated, - disabled: l.nologin, - content: l.realauth - ? '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: l.network } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Document', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: l.paper ? 'eject' : 'paperclip', - disabled: !l.authenticated && !l.paper, - content: l.paper ? l.paper : '-----', - onClick: (function () { - function c() { - return p('paper'); - } - return c; - })(), - }), - !!l.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: l.destination - ? l.destination - : '-----', - disabled: !l.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: l.sendError - ? l.sendError - : 'Send', - disabled: - !l.paper || - !l.destination || - !l.authenticated || - l.sendError, - onClick: (function () { - function c() { - return p('send'); - } - return c; - })(), - } - ), - } - ), - ], - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 80031: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.FilingCabinet = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.FilingCabinet = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = k.config, - f = l.contents, - i = c.title; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 300, - 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, { - fill: !0, - scrollable: !0, - title: 'Contents', - children: [ - !f && - (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: 'folder-open', - size: 5, - color: 'gray', - } - ), - (0, e.createComponentVNode)( - 2, - t.Icon, - { - name: 'slash', - size: 5, - color: 'red', - } - ), - ], - } - ), - (0, e.createVNode)(1, 'br'), - 'The ', - i, - ' is empty.', - ], - } - ), - }), - !!f && - f.slice().map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - mt: 0.5, - className: 'candystripe', - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { width: '80%', children: u.display_name } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'arrow-down', - content: 'Retrieve', - onClick: (function () { - function s() { - return p('retrieve', { - index: u.index, - }); - } - return s; - })(), - } - ), - } - ), - ], - }, - u - ); - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 39552: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.FloorPainter = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = S.image, - i = S.isSelected, - u = S.onSelect; - return (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + f, - style: { - 'border-style': (i && 'solid') || 'none', - 'border-width': '2px', - 'border-color': 'orange', - padding: (i && '2px') || '4px', - }, - onClick: u, - }); - }, - N = (r.FloorPainter = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.availableStyles, - i = c.selectedStyle, - u = c.selectedDir, - s = c.directionsPreview, - d = 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 C() { - return l('cycle_style', { offset: -1 }); - } - return C; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - options: f, - selected: i, - width: '150px', - height: '20px', - ml: '2px', - mr: '2px', - nochevron: !0, - onSelected: (function () { - function C(g) { - return l('select_style', { style: g }); - } - return C; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'chevron-right', - onClick: (function () { - function C() { - return l('cycle_style', { offset: 1 }); - } - return C; - })(), - } - ), - }), - ], - }), - (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 (C) { - return (0, e.createComponentVNode)( - 2, - t.Flex.Item, - { - children: (0, e.createComponentVNode)(2, m, { - image: d[C], - isSelected: i === C, - onSelect: (function () { - function g() { - return l('select_style', { style: C }); - } - return g; - })(), - }), - }, - '{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 (C) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - C + 'west', - C, - C + 'east', - ].map(function (g) { - return (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - style: { - 'vertical-align': 'middle', - 'text-align': 'center', - }, - children: - g === '' - ? (0, - e.createComponentVNode)( - 2, - t.Icon, - { - name: 'arrows-alt', - size: 3, - } - ) - : (0, - e.createComponentVNode)( - 2, - m, - { - image: s[g], - isSelected: g === u, - onSelect: - (function () { - function v() { - return l( - 'select_direction', - { - direction: - g, - } - ); - } - return v; - })(), - } - ), - }, - g - ); - }), - }, - C - ); - } - ), - } - ), - } - ), - }), - ], - }), - }), - }); - } - return y; - })()); - }, - 5090: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GPS = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = function (i) { - return i ? '(' + i.join(', ') + ')' : 'ERROR'; - }, - y = function (i, u) { - if (!(!i || !u)) { - if (i[2] !== u[2]) return null; - var s = Math.atan2(u[1] - i[1], u[0] - i[0]), - d = Math.sqrt( - Math.pow(u[1] - i[1], 2) + Math.pow(u[0] - i[0], 2) - ); - return { angle: (0, a.rad2deg)(s), distance: d }; - } - }, - S = (r.GPS = (function () { - function f(i, u) { - var s = (0, t.useBackend)(u), - d = s.data, - C = d.emped, - g = d.active, - v = d.area, - h = d.position, - V = d.saved; - return (0, e.createComponentVNode)(2, m.Window, { - width: 400, - height: 600, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: C - ? (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - basis: '0', - children: (0, e.createComponentVNode)(2, k, { - emp: !0, - }), - }) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, p), - }), - g - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - l, - { area: v, position: h } - ), - } - ), - V && - (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: (0, - e.createComponentVNode)(2, l, { - title: 'Saved Position', - position: V, - }), - } - ), - (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - grow: !0, - basis: '0', - children: (0, e.createComponentVNode)( - 2, - c, - { height: '100%' } - ), - } - ), - ], - 0 - ) - : (0, e.createComponentVNode)(2, k), - ], - 0 - ), - }), - }), - }); - } - return f; - })()), - k = function (i, u) { - var s = i.emp; - return (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, o.Box, { - width: '100%', - height: '100%', - color: 'label', - 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: s ? 'ban' : 'power-off', - mb: '0.5rem', - size: '5', - }), - (0, e.createVNode)(1, 'br'), - s - ? 'ERROR: Device temporarily lost signal.' - : 'Device is disabled.', - ], - }), - }), - }), - }); - }, - p = function (i, u) { - var s = (0, t.useBackend)(u), - d = s.act, - C = s.data, - g = C.active, - v = C.tag, - h = C.same_z, - V = (0, t.useLocalState)(u, 'newTag', v), - b = V[0], - B = V[1]; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Settings', - buttons: (0, e.createComponentVNode)(2, o.Button, { - selected: g, - icon: g ? 'toggle-on' : 'toggle-off', - content: g ? 'On' : 'Off', - onClick: (function () { - function I() { - return d('toggle'); - } - return I; - })(), - }), - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Tag', - children: [ - (0, e.createComponentVNode)(2, o.Input, { - width: '5rem', - value: v, - onEnter: (function () { - function I() { - return d('tag', { newtag: b }); - } - return I; - })(), - onInput: (function () { - function I(w, T) { - return B(T); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: v === b, - width: '20px', - mb: '0', - ml: '0.25rem', - onClick: (function () { - function I() { - return d('tag', { newtag: b }); - } - return I; - })(), - 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 I() { - return d('same_z'); - } - return I; - })(), - }), - }), - ], - }), - }); - }, - l = function (i, u) { - var s = i.title, - d = i.area, - C = i.position; - return (0, e.createComponentVNode)(2, o.Section, { - title: s || 'Position', - children: (0, e.createComponentVNode)(2, o.Box, { - fontSize: '1.5rem', - children: [ - d && - (0, e.createFragment)( - [d, (0, e.createVNode)(1, 'br')], - 0 - ), - N(C), - ], - }), - }); - }, - c = function (i, u) { - var s = (0, t.useBackend)(u), - d = s.data, - C = d.position, - g = d.signals; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Section, - Object.assign( - { fill: !0, scrollable: !0, title: 'Signals' }, - i, - { - children: (0, e.createComponentVNode)(2, o.Table, { - children: g - .map(function (v) { - return Object.assign({}, v, y(C, v.position)); - }) - .map(function (v, h) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - backgroundColor: - h % 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: v.tag, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - verticalAlign: 'middle', - color: 'grey', - children: v.area, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - verticalAlign: 'middle', - collapsing: !0, - children: - v.distance !== void 0 && - (0, e.createComponentVNode)(2, o.Box, { - opacity: Math.max( - 1 - Math.min(v.distance, 100) / 100, - 0.5 - ), - children: [ - (0, e.createComponentVNode)( - 2, - o.Icon, - { - name: - v.distance > 0 - ? 'arrow-right' - : 'circle', - rotation: -v.angle, - } - ), - '\xA0', - Math.floor(v.distance) + 'm', - ], - }), - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - verticalAlign: 'middle', - pr: '0.25rem', - collapsing: !0, - children: N(v.position), - }), - ], - }, - h - ); - }), - }), - } - ) - ) - ); - }; - }, - 1055: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GeneModder = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(22677), - m = n(84947), - N = (r.GeneModder = (function () { - function i(u, s) { - var d = (0, a.useBackend)(s), - C = d.data, - g = C.has_seed; - return (0, e.createComponentVNode)(2, m.Window, { - width: 500, - height: 650, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, o.ComplexModal, { - maxWidth: '75%', - maxHeight: '75%', - }), - g === 0 - ? (0, e.createComponentVNode)(2, S) - : (0, e.createComponentVNode)(2, y), - ], - }), - }), - }); - } - return i; - })()), - y = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.disk; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Genes', - fill: !0, - scrollable: !0, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Insert Gene from Disk', - disabled: !v || !v.can_insert || v.is_core, - icon: 'arrow-circle-down', - onClick: (function () { - function h() { - return C('insert'); - } - return h; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, p), - (0, e.createComponentVNode)(2, l), - (0, e.createComponentVNode)(2, c), - ], - }); - }, - S = function (u, s) { - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - height: '85%', - children: (0, e.createComponentVNode)(2, t.Stack, { - height: '100%', - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - grow: '1', - textAlign: 'center', - align: 'center', - color: 'green', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'leaf', - size: 5, - mb: '10px', - }), - (0, e.createVNode)(1, 'br'), - 'The plant DNA manipulator is missing a seed.', - ], - }), - }), - }); - }, - k = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.has_seed, - h = g.seed, - V = g.has_disk, - b = g.disk, - B, - I; - return ( - v - ? (B = (0, e.createComponentVNode)(2, t.Stack.Item, { - mb: '-6px', - mt: '-4px', - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + h.image, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '-1px', - 'margin-left': '-11px', - }, - }), - (0, e.createComponentVNode)(2, t.Button, { - content: h.name, - onClick: (function () { - function w() { - return C('eject_seed'); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - ml: '3px', - icon: 'pen', - tooltip: 'Name Variant', - onClick: (function () { - function w() { - return C('variant_name'); - } - return w; - })(), - }), - ], - })) - : (B = (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - ml: 3.3, - content: 'None', - onClick: (function () { - function w() { - return C('eject_seed'); - } - return w; - })(), - }), - })), - V ? (I = b.name) : (I = 'None'), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Storage', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Plant Sample', - children: B, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Data Disk', - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - ml: 3.3, - content: I, - onClick: (function () { - function w() { - return C('eject_disk'); - } - return w; - })(), - }), - }), - }), - ], - }), - }) - ); - }, - p = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.disk, - h = g.core_genes; - return (0, e.createComponentVNode)( - 2, - t.Collapsible, - { - title: 'Core Genes', - open: !0, - children: h.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - py: '2px', - className: 'candystripe', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '100%', - ml: '2px', - children: V.name, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Extract', - disabled: !(v != null && v.can_extract), - icon: 'save', - onClick: (function () { - function b() { - return C('extract', { id: V.id }); - } - return b; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Replace', - disabled: !V.is_type || !v.can_insert, - icon: 'arrow-circle-down', - onClick: (function () { - function b() { - return C('replace', { id: V.id }); - } - return b; - })(), - }), - }), - ], - }, - V - ); - }), - }, - 'Core Genes' - ); - }, - l = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.data, - g = C.reagent_genes, - v = C.has_reagent; - return (0, e.createComponentVNode)(2, f, { - title: 'Reagent Genes', - gene_set: g, - do_we_show: v, - }); - }, - c = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.data, - g = C.trait_genes, - v = C.has_trait; - return (0, e.createComponentVNode)(2, f, { - title: 'Trait Genes', - gene_set: g, - do_we_show: v, - }); - }, - f = function (u, s) { - var d = u.title, - C = u.gene_set, - g = u.do_we_show, - v = (0, a.useBackend)(s), - h = v.act, - V = v.data, - b = V.disk; - return (0, e.createComponentVNode)( - 2, - t.Collapsible, - { - title: d, - open: !0, - children: g - ? C.map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - py: '2px', - className: 'candystripe', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '100%', - ml: '2px', - children: B.name, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Extract', - disabled: !(b != null && b.can_extract), - icon: 'save', - onClick: (function () { - function I() { - return h('extract', { id: B.id }); - } - return I; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Remove', - icon: 'times', - onClick: (function () { - function I() { - return h('remove', { id: B.id }); - } - return I; - })(), - } - ), - }), - ], - }, - B - ); - }) - : (0, e.createComponentVNode)(2, t.Stack.Item, { - children: 'No Genes Detected', - }), - }, - d - ); - }; - }, - 14232: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GenericCrewManifest = void 0); - var e = n(28823), - a = n(2971), - t = n(84947), - o = n(692), - m = (r.GenericCrewManifest = (function () { - function N(y, S) { - return (0, e.createComponentVNode)(2, t.Window, { - theme: 'nologo', - width: 588, - height: 510, - 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 N; - })()); - }, - 86268: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GhostHudPanel = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.GhostHudPanel = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.data, - c = l.security, - f = l.medical, - i = l.diagnostic, - u = l.radioactivity, - s = l.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, N, { - label: 'Medical', - type: 'medical', - is_active: f, - }), - (0, e.createComponentVNode)(2, N, { - label: 'Security', - type: 'security', - is_active: c, - }), - (0, e.createComponentVNode)(2, N, { - label: 'Diagnostic', - type: 'diagnostic', - is_active: i, - }), - (0, e.createComponentVNode)(2, t.Divider), - (0, e.createComponentVNode)(2, N, { - label: 'Radioactivity', - type: 'radioactivity', - is_active: u, - act_on: 'rads_on', - act_off: 'rads_off', - }), - (0, e.createComponentVNode)(2, t.Divider), - (0, e.createComponentVNode)(2, N, { - label: 'Antag HUD', - is_active: s, - act_on: 'ahud_on', - act_off: 'ahud_off', - }), - ], - }), - }), - }); - } - return y; - })()), - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = S.label, - f = S.type, - i = f === void 0 ? null : f, - u = S.is_active, - s = S.act_on, - d = s === void 0 ? 'hud_on' : s, - C = S.act_off, - g = C === void 0 ? 'hud_off' : C; - return (0, e.createComponentVNode)(2, t.Flex, { - pt: 0.3, - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Flex.Item, { - pl: 0.5, - align: 'center', - width: '80%', - children: c, - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - mr: 0.6, - content: u ? 'On' : 'Off', - icon: u ? 'toggle-on' : 'toggle-off', - selected: u, - onClick: (function () { - function v() { - return l(u ? g : d, { hud_type: i }); - } - return v; - })(), - }), - }), - ], - }); - }; - }, - 8977: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GlandDispenser = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.GlandDispenser = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.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 (i) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - width: '60px', - height: '60px', - m: 0.75, - textAlign: 'center', - fontSize: '17px', - lineHeight: '55px', - icon: 'eject', - backgroundColor: i.color, - content: i.amount || '0', - disabled: !i.amount, - onClick: (function () { - function u() { - return p('dispense', { gland_id: i.id }); - } - return u; - })(), - }, - i.id - ); - }), - }), - }), - }); - } - return N; - })()); - }, - 70309: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GravityGen = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.GravityGen = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.charging_state, - f = l.charge_count, - i = l.breaker, - u = l.ext_power, - s = (function () { - function C(g) { - return g > 0 - ? (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: 'average', - children: [ - '[ ', - g === 1 ? 'Charging' : 'Discharging', - ' ]', - ], - }) - : (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: u ? 'good' : 'bad', - children: ['[ ', u ? 'Powered' : 'Unpowered', ' ]'], - }); - } - return C; - })(), - d = (function () { - function C(g) { - if (g > 0) - return (0, e.createComponentVNode)(2, t.NoticeBox, { - danger: !0, - p: 1.5, - children: [ - (0, e.createVNode)(1, 'b', null, 'WARNING:', 16), - ' Radiation Detected!', - ], - }); - } - return C; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 170, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - d(c), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Generator Status', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: i ? 'power-off' : 'times', - content: i ? 'Online' : 'Offline', - color: i ? 'green' : 'red', - px: 1.5, - onClick: (function () { - function C() { - return p('breaker'); - } - return C; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Power Status', - color: u ? 'good' : 'bad', - children: s(c), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Gravity Charge', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: f / 100, - ranges: { - good: [0.9, 1 / 0], - average: [0.5, 0.9], - bad: [-1 / 0, 0.5], - }, - } - ), - } - ), - ], - } - ), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 64769: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.GuestPass = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(14635), - N = (r.GuestPass = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 690, - 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.Tabs, { - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'id-card', - selected: !c.showlogs, - onClick: (function () { - function f() { - return l('mode', { mode: 0 }); - } - return f; - })(), - children: 'Issue Pass', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'scroll', - selected: c.showlogs, - onClick: (function () { - function f() { - return l('mode', { mode: 1 }); - } - return f; - })(), - children: [ - 'Records (', - c.issue_log.length, - ')', - ], - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - 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: c.scan_name ? 'eject' : 'id-card', - selected: c.scan_name, - content: c.scan_name - ? c.scan_name - : '-----', - tooltip: c.scan_name - ? 'Eject ID' - : 'Insert ID', - onClick: (function () { - function f() { - return l('scan'); - } - return f; - })(), - } - ), - } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: - !c.showlogs && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Issue Guest Pass', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Issue To', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: c.giv_name - ? c.giv_name - : '-----', - disabled: !c.scan_name, - onClick: (function () { - function f() { - return l('giv_name'); - } - return f; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Reason', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: c.reason - ? c.reason - : '-----', - disabled: !c.scan_name, - onClick: (function () { - function f() { - return l('reason'); - } - return f; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Duration', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pencil-alt', - content: c.duration - ? c.duration - : '-----', - disabled: !c.scan_name, - onClick: (function () { - function f() { - return l('duration'); - } - return f; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - !c.showlogs && - (c.scan_name - ? (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - m.AccessList, - { - sectionButtons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'id-card', - content: c.printmsg, - disabled: !c.canprint, - onClick: (function () { - function f() { - return l('issue'); - } - return f; - })(), - } - ), - grantableList: c.grantableList, - accesses: c.regions, - selectedList: c.selectedAccess, - accessMod: (function () { - function f(i) { - return l('access', { access: i }); - } - return f; - })(), - grantAll: (function () { - function f() { - return l('grant_all'); - } - return f; - })(), - denyAll: (function () { - function f() { - return l('clear_all'); - } - return f; - })(), - grantDep: (function () { - function f(i) { - return l('grant_region', { region: i }); - } - return f; - })(), - denyDep: (function () { - function f(i) { - return l('deny_region', { region: i }); - } - return f; - })(), - } - ), - }) - : (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (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, - { - bold: !0, - grow: !0, - fontSize: 1.5, - textAlign: 'center', - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)( - 2, - t.Icon, - { - name: 'id-card', - size: 5, - color: 'gray', - mb: 5, - } - ), - (0, e.createVNode)(1, 'br'), - 'Please, insert ID Card', - ], - } - ), - } - ), - } - ), - })), - !!c.showlogs && - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - m: 0, - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - fill: !0, - scrollable: !0, - title: 'Issuance Log', - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'print', - content: 'Print', - disabled: !c.scan_name, - onClick: (function () { - function f() { - return l('print'); - } - return f; - })(), - } - ), - children: - (!!c.issue_log.length && - (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: c.issue_log.map( - function (f, i) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { children: f }, - i - ); - } - ), - } - )) || - (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - bold: !0, - grow: !0, - fontSize: 1.5, - textAlign: 'center', - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)( - 2, - t.Icon.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Icon, - { - name: 'scroll', - size: 5, - color: 'gray', - } - ), - (0, e.createComponentVNode)( - 2, - t.Icon, - { - name: 'slash', - size: 5, - color: 'red', - } - ), - ], - } - ), - (0, e.createVNode)(1, 'br'), - 'No logs', - ], - } - ), - }), - } - ), - }), - ], - }), - }), - }); - } - return y; - })()); - }, - 12219: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.HandheldChemDispenser = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = [1, 5, 10, 20, 30, 50], - N = null, - y = (r.HandheldChemDispenser = (function () { - function p(l, c) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 390, - height: 430, - 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), - (0, e.createComponentVNode)(2, k), - ], - }), - }), - }); - } - return p; - })()), - S = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.amount, - d = u.energy, - C = u.maxEnergy, - g = u.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: d, - minValue: 0, - maxValue: C, - ranges: { - good: [C * 0.5, 1 / 0], - average: [C * 0.25, C * 0.5], - bad: [-1 / 0, C * 0.25], - }, - children: [d, ' / ', C, ' Units'], - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Amount', - verticalAlign: 'middle', - children: (0, e.createComponentVNode)(2, t.Stack, { - children: m.map(function (v, h) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '15%', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - icon: 'cog', - selected: s === v, - content: v, - onClick: (function () { - function V() { - return i('amount', { amount: v }); - } - return V; - })(), - } - ), - }, - 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: g === 'dispense', - content: 'Dispense', - m: '0', - width: '32%', - onClick: (function () { - function v() { - return i('mode', { mode: 'dispense' }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'cog', - selected: g === 'remove', - content: 'Remove', - m: '0', - width: '32%', - onClick: (function () { - function v() { - return i('mode', { mode: 'remove' }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'cog', - selected: g === 'isolate', - content: 'Isolate', - m: '0', - width: '32%', - onClick: (function () { - function v() { - return i('mode', { mode: 'isolate' }); - } - return v; - })(), - }), - ], - }), - }), - ], - }), - }), - }); - }, - k = function (l, c) { - for ( - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.chemicals, - d = s === void 0 ? [] : s, - C = u.current_reagent, - g = [], - v = 0; - v < (d.length + 1) % 3; - v++ - ) - g.push(!0); - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - height: '18%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: u.glass ? 'Drink Selector' : 'Chemical Selector', - children: [ - d.map(function (h, V) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - width: '32%', - icon: 'arrow-circle-down', - overflow: 'hidden', - textOverflow: 'ellipsis', - selected: C === h.id, - content: h.title, - style: { 'margin-left': '2px' }, - onClick: (function () { - function b() { - return i('dispense', { reagent: h.id }); - } - return b; - })(), - }, - V - ); - }), - g.map(function (h, V) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { grow: '1', basis: '25%' }, - V - ); - }), - ], - }), - }); - }; - }, - 53917: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.HealthSensor = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.HealthSensor = (function () { - function S(k, p) { - var l = (0, t.useBackend)(p), - c = l.act, - f = l.data, - i = f.on, - u = f.user_health, - s = f.minHealth, - d = f.maxHealth, - C = f.alarm_health; - return (0, e.createComponentVNode)(2, m.Window, { - width: 300, - height: 125, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Section, { - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Scanning', - children: (0, e.createComponentVNode)(2, o.Button, { - icon: 'power-off', - content: i ? 'On' : 'Off', - color: i ? null : 'red', - selected: i, - onClick: (function () { - function g() { - return c('scan_toggle'); - } - return g; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Health activation', - children: (0, e.createComponentVNode)( - 2, - o.NumberInput, - { - animate: !0, - step: 2, - stepPixelSize: 6, - minValue: s, - maxValue: d, - value: C, - format: (function () { - function g(v) { - return (0, a.toFixed)(v, 1); - } - return g; - })(), - width: '80px', - onDrag: (function () { - function g(v, h) { - return c('alarm_health', { - alarm_health: h, - }); - } - return g; - })(), - } - ), - }), - u !== null && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'User health', - children: (0, e.createComponentVNode)(2, o.Box, { - color: y(u), - bold: u >= 100, - children: (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { value: u } - ), - }), - }), - ], - }), - }), - }), - }); - } - return S; - })()), - y = function (k) { - return k > 50 ? 'green' : k > 0 ? 'orange' : 'red'; - }; - }, - 93116: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Holodeck = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Holodeck = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = (0, a.useLocalState)(k, 'currentDeck', ''), - i = f[0], - u = f[1], - s = (0, a.useLocalState)(k, 'showReload', !1), - d = s[0], - C = s[1], - g = c.decks, - v = c.ai_override, - h = c.emagged, - V = (function () { - function b(B) { - l('select_deck', { deck: B }), - u(B), - C(!0), - setTimeout(function () { - C(!1); - }, 3e3); - } - return b; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 320, - children: [ - d && (0, e.createComponentVNode)(2, N), - (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: 'Holodeck Control System', - children: (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - (0, e.createVNode)( - 1, - 'b', - null, - 'Currently Loaded Program:', - 16 - ), - ' ', - i, - ], - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - title: 'Available Programs', - children: [ - g.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - width: 15.5, - color: 'transparent', - content: b, - selected: b === i, - onClick: (function () { - function B() { - return V(b); - } - return B; - })(), - }, - b - ); - }), - (0, e.createVNode)(1, 'hr', null, null, 1, { - color: 'gray', - }), - (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - !!v && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Override Protocols', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - content: h - ? 'Turn On' - : 'Turn Off', - color: h ? 'good' : 'bad', - onClick: (function () { - function b() { - return l('ai_override'); - } - return b; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Safety Protocols', - children: (0, - e.createComponentVNode)(2, t.Box, { - color: h ? 'bad' : 'good', - children: [ - h ? 'Off' : 'On', - !!h && - (0, e.createComponentVNode)( - 2, - t.Button, - { - ml: 9.5, - width: 15.5, - color: 'red', - content: - 'Wildlife Simulation', - onClick: (function () { - function b() { - return l( - 'wildlifecarp' - ); - } - return b; - })(), - } - ), - ], - }), - } - ), - ], - } - ), - ], - } - ), - }), - ], - }), - }), - ], - }); - } - return y; - })()), - N = function (S, k) { - 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.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Box, { - color: 'white', - children: (0, e.createVNode)( - 1, - 'h1', - null, - '\xA0Recalibrating projection apparatus.\xA0', - 16 - ), - }), - (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - children: (0, e.createVNode)( - 1, - 'h3', - null, - 'Please, wait for 3 seconds.', - 16 - ), - }), - ], - }); - }; - }, - 77209: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Instrument = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.Instrument = (function () { - function l(c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data; - return (0, e.createComponentVNode)(2, m.Window, { - width: 600, - height: 505, - children: [ - (0, e.createComponentVNode)(2, y), - (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, p), - ], - }), - }), - ], - }); - } - return l; - })()), - y = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.help; - if (d) - return (0, e.createComponentVNode)(2, o.Modal, { - maxWidth: '75%', - height: window.innerHeight * 0.75 + 'px', - mx: 'auto', - py: '0', - px: '0.5rem', - children: (0, e.createComponentVNode)(2, o.Section, { - height: '100%', - title: 'Help', - level: '2', - overflow: 'auto', - children: (0, e.createComponentVNode)(2, o.Box, { - px: '0.5rem', - mt: '-0.5rem', - children: [ - (0, e.createVNode)(1, 'h1', null, 'Making a Song', 16), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Lines are a series of chords, separated by commas\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: '(,)', - }), - (0, e.createTextVNode)( - ', each with notes separated by hyphens\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: '(-)', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Every note in a chord will play together, with the chord timed by the\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'tempo', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('as defined above.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Notes are played by the\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'names of the note', - }), - (0, e.createTextVNode)(', and optionally, the\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'accidental', - }), - (0, e.createTextVNode)(', and/or the'), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave number', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'By default, every note is\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'natural', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('and in\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave 3', - }), - (0, e.createTextVNode)( - '. Defining a different state for either is remembered for each' - ), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'note', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)( - 1, - 'ul', - null, - [ - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'Example:', - }), - (0, e.createTextVNode)('\xA0'), - (0, e.createVNode)( - 1, - 'i', - null, - 'C,D,E,F,G,A,B', - 16 - ), - (0, e.createTextVNode)(' will play a\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'C', - }), - (0, e.createTextVNode)('\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'major', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('scale.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createTextVNode)( - 'After a note has an\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'accidental', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('or\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)( - 'placed, it will be remembered:\xA0' - ), - (0, e.createVNode)( - 1, - 'i', - null, - 'C,C4,C#,C3', - 16 - ), - (0, e.createTextVNode)(' is '), - (0, e.createVNode)( - 1, - 'i', - null, - 'C3,C4,C4#,C3#', - 16 - ), - ], - 0 - ), - ], - 4 - ), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'Chords', - }), - (0, e.createTextVNode)( - '\xA0can be played simply by seperating each note with a hyphen:' - ), - (0, e.createTextVNode)(' '), - (0, e.createVNode)( - 1, - 'i', - null, - 'A-C#,Cn-E,E-G#,Gn-B', - 16 - ), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)('A'), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'pause', - }), - (0, e.createTextVNode)( - '\xA0may be denoted by an empty chord: ' - ), - (0, e.createVNode)(1, 'i', null, 'C,E,,C,G', 16), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'tempo / x', - }), - (0, e.createTextVNode)(',\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'eg:', - }), - (0, e.createTextVNode)(' '), - (0, e.createVNode)(1, 'i', null, 'C,G/2,E/4', 16), - (0, e.createTextVNode)('.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Combined, an example line is: ' - ), - (0, e.createVNode)( - 1, - 'i', - null, - 'E-E4/4,F#/2,G#/8,B/8,E3-E4/4', - 16 - ), - (0, e.createTextVNode)('.'), - (0, e.createVNode)( - 1, - 'ul', - null, - [ - (0, e.createVNode)( - 1, - 'li', - null, - 'Lines may be up to 300 characters.', - 16 - ), - (0, e.createVNode)( - 1, - 'li', - null, - 'A song may only contain up to 1,000 lines.', - 16 - ), - ], - 4 - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Lines are a series of chords, separated by commas\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: '(,)', - }), - (0, e.createTextVNode)( - ', each with notes separated by hyphens\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: '(-)', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Every note in a chord will play together, with the chord timed by the\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'tempo', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('as defined above.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Notes are played by the\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'names of the note', - }), - (0, e.createTextVNode)(', and optionally, the\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'accidental', - }), - (0, e.createTextVNode)(', and/or the'), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave number', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'By default, every note is\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'natural', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('and in\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave 3', - }), - (0, e.createTextVNode)( - '. Defining a different state for either is remembered for each' - ), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'note', - }), - (0, e.createTextVNode)('.'), - (0, e.createVNode)( - 1, - 'ul', - null, - [ - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'Example:', - }), - (0, e.createTextVNode)('\xA0'), - (0, e.createVNode)( - 1, - 'i', - null, - 'C,D,E,F,G,A,B', - 16 - ), - (0, e.createTextVNode)(' will play a\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'good', - children: 'C', - }), - (0, e.createTextVNode)('\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'major', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('scale.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createTextVNode)( - 'After a note has an\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'average', - children: 'accidental', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('or\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'bad', - children: 'octave', - }), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)( - 'placed, it will be remembered:\xA0' - ), - (0, e.createVNode)( - 1, - 'i', - null, - 'C,C4,C#,C3', - 16 - ), - (0, e.createTextVNode)(' is '), - (0, e.createVNode)( - 1, - 'i', - null, - 'C3,C4,C4#,C3#', - 16 - ), - ], - 0 - ), - ], - 4 - ), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'Chords', - }), - (0, e.createTextVNode)( - '\xA0can be played simply by seperating each note with a hyphen:' - ), - (0, e.createTextVNode)(' '), - (0, e.createVNode)( - 1, - 'i', - null, - 'A-C#,Cn-E,E-G#,Gn-B', - 16 - ), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)('A'), - (0, e.createTextVNode)(' '), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'pause', - }), - (0, e.createTextVNode)( - '\xA0may be denoted by an empty chord: ' - ), - (0, e.createVNode)(1, 'i', null, 'C,E,,C,G', 16), - (0, e.createTextVNode)('.'), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0' - ), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'tempo / x', - }), - (0, e.createTextVNode)(',\xA0'), - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'highlight', - children: 'eg:', - }), - (0, e.createTextVNode)(' '), - (0, e.createVNode)(1, 'i', null, 'C,G/2,E/4', 16), - (0, e.createTextVNode)('.'), - ], - 0 - ), - (0, e.createVNode)( - 1, - 'p', - null, - [ - (0, e.createTextVNode)( - 'Combined, an example line is: ' - ), - (0, e.createVNode)( - 1, - 'i', - null, - 'E-E4/4,F#/2,G#/8,B/8,E3-E4/4', - 16 - ), - (0, e.createTextVNode)('.'), - (0, e.createVNode)( - 1, - 'ul', - null, - [ - (0, e.createVNode)( - 1, - 'li', - null, - 'Lines may be up to 300 characters.', - 16 - ), - (0, e.createVNode)( - 1, - 'li', - null, - 'A song may only contain up to 1,000 lines.', - 16 - ), - ], - 4 - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'h1', - null, - 'Instrument Advanced Settings', - 16 - ), - (0, e.createVNode)( - 1, - 'ul', - null, - [ - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: 'Type:', - }), - (0, e.createTextVNode)( - '\xA0Whether the instrument is legacy or synthesized.' - ), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Legacy instruments have a collection of sounds that are selectively used depending on the note to play.' - ), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Synthesized instruments use a base sound and change its pitch to match the note to play.' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: 'Current:', - }), - (0, e.createTextVNode)( - '\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: 'Note Shift/Note Transpose:', - }), - (0, e.createTextVNode)( - '\xA0The pitch to apply to all notes of the song.' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: 'Sustain Mode:', - }), - (0, e.createTextVNode)( - '\xA0How a played note fades out.' - ), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Linear sustain means a note will fade out at a constant rate.' - ), - (0, e.createVNode)(1, 'br'), - (0, e.createTextVNode)( - 'Exponential sustain means a note will fade out at an exponential rate, sounding smoother.' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: 'Volume Dropoff Threshold:', - }), - (0, e.createTextVNode)( - '\xA0The volume threshold at which a note is fully stopped.' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'li', - null, - [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'span', - color: 'label', - children: - 'Sustain indefinitely last held note:', - }), - (0, e.createTextVNode)( - '\xA0Whether the last note should be sustained indefinitely.' - ), - ], - 4 - ), - ], - 4 - ), - (0, e.createComponentVNode)(2, o.Button, { - color: 'grey', - content: 'Close', - onClick: (function () { - function C() { - return u('help'); - } - return C; - })(), - }), - ], - }), - }), - }); - }, - S = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.lines, - C = s.playing, - g = s.repeat, - v = s.maxRepeats, - h = s.tempo, - V = s.minTempo, - b = s.maxTempo, - B = s.tickLag, - I = s.volume, - w = s.minVolume, - T = s.maxVolume, - A = s.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 x() { - return u('help'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'file', - content: 'New', - onClick: (function () { - function x() { - return u('newsong'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'upload', - content: 'Import', - onClick: (function () { - function x() { - return u('import'); - } - return x; - })(), - }), - ], - 4 - ), - children: [ - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Playback', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - selected: C, - disabled: d.length === 0 || g < 0, - icon: 'play', - content: 'Play', - onClick: (function () { - function x() { - return u('play'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: !C, - icon: 'stop', - content: 'Stop', - onClick: (function () { - function x() { - return u('stop'); - } - return x; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Repeat', - children: (0, e.createComponentVNode)(2, o.Slider, { - animated: !0, - minValue: 0, - maxValue: v, - value: g, - stepPixelSize: 59, - onChange: (function () { - function x(E, P) { - return u('repeat', { new: P }); - } - return x; - })(), - }), - }), - (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 >= b, - content: '-', - as: 'span', - mr: '0.5rem', - onClick: (function () { - function x() { - return u('tempo', { new: h + B }); - } - return x; - })(), - }), - (0, a.round)(600 / h), - ' BPM', - (0, e.createComponentVNode)(2, o.Button, { - disabled: h <= V, - content: '+', - as: 'span', - ml: '0.5rem', - onClick: (function () { - function x() { - return u('tempo', { new: h - B }); - } - return x; - })(), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Volume', - children: (0, e.createComponentVNode)(2, o.Slider, { - animated: !0, - minValue: w, - maxValue: T, - value: I, - stepPixelSize: 6, - onDrag: (function () { - function x(E, P) { - return u('setvolume', { new: P }); - } - return x; - })(), - }), - }), - (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, k), - ], - }); - }, - k = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.allowedInstrumentNames, - C = s.instrumentLoaded, - g = s.instrument, - v = s.canNoteShift, - h = s.noteShift, - V = s.noteShiftMin, - b = s.noteShiftMax, - B = s.sustainMode, - I = s.sustainLinearDuration, - w = s.sustainExponentialDropoff, - T = s.legacy, - A = s.sustainDropoffVolume, - x = s.sustainHeldNote, - E, - P; - return ( - B === 1 - ? ((E = 'Linear'), - (P = (0, e.createComponentVNode)(2, o.Slider, { - minValue: 0.1, - maxValue: 5, - value: I, - step: 0.5, - stepPixelSize: 85, - format: (function () { - function D(M) { - return (0, a.round)(M * 100) / 100 + ' seconds'; - } - return D; - })(), - onChange: (function () { - function D(M, O) { - return u('setlinearfalloff', { new: O / 10 }); - } - return D; - })(), - }))) - : B === 2 && - ((E = 'Exponential'), - (P = (0, e.createComponentVNode)(2, o.Slider, { - minValue: 1.025, - maxValue: 10, - value: w, - step: 0.01, - format: (function () { - function D(M) { - return ( - (0, a.round)(M * 1e3) / 1e3 + '% per decisecond' - ); - } - return D; - })(), - onChange: (function () { - function D(M, O) { - return u('setexpfalloff', { new: O }); - } - return D; - })(), - }))), - d.sort(), - (0, e.createComponentVNode)(2, o.Box, { - my: -1, - children: (0, e.createComponentVNode)(2, o.Collapsible, { - mt: '1rem', - mb: '0', - title: 'Advanced', - children: (0, e.createComponentVNode)(2, o.Section, { - mt: -1, - children: [ - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Type', - children: T ? 'Legacy' : 'Synthesized', - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Current', - children: C - ? (0, e.createComponentVNode)(2, o.Dropdown, { - options: d, - selected: g, - width: '50%', - onSelected: (function () { - function D(M) { - return u('switchinstrument', { - name: M, - }); - } - return D; - })(), - }) - : (0, e.createComponentVNode)(2, o.Box, { - color: 'bad', - children: 'None!', - }), - }), - !!(!T && v) && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Note Shift/Note Transpose', - children: (0, e.createComponentVNode)( - 2, - o.Slider, - { - minValue: V, - maxValue: b, - value: h, - stepPixelSize: 2, - format: (function () { - function D(M) { - return ( - M + - ' keys / ' + - (0, a.round)((M / 12) * 100) / - 100 + - ' octaves' - ); - } - return D; - })(), - onChange: (function () { - function D(M, O) { - return u('setnoteshift', { - new: O, - }); - } - return D; - })(), - } - ), - } - ), - (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 D(M) { - return u('setsustainmode', { - new: M, - }); - } - return D; - })(), - } - ), - P, - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Volume Dropoff Threshold', - children: (0, e.createComponentVNode)( - 2, - o.Slider, - { - animated: !0, - minValue: 0.01, - maxValue: 100, - value: A, - stepPixelSize: 6, - onChange: (function () { - function D(M, O) { - return u('setdropoffvolume', { - new: O, - }); - } - return D; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: - 'Sustain indefinitely last held note', - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - selected: x, - icon: x ? 'toggle-on' : 'toggle-off', - content: x ? 'Yes' : 'No', - onClick: (function () { - function D() { - return u('togglesustainhold'); - } - return D; - })(), - } - ), - } - ), - ], - 4 - ), - ], - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'redo', - content: 'Reset to Default', - mt: '0.5rem', - onClick: (function () { - function D() { - return u('reset'); - } - return D; - })(), - }), - ], - }), - }), - }) - ); - }, - p = function (c, f) { - var i = (0, t.useBackend)(f), - u = i.act, - s = i.data, - d = s.playing, - C = s.lines, - g = s.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: !g || d, - icon: 'plus', - content: 'Add Line', - onClick: (function () { - function v() { - return u('newline', { line: C.length + 1 }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - selected: !g, - icon: g ? 'chevron-up' : 'chevron-down', - onClick: (function () { - function v() { - return u('edit'); - } - return v; - })(), - }), - ], - 4 - ), - children: - !!g && - (C.length > 0 - ? (0, e.createComponentVNode)(2, o.LabeledList, { - children: C.map(function (v, h) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: h + 1, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - disabled: d, - icon: 'pen', - onClick: (function () { - function V() { - return u('modifyline', { line: h + 1 }); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: d, - icon: 'trash', - onClick: (function () { - function V() { - return u('deleteline', { line: h + 1 }); - } - return V; - })(), - }), - ], - 4 - ), - children: v, - }, - h - ); - }), - }) - : (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'Song is empty.', - })), - }); - }; - }, - 28847: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Jukebox = void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(91819), - m = n(2971), - N = n(84947), - y = (r.Jukebox = (function () { - function p(l, c) { - var f = (0, o.useBackend)(c), - i = f.act, - u = f.data, - s = u.active, - d = u.looping, - C = u.track_selected, - g = u.volume, - v = u.max_volume, - h = u.songs, - V = u.startTime, - b = u.endTime, - B = u.worldTime, - I = u.need_coin, - w = u.payment, - T = u.advanced_admin, - A = 35, - x = !w && I && !T, - E = (0, t.flow)([ - (0, a.sortBy)(function (F) { - return F.name; - }), - ])(h), - P = h.find(function (F) { - return F.name === C; - }), - D = E.length, - M = P - ? E.findIndex(function (F) { - return F.name === P.name; - }) + 1 - : 0, - O = (function () { - function F(U) { - var _ = Math.floor(U / 60), - z = U % 60, - H = - String(_).padStart(2, '0') + - ':' + - String(z).padStart(2, '0'); - return H; - } - return F; - })(), - j = (0, e.createComponentVNode)(2, m.Box, { - textAlign: 'center', - children: [ - s - ? d - ? '\u221E' - : O(Math.round((B - V) / 10)) - : d - ? '\u221E' - : O(P.length), - ' ', - '/ ', - d ? '\u221E' : O(P.length), - ], - }); - return (0, e.createComponentVNode)(2, N.Window, { - width: 350, - height: 435, - title: - '\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442', - children: [ - x ? (0, e.createComponentVNode)(2, k) : null, - (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack, { - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - m.Section, - { - fill: !0, - title: - '\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C', - children: (0, e.createComponentVNode)( - 2, - m.Stack, - { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - bold: !0, - maxWidth: '240px', - children: - P.name.length > A - ? (0, e.createVNode)( - 1, - 'marquee', - null, - P.name, - 0 - ) - : P.name, - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack, - { - fill: !0, - mt: 1.5, - children: [ - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - basis: '0', - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - fluid: !0, - icon: s - ? 'pause' - : 'play', - color: 'transparent', - content: s - ? '\u0421\u0442\u043E\u043F' - : '\u0421\u0442\u0430\u0440\u0442', - selected: s, - onClick: (function () { - function F() { - return i('toggle'); - } - return F; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - basis: '0', - children: (0, - e.createComponentVNode)( - 2, - m.Button.Checkbox, - { - fluid: !0, - icon: 'undo', - content: - '\u041F\u043E\u0432\u0442\u043E\u0440', - disabled: - s || (I && !T), - tooltip: - I && !T - ? '\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443' - : null, - checked: d, - onClick: (function () { - function F() { - return i('loop', { - looping: !d, - }); - } - return F; - })(), - } - ), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - m.ProgressBar.Countdown, - { - start: V, - current: d ? b : B, - end: b, - children: j, - } - ), - } - ), - ], - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - m.Section, - { - children: [ - s - ? (0, e.createComponentVNode)(2, S) - : null, - (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - mb: 1.5, - children: [ - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - m: 0, - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - color: 'transparent', - icon: 'fast-backward', - onClick: (function () { - function F() { - return i('set_volume', { - volume: 'min', - }); - } - return F; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - m: 0, - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - color: 'transparent', - icon: 'undo', - onClick: (function () { - function F() { - return i('set_volume', { - volume: 'reset', - }); - } - return F; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - grow: !0, - m: 0, - textAlign: 'right', - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - color: 'transparent', - icon: 'fast-forward', - onClick: (function () { - function F() { - return i('set_volume', { - volume: 'max', - }); - } - return F; - })(), - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - textAlign: 'center', - textColor: 'label', - children: [ - (0, e.createComponentVNode)( - 2, - m.Knob, - { - size: 2, - color: - g <= 25 - ? 'green' - : g <= 50 - ? '' - : g <= 75 - ? 'orange' - : 'red', - value: g, - unit: '%', - minValue: 0, - maxValue: v, - step: 1, - stepPixelSize: 5, - onDrag: (function () { - function F(U, _) { - return i('set_volume', { - volume: _, - }); - } - return F; - })(), - } - ), - 'Volume', - ], - } - ), - ], - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - m.Section, - { - fill: !0, - scrollable: !0, - title: - '\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438', - buttons: (0, e.createComponentVNode)( - 2, - m.Button, - { - bold: !0, - icon: 'random', - color: 'transparent', - content: M + '/' + D, - tooltip: - '\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A', - tooltipPosition: 'top-end', - onClick: (function () { - function F() { - var U = Math.floor(Math.random() * D), - _ = E[U]; - i('select_track', { track: _.name }); - } - return F; - })(), - } - ), - children: E.map(function (F) { - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - mb: 0.5, - textAlign: 'left', - children: (0, e.createComponentVNode)( - 2, - m.Button, - { - fluid: !0, - selected: P.name === F.name, - color: 'translucent', - content: (0, e.createComponentVNode)( - 2, - m.Stack, - { - fill: !0, - children: [ - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { grow: !0, children: F.name } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { children: O(F.length) } - ), - ], - } - ), - onClick: (function () { - function U() { - i('select_track', { - track: F.name, - }); - } - return U; - })(), - } - ), - }, - F.name - ); - }), - } - ), - }), - ], - }), - }), - ], - }); - } - return p; - })()), - S = function () { - return (0, e.createComponentVNode)(2, m.Dimmer, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, m.Icon, { - name: 'music', - size: '3', - color: 'gray', - mb: 1, - }), - (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - bold: !0, - children: - '\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430', - }), - ], - }); - }, - k = function () { - return (0, e.createComponentVNode)(2, m.Dimmer, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, m.Icon, { - name: 'coins', - size: '6', - color: 'gold', - mr: 1, - }), - (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - bold: !0, - mt: 5, - fontSize: 2, - children: - '\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443', - }), - ], - }); - }; - }, - 64261: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.KeycardAuth = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.KeycardAuth = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.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 (!l.swiping && !l.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: !l.redAvailable, - onClick: (function () { - function i() { - return p('triggerevent', { - triggerevent: 'Red Alert', - }); - } - return i; - })(), - 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 i() { - return p('triggerevent', { - triggerevent: - 'Emergency Response Team', - }); - } - return i; - })(), - 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 i() { - return p('triggerevent', { - triggerevent: - 'Grant Emergency Maintenance Access', - }); - } - return i; - })(), - content: 'Grant', - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'door-closed', - onClick: (function () { - function i() { - return p('triggerevent', { - triggerevent: - 'Revoke Emergency Maintenance Access', - }); - } - return i; - })(), - 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 i() { - return p('triggerevent', { - triggerevent: - 'Activate Station-Wide Emergency Access', - }); - } - return i; - })(), - content: 'Grant', - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'door-closed', - onClick: (function () { - function i() { - return p('triggerevent', { - triggerevent: - 'Deactivate Station-Wide Emergency Access', - }); - } - return i; - })(), - content: 'Revoke', - }), - ], - } - ), - ], - } - ), - }), - ], - }), - }); - var f = (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Waiting for YOU to swipe your ID...', - }); - return ( - !l.hasSwiped && - !l.ertreason && - l.event === 'Emergency Response Team' - ? (f = (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Fill out the reason for your ERT request.', - })) - : l.hasConfirm - ? (f = (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: 'Request Confirmed!', - })) - : l.isRemote - ? (f = (0, e.createComponentVNode)(2, t.Box, { - color: 'orange', - children: - 'Swipe your card to CONFIRM the remote request.', - })) - : l.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, - l.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: l.ertreason ? '' : 'red', - icon: l.ertreason ? 'check' : 'pencil-alt', - content: l.ertreason ? l.ertreason : '-----', - disabled: l.busy, - onClick: (function () { - function i() { - return p('ert'); - } - return i; - })(), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: l.event, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-circle-left', - content: 'Back', - disabled: l.busy || l.hasConfirm, - onClick: (function () { - function i() { - return p('reset'); - } - return i; - })(), - }), - children: f, - }), - ], - }), - }) - ); - } - return N; - })()); - }, - 34898: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.KitchenMachine = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(48154), - N = (r.KitchenMachine = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.data, - f = l.config, - i = c.ingredients, - u = c.operating, - s = f.title; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 320, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Operating, { - operating: u, - name: s, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, y), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Ingredients', - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Ingredient__Table', - children: i.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - tr: 5, - children: [ - (0, e.createVNode)( - 1, - 'td', - null, - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { bold: !0, children: d.name } - ), - 2 - ), - (0, e.createVNode)( - 1, - 'td', - null, - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - collapsing: !0, - textAlign: 'center', - children: [d.amount, ' ', d.units], - } - ), - 2 - ), - ], - }, - d.name - ); - }), - }), - }), - }), - ], - }), - }), - }); - } - return S; - })()), - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.inactive, - u = f.tooltip; - 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: '50%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'power-off', - disabled: i, - tooltip: i ? u : '', - tooltipPosition: 'bottom', - content: 'Activate', - onClick: (function () { - function s() { - return c('cook'); - } - return s; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '50%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'eject', - disabled: i, - tooltip: i ? u : '', - tooltipPosition: 'bottom', - content: 'Eject Contents', - onClick: (function () { - function s() { - return c('eject'); - } - return s; - })(), - }), - }), - ], - }), - }); - }; - }, - 52564: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LawManager = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.LawManager = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.isAdmin, - s = i.isSlaved, - d = i.isMalf, - C = i.isAIMalf, - g = i.view; - return (0, e.createComponentVNode)(2, o.Window, { - width: 800, - height: d ? 620 : 365, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - !!(u && s) && - (0, e.createComponentVNode)(2, t.NoticeBox, { - children: ['This unit is slaved to ', s, '.'], - }), - !!(d || C) && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Law Management', - selected: g === 0, - onClick: (function () { - function v() { - return f('set_view', { set_view: 0 }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Lawsets', - selected: g === 1, - onClick: (function () { - function v() { - return f('set_view', { set_view: 1 }); - } - return v; - })(), - }), - ], - }), - g === 0 && (0, e.createComponentVNode)(2, N), - g === 1 && (0, e.createComponentVNode)(2, y), - ], - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.has_zeroth_laws, - s = i.zeroth_laws, - d = i.has_ion_laws, - C = i.ion_laws, - g = i.ion_law_nr, - v = i.has_inherent_laws, - h = i.inherent_laws, - V = i.has_supplied_laws, - b = i.supplied_laws, - B = i.channels, - I = i.channel, - w = i.isMalf, - T = i.isAdmin, - A = i.zeroth_law, - x = i.ion_law, - E = i.inherent_law, - P = i.supplied_law, - D = i.supplied_law_position; - return (0, e.createFragment)( - [ - !!u && - (0, e.createComponentVNode)(2, S, { - title: 'ERR_NULL_VALUE', - laws: s, - ctx: l, - }), - !!d && - (0, e.createComponentVNode)(2, S, { - title: g, - laws: C, - ctx: l, - }), - !!v && - (0, e.createComponentVNode)(2, S, { - title: 'Inherent', - laws: h, - ctx: l, - }), - !!V && - (0, e.createComponentVNode)(2, S, { - title: 'Supplied', - laws: b, - ctx: l, - }), - (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: B.map(function (M) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: M.channel, - selected: M.channel === I, - onClick: (function () { - function O() { - return f('law_channel', { - law_channel: M.channel, - }); - } - return O; - })(), - }, - M.channel - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'State Laws', - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'State Laws', - onClick: (function () { - function M() { - return f('state_laws'); - } - return M; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Law Notification', - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Notify', - onClick: (function () { - function M() { - return f('notify_laws'); - } - return M; - })(), - }), - }), - ], - }), - }), - !!w && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Add Laws', - children: (0, e.createComponentVNode)(2, t.Table, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - width: '10%', - children: 'Type', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - width: '60%', - children: 'Law', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - width: '10%', - children: 'Index', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - width: '20%', - children: 'Actions', - }), - ], - }), - !!(T && !u) && - (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 M() { - return f('change_zeroth_law'); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Add', - icon: 'plus', - onClick: (function () { - function M() { - return f('add_zeroth_law'); - } - return M; - })(), - }), - ], - }), - ], - }), - (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: x, - }), - (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 M() { - return f('change_ion_law'); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Add', - icon: 'plus', - onClick: (function () { - function M() { - return f('add_ion_law'); - } - return M; - })(), - }), - ], - }), - ], - }), - (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 M() { - return f('change_inherent_law'); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Add', - icon: 'plus', - onClick: (function () { - function M() { - return f('add_inherent_law'); - } - return M; - })(), - }), - ], - }), - ], - }), - (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: P, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: D, - onClick: (function () { - function M() { - return f( - 'change_supplied_law_position' - ); - } - return M; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Edit', - icon: 'pencil-alt', - onClick: (function () { - function M() { - return f('change_supplied_law'); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Add', - icon: 'plus', - onClick: (function () { - function M() { - return f('add_supplied_law'); - } - return M; - })(), - }), - ], - }), - ], - }), - ], - }), - }), - ], - 0 - ); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.law_sets; - return (0, e.createComponentVNode)(2, t.Box, { - children: u.map(function (s) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: s.name + ' - ' + s.header, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Load Laws', - icon: 'download', - onClick: (function () { - function d() { - return f('transfer_laws', { transfer_laws: s.ref }); - } - return d; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - s.laws.has_ion_laws > 0 && - s.laws.ion_laws.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: d.index, children: d.law }, - d.index - ); - }), - s.laws.has_zeroth_laws > 0 && - s.laws.zeroth_laws.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: d.index, children: d.law }, - d.index - ); - }), - s.laws.has_inherent_laws > 0 && - s.laws.inherent_laws.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: d.index, children: d.law }, - d.index - ); - }), - s.laws.has_supplied_laws > 0 && - s.laws.inherent_laws.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: d.index, children: d.law }, - d.index - ); - }), - ], - }), - }, - s.name - ); - }), - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(p.ctx), - f = c.act, - i = c.data, - u = i.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 (s) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: s.index, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: s.law, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: s.state ? 'Yes' : 'No', - selected: s.state, - onClick: (function () { - function d() { - return f('state_law', { - ref: s.ref, - state_law: s.state ? 0 : 1, - }); - } - return d; - })(), - }), - !!u && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Edit', - icon: 'pencil-alt', - onClick: (function () { - function d() { - return f('edit_law', { - edit_law: s.ref, - }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Delete', - icon: 'trash', - color: 'red', - onClick: (function () { - function d() { - return f('delete_law', { - delete_law: s.ref, - }); - } - return d; - })(), - }), - ], - 4 - ), - ], - }), - ], - }, - s.law - ); - }), - ], - }), - }); - }; - }, - 55499: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LibraryComputer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = (r.LibraryComputer = (function () { - function g(v, h) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 1050, - height: 600, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, l), - (0, e.createComponentVNode)(2, c), - ], - }), - }), - ], - }); - } - return g; - })()), - y = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = v.args, - w = B.user_ckey; - return (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Title', - children: I.title, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Author', - children: I.author, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Summary', - children: I.summary, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Rating', - children: [ - I.rating, - (0, e.createComponentVNode)(2, t.Icon, { - name: 'star', - color: 'yellow', - verticalAlign: 'top', - }), - ], - }), - !I.isProgrammatic && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Categories', - children: I.categories.join(', '), - }), - ], - }), - (0, e.createVNode)(1, 'br'), - w === I.ckey && - (0, e.createComponentVNode)(2, t.Button, { - content: 'Delete Book', - icon: 'trash', - color: 'red', - disabled: I.isProgrammatic, - onClick: (function () { - function T() { - return b('delete_book', { - bookid: I.id, - user_ckey: w, - }); - } - return T; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Report Book', - icon: 'flag', - color: 'red', - disabled: I.isProgrammatic, - onClick: (function () { - function T() { - return (0, m.modalOpen)(h, 'report_book', { - bookid: I.id, - }); - } - return T; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Rate Book', - icon: 'star', - color: 'caution', - disabled: I.isProgrammatic, - onClick: (function () { - function T() { - return (0, m.modalOpen)(h, 'rate_info', { - bookid: I.id, - }); - } - return T; - })(), - }), - ], - }); - }, - S = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = v.args, - w = B.selected_report, - T = B.report_categories, - A = B.user_ckey; - return (0, e.createComponentVNode)(2, t.Section, { - level: 2, - m: '-1rem', - pb: '1.5rem', - title: 'Report this book for Rule Violations', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Title', - children: I.title, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Reasons', - children: (0, e.createComponentVNode)(2, t.Box, { - children: T.map(function (x, E) { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: x.description, - selected: x.category_id === w, - onClick: (function () { - function P() { - return b('set_report', { - report_type: x.category_id, - }); - } - return P; - })(), - }), - (0, e.createVNode)(1, 'br'), - ], - 4, - E - ); - }), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - bold: !0, - icon: 'paper-plane', - content: 'Submit Report', - onClick: (function () { - function x() { - return b('submit_report', { - bookid: I.id, - user_ckey: A, - }); - } - return x; - })(), - }), - ], - }); - }, - k = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.selected_rating, - w = Array(10) - .fill() - .map(function (T, A) { - return 1 + A; - }); - return (0, e.createComponentVNode)(2, t.Stack, { - children: [ - w.map(function (T, A) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)(2, t.Button, { - bold: !0, - icon: 'star', - color: I >= T ? 'caution' : 'default', - onClick: (function () { - function x() { - return b('set_rating', { rating_value: T }); - } - return x; - })(), - }), - }, - A - ); - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - ml: 2, - fontSize: '150%', - children: [ - I + '/10', - (0, e.createComponentVNode)(2, t.Icon, { - name: 'star', - color: 'yellow', - ml: 0.5, - verticalAlign: 'top', - }), - ], - }), - ], - }); - }, - p = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = v.args, - w = B.user_ckey; - return (0, e.createComponentVNode)(2, t.Section, { - level: 2, - m: '-1rem', - pb: '1.5rem', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Title', - children: I.title, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Author', - children: I.author, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Rating', - children: [ - I.current_rating ? I.current_rating : 0, - (0, e.createComponentVNode)(2, t.Icon, { - name: 'star', - color: 'yellow', - ml: 0.5, - verticalAlign: 'middle', - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Total Ratings', - children: I.total_ratings ? I.total_ratings : 0, - }), - ], - }), - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - mt: 2, - content: 'Submit', - icon: 'paper-plane', - onClick: (function () { - function T() { - return b('rate_book', { bookid: I.id, user_ckey: w }); - } - return T; - })(), - }), - ], - }); - }, - l = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.data, - B = (0, a.useLocalState)(h, 'tabIndex', 0), - I = B[0], - w = B[1], - T = b.login_state; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - mb: 1, - children: (0, e.createComponentVNode)(2, t.Tabs, { - fluid: !0, - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: I === 0, - onClick: (function () { - function A() { - return w(0); - } - return A; - })(), - children: 'Book Archives', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: I === 1, - onClick: (function () { - function A() { - return w(1); - } - return A; - })(), - children: 'Corporate Literature', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: I === 2, - onClick: (function () { - function A() { - return w(2); - } - return A; - })(), - children: 'Upload Book', - }), - T === 1 && - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: I === 3, - onClick: (function () { - function A() { - return w(3); - } - return A; - })(), - children: 'Patron Manager', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: I === 4, - onClick: (function () { - function A() { - return w(4); - } - return A; - })(), - children: 'Inventory', - }), - ], - }), - }); - }, - c = function (v, h) { - var V = (0, a.useLocalState)(h, 'tabIndex', 0), - b = V[0]; - switch (b) { - case 0: - return (0, e.createComponentVNode)(2, i); - case 1: - return (0, e.createComponentVNode)(2, u); - case 2: - return (0, e.createComponentVNode)(2, s); - case 3: - return (0, e.createComponentVNode)(2, d); - case 4: - return (0, e.createComponentVNode)(2, C); - default: - return "You are somehow on a tab that doesn't exist! Please let a coder know."; - } - }, - f = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.searchcontent, - w = B.book_categories, - T = B.user_ckey, - A = []; - return ( - w.map(function (x) { - return (A[x.description] = x.category_id); - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '35%', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.2rem', - m: '.5em', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'edit', - verticalAlign: 'middle', - size: 1.5, - mr: '1rem', - }), - 'Search Inputs', - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Title', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - textAlign: 'left', - icon: 'pen', - width: 20, - content: I.title || 'Input Title', - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_search_title' - ); - } - return x; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Author', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - textAlign: 'left', - icon: 'pen', - width: 20, - content: I.author || 'Input Author', - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_search_author' - ); - } - return x; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Ratings', - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - mr: 1, - width: 'min-content', - content: I.ratingmin, - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_search_ratingmin' - ); - } - return x; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { children: 'To' } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - ml: 1, - width: 'min-content', - content: I.ratingmax, - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_search_ratingmax' - ); - } - return x; - })(), - } - ), - } - ), - ], - } - ), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '40%', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.2rem', - m: '.5em', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'clipboard-list', - verticalAlign: 'middle', - size: 1.5, - mr: '1rem', - }), - 'Book Categories', - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Select Categories', - children: (0, e.createComponentVNode)(2, t.Box, { - mt: 2, - children: (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - mt: 0.6, - width: '190px', - options: w.map(function (x) { - return x.description; - }), - onSelected: (function () { - function x(E) { - return b('toggle_search_category', { - category_id: A[E], - }); - } - return x; - })(), - } - ), - }), - } - ), - }), - (0, e.createVNode)(1, 'br'), - w - .filter(function (x) { - return I.categories.includes(x.category_id); - }) - .map(function (x) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: x.description, - selected: !0, - icon: 'unlink', - onClick: (function () { - function E() { - return b('toggle_search_category', { - category_id: x.category_id, - }); - } - return E; - })(), - }, - x.category_id - ); - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.2rem', - m: '.5em', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'search-plus', - verticalAlign: 'middle', - size: 1.5, - mr: '1rem', - }), - 'Search Actions', - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Clear Search', - icon: 'eraser', - onClick: (function () { - function x() { - return b('clear_search'); - } - return x; - })(), - }), - I.ckey - ? (0, e.createComponentVNode)(2, t.Button, { - mb: 0.5, - content: 'Stop Showing My Books', - color: 'bad', - icon: 'search', - onClick: (function () { - function x() { - return b('clear_ckey_search'); - } - return x; - })(), - }) - : (0, e.createComponentVNode)(2, t.Button, { - content: 'Find My Books', - icon: 'search', - onClick: (function () { - function x() { - return b('find_users_books', { - user_ckey: T, - }); - } - return x; - })(), - }), - ], - }), - ], - }) - ); - }, - i = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.external_booklist, - w = B.archive_pagenumber, - T = B.num_pages, - A = B.login_state; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Book System Access', - buttons: (0, e.createVNode)( - 1, - 'div', - null, - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-left', - disabled: w === 1, - onClick: (function () { - function x() { - return b('deincrementpagemax'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'chevron-left', - disabled: w === 1, - onClick: (function () { - function x() { - return b('deincrementpage'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - bold: !0, - content: w, - onClick: (function () { - function x() { - return (0, m.modalOpen)(h, 'setpagenumber'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'chevron-right', - disabled: w === T, - onClick: (function () { - function x() { - return b('incrementpage'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'angle-double-right', - disabled: w === T, - onClick: (function () { - function x() { - return b('incrementpagemax'); - } - return x; - })(), - }), - ], - 4 - ), - children: [ - (0, e.createComponentVNode)(2, f), - (0, e.createVNode)(1, 'hr'), - (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'SSID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Author', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Ratings', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Category', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'middle', - children: 'Actions', - }), - ], - }), - I.map(function (x) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: x.id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'book', - mr: 0.5, - }), - x.title.length > 45 - ? x.title.substr(0, 45) + '...' - : x.title, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: - x.author.length > 30 - ? x.author.substr(0, 30) + '...' - : x.author, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - x.rating, - (0, e.createComponentVNode)(2, t.Icon, { - name: 'star', - ml: 0.5, - color: 'yellow', - verticalAlign: 'middle', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: x.categories.join(', ').substr(0, 45), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'right', - children: [ - A === 1 && - (0, e.createComponentVNode)(2, t.Button, { - content: 'Order', - icon: 'print', - onClick: (function () { - function E() { - return b('order_external_book', { - bookid: x.id, - }); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'More...', - onClick: (function () { - function E() { - return (0, m.modalOpen)( - h, - 'expand_info', - { bookid: x.id } - ); - } - return E; - })(), - }), - ], - }), - ], - }, - x.id - ); - }), - ], - }), - ], - }); - }, - u = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.programmatic_booklist, - w = B.login_state; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Corporate Book Catalog', - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'SSID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Author', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'middle', - children: 'Actions', - }), - ], - }), - I.map(function (T, A) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: T.id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'book', - mr: 2, - }), - T.title, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: T.author, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'right', - children: [ - w === 1 && - (0, e.createComponentVNode)(2, t.Button, { - content: 'Order', - icon: 'print', - onClick: (function () { - function x() { - return b('order_programmatic_book', { - bookid: T.id, - }); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'More...', - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'expand_info', - { bookid: T.id } - ); - } - return x; - })(), - }), - ], - }), - ], - }, - A - ); - }), - ], - }), - }); - }, - s = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.selectedbook, - w = B.book_categories, - T = B.user_ckey, - A = []; - return ( - w.map(function (x) { - return (A[x.description] = x.category_id); - }), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Book System Upload', - buttons: (0, e.createComponentVNode)(2, t.Button.Confirm, { - bold: !0, - width: 9.5, - icon: 'upload', - disabled: I.copyright, - content: 'Upload Book', - onClick: (function () { - function x() { - return b('uploadbook', { user_ckey: T }); - } - return x; - })(), - }), - children: [ - I.copyright - ? (0, e.createComponentVNode)(2, t.NoticeBox, { - color: 'red', - children: - 'WARNING: You cannot upload or modify the attributes of a copyrighted book', - }) - : (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Box, { - ml: 15, - mb: 3, - fontSize: '1.2rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'search-plus', - verticalAlign: 'middle', - size: 3, - mr: 2, - }), - 'Book Uploader', - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Title', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - width: 20, - textAlign: 'left', - icon: 'pen', - disabled: I.copyright, - content: I.title, - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_selected_title' - ); - } - return x; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Author', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - width: 20, - textAlign: 'left', - icon: 'pen', - disabled: I.copyright, - content: I.author, - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_selected_author' - ); - } - return x; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Select Categories', - children: (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - width: '240px', - options: w.map(function (x) { - return x.description; - }), - onSelected: (function () { - function x(E) { - return b( - 'toggle_upload_category', - { category_id: A[E] } - ); - } - return x; - })(), - } - ), - } - ), - } - ), - ], - }), - (0, e.createVNode)(1, 'br'), - w - .filter(function (x) { - return I.categories.includes(x.category_id); - }) - .map(function (x) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: x.description, - disabled: I.copyright, - selected: !0, - icon: 'unlink', - onClick: (function () { - function E() { - return b('toggle_upload_category', { - category_id: x.category_id, - }); - } - return E; - })(), - }, - x.category_id - ); - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - mr: 75, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Summary', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'pen', - width: 'auto', - disabled: I.copyright, - content: 'Edit Summary', - onClick: (function () { - function x() { - return (0, m.modalOpen)( - h, - 'edit_selected_summary' - ); - } - return x; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { children: I.summary } - ), - ], - } - ), - }), - ], - }), - ], - }) - ); - }, - d = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.checkout_data; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Checked Out Books', - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Patron', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Time Left', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Actions', - }), - ], - }), - I.map(function (w, T) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'user-tag', - }), - w.patron_name, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: w.title, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: w.timeleft >= 0 ? w.timeleft : 'LATE', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Mark Lost', - icon: 'flag', - color: 'bad', - disabled: w.timeleft >= 0, - onClick: (function () { - function A() { - return b('reportlost', { - libraryid: w.libraryid, - }); - } - return A; - })(), - } - ), - }), - ], - }, - T - ); - }), - ], - }), - }); - }, - C = function (v, h) { - var V = (0, a.useBackend)(h), - b = V.act, - B = V.data, - I = B.inventory_list; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Library Inventory', - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'LIB ID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Author', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Status', - }), - ], - }), - I.map(function (w, T) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: w.libraryid, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'book', - }), - ' ', - w.title, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: w.author, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: w.checked_out - ? 'Checked Out' - : 'Available', - }), - ], - }, - T - ); - }), - ], - }), - }); - }; - (0, m.modalRegisterBodyOverride)('expand_info', y), - (0, m.modalRegisterBodyOverride)('report_book', S), - (0, m.modalRegisterBodyOverride)('rate_info', p); - }, - 92682: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LibraryManager = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = (r.LibraryManager = (function () { - function l(c, f) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 600, - height: 600, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - className: 'Layout__content--flexColumn', - children: (0, e.createComponentVNode)(2, y), - }), - ], - }); - } - return l; - })()), - y = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.pagestate; - switch (d) { - case 1: - return (0, e.createComponentVNode)(2, S); - case 2: - return (0, e.createComponentVNode)(2, p); - case 3: - return (0, e.createComponentVNode)(2, k); - default: - return "WE SHOULDN'T BE HERE!"; - } - }, - S = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data; - return (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.4rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'user-shield', - verticalAlign: 'middle', - size: 3, - mr: '1rem', - }), - 'Library Manager', - ], - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'trash', - width: 'auto', - color: 'danger', - content: 'Delete Book by SSID', - onClick: (function () { - function d() { - return (0, m.modalOpen)(f, 'specify_ssid_delete'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'user-slash', - width: 'auto', - color: 'danger', - content: 'Delete All Books By CKEY', - onClick: (function () { - function d() { - return (0, m.modalOpen)(f, 'specify_ckey_delete'); - } - return d; - })(), - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'search', - width: 'auto', - content: 'View All Books By CKEY', - onClick: (function () { - function d() { - return (0, m.modalOpen)(f, 'specify_ckey_search'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'search', - width: 'auto', - content: 'View All Reported Books', - onClick: (function () { - function d() { - return u('view_reported_books'); - } - return d; - })(), - }), - ], - }); - }, - k = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.reports; - return (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.2rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'user-secret', - verticalAlign: 'middle', - size: 2, - mr: '1rem', - }), - (0, e.createVNode)(1, 'br'), - 'All Reported Books', - (0, e.createVNode)(1, 'br'), - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Return to Main', - icon: 'arrow-alt-circle-left', - onClick: (function () { - function C() { - return u('return'); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Uploader CKEY', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'SSID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Author', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Report Type', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Reporter Ckey', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'middle', - children: 'Administrative Actions', - }), - ], - }), - d.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: C.uploader_ckey, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: C.id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'book', - }), - C.title, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: C.author, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: C.report_description, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: C.reporter_ckey, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - content: 'Delete', - icon: 'trash', - onClick: (function () { - function g() { - return u('delete_book', { - bookid: C.id, - }); - } - return g; - })(), - } - ), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Unflag', - icon: 'flag', - color: 'caution', - onClick: (function () { - function g() { - return u('unflag_book', { bookid: C.id }); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'View', - onClick: (function () { - function g() { - return u('view_book', { bookid: C.id }); - } - return g; - })(), - }), - ], - }), - ], - }, - C.id - ); - }), - ], - }), - }); - }, - p = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.ckey, - C = s.booklist; - return (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Library__Booklist', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.2rem', - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'user', - verticalAlign: 'middle', - size: 2, - mr: '1rem', - }), - (0, e.createVNode)(1, 'br'), - 'Books uploaded by ', - d, - (0, e.createVNode)(1, 'br'), - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - mt: 1, - content: 'Return to Main', - icon: 'arrow-alt-circle-left', - onClick: (function () { - function g() { - return u('return'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'SSID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Title', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Author', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'middle', - children: 'Administrative Actions', - }), - ], - }), - C.map(function (g) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: g.id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'book', - }), - g.title, - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'left', - children: g.author, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'right', - children: [ - (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - content: 'Delete', - icon: 'trash', - color: 'bad', - onClick: (function () { - function v() { - return u('delete_book', { - bookid: g.id, - }); - } - return v; - })(), - } - ), - (0, e.createComponentVNode)(2, t.Button, { - content: 'View', - onClick: (function () { - function v() { - return u('view_book', { bookid: g.id }); - } - return v; - })(), - }), - ], - }), - ], - }, - g.id - ); - }), - ], - }), - }); - }; - }, - 68e3: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ListInputModal = void 0); - var e = n(28823), - a = n(2146), - t = n(98658), - o = n(2971), - m = n(91819), - N = n(31068), - y = n(84947), - S = (r.ListInputModal = (function () { - function l(c, f) { - var i = (0, m.useBackend)(f), - u = i.act, - s = i.data, - d = s.items, - C = d === void 0 ? [] : d, - g = s.message, - v = g === void 0 ? '' : g, - h = s.init_value, - V = s.timeout, - b = s.title, - B = (0, m.useLocalState)(f, 'selected', C.indexOf(h)), - I = B[0], - w = B[1], - T = (0, m.useLocalState)( - f, - 'searchBarVisible', - C.length > 10 - ), - A = T[0], - x = T[1], - E = (0, m.useLocalState)(f, 'searchQuery', ''), - P = E[0], - D = E[1], - M = (function () { - function $(Y) { - var X = z.length - 1; - if (Y === N.KEY_DOWN) - if (I === null || I === X) { - var re; - w(0), - (re = document.getElementById('0')) == null || - re.scrollIntoView(); - } else { - var ae; - w(I + 1), - (ae = document.getElementById( - (I + 1).toString() - )) == null || ae.scrollIntoView(); - } - else if (Y === N.KEY_UP) - if (I === null || I === 0) { - var se; - w(X), - (se = document.getElementById(X.toString())) == - null || se.scrollIntoView(); - } else { - var pe; - w(I - 1), - (pe = document.getElementById( - (I - 1).toString() - )) == null || pe.scrollIntoView(); - } - } - return $; - })(), - O = (function () { - function $(Y) { - Y !== I && w(Y); - } - return $; - })(), - j = (function () { - function $() { - x(!1), x(!0); - } - return $; - })(), - F = (function () { - function $(Y) { - var X = String.fromCharCode(Y), - re = C.find(function (pe) { - return pe == null - ? void 0 - : pe - .toLowerCase() - .startsWith( - X == null ? void 0 : X.toLowerCase() - ); - }); - if (re) { - var ae, - se = C.indexOf(re); - w(se), - (ae = document.getElementById(se.toString())) == - null || ae.scrollIntoView(); - } - } - return $; - })(), - U = (function () { - function $(Y) { - var X; - Y !== P && - (D(Y), - w(0), - (X = document.getElementById('0')) == null || - X.scrollIntoView()); - } - return $; - })(), - _ = (function () { - function $() { - x(!A), D(''); - } - return $; - })(), - z = C.filter(function ($) { - return $ == null - ? void 0 - : $.toLowerCase().includes(P.toLowerCase()); - }), - H = 330 + Math.ceil(v.length / 3); - return ( - A || - setTimeout(function () { - var $; - return ($ = document.getElementById(I.toString())) == null - ? void 0 - : $.focus(); - }, 1), - (0, e.createComponentVNode)(2, y.Window, { - title: b, - width: 325, - height: H, - children: [ - V && - (0, e.createComponentVNode)(2, a.Loader, { value: V }), - (0, e.createComponentVNode)(2, y.Window.Content, { - onKeyDown: (function () { - function $(Y) { - var X = window.event ? Y.which : Y.keyCode; - (X === N.KEY_DOWN || X === N.KEY_UP) && - (Y.preventDefault(), M(X)), - X === N.KEY_ENTER && - (Y.preventDefault(), - u('submit', { entry: z[I] })), - !A && - X >= N.KEY_A && - X <= N.KEY_Z && - (Y.preventDefault(), F(X)), - X === N.KEY_ESCAPE && - (Y.preventDefault(), u('cancel')); - } - return $; - })(), - 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 $() { - return _(); - } - return $; - })(), - }), - className: 'ListInput__Section', - fill: !0, - title: v, - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, k, { - filteredItems: z, - onClick: O, - onFocusSearch: j, - searchBarVisible: A, - selected: I, - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - m: 0, - children: - A && - (0, e.createComponentVNode)(2, p, { - filteredItems: z, - onSearch: U, - searchQuery: P, - selected: I, - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - mt: 0.5, - children: (0, e.createComponentVNode)( - 2, - t.InputButtons, - { input: z[I] } - ), - }), - ], - }), - }), - }), - ], - }) - ); - } - return l; - })()), - k = function (c, f) { - var i = (0, m.useBackend)(f), - u = i.act, - s = c.filteredItems, - d = c.onClick, - C = c.onFocusSearch, - g = c.searchBarVisible, - v = c.selected; - return (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - tabIndex: 0, - children: s.map(function (h, V) { - return (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - color: 'transparent', - id: V, - onClick: (function () { - function b() { - return d(V); - } - return b; - })(), - onDblClick: (function () { - function b(B) { - B.preventDefault(), u('submit', { entry: s[v] }); - } - return b; - })(), - onKeyDown: (function () { - function b(B) { - var I = window.event ? B.which : B.keyCode; - g && - I >= N.KEY_A && - I <= N.KEY_Z && - (B.preventDefault(), C()); - } - return b; - })(), - selected: V === v, - style: { animation: 'none', transition: 'none' }, - children: h.replace(/^\w/, function (b) { - return b.toUpperCase(); - }), - }, - V - ); - }), - }); - }, - p = function (c, f) { - var i = (0, m.useBackend)(f), - u = i.act, - s = c.filteredItems, - d = c.onSearch, - C = c.searchQuery, - g = c.selected; - return (0, e.createComponentVNode)(2, o.Input, { - width: '100%', - autoFocus: !0, - autoSelect: !0, - onEnter: (function () { - function v(h) { - h.preventDefault(), u('submit', { entry: s[g] }); - } - return v; - })(), - onInput: (function () { - function v(h, V) { - return d(V); - } - return v; - })(), - placeholder: 'Search...', - value: C, - }); - }; - }, - 75965: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MODsuitContent = r.MODsuit = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (I, w) { - var T = I.name, - A = I.value, - x = I.module_ref, - E = (0, a.useBackend)(w), - P = E.act; - return (0, e.createComponentVNode)(2, t.NumberInput, { - value: A, - minValue: -50, - maxValue: 50, - stepPixelSize: 5, - width: '39px', - onChange: (function () { - function D(M, O) { - return P('configure', { key: T, value: O, ref: x }); - } - return D; - })(), - }); - }, - N = function (I, w) { - var T = I.name, - A = I.value, - x = I.module_ref, - E = (0, a.useBackend)(w), - P = E.act; - return (0, e.createComponentVNode)(2, t.Button.Checkbox, { - checked: A, - onClick: (function () { - function D() { - return P('configure', { key: T, value: !A, ref: x }); - } - return D; - })(), - }); - }, - y = function (I, w) { - var T = I.name, - A = I.value, - x = I.module_ref, - E = (0, a.useBackend)(w), - P = E.act; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'paint-brush', - onClick: (function () { - function D() { - return P('configure', { key: T, ref: x }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, t.ColorBox, { - color: A, - mr: 0.5, - }), - ], - 4 - ); - }, - S = function (I, w) { - var T = I.name, - A = I.value, - x = I.values, - E = I.module_ref, - P = (0, a.useBackend)(w), - D = P.act; - return (0, e.createComponentVNode)(2, t.Dropdown, { - displayText: A, - options: x, - onSelected: (function () { - function M(O) { - return D('configure', { key: T, value: O, ref: E }); - } - return M; - })(), - }); - }, - k = function (I, w) { - var T = I.name, - A = I.display_name, - x = I.type, - E = I.value, - P = I.values, - D = I.module_ref, - M = { - number: (0, e.normalizeProps)( - (0, e.createComponentVNode)(2, m, Object.assign({}, I)) - ), - bool: (0, e.normalizeProps)( - (0, e.createComponentVNode)(2, N, Object.assign({}, I)) - ), - color: (0, e.normalizeProps)( - (0, e.createComponentVNode)(2, y, Object.assign({}, I)) - ), - list: (0, e.normalizeProps)( - (0, e.createComponentVNode)(2, S, Object.assign({}, I)) - ), - }; - return (0, e.createComponentVNode)(2, t.Box, { - children: [A, ': ', M[x]], - }); - }, - p = function (I, w) { - var T = I.active, - A = I.userradiated, - x = I.usertoxins, - E = I.usermaxtoxins, - P = I.threatlevel; - return (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Radiation Level', - color: T && A ? 'bad' : 'good', - children: T && A ? 'IRRADIATED!' : 'RADIATION-FREE', - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Toxins Level', - children: (0, e.createComponentVNode)(2, t.ProgressBar, { - value: T ? x / E : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: x } - ), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Hazard Level', - color: T && P ? 'bad' : 'good', - bold: !0, - children: T && P ? P : 0, - }), - }), - ], - }); - }, - l = function (I, w) { - var T = I.active, - A = I.userhealth, - x = I.usermaxhealth, - E = I.userbrute, - P = I.userburn, - D = I.usertoxin, - M = I.useroxy; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Health', - children: (0, e.createComponentVNode)(2, t.ProgressBar, { - value: T ? A / x : 0, - ranges: { - good: [0.5, 1 / 0], - average: [0.2, 0.5], - bad: [-1 / 0, 0.2], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? A : 0 } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Brute', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? E / x : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? E : 0 } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Burn', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? P / x : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? P : 0 } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Toxin', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? D / x : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? D : 0 } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Suffocation', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? M / x : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? M : 0 } - ), - } - ), - }), - }), - ], - }), - ], - 4 - ); - }, - c = function (I, w) { - var T = I.active, - A = I.statustime, - x = I.statusid, - E = I.statushealth, - P = I.statusmaxhealth, - D = I.statusbrute, - M = I.statusburn, - O = I.statustoxin, - j = I.statusoxy, - F = I.statustemp, - U = I.statusnutrition, - _ = I.statusfingerprints, - z = I.statusdna, - H = I.statusviruses; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Operation Time', - children: T ? A : '00:00:00', - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Operation Number', - children: T ? x || '0' : '???', - }), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Health', - children: (0, e.createComponentVNode)(2, t.ProgressBar, { - value: T ? E / P : 0, - ranges: { - good: [0.5, 1 / 0], - average: [0.2, 0.5], - bad: [-1 / 0, 0.2], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? E : 0 } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Brute', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? D / P : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? D : 0 } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Burn', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? M / P : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: T ? M : 0 } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Toxin', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? O / P : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: O } - ), - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Suffocation', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: T ? j / P : 0, - ranges: { - good: [-1 / 0, 0.2], - average: [0.2, 0.5], - bad: [0.5, 1 / 0], - }, - children: (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: j } - ), - } - ), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Body Temperature', - children: T ? F : 0, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Nutrition Status', - children: T ? U : 0, - }), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'DNA', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Fingerprints', - children: T ? _ : '???', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Unique Enzymes', - children: T ? z : '???', - }), - ], - }), - }), - !!T && - !!H && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Diseases', - 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, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'signature', - tooltip: 'Name', - tooltipPosition: 'top', - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'wind', - tooltip: 'Type', - tooltipPosition: 'top', - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'bolt', - tooltip: 'Stage', - tooltipPosition: 'top', - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'flask', - tooltip: 'Cure', - tooltipPosition: 'top', - } - ), - }), - ], - }), - H.map(function ($) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: $.name, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: $.type, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: [$.stage, '/', $.maxstage], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - textAlign: 'center', - children: $.cure, - }), - ], - }, - $.name - ); - }), - ], - }), - }), - ], - 0 - ); - }, - f = { rad_counter: p, health_analyzer: l, status_readout: c }, - i = function () { - return (0, e.createComponentVNode)(2, t.Section, { - align: 'center', - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - color: 'red', - name: 'exclamation-triangle', - size: 15, - }), - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '30px', - color: 'red', - children: 'ERROR: INTERFACE UNRESPONSIVE', - }), - ], - }); - }, - u = function (I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data; - return (0, e.createComponentVNode)(2, t.Dimmer, { - children: (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - fontSize: '16px', - color: 'blue', - children: 'SUIT UNPOWERED', - }), - }), - }); - }, - s = function (I, w) { - var T = I.configuration_data, - A = I.module_ref, - x = Object.keys(T); - return (0, e.createComponentVNode)(2, t.Dimmer, { - backgroundColor: 'rgba(0, 0, 0, 0.8)', - children: (0, e.createComponentVNode)(2, t.Stack, { - vertical: !0, - children: [ - x.map(function (E) { - var P = T[E]; - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)(2, k, { - name: E, - display_name: P.display_name, - type: P.type, - value: P.value, - values: P.values, - module_ref: A, - }), - }, - P.key - ); - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - onClick: I.onExit, - icon: 'times', - textAlign: 'center', - children: 'Exit', - }), - }), - }), - ], - }), - }); - }, - d = function (I) { - switch (I) { - case 1: - return 'Use'; - case 2: - return 'Toggle'; - case 3: - return 'Select'; - } - }, - C = function (I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.active, - P = x.malfunctioning, - D = x.locked, - M = x.open, - O = x.selected_module, - j = x.complexity, - F = x.complexity_max, - U = x.wearer_name, - _ = x.wearer_job, - z = P ? 'Malfunctioning' : E ? 'Active' : 'Inactive'; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Parameters', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'power-off', - content: E ? 'Deactivate' : 'Activate', - onClick: (function () { - function H() { - return A('activate'); - } - return H; - })(), - }), - children: z, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'ID Lock', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: D ? 'lock-open' : 'lock', - content: D ? 'Unlock' : 'Lock', - onClick: (function () { - function H() { - return A('lock'); - } - return H; - })(), - }), - children: D ? 'Locked' : 'Unlocked', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Cover', - children: M ? 'Open' : 'Closed', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Selected Module', - children: O || 'None', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Complexity', - children: [j, ' (', F, ')'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Occupant', - children: [U, ', ', _], - }), - ], - }), - }); - }, - g = function (I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.active, - P = x.control, - D = x.helmet, - M = x.chestplate, - O = x.gauntlets, - j = x.boots, - F = x.core, - U = x.charge; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Hardware', - children: [ - (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Parts', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Control Unit', - children: P, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Helmet', - children: D || 'None', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Chestplate', - children: M || 'None', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Gauntlets', - children: O || 'None', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Boots', - children: j || 'None', - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Collapsible, { - title: 'Core', - children: - (F && - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Core Type', - children: F, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Core Charge', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: U / 100, - content: U + '%', - ranges: { - good: [0.6, 1 / 0], - average: [0.3, 0.6], - bad: [-1 / 0, 0.3], - }, - } - ), - }), - ], - })) || - (0, e.createComponentVNode)(2, t.Box, { - color: 'bad', - textAlign: 'center', - children: 'No Core Detected', - }), - }), - ], - }); - }, - v = function (I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.active, - P = x.modules, - D = P.filter(function (M) { - return !!M.id; - }); - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Info', - children: (0, e.createComponentVNode)(2, t.Stack, { - vertical: !0, - children: - (D.length !== 0 && - D.map(function (M) { - var O = f[M.id]; - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - !E && (0, e.createComponentVNode)(2, u), - (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - O, - Object.assign({}, M, { active: E }) - ) - ), - ], - }, - M.ref - ); - })) || - (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - children: 'No Info Modules Detected', - }), - }), - }); - }, - h = function (I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.complexity_max, - P = x.modules, - D = (0, a.useLocalState)(w, 'module_configuration', null), - M = D[0], - O = D[1]; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Modules', - fill: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - vertical: !0, - children: - (P.length !== 0 && - P.map(function (j) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Collapsible, - { - title: j.module_name, - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - children: [ - M === j.ref && - (0, e.createComponentVNode)(2, s, { - configuration_data: - j.configuration_data, - module_ref: j.ref, - onExit: (function () { - function F() { - return O(null); - } - return F; - })(), - }), - (0, e.createComponentVNode)(2, t.Table, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - header: !0, - children: [ - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'save', - tooltip: 'Complexity', - tooltipPosition: 'top', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'plug', - tooltip: - 'Idle Power Cost', - tooltipPosition: 'top', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'lightbulb', - tooltip: - 'Active Power Cost', - tooltipPosition: 'top', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'bolt', - tooltip: - 'Use Power Cost', - tooltipPosition: 'top', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'hourglass-half', - tooltip: 'Cooldown', - tooltipPosition: 'top', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - icon: 'tasks', - tooltip: 'Actions', - tooltipPosition: 'top', - } - ), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: [ - j.module_complexity, - '/', - E, - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: j.idle_power, - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: j.active_power, - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: j.use_power, - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: [ - (j.cooldown > 0 && - j.cooldown / 10) || - '0', - '/', - j.cooldown_time / 10, - 's', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Table.Cell, - { - textAlign: 'center', - children: [ - (0, - e.createComponentVNode)( - 2, - t.Button, - { - onClick: - (function () { - function F() { - return A( - 'select', - { ref: j.ref } - ); - } - return F; - })(), - icon: 'bullseye', - selected: - j.module_active, - tooltip: d( - j.module_type - ), - tooltipPosition: - 'left', - disabled: - !j.module_type, - } - ), - (0, - e.createComponentVNode)( - 2, - t.Button, - { - onClick: - (function () { - function F() { - return O(j.ref); - } - return F; - })(), - icon: 'cog', - selected: M === j.ref, - tooltip: 'Configure', - tooltipPosition: - 'left', - disabled: - j.configuration_data - .length === 0, - } - ), - (0, - e.createComponentVNode)( - 2, - t.Button, - { - onClick: - (function () { - function F() { - return A( - 'pin', - { ref: j.ref } - ); - } - return F; - })(), - icon: 'thumbtack', - selected: j.pinned, - tooltip: 'Pin', - tooltipPosition: - 'left', - disabled: - !j.module_type, - } - ), - ], - } - ), - ], - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Box, { - children: j.description, - }), - ], - } - ), - } - ), - }, - j.ref - ); - })) || - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - children: 'No Modules Detected', - }), - }), - }), - }); - }, - V = (r.MODsuitContent = (function () { - function B(I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.ui_theme, - P = x.interface_break; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !P, - children: - (!!P && (0, e.createComponentVNode)(2, i)) || - (0, e.createComponentVNode)(2, t.Stack, { - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, C), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, g), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, v), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, h), - }), - ], - }), - }); - } - return B; - })()), - b = (r.MODsuit = (function () { - function B(I, w) { - var T = (0, a.useBackend)(w), - A = T.act, - x = T.data, - E = x.ui_theme, - P = x.interface_break; - return (0, e.createComponentVNode)(2, o.Window, { - theme: E, - width: 400, - height: 620, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, V), - }), - }), - }); - } - return B; - })()); - }, - 86322: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MagnetController = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(22677), - y = new Map([ - ['n', { icon: 'arrow-up', tooltip: 'Move North' }], - ['e', { icon: 'arrow-right', tooltip: 'Move East' }], - ['s', { icon: 'arrow-down', tooltip: 'Move South' }], - ['w', { icon: 'arrow-left', tooltip: 'Move West' }], - ['c', { icon: 'crosshairs', tooltip: 'Move to Magnet' }], - ['r', { icon: 'dice', tooltip: 'Move Randomly' }], - ]), - S = (r.MagnetController = (function () { - function k(p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.autolink, - s = i.code, - d = i.frequency, - C = i.linkedMagnets, - g = i.magnetConfiguration, - v = i.path, - h = i.pathPosition, - V = i.probing, - b = i.powerState, - B = i.speed; - return (0, e.createComponentVNode)(2, m.Window, { - width: 400, - height: 600, - children: [ - (0, e.createComponentVNode)(2, N.ComplexModal), - (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - children: [ - !u && - (0, e.createComponentVNode)(2, o.Section, { - buttons: (0, e.createComponentVNode)(2, o.Button, { - content: 'Probe', - icon: V ? 'spinner' : 'sync', - iconSpin: !!V, - disabled: V, - onClick: (function () { - function I() { - return f('probe_magnets'); - } - return I; - })(), - }), - title: 'Magnet Linking', - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Frequency', - children: (0, a.toFixed)(d / 10, 1), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Code', children: s } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.Section, { - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: b ? 'power-off' : 'times', - content: b ? 'On' : 'Off', - selected: b, - onClick: (function () { - function I() { - return f('toggle_power'); - } - return I; - })(), - }), - title: 'Controller Configuration', - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Speed', - children: (0, e.createComponentVNode)( - 2, - o.Slider, - { - value: B.value, - minValue: B.min, - maxValue: B.max, - onChange: (function () { - function I(w, T) { - return f('set_speed', { speed: T }); - } - return I; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Path', - children: [ - Array.from(y.entries()).map(function (I) { - var w = I[0], - T = I[1], - A = T.icon, - x = T.tooltip; - return (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: A, - tooltip: x, - onClick: (function () { - function E() { - return f('path_add', { - code: w, - }); - } - return E; - })(), - }, - w - ); - }), - (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - icon: 'trash', - confirmIcon: 'trash', - confirmContent: '', - float: 'right', - tooltip: 'Reset Path', - tooltipPosition: 'left', - onClick: (function () { - function I() { - return f('path_clear'); - } - return I; - })(), - } - ), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'file-import', - float: 'right', - tooltip: 'Manually input path', - tooltipPosition: 'left', - onClick: (function () { - function I() { - return (0, N.modalOpen)( - l, - 'path_custom_input' - ); - } - return I; - })(), - }), - (0, e.createComponentVNode)( - 2, - o.BlockQuote, - { - children: v.map(function (I, w) { - var T = y.get(I) || { - icon: 'question', - }, - A = T.icon, - x = T.tooltip; - return (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - selected: w + 2 === h, - icon: A, - confirmIcon: A, - confirmContent: '', - tooltip: x, - onClick: (function () { - function E() { - return f('path_remove', { - index: w + 1, - code: I, - }); - } - return E; - })(), - }, - w - ); - }), - } - ), - ], - } - ), - ], - } - ), - }), - C.map(function (I, w) { - var T = I.uid, - A = I.powerState, - x = I.electricityLevel, - E = I.magneticField; - return (0, e.createComponentVNode)( - 2, - o.Section, - { - title: 'Magnet #' + (w + 1) + ' Configuration', - buttons: (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: A ? 'power-off' : 'times', - content: A ? 'On' : 'Off', - selected: A, - onClick: (function () { - function P() { - return f('toggle_magnet_power', { - id: T, - }); - } - return P; - })(), - } - ), - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Move Speed', - children: (0, e.createComponentVNode)( - 2, - o.Slider, - { - value: x, - minValue: g.electricityLevel.min, - maxValue: g.electricityLevel.max, - onChange: (function () { - function P(D, M) { - return f( - 'set_electricity_level', - { id: T, electricityLevel: M } - ); - } - return P; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Field Size', - children: (0, e.createComponentVNode)( - 2, - o.Slider, - { - value: E, - minValue: g.magneticField.min, - maxValue: g.magneticField.max, - onChange: (function () { - function P(D, M) { - return f('set_magnetic_field', { - id: T, - magneticField: M, - }); - } - return P; - })(), - } - ), - } - ), - ], - } - ), - }, - T - ); - }), - ], - }), - ], - }); - } - return k; - })()); - }, - 54374: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MechBayConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.MechBayConsole = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.recharge_port, - f = c && c.mech, - i = f && f.cell, - u = f && f.name; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 155, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: u ? 'Mech status: ' + u : 'Mech status', - textAlign: 'center', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync', - content: 'Sync', - onClick: (function () { - function s() { - return p('reconnect'); - } - return s; - })(), - }), - 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: [0.7, 1 / 0], - average: [0.3, 0.7], - bad: [-1 / 0, 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.', - })) || - (!i && - (0, e.createComponentVNode)(2, t.NoticeBox, { - children: 'No cell is installed.', - })) || - (0, e.createComponentVNode)(2, t.ProgressBar, { - value: i.charge / i.maxcharge, - ranges: { - good: [0.7, 1 / 0], - average: [0.3, 0.7], - bad: [-1 / 0, 0.3], - }, - children: [ - (0, e.createComponentVNode)( - 2, - t.AnimatedNumber, - { value: i.charge } - ), - ' / ' + i.maxcharge, - ], - }), - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 14823: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MechaControlConsole = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(37843), - y = (r.MechaControlConsole = (function () { - function S(k, p) { - var l = (0, t.useBackend)(p), - c = l.act, - f = l.data, - i = f.beacons, - u = f.stored_data; - return u.length - ? (0, e.createComponentVNode)(2, m.Window, { - width: 420, - height: 500, - children: (0, e.createComponentVNode)( - 2, - m.Window.Content, - { - scrollable: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - title: 'Log', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'window-close', - onClick: (function () { - function s() { - return c('clear_log'); - } - return s; - })(), - }), - children: u.map(function (s) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - children: [ - (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: ['(', s.time, ')'], - }), - (0, e.createComponentVNode)(2, o.Box, { - children: (0, N.decodeHtmlEntities)( - s.message - ), - }), - ], - }, - s.time - ); - }), - }), - } - ), - }) - : (0, e.createComponentVNode)(2, m.Window, { - width: 420, - height: 500, - children: (0, e.createComponentVNode)( - 2, - m.Window.Content, - { - scrollable: !0, - children: - (i.length && - i.map(function (s) { - return (0, e.createComponentVNode)( - 2, - o.Section, - { - title: s.name, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: 'comment', - onClick: (function () { - function d() { - return c('send_message', { - mt: s.uid, - }); - } - return d; - })(), - children: 'Message', - } - ), - (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: 'eye', - onClick: (function () { - function d() { - return c('get_log', { - mt: s.uid, - }); - } - return d; - })(), - children: 'View Log', - } - ), - (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - color: 'red', - content: 'Sabotage', - icon: 'bomb', - onClick: (function () { - function d() { - return c('shock', { - mt: s.uid, - }); - } - return d; - })(), - } - ), - ], - 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: [ - s.maxHealth * 0.75, - 1 / 0, - ], - average: [ - s.maxHealth * 0.5, - s.maxHealth * 0.75, - ], - bad: [ - -1 / 0, - s.maxHealth * 0.5, - ], - }, - value: s.health, - maxValue: s.maxHealth, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Cell Charge', - children: - (s.cell && - (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - ranges: { - good: [ - s.cellMaxCharge * - 0.75, - 1 / 0, - ], - average: [ - s.cellMaxCharge * 0.5, - s.cellMaxCharge * - 0.75, - ], - bad: [ - -1 / 0, - s.cellMaxCharge * 0.5, - ], - }, - value: s.cellCharge, - maxValue: s.cellMaxCharge, - } - )) || - (0, e.createComponentVNode)( - 2, - o.NoticeBox, - { - children: - 'No Cell Installed', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Air Tank', - children: [s.airtank, 'kPa'], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Pilot', - children: s.pilot || 'Unoccupied', - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Location', - children: - (0, N.toTitleCase)( - s.location - ) || 'Unknown', - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Active Equipment', - children: s.active || 'None', - } - ), - (s.cargoMax && - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Cargo Space', - children: (0, - e.createComponentVNode)( - 2, - o.ProgressBar, - { - ranges: { - bad: [ - s.cargoMax * 0.75, - 1 / 0, - ], - average: [ - s.cargoMax * 0.5, - s.cargoMax * 0.75, - ], - good: [ - -1 / 0, - s.cargoMax * 0.5, - ], - }, - value: s.cargoUsed, - maxValue: s.cargoMax, - } - ), - } - )) || - null, - ], - } - ), - }, - s.name - ); - })) || - (0, e.createComponentVNode)(2, o.NoticeBox, { - children: 'No mecha beacons found.', - }), - } - ), - }); - } - return S; - })()); - }, - 16189: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MedicalRecords = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(22677), - N = n(84947), - y = n(51185), - S = n(69774), - k = n(76519), - p = { - Minor: 'lightgray', - Medium: 'good', - Harmful: 'average', - 'Dangerous!': 'bad', - 'BIOHAZARD THREAT!': 'darkred', - }, - l = { - '*Deceased*': 'deceased', - '*SSD*': 'ssd', - 'Physically Unfit': 'physically_unfit', - Disabled: 'disabled', - }, - c = function (A, x) { - (0, m.modalOpen)(A, 'edit', { field: x.edit, value: x.value }); - }, - f = function (A, x) { - var E = A.args; - return (0, e.createComponentVNode)(2, o.Section, { - m: '-1rem', - pb: '1.5rem', - title: E.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: E.max_stages, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Spread', - children: [E.spread_text, ' Transmission'], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Possible cure', - children: E.cure, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Notes', - children: E.desc, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Severity', - color: p[E.severity], - children: E.severity, - }), - ], - }), - }), - }); - }, - i = (r.MedicalRecords = (function () { - function T(A, x) { - var E = (0, t.useBackend)(x), - P = E.data, - D = P.loginState, - M = P.screen; - if (!D.logged_in) - return (0, e.createComponentVNode)(2, N.Window, { - width: 800, - height: 900, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, S.LoginScreen), - }), - }); - var O; - return ( - M === 2 - ? (O = (0, e.createComponentVNode)(2, u)) - : M === 3 - ? (O = (0, e.createComponentVNode)(2, s)) - : M === 4 - ? (O = (0, e.createComponentVNode)(2, d)) - : M === 5 - ? (O = (0, e.createComponentVNode)(2, h)) - : M === 6 - ? (O = (0, e.createComponentVNode)(2, V)) - : M === 7 && - (O = (0, e.createComponentVNode)(2, b)), - (0, e.createComponentVNode)(2, N.Window, { - width: 800, - height: 900, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, N.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, y.LoginInfo), - (0, e.createComponentVNode)(2, k.TemporaryNotice), - (0, e.createComponentVNode)(2, w), - O, - ], - }), - }), - ], - }) - ); - } - return T; - })()), - u = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.records, - O = (0, t.useLocalState)(x, 'searchText', ''), - j = O[0], - F = O[1], - U = (0, t.useLocalState)(x, 'sortId', 'name'), - _ = U[0], - z = U[1], - H = (0, t.useLocalState)(x, 'sortOrder', !0), - $ = H[0], - Y = H[1]; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Button, { - content: 'Manage Records', - icon: 'wrench', - ml: '0.25rem', - onClick: (function () { - function X() { - return P('screen', { screen: 3 }); - } - return X; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Input, { - fluid: !0, - placeholder: - 'Search by Name, ID, Physical Status, or Mental Status', - onInput: (function () { - function X(re, ae) { - return F(ae); - } - return X; - })(), - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - mt: 0.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, B, { - id: 'name', - children: 'Name', - }), - (0, e.createComponentVNode)(2, B, { - id: 'id', - children: 'ID', - }), - (0, e.createComponentVNode)(2, B, { - id: 'rank', - children: 'Assignment', - }), - (0, e.createComponentVNode)(2, B, { - id: 'p_stat', - children: 'Patient Status', - }), - (0, e.createComponentVNode)(2, B, { - id: 'm_stat', - children: 'Mental Status', - }), - ], - }), - M.filter( - (0, a.createSearch)(j, function (X) { - return ( - X.name + - '|' + - X.id + - '|' + - X.rank + - '|' + - X.p_stat + - '|' + - X.m_stat - ); - }) - ) - .sort(function (X, re) { - var ae = $ ? 1 : -1; - return X[_].localeCompare(re[_]) * ae; - }) - .map(function (X) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'MedicalRecords__listRow--' + l[X.p_stat], - onClick: (function () { - function re() { - return P('view_record', { - view_record: X.ref, - }); - } - return re; - })(), - children: [ - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'user' } - ), - ' ', - X.name, - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: X.id } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: X.rank } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: X.p_stat } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: X.m_stat } - ), - ], - }, - X.id - ); - }), - ], - }), - }), - }), - ], - 4 - ); - }, - s = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.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 D() { - return P('del_all_med_records'); - } - return D; - })(), - } - ), - }), - ], - }), - }); - }, - d = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.medical, - O = D.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: O ? 'spinner' : 'print', - disabled: O, - iconSpin: !!O, - content: 'Print Record', - ml: '0.5rem', - onClick: (function () { - function j() { - return P('print_record'); - } - return j; - })(), - }), - children: (0, e.createComponentVNode)(2, C), - }), - }), - !M || !M.fields - ? (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - color: 'bad', - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - title: 'Medical Data', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: 'pen', - content: 'Create New Record', - onClick: (function () { - function j() { - return P('new_med_record'); - } - return j; - })(), - }), - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - bold: !0, - grow: !0, - textAlign: 'center', - fontSize: 1.75, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, o.Icon.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'scroll', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, o.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'Medical records lost!', - ], - } - ), - }), - }), - }) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - o.Section, - { - fill: !0, - scrollable: !0, - title: 'Medical Data', - buttons: (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - icon: 'trash', - disabled: !!M.empty, - content: 'Delete Medical Record', - onClick: (function () { - function j() { - return P('del_med_record'); - } - return j; - })(), - } - ), - children: (0, e.createComponentVNode)(2, g), - } - ), - }), - (0, e.createComponentVNode)(2, v), - ], - 4 - ), - ], - 0 - ); - }, - C = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.data, - D = P.general; - return !D || !D.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: D.fields.map(function (M, O) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: M.field, - children: [ - (0, e.createComponentVNode)(2, o.Box, { - height: '20px', - inline: !0, - children: M.value, - }), - !!M.edit && - (0, e.createComponentVNode)(2, o.Button, { - icon: 'pen', - ml: '0.5rem', - onClick: (function () { - function j() { - return c(x, M); - } - return j; - })(), - }), - ], - }, - O - ); - }), - } - ), - }), - !!D.has_photos && - D.photos.map(function (M, O) { - return (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - inline: !0, - textAlign: 'center', - color: 'label', - ml: 0, - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: M, - style: { - width: '96px', - 'margin-top': '2.5rem', - 'margin-bottom': '0.5rem', - '-ms-interpolation-mode': - 'nearest-neighbor', - }, - }), - (0, e.createVNode)(1, 'br'), - 'Photo #', - O + 1, - ], - }, - O - ); - }), - ], - }); - }, - g = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.medical; - return !M || !M.fields - ? (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - color: 'bad', - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - children: 'Medical records lost!', - }), - }), - }) - : (0, e.createComponentVNode)(2, o.Stack, { - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: M.fields.map(function (O, j) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: O.field, - children: [ - (0, e.createComponentVNode)(2, o.Box, { - height: '20px', - inline: !0, - children: O.value, - }), - !!O.edit && - (0, e.createComponentVNode)(2, o.Button, { - icon: 'pen', - ml: '0.5rem', - onClick: (function () { - function F() { - return c(x, O); - } - return F; - })(), - }), - ], - }, - j - ); - }), - }), - }), - }); - }, - v = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.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 O() { - return (0, m.modalOpen)(x, 'add_comment'); - } - return O; - })(), - }), - children: - M.comments.length === 0 - ? (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'No comments found.', - }) - : M.comments.map(function (O, j) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - prewrap: !0, - children: [ - (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - inline: !0, - children: O.header, - }), - (0, e.createVNode)(1, 'br'), - O.text, - (0, e.createComponentVNode)(2, o.Button, { - icon: 'comment-slash', - color: 'bad', - ml: '0.5rem', - onClick: (function () { - function F() { - return P('del_comment', { - del_comment: j + 1, - }); - } - return F; - })(), - }), - ], - }, - j - ); - }), - }), - }); - }, - h = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.virus, - O = (0, t.useLocalState)(x, 'searchText', ''), - j = O[0], - F = O[1], - U = (0, t.useLocalState)(x, 'sortId2', 'name'), - _ = U[0], - z = U[1], - H = (0, t.useLocalState)(x, 'sortOrder2', !0), - $ = H[0], - Y = H[1]; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Input, { - ml: '0.25rem', - fluid: !0, - placeholder: 'Search by Name, Max Stages, or Severity', - onInput: (function () { - function X(re, ae) { - return F(ae); - } - return X; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - mt: 0.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, I, { - id: 'name', - children: 'Name', - }), - (0, e.createComponentVNode)(2, I, { - id: 'max_stages', - children: 'Max Stages', - }), - (0, e.createComponentVNode)(2, I, { - id: 'severity', - children: 'Severity', - }), - ], - }), - M.filter( - (0, a.createSearch)(j, function (X) { - return ( - X.name + '|' + X.max_stages + '|' + X.severity - ); - }) - ) - .sort(function (X, re) { - var ae = $ ? 1 : -1; - return X[_].localeCompare(re[_]) * ae; - }) - .map(function (X) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'MedicalRecords__listVirus--' + - X.severity, - onClick: (function () { - function re() { - return P('vir', { vir: X.D }); - } - return re; - })(), - children: [ - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'virus' } - ), - ' ', - X.name, - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: X.max_stages } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { - color: p[X.severity], - children: X.severity, - } - ), - ], - }, - X.id - ); - }), - ], - }), - }), - }), - }), - ], - 4 - ); - }, - V = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.goals; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Virology Goals', - fill: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: - (M.length !== 0 && - M.map(function (O) { - return (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - o.Section, - { - title: O.name, - 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, - { - textAlign: 'center', - children: (0, - e.createComponentVNode)( - 2, - o.ProgressBar, - { - value: O.delivered, - minValue: 0, - maxValue: O.deliverygoal, - ranges: { - good: [ - O.deliverygoal * 0.5, - 1 / 0, - ], - average: [ - O.deliverygoal * 0.25, - O.deliverygoal * 0.5, - ], - bad: [ - -1 / 0, - O.deliverygoal * 0.25, - ], - }, - children: [ - O.delivered, - ' / ', - O.deliverygoal, - ' Units', - ], - } - ), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, o.Box, { - children: O.report, - }), - ], - } - ), - }, - O.id - ); - })) || - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Box, { - textAlign: 'center', - children: 'No Goals Detected', - }), - }), - }), - }); - }, - b = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.medbots; - return M.length === 0 - ? (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - color: 'bad', - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - bold: !0, - grow: !0, - textAlign: 'center', - fontSize: 1.75, - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, o.Icon.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'robot', - size: 5, - color: 'gray', - }), - (0, e.createComponentVNode)(2, o.Icon, { - name: 'slash', - size: 5, - color: 'red', - }), - ], - }), - (0, e.createVNode)(1, 'br'), - 'There are no Medibots.', - ], - }), - }), - }), - }) - : (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - children: (0, e.createComponentVNode)(2, o.Table, { - className: 'MedicalRecords__list', - children: [ - (0, e.createComponentVNode)(2, o.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Name', - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Area', - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Status', - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Chemicals', - }), - ], - }), - M.map(function (O) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'MedicalRecords__listMedbot--' + O.on, - children: [ - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'medical', - }), - ' ', - O.name, - ], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: [ - O.area || 'Unknown', - ' (', - O.x, - ', ', - O.y, - ')', - ], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: O.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: O.use_beaker - ? 'Reservoir: ' + - O.total_volume + - '/' + - O.maximum_volume - : 'Using internal synthesizer', - }), - ], - }, - O.id - ); - }), - ], - }), - }), - }); - }, - B = function (A, x) { - var E = (0, t.useLocalState)(x, 'sortId', 'name'), - P = E[0], - D = E[1], - M = (0, t.useLocalState)(x, 'sortOrder', !0), - O = M[0], - j = M[1], - F = A.id, - U = A.children; - return (0, e.createComponentVNode)(2, o.Table.Cell, { - children: (0, e.createComponentVNode)(2, o.Button, { - fluid: !0, - color: P !== F && 'transparent', - onClick: (function () { - function _() { - P === F ? j(!O) : (D(F), j(!0)); - } - return _; - })(), - children: [ - U, - P === F && - (0, e.createComponentVNode)(2, o.Icon, { - name: O ? 'sort-up' : 'sort-down', - ml: '0.25rem;', - }), - ], - }), - }); - }, - I = function (A, x) { - var E = (0, t.useLocalState)(x, 'sortId2', 'name'), - P = E[0], - D = E[1], - M = (0, t.useLocalState)(x, 'sortOrder2', !0), - O = M[0], - j = M[1], - F = A.id, - U = A.children; - return (0, e.createComponentVNode)(2, o.Table.Cell, { - children: (0, e.createComponentVNode)(2, o.Button, { - fluid: !0, - color: P !== F && 'transparent', - onClick: (function () { - function _() { - P === F ? j(!O) : (D(F), j(!0)); - } - return _; - })(), - children: [ - U, - P === F && - (0, e.createComponentVNode)(2, o.Icon, { - name: O ? 'sort-up' : 'sort-down', - ml: '0.25rem;', - }), - ], - }), - }); - }, - w = function (A, x) { - var E = (0, t.useBackend)(x), - P = E.act, - D = E.data, - M = D.screen, - O = D.general; - return (0, e.createComponentVNode)(2, o.Stack.Item, { - m: 0, - children: (0, e.createComponentVNode)(2, o.Tabs, { - children: [ - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'list', - selected: M === 2, - onClick: (function () { - function j() { - P('screen', { screen: 2 }); - } - return j; - })(), - children: 'List Records', - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'database', - selected: M === 5, - onClick: (function () { - function j() { - P('screen', { screen: 5 }); - } - return j; - })(), - children: 'Virus Database', - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'vial', - selected: M === 6, - onClick: (function () { - function j() { - P('screen', { screen: 6 }); - } - return j; - })(), - children: 'Virology Goals', - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'plus-square', - selected: M === 7, - onClick: (function () { - function j() { - return P('screen', { screen: 7 }); - } - return j; - })(), - children: 'Medibot Tracking', - }), - M === 3 && - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'wrench', - selected: M === 3, - children: 'Record Maintenance', - }), - M === 4 && - O && - !O.empty && - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'file', - selected: M === 4, - children: ['Record: ', O.fields[0].value], - }), - ], - }), - }); - }; - (0, m.modalRegisterBodyOverride)('virus', f); - }, - 44482: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MerchVendor = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = p.product, - s = p.productImage, - d = p.productCategory, - C = i.user_money; - return (0, e.createComponentVNode)(2, t.Table.Row, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - children: (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + s, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '0px', - 'margin-left': '0px', - }, - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: u.name, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Button, { - disabled: u.price > C, - icon: 'shopping-cart', - content: u.price, - textAlign: 'left', - onClick: (function () { - function g() { - return f('purchase', { name: u.name, category: d }); - } - return g; - })(), - }), - }), - ], - }); - }, - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = (0, a.useLocalState)(l, 'tabIndex', 1), - u = i[0], - s = f.products, - d = f.imagelist, - C = ['apparel', 'toy', 'decoration']; - return (0, e.createComponentVNode)(2, t.Table, { - children: s[C[u]].map(function (g) { - return (0, e.createComponentVNode)( - 2, - m, - { - product: g, - productImage: d[g.path], - productCategory: C[u], - }, - g.name - ); - }), - }); - }, - y = (r.MerchVendor = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.user_cash, - s = i.inserted_cash; - return (0, e.createComponentVNode)(2, o.Window, { - title: 'Merch Computer', - width: 450, - height: 600, - 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: 'User', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - color: 'light-grey', - inline: !0, - mr: '0.5rem', - children: [ - 'There is ', - (0, e.createVNode)(1, 'b', null, s, 0), - ' credits inserted.', - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !s, - icon: 'money-bill-wave-alt', - content: 'Dispense Change', - textAlign: 'left', - onClick: (function () { - function d() { - return f('change'); - } - return d; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - 'Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.', - u !== null && - (0, e.createComponentVNode)(2, t.Box, { - mt: '0.5rem', - children: [ - 'Your balance is ', - (0, e.createVNode)( - 1, - 'b', - null, - [ - u || 0, - (0, e.createTextVNode)(' credits'), - ], - 0 - ), - '.', - ], - }), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Products', - children: [ - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, N), - ], - }), - }), - ], - }), - }), - }); - } - return k; - })()), - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = (0, a.useLocalState)(l, 'tabIndex', 1), - u = i[0], - s = i[1], - d = f.login_state; - return (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'dice', - selected: u === 1, - onClick: (function () { - function C() { - return s(1); - } - return C; - })(), - children: 'Toys', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'flag', - selected: u === 2, - onClick: (function () { - function C() { - return s(2); - } - return C; - })(), - children: 'Decorations', - }), - ], - }); - }; - }, - 53551: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MiningVendor = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = ['title', 'items']; - function y(i, u) { - if (i == null) return {}; - var s = {}, - d = Object.keys(i), - C, - g; - for (g = 0; g < d.length; g++) - (C = d[g]), !(u.indexOf(C) >= 0) && (s[C] = i[C]); - return s; - } - var S = { - Alphabetical: (function () { - function i(u, s) { - return u - s; - } - return i; - })(), - Availability: (function () { - function i(u, s) { - return -(u.affordable - s.affordable); - } - return i; - })(), - Price: (function () { - function i(u, s) { - return u.price - s.price; - } - return i; - })(), - }, - k = (r.MiningVendor = (function () { - function i(u, s) { - return (0, e.createComponentVNode)(2, m.Window, { - width: 400, - height: 455, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - 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, l), - ], - }), - }), - }); - } - return i; - })()), - p = function (u, s) { - var d = (0, t.useBackend)(s), - C = d.act, - g = d.data, - v = g.has_id, - h = g.id; - return (0, e.createComponentVNode)(2, o.NoticeBox, { - success: v, - children: v - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - verticalAlign: 'middle', - style: { float: 'left' }, - children: [ - 'Logged in as ', - h.name, - '.', - (0, e.createVNode)(1, 'br'), - 'You have ', - h.points.toLocaleString('en-US'), - ' points.', - ], - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eject', - content: 'Eject ID', - style: { float: 'right' }, - onClick: (function () { - function V() { - return C('logoff'); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, o.Box, { - style: { clear: 'both' }, - }), - ], - 4 - ) - : 'Please insert an ID in order to make purchases.', - }); - }, - l = function (u, s) { - var d = (0, t.useBackend)(s), - C = d.act, - g = d.data, - v = g.has_id, - h = g.id, - V = g.items, - b = (0, t.useLocalState)(s, 'search', ''), - B = b[0], - I = b[1], - w = (0, t.useLocalState)(s, 'sort', 'Alphabetical'), - T = w[0], - A = w[1], - x = (0, t.useLocalState)(s, 'descending', !1), - E = x[0], - P = x[1], - D = (0, a.createSearch)(B, function (j) { - return j[0]; - }), - M = !1, - O = Object.entries(V).map(function (j, F) { - var U = Object.entries(j[1]) - .filter(D) - .map(function (_) { - return ( - (_[1].affordable = v && h.points >= _[1].price), _[1] - ); - }) - .sort(S[T]); - if (U.length !== 0) - return ( - E && (U = U.reverse()), - (M = !0), - (0, e.createComponentVNode)( - 2, - f, - { title: j[0], items: U }, - j[0] - ) - ); - }); - return (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - mt: 0.5, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - children: M - ? O - : (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'No items matching your criteria was found!', - }), - }), - }); - }, - c = function (u, s) { - var d = (0, t.useLocalState)(s, 'search', ''), - C = d[0], - g = d[1], - v = (0, t.useLocalState)(s, 'sort', ''), - h = v[0], - V = v[1], - b = (0, t.useLocalState)(s, 'descending', !1), - B = b[0], - I = b[1]; - return (0, e.createComponentVNode)(2, o.Box, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Input, { - mt: 0.2, - placeholder: 'Search by item name..', - width: '100%', - onInput: (function () { - function w(T, A) { - return g(A); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '30%', - children: (0, e.createComponentVNode)(2, o.Dropdown, { - selected: 'Alphabetical', - options: Object.keys(S), - width: '100%', - onSelected: (function () { - function w(T) { - return V(T); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Button, { - icon: B ? 'arrow-down' : 'arrow-up', - height: '21px', - tooltip: B ? 'Descending order' : 'Ascending order', - tooltipPosition: 'bottom-start', - onClick: (function () { - function w() { - return I(!B); - } - return w; - })(), - }), - }), - ], - }), - }); - }, - f = function (u, s) { - var d = (0, t.useBackend)(s), - C = d.act, - g = d.data, - v = u.title, - h = u.items, - V = y(u, N); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Collapsible, - Object.assign({ open: !0, title: v }, V, { - children: h.map(function (b) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - children: [ - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - verticalAlign: 'middle', - lineHeight: '20px', - style: { float: 'left' }, - children: b.name, - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: !g.has_id || g.id.points < b.price, - content: b.price.toLocaleString('en-US'), - width: '15%', - textAlign: 'center', - style: { float: 'right' }, - onClick: (function () { - function B() { - return C('purchase', { - cat: v, - name: b.name, - }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, o.Box, { - style: { clear: 'both' }, - }), - ], - }, - b.name - ); - }), - }) - ) - ); - }; - }, - 71545: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.ModpacksListContent = r.ModpacksList = void 0); - var e = n(28823), - a = n(91819), - t = n(84947), - o = n(2971), - m = (r.ModpacksList = (function () { - function y(S, k) { - return (0, e.createComponentVNode)(2, t.Window, { - width: 500, - height: 550, - children: (0, e.createComponentVNode)(2, t.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, N), - }), - }), - }); - } - return y; - })()), - N = (r.ModpacksListContent = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.modpacks, - i = (0, a.useLocalState)(k, 'searchText', ''), - u = i[0], - s = i[1], - d = (0, e.createComponentVNode)(2, o.Input, { - placeholder: - '\u0418\u0441\u043A\u0430\u0442\u044C \u043C\u043E\u0434\u043F\u0430\u043A \u043F\u043E \u0438\u043C\u0435\u043D\u0438, \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u044E \u0438\u043B\u0438 \u0430\u0432\u0442\u043E\u0440\u0443...', - fluid: !0, - onInput: (function () { - function C(g, v) { - return s(v); - } - return C; - })(), - }); - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - title: '\u0424\u0438\u043B\u044C\u0442\u0440\u044B', - children: d, - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: - u.length > 0 - ? '\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "' + - u + - '"' - : '\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - ' + - f.length, - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: f - .filter(function (C) { - return ( - C.name && - (u.length > 0 - ? C.name - .toLowerCase() - .includes(u.toLowerCase()) || - C.desc - .toLowerCase() - .includes(u.toLowerCase()) || - C.author - .toLowerCase() - .includes(u.toLowerCase()) - : !0) - ); - }) - .map(function (C) { - return (0, e.createComponentVNode)( - 2, - o.Collapsible, - { - title: C.name, - children: [ - (0, e.createComponentVNode)( - 2, - o.Section, - { - title: - '\u0410\u0432\u0442\u043E\u0440\u044B', - children: C.author, - } - ), - (0, e.createComponentVNode)( - 2, - o.Section, - { - title: - '\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435', - children: C.desc, - } - ), - ], - }, - C.name - ); - }), - } - ), - }), - }), - }), - ], - 4 - ); - } - return y; - })()); - }, - 61100: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NTRecruiter = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.NTRecruiter = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.gamestatus, - f = l.cand_name, - i = l.cand_birth, - u = l.cand_age, - s = l.cand_species, - d = l.cand_planet, - C = l.cand_job, - g = l.cand_records, - v = l.cand_curriculum, - h = l.total_curriculums, - V = l.reason; - if (c === 0) - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 550, - 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, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - pt: '45%', - fontSize: '31px', - color: 'white', - textAlign: 'center', - bold: !0, - children: 'Nanotrasen Recruiter Simulator', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - pt: '1%', - fontSize: '16px', - textAlign: 'center', - color: 'label', - children: - 'Work as the Nanotrasen recruiter and avoid hiring incompetent employees!', - }), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - textAlign: 'center', - lineHeight: 2, - fluid: !0, - icon: 'play', - color: 'green', - content: 'Begin Shift', - onClick: (function () { - function b() { - return p('start_game'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - textAlign: 'center', - lineHeight: 2, - fluid: !0, - icon: 'info', - color: 'blue', - content: 'Guide', - onClick: (function () { - function b() { - return p('instructions'); - } - return b; - })(), - }), - ], - }), - ], - }), - }), - }); - if (c === 1) - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 550, - 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, { - fill: !0, - color: 'grey', - title: 'Guide', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-left', - content: 'Main Menu', - onClick: (function () { - function b() { - return p('back_to_menu'); - } - return b; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '1#', - color: 'silver', - children: [ - 'To win this game you must hire/dismiss', - ' ', - (0, e.createVNode)(1, 'b', null, h, 0), - ' candidates, one wrongly made choice leads to a game over.', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '2#', - color: 'silver', - children: - 'Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '3#', - color: 'silver', - children: [ - (0, e.createVNode)( - 1, - 'b', - null, - 'Unique', - 16 - ), - ' characters may appear, pay attention to them!', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '4#', - color: 'silver', - children: - 'Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '5#', - color: 'silver', - children: [ - 'Not every employment record is good, remember to make your choice based on the ', - (0, e.createVNode)( - 1, - 'b', - null, - 'company morals', - 16 - ), - '!', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '6#', - color: 'silver', - children: - "The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!", - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '7#', - color: 'silver', - children: [ - 'Pay attention to ', - (0, e.createVNode)( - 1, - 'b', - null, - 'typos', - 16 - ), - ' and ', - (0, e.createVNode)( - 1, - 'b', - null, - 'missing words', - 16 - ), - ', these do make for bad applications!', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '8#', - color: 'silver', - children: [ - 'Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ', - (0, e.createVNode)( - 1, - 'b', - null, - 'jobs', - 16 - ), - ' that they', - ' ', - (0, e.createVNode)( - 1, - 'b', - null, - "don't offer", - 16 - ), - '!', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '9#', - color: 'silver', - children: [ - 'Keep your eyes open for incompatible ', - (0, e.createVNode)( - 1, - 'b', - null, - 'naming schemes', - 16 - ), - ', no company wants a Vox named Joe!', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '10#', - color: 'silver', - children: [ - 'For some unknown reason ', - (0, e.createVNode)( - 1, - 'b', - null, - 'clowns', - 16 - ), - ' are never denied by the company, no matter what.', - ], - } - ), - ], - } - ), - }), - }), - }), - }); - if (c === 2) - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 550, - 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, - color: 'label', - fontSize: '14px', - title: 'Employment Applications', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '24px', - textAlign: 'center', - color: 'silver', - bold: !0, - children: ['Candidate Number #', v], - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Name', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - f, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Species', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - s, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Age', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - u, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Date of Birth', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - i, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Planet of Origin', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - d, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Requested Job', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - C, - 0 - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Employment Records', - color: 'silver', - children: (0, e.createVNode)( - 1, - 'b', - null, - g, - 0 - ), - } - ), - ], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - fill: !0, - title: 'Stamp the application!', - color: 'grey', - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - basis: 0, - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'red', - content: 'Dismiss', - fontSize: '150%', - icon: 'ban', - lineHeight: 4.5, - onClick: (function () { - function b() { - return p('dismiss'); - } - return b; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - basis: 0, - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'green', - content: 'Hire', - fontSize: '150%', - icon: 'arrow-circle-up', - lineHeight: 4.5, - onClick: (function () { - function b() { - return p('hire'); - } - return b; - })(), - } - ), - } - ), - ], - } - ), - } - ), - }), - ], - }), - }), - }); - if (c === 3) - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 550, - 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, - { - pt: '40%', - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - color: 'red', - fontSize: '50px', - textAlign: 'center', - children: 'Game Over', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - fontSize: '15px', - color: 'label', - textAlign: 'center', - children: V, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'blue', - fontSize: '20px', - textAlign: 'center', - pt: '10px', - children: ['FINAL SCORE: ', v - 1, '/', h], - }), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.Button, { - lineHeight: 4, - fluid: !0, - icon: 'arrow-left', - content: 'Main Menu', - onClick: (function () { - function b() { - return p('back_to_menu'); - } - return b; - })(), - }), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 6802: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Newscaster = void 0); - var e = n(28823), - a = n(66586), - t = n(91819), - o = n(2971), - m = n(30381), - N = n(84947), - y = n(22677), - S = n(76519), - k = [ - 'icon', - 'iconSpin', - 'selected', - 'security', - 'onClick', - 'title', - 'children', - ], - p = ['name']; - function l(I, w) { - if (I == null) return {}; - var T = {}, - A = Object.keys(I), - x, - E; - for (E = 0; E < A.length; E++) - (x = A[E]), !(w.indexOf(x) >= 0) && (T[x] = I[x]); - return T; - } - var c = 128, - f = [ - 'security', - 'engineering', - 'medical', - 'science', - 'service', - 'supply', - ], - i = { - 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', - }, - }, - u = (r.Newscaster = (function () { - function I(w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = E.is_security, - D = E.is_admin, - M = E.is_silent, - O = E.is_printing, - j = E.screen, - F = E.channels, - U = E.channel_idx, - _ = U === void 0 ? -1 : U, - z = (0, t.useLocalState)(T, 'menuOpen', !1), - H = z[0], - $ = z[1], - Y = (0, t.useLocalState)(T, 'viewingPhoto', ''), - X = Y[0], - re = Y[1], - ae = (0, t.useLocalState)(T, 'censorMode', !1), - se = ae[0], - pe = ae[1], - ye; - j === 0 || j === 2 - ? (ye = (0, e.createComponentVNode)(2, d)) - : j === 1 && (ye = (0, e.createComponentVNode)(2, C)); - var Be = F.reduce(function (he, oe) { - return he + oe.unread; - }, 0); - return (0, e.createComponentVNode)(2, N.Window, { - theme: P && 'security', - width: 800, - height: 600, - children: [ - X - ? (0, e.createComponentVNode)(2, h) - : (0, e.createComponentVNode)(2, y.ComplexModal, { - maxWidth: window.innerWidth / 1.5 + 'px', - maxHeight: window.innerHeight / 1.5 + 'px', - }), - (0, e.createComponentVNode)(2, N.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', - H && '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, s, { - icon: 'bars', - title: 'Toggle Menu', - onClick: (function () { - function he() { - return $(!H); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, s, { - icon: 'newspaper', - title: 'Headlines', - selected: j === 0, - onClick: (function () { - function he() { - return x('headlines'); - } - return he; - })(), - children: - Be > 0 && - (0, e.createComponentVNode)(2, o.Box, { - className: - 'Newscaster__menuButton--unread', - children: Be >= 10 ? '9+' : Be, - }), - }), - (0, e.createComponentVNode)(2, s, { - icon: 'briefcase', - title: 'Job Openings', - selected: j === 1, - onClick: (function () { - function he() { - return x('jobs'); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, o.Divider), - ], - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: F.map(function (he) { - return (0, e.createComponentVNode)( - 2, - s, - { - icon: he.icon, - title: he.name, - selected: j === 2 && F[_ - 1] === he, - onClick: (function () { - function oe() { - return x('channel', { - uid: he.uid, - }); - } - return oe; - })(), - children: - he.unread > 0 && - (0, e.createComponentVNode)( - 2, - o.Box, - { - className: - 'Newscaster__menuButton--unread', - children: - he.unread >= 10 - ? '9+' - : he.unread, - } - ), - }, - he - ); - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, o.Divider), - (!!P || !!D) && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, s, { - security: !0, - icon: 'exclamation-circle', - title: 'Edit Wanted Notice', - mb: '0.5rem', - onClick: (function () { - function he() { - return (0, y.modalOpen)( - T, - 'wanted_notice' - ); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, s, { - security: !0, - icon: se - ? 'minus-square' - : 'minus-square-o', - title: - 'Censor Mode: ' + - (se ? 'On' : 'Off'), - mb: '0.5rem', - onClick: (function () { - function he() { - return pe(!se); - } - return he; - })(), - }), - (0, e.createComponentVNode)( - 2, - o.Divider - ), - ], - 4 - ), - (0, e.createComponentVNode)(2, s, { - icon: 'pen-alt', - title: 'New Story', - mb: '0.5rem', - onClick: (function () { - function he() { - return (0, y.modalOpen)( - T, - 'create_story' - ); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, s, { - icon: 'plus-circle', - title: 'New Channel', - onClick: (function () { - function he() { - return (0, y.modalOpen)( - T, - 'create_channel' - ); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, o.Divider), - (0, e.createComponentVNode)(2, s, { - icon: O ? 'spinner' : 'print', - iconSpin: O, - title: O - ? 'Printing...' - : 'Print Newspaper', - onClick: (function () { - function he() { - return x('print_newspaper'); - } - return he; - })(), - }), - (0, e.createComponentVNode)(2, s, { - icon: M ? 'volume-mute' : 'volume-up', - title: 'Mute: ' + (M ? 'On' : 'Off'), - onClick: (function () { - function he() { - return x('toggle_mute'); - } - return he; - })(), - }), - ], - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - width: '100%', - children: [ - (0, e.createComponentVNode)(2, S.TemporaryNotice), - ye, - ], - }), - ], - }), - }), - ], - }); - } - return I; - })()), - s = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = w.icon, - P = E === void 0 ? '' : E, - D = w.iconSpin, - M = w.selected, - O = M === void 0 ? !1 : M, - j = w.security, - F = j === void 0 ? !1 : j, - U = w.onClick, - _ = w.title, - z = w.children, - H = l(w, k); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Box, - Object.assign( - { - className: (0, a.classes)([ - 'Newscaster__menuButton', - O && 'Newscaster__menuButton--selected', - F && 'Newscaster__menuButton--security', - ]), - onClick: U, - }, - H, - { - children: [ - O && - (0, e.createComponentVNode)(2, o.Box, { - className: 'Newscaster__menuButton--selectedBar', - }), - (0, e.createComponentVNode)(2, o.Icon, { - name: P, - spin: D, - size: '2', - }), - (0, e.createComponentVNode)(2, o.Box, { - className: 'Newscaster__menuButton--title', - children: _, - }), - z, - ], - } - ) - ) - ); - }, - d = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = E.screen, - D = E.is_admin, - M = E.channel_idx, - O = E.channel_can_manage, - j = E.channels, - F = E.stories, - U = E.wanted, - _ = (0, t.useLocalState)(T, 'fullStories', []), - z = _[0], - H = _[1], - $ = (0, t.useLocalState)(T, 'censorMode', !1), - Y = $[0], - X = $[1], - re = P === 2 && M > -1 ? j[M - 1] : null; - return (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - !!U && - (0, e.createComponentVNode)(2, g, { story: U, wanted: !0 }), - (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Icon, { - name: re ? re.icon : 'newspaper', - mr: '0.5rem', - }), - re ? re.name : 'Headlines', - ], - 0 - ), - children: - F.length > 0 - ? F.slice() - .reverse() - .map(function (ae) { - return !z.includes(ae.uid) && - ae.body.length + 3 > c - ? Object.assign({}, ae, { - body_short: - ae.body.substr(0, c - 4) + '...', - }) - : ae; - }) - .map(function (ae, se) { - return (0, e.createComponentVNode)( - 2, - g, - { story: ae }, - se - ); - }) - : (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.', - ], - }), - }), - !!re && - (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)( - [ - Y && - (0, e.createComponentVNode)(2, o.Button, { - disabled: !!re.admin && !D, - selected: re.censored, - icon: re.censored ? 'comment-slash' : 'comment', - content: re.censored - ? 'Uncensor Channel' - : 'Censor Channel', - mr: '0.5rem', - onClick: (function () { - function ae() { - return x('censor_channel', { uid: re.uid }); - } - return ae; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: !O, - icon: 'cog', - content: 'Manage', - onClick: (function () { - function ae() { - return (0, y.modalOpen)(T, 'manage_channel', { - uid: re.uid, - }); - } - return ae; - })(), - }), - ], - 0 - ), - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Description', - children: re.description || 'N/A', - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Owner', - children: re.author || 'N/A', - }), - !!D && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Ckey', - children: re.author_ckey, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Public', - children: re.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', - }), - F.reduce(function (ae, se) { - return ae + se.view_count; - }, 0).toLocaleString(), - ], - }), - ], - }), - }), - ], - }); - }, - C = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = E.jobs, - D = E.wanted, - M = Object.entries(P).reduce(function (O, j) { - var F = j[0], - U = j[1]; - return O + U.length; - }, 0); - return (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - !!D && - (0, e.createComponentVNode)(2, g, { story: D, 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: - M > 0 - ? f - .map(function (O) { - return Object.assign({}, i[O], { - id: O, - jobs: P[O], - }); - }) - .filter(function (O) { - return !!O && O.jobs.length > 0; - }) - .map(function (O) { - return (0, e.createComponentVNode)( - 2, - o.Section, - { - className: (0, a.classes)([ - 'Newscaster__jobCategory', - 'Newscaster__jobCategory--' + O.id, - ]), - title: O.title, - buttons: (0, e.createComponentVNode)( - 2, - o.Box, - { - mt: '0.25rem', - color: 'label', - children: O.fluff_text, - } - ), - children: O.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 - ); - }), - }, - O.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.', - }), - ], - }), - ], - }); - }, - g = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = w.story, - D = w.wanted, - M = D === void 0 ? !1 : D, - O = E.is_admin, - j = (0, t.useLocalState)(T, 'fullStories', []), - F = j[0], - U = j[1], - _ = (0, t.useLocalState)(T, 'censorMode', !1), - z = _[0], - H = _[1]; - return (0, e.createComponentVNode)(2, o.Section, { - className: (0, a.classes)([ - 'Newscaster__story', - M && 'Newscaster__story--wanted', - ]), - title: (0, e.createFragment)( - [ - M && - (0, e.createComponentVNode)(2, o.Icon, { - name: 'exclamation-circle', - mr: '0.5rem', - }), - (P.censor_flags & 2 && '[REDACTED]') || - P.title || - 'News from ' + P.author, - ], - 0 - ), - buttons: (0, e.createComponentVNode)(2, o.Box, { - mt: '0.25rem', - children: (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: [ - !M && - z && - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - children: (0, e.createComponentVNode)(2, o.Button, { - enabled: P.censor_flags & 2, - icon: - P.censor_flags & 2 ? 'comment-slash' : 'comment', - content: P.censor_flags & 2 ? 'Uncensor' : 'Censor', - mr: '0.5rem', - mt: '-0.25rem', - onClick: (function () { - function $() { - return x('censor_story', { uid: P.uid }); - } - return $; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'user', - }), - ' ', - P.author, - ' |\xA0', - !!O && - (0, e.createFragment)( - [ - (0, e.createTextVNode)('ckey: '), - P.author_ckey, - (0, e.createTextVNode)(' |\xA0'), - ], - 0 - ), - !M && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'eye', - }), - (0, e.createTextVNode)(' '), - P.view_count.toLocaleString(), - (0, e.createTextVNode)(' '), - (0, e.createTextVNode)('|\xA0'), - ], - 0 - ), - (0, e.createComponentVNode)(2, o.Icon, { - name: 'clock', - }), - ' ', - (0, m.timeAgo)(P.publish_time, E.world_time), - ], - }), - ], - }), - }), - children: (0, e.createComponentVNode)(2, o.Box, { - children: - P.censor_flags & 2 - ? '[REDACTED]' - : (0, e.createFragment)( - [ - !!P.has_photo && - (0, e.createComponentVNode)(2, v, { - name: 'story_photo_' + P.uid + '.png', - float: 'right', - ml: '0.5rem', - }), - (P.body_short || P.body) - .split('\n') - .map(function ($, Y) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - children: $ || (0, e.createVNode)(1, 'br'), - }, - Y - ); - }), - P.body_short && - (0, e.createComponentVNode)(2, o.Button, { - content: 'Read more..', - mt: '0.5rem', - onClick: (function () { - function $() { - return U([].concat(F, [P.uid])); - } - return $; - })(), - }), - (0, e.createComponentVNode)(2, o.Box, { - clear: 'right', - }), - ], - 0 - ), - }), - }); - }, - v = function (w, T) { - var A = w.name, - x = l(w, p), - E = (0, t.useLocalState)(T, 'viewingPhoto', ''), - P = E[0], - D = E[1]; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Box, - Object.assign( - { - as: 'img', - className: 'Newscaster__photo', - src: A, - onClick: (function () { - function M() { - return D(A); - } - return M; - })(), - }, - x - ) - ) - ); - }, - h = function (w, T) { - var A = (0, t.useLocalState)(T, 'viewingPhoto', ''), - x = 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: x }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'times', - content: 'Close', - color: 'grey', - mt: '1rem', - onClick: (function () { - function P() { - return E(''); - } - return P; - })(), - }), - ], - }); - }, - V = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = - !!w.args.uid && - E.channels - .filter(function (q) { - return q.uid === w.args.uid; - }) - .pop(); - if (w.id === 'manage_channel' && !P) { - (0, y.modalClose)(T); - return; - } - var D = w.id === 'manage_channel', - M = !!w.args.is_admin, - O = w.args.scanned_user, - j = (0, t.useLocalState)( - T, - 'author', - (P == null ? void 0 : P.author) || O || 'Unknown' - ), - F = j[0], - U = j[1], - _ = (0, t.useLocalState)( - T, - 'name', - (P == null ? void 0 : P.name) || '' - ), - z = _[0], - H = _[1], - $ = (0, t.useLocalState)( - T, - 'description', - (P == null ? void 0 : P.description) || '' - ), - Y = $[0], - X = $[1], - re = (0, t.useLocalState)( - T, - 'icon', - (P == null ? void 0 : P.icon) || 'newspaper' - ), - ae = re[0], - se = re[1], - pe = (0, t.useLocalState)( - T, - 'isPublic', - D ? !!(P != null && P.public) : !1 - ), - ye = pe[0], - Be = pe[1], - he = (0, t.useLocalState)( - T, - 'adminLocked', - (P == null ? void 0 : P.admin) === 1 || !1 - ), - oe = he[0], - Z = he[1]; - return (0, e.createComponentVNode)(2, o.Section, { - m: '-1rem', - pb: '1.5rem', - title: D ? 'Manage ' + P.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: !M, - width: '100%', - value: F, - onInput: (function () { - function q(ue, me) { - return U(me); - } - return q; - })(), - }), - }), - (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: z, - onInput: (function () { - function q(ue, me) { - return H(me); - } - return q; - })(), - }), - }), - (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: Y, - onInput: (function () { - function q(ue, me) { - return X(me); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Icon', - children: [ - (0, e.createComponentVNode)(2, o.Input, { - disabled: !M, - value: ae, - width: '35%', - mr: '0.5rem', - onInput: (function () { - function q(ue, me) { - return se(me); - } - return q; - })(), - }), - (0, e.createComponentVNode)(2, o.Icon, { - name: ae, - 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: ye, - icon: ye ? 'toggle-on' : 'toggle-off', - content: ye ? 'Yes' : 'No', - onClick: (function () { - function q() { - return Be(!ye); - } - return q; - })(), - }), - }), - M && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'CentComm Lock', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Button, { - selected: oe, - icon: oe ? 'lock' : 'lock-open', - content: oe ? 'On' : 'Off', - tooltip: - 'Locking this channel will make it editable by nobody but CentComm officers.', - tooltipPosition: 'top', - onClick: (function () { - function q() { - return Z(!oe); - } - return q; - })(), - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Button.Confirm, { - disabled: F.trim().length === 0 || z.trim().length === 0, - icon: 'check', - color: 'good', - content: 'Submit', - position: 'absolute', - right: '1rem', - bottom: '-0.75rem', - onClick: (function () { - function q() { - (0, y.modalAnswer)(T, w.id, '', { - author: F, - name: z.substr(0, 49), - description: Y.substr(0, 128), - icon: ae, - public: ye ? 1 : 0, - admin_locked: oe ? 1 : 0, - }); - } - return q; - })(), - }), - ], - }); - }, - b = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = E.photo, - D = E.channels, - M = E.channel_idx, - O = M === void 0 ? -1 : M, - j = !!w.args.is_admin, - F = w.args.scanned_user, - U = D.slice() - .sort(function (q, ue) { - if (O < 0) return 0; - var me = D[O - 1]; - if (me.uid === q.uid) return -1; - if (me.uid === ue.uid) return 1; - }) - .filter(function (q) { - return j || (!q.frozen && (q.author === F || !!q.public)); - }), - _ = (0, t.useLocalState)(T, 'author', F || 'Unknown'), - z = _[0], - H = _[1], - $ = (0, t.useLocalState)( - T, - 'channel', - U.length > 0 ? U[0].name : '' - ), - Y = $[0], - X = $[1], - re = (0, t.useLocalState)(T, 'title', ''), - ae = re[0], - se = re[1], - pe = (0, t.useLocalState)(T, 'body', ''), - ye = pe[0], - Be = pe[1], - he = (0, t.useLocalState)(T, 'adminLocked', !1), - oe = he[0], - Z = he[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: z, - onInput: (function () { - function q(ue, me) { - return H(me); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Channel', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Dropdown, { - selected: Y, - options: U.map(function (q) { - return q.name; - }), - mb: '0', - width: '100%', - onSelected: (function () { - function q(ue) { - return X(ue); - } - return q; - })(), - }), - }), - (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: ae, - onInput: (function () { - function q(ue, me) { - return se(me); - } - return q; - })(), - }), - }), - (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: ye, - onInput: (function () { - function q(ue, me) { - return Be(me); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Photo (optional)', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Button, { - icon: 'image', - selected: P, - content: P ? 'Eject: ' + P.name : 'Insert Photo', - tooltip: - !P && - 'Attach a photo to this story by holding the photograph in your hand.', - onClick: (function () { - function q() { - return x(P ? 'eject_photo' : 'attach_photo'); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Preview', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Section, { - noTopPadding: !0, - title: ae, - maxHeight: '13.5rem', - overflow: 'auto', - children: (0, e.createComponentVNode)(2, o.Box, { - mt: '0.5rem', - children: [ - !!P && - (0, e.createComponentVNode)(2, v, { - name: 'inserted_photo_' + P.uid + '.png', - float: 'right', - }), - ye.split('\n').map(function (q, ue) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - children: - q || (0, e.createVNode)(1, 'br'), - }, - ue - ); - }), - (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: oe, - icon: oe ? 'lock' : 'lock-open', - content: oe ? 'On' : 'Off', - tooltip: - 'Locking this story will make it censorable by nobody but CentComm officers.', - tooltipPosition: 'top', - onClick: (function () { - function q() { - return Z(!oe); - } - return q; - })(), - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Button.Confirm, { - disabled: - z.trim().length === 0 || - Y.trim().length === 0 || - ae.trim().length === 0 || - ye.trim().length === 0, - icon: 'check', - color: 'good', - content: 'Submit', - position: 'absolute', - right: '1rem', - bottom: '-0.75rem', - onClick: (function () { - function q() { - (0, y.modalAnswer)(T, 'create_story', '', { - author: z, - channel: Y, - title: ae.substr(0, 127), - body: ye.substr(0, 1023), - admin_locked: oe ? 1 : 0, - }); - } - return q; - })(), - }), - ], - }); - }, - B = function (w, T) { - var A = (0, t.useBackend)(T), - x = A.act, - E = A.data, - P = E.photo, - D = E.wanted, - M = !!w.args.is_admin, - O = w.args.scanned_user, - j = (0, t.useLocalState)( - T, - 'author', - (D == null ? void 0 : D.author) || O || 'Unknown' - ), - F = j[0], - U = j[1], - _ = (0, t.useLocalState)( - T, - 'name', - (D == null ? void 0 : D.title.substr(8)) || '' - ), - z = _[0], - H = _[1], - $ = (0, t.useLocalState)( - T, - 'description', - (D == null ? void 0 : D.body) || '' - ), - Y = $[0], - X = $[1], - re = (0, t.useLocalState)( - T, - 'adminLocked', - (D == null ? void 0 : D.admin_locked) === 1 || !1 - ), - ae = re[0], - se = re[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: !M, - width: '100%', - value: F, - onInput: (function () { - function pe(ye, Be) { - return U(Be); - } - return pe; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Name', - children: (0, e.createComponentVNode)(2, o.Input, { - width: '100%', - value: z, - maxLength: '128', - onInput: (function () { - function pe(ye, Be) { - return H(Be); - } - return pe; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Description', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Input, { - multiline: !0, - width: '100%', - value: Y, - maxLength: '512', - rows: '4', - onInput: (function () { - function pe(ye, Be) { - return X(Be); - } - return pe; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Photo (optional)', - verticalAlign: 'top', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'image', - selected: P, - content: P ? 'Eject: ' + P.name : 'Insert Photo', - tooltip: - !P && - 'Attach a photo to this wanted notice by holding the photograph in your hand.', - tooltipPosition: 'top', - onClick: (function () { - function pe() { - return x(P ? 'eject_photo' : 'attach_photo'); - } - return pe; - })(), - }), - !!P && - (0, e.createComponentVNode)(2, v, { - name: 'inserted_photo_' + P.uid + '.png', - float: 'right', - }), - ], - }), - M && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'CentComm Lock', - verticalAlign: 'top', - children: (0, e.createComponentVNode)(2, o.Button, { - selected: ae, - icon: ae ? 'lock' : 'lock-open', - content: ae ? 'On' : 'Off', - tooltip: - 'Locking this wanted notice will make it editable by nobody but CentComm officers.', - tooltipPosition: 'top', - onClick: (function () { - function pe() { - return se(!ae); - } - return pe; - })(), - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Button.Confirm, { - disabled: !D, - icon: 'eraser', - color: 'danger', - content: 'Clear', - position: 'absolute', - right: '7.25rem', - bottom: '-0.75rem', - onClick: (function () { - function pe() { - x('clear_wanted_notice'), (0, y.modalClose)(T); - } - return pe; - })(), - }), - (0, e.createComponentVNode)(2, o.Button.Confirm, { - disabled: - F.trim().length === 0 || - z.trim().length === 0 || - Y.trim().length === 0, - icon: 'check', - color: 'good', - content: 'Submit', - position: 'absolute', - right: '1rem', - bottom: '-0.75rem', - onClick: (function () { - function pe() { - (0, y.modalAnswer)(T, w.id, '', { - author: F, - name: z.substr(0, 127), - description: Y.substr(0, 511), - admin_locked: ae ? 1 : 0, - }); - } - return pe; - })(), - }), - ], - }); - }; - (0, y.modalRegisterBodyOverride)('create_channel', V), - (0, y.modalRegisterBodyOverride)('manage_channel', V), - (0, y.modalRegisterBodyOverride)('create_story', b), - (0, y.modalRegisterBodyOverride)('wanted_notice', B); - }, - 64639: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NuclearBomb = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.NuclearBomb = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - return l.extended - ? (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 290, - 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: l.authdisk - ? 'eject' - : 'id-card', - selected: l.authdisk, - content: l.diskname - ? l.diskname - : '-----', - tooltip: l.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: !l.authdisk, - selected: l.authcode, - content: l.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: l.anchored - ? 'check' - : 'times', - selected: l.anchored, - disabled: !l.authdisk, - content: l.anchored ? 'YES' : 'NO', - onClick: (function () { - function c() { - return p('toggle_anchor'); - } - return c; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Time Left', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'stopwatch', - content: l.time, - disabled: !l.authfull, - tooltip: 'Set Timer', - onClick: (function () { - function c() { - return p('set_time'); - } - return c; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Safety', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: l.safety ? 'check' : 'times', - selected: l.safety, - disabled: !l.authfull, - content: l.safety ? 'ON' : 'OFF', - tooltip: l.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: (l.timer, 'bomb'), - disabled: l.safety || !l.authfull, - color: 'red', - content: l.timer - ? 'DISARM THE NUKE' - : 'ARM THE NUKE', - onClick: (function () { - function c() { - return p('toggle_armed'); - } - return c; - })(), - } - ), - } - ), - ], - } - ), - }), - ], - } - ), - }) - : (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 115, - children: (0, e.createComponentVNode)( - 2, - o.Window.Content, - { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Deployment', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'exclamation-triangle', - content: - 'Deploy Nuclear Device (will bolt device to floor)', - onClick: (function () { - function c() { - return p('deploy'); - } - return c; - })(), - }), - }), - } - ), - }); - } - return N; - })()); - }, - 45523: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.NumberInputModal = void 0); - var e = n(28823), - a = n(2146), - t = n(98658), - o = n(31068), - m = n(91819), - N = n(2971), - y = n(84947), - S = (r.NumberInputModal = (function () { - function p(l, c) { - var f = (0, m.useBackend)(c), - i = f.act, - u = f.data, - s = u.init_value, - d = u.large_buttons, - C = u.message, - g = C === void 0 ? '' : C, - v = u.timeout, - h = u.title, - V = (0, m.useLocalState)(c, 'input', s), - b = V[0], - B = V[1], - I = (function () { - function A(x) { - x !== b && B(x); - } - return A; - })(), - w = (function () { - function A(x) { - x !== b && B(x); - } - return A; - })(), - T = 120 + (g.length > 30 ? Math.ceil(g.length / 3) : 0); - return (0, e.createComponentVNode)(2, y.Window, { - title: h, - width: 270, - height: T, - children: [ - v && (0, e.createComponentVNode)(2, a.Loader, { value: v }), - (0, e.createComponentVNode)(2, y.Window.Content, { - onKeyDown: (function () { - function A(x) { - var E = window.event ? x.which : x.keyCode; - E === o.KEY_ENTER && i('submit', { entry: b }), - E === o.KEY_ESCAPE && i('cancel'); - } - return A; - })(), - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, N.Box, { - color: 'label', - children: g, - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, k, { - input: b, - onClick: w, - onChange: I, - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.InputButtons, - { input: b } - ), - }), - ], - }), - }), - }), - ], - }); - } - return p; - })()), - k = function (l, c) { - var f = (0, m.useBackend)(c), - i = f.act, - u = f.data, - s = u.min_value, - d = u.max_value, - C = u.init_value, - g = u.round_value, - v = l.input, - h = l.onClick, - V = l.onChange, - b = Math.round(v !== s ? Math.max(v / 2, s) : d / 2), - B = (v === s && s > 0) || v === 1; - return (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Button, { - disabled: v === s, - icon: 'angle-double-left', - onClick: (function () { - function I() { - return h(s); - } - return I; - })(), - tooltip: v === s ? 'Min' : 'Min (' + s + ')', - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - N.RestrictedInput, - { - autoFocus: !0, - autoSelect: !0, - fluid: !0, - allowFloats: !g, - minValue: s, - maxValue: d, - onChange: (function () { - function I(w, T) { - return V(T); - } - return I; - })(), - onEnter: (function () { - function I(w, T) { - return i('submit', { entry: T }); - } - return I; - })(), - value: v, - } - ), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Button, { - disabled: v === d, - icon: 'angle-double-right', - onClick: (function () { - function I() { - return h(d); - } - return I; - })(), - tooltip: v === d ? 'Max' : 'Max (' + d + ')', - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Button, { - disabled: B, - icon: 'divide', - onClick: (function () { - function I() { - return h(b); - } - return I; - })(), - tooltip: B ? 'Split' : 'Split (' + b + ')', - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Button, { - disabled: v === C, - icon: 'redo', - onClick: (function () { - function I() { - return h(C); - } - return I; - })(), - tooltip: C ? 'Reset (' + C + ')' : 'Reset', - }), - }), - ], - }); - }; - }, - 48314: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.OperatingComputer = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(84947), - m = n(2971), - N = [ - ['good', 'Conscious'], - ['average', 'Unconscious'], - ['bad', 'DEAD'], - ], - y = [ - ['Resp.', 'oxyLoss'], - ['Toxin', 'toxLoss'], - ['Brute', 'bruteLoss'], - ['Burn', 'fireLoss'], - ], - S = { average: [0.25, 0.5], bad: [0.5, 1 / 0] }, - k = [ - 'bad', - 'average', - 'average', - 'good', - 'average', - 'average', - 'bad', - ], - p = (r.OperatingComputer = (function () { - function i(u, s) { - var d = (0, t.useBackend)(s), - C = d.act, - g = d.data, - v = g.hasOccupant, - h = g.choice, - V; - return ( - h - ? (V = (0, e.createComponentVNode)(2, f)) - : (V = v - ? (0, e.createComponentVNode)(2, l) - : (0, e.createComponentVNode)(2, c)), - (0, e.createComponentVNode)(2, o.Window, { - width: 650, - height: 455, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Tabs, { - children: [ - (0, e.createComponentVNode)(2, m.Tabs.Tab, { - selected: !h, - icon: 'user', - onClick: (function () { - function b() { - return C('choiceOff'); - } - return b; - })(), - children: 'Patient', - }), - (0, e.createComponentVNode)(2, m.Tabs.Tab, { - selected: !!h, - icon: 'cog', - onClick: (function () { - function b() { - return C('choiceOn'); - } - return b; - })(), - children: 'Options', - }), - ], - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - m.Section, - { fill: !0, scrollable: !0, children: V } - ), - }), - ], - }), - }), - }) - ); - } - return i; - })()), - l = function (u, s) { - var d = (0, t.useBackend)(s), - C = d.data, - g = C.occupant; - return (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - title: 'Patient', - children: (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Name', - children: g.name, - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Status', - color: N[g.stat][0], - children: N[g.stat][1], - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Health', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - min: '0', - max: g.maxHealth, - value: g.health / g.maxHealth, - ranges: { - good: [0.5, 1 / 0], - average: [0, 0.5], - bad: [-1 / 0, 0], - }, - } - ), - }), - y.map(function (v, h) { - return (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: v[0] + ' Damage', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - min: '0', - max: '100', - value: g[v[1]] / 100, - ranges: S, - children: (0, a.round)(g[v[1]]), - }, - h - ), - }, - h - ); - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Temperature', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - min: '0', - max: g.maxTemp, - value: g.bodyTemperature / g.maxTemp, - color: k[g.temperatureSuitability + 3], - children: [ - (0, a.round)(g.btCelsius), - '\xB0C, ', - (0, a.round)(g.btFaren), - '\xB0F', - ], - } - ), - }), - !!g.hasBlood && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: 'Blood Level', - children: (0, e.createComponentVNode)( - 2, - m.ProgressBar, - { - min: '0', - max: g.bloodMax, - value: g.bloodLevel / g.bloodMax, - ranges: { - bad: [-1 / 0, 0.6], - average: [0.6, 0.9], - good: [0.6, 1 / 0], - }, - children: [ - g.bloodPercent, - '%, ', - g.bloodLevel, - 'cl', - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { - label: 'Pulse', - children: [g.pulse, ' BPM'], - } - ), - ], - 4 - ), - ], - }), - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Section, { - title: 'Current Procedure', - level: '2', - children: g.inSurgery - ? (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { label: 'Procedure', children: g.surgeryName } - ), - (0, e.createComponentVNode)( - 2, - m.LabeledList.Item, - { label: 'Next Step', children: g.stepName } - ), - ], - }) - : (0, e.createComponentVNode)(2, m.Box, { - color: 'label', - children: 'No procedure ongoing.', - }), - }), - }), - ], - }); - }, - c = function () { - return (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - align: 'center', - textAlign: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, m.Icon, { - name: 'user-slash', - mb: '0.5rem', - size: '5', - }), - (0, e.createVNode)(1, 'br'), - 'No patient detected.', - ], - }), - }); - }, - f = function (u, s) { - var d = (0, t.useBackend)(s), - C = d.act, - g = d.data, - v = g.verbose, - h = g.health, - V = g.healthAlarm, - b = g.oxy, - B = g.oxyAlarm, - I = g.crit; - return (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Loudspeaker', - children: (0, e.createComponentVNode)(2, m.Button, { - selected: v, - icon: v ? 'toggle-on' : 'toggle-off', - content: v ? 'On' : 'Off', - onClick: (function () { - function w() { - return C(v ? 'verboseOff' : 'verboseOn'); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Health Announcer', - children: (0, e.createComponentVNode)(2, m.Button, { - selected: h, - icon: h ? 'toggle-on' : 'toggle-off', - content: h ? 'On' : 'Off', - onClick: (function () { - function w() { - return C(h ? 'healthOff' : 'healthOn'); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Health Announcer Threshold', - children: (0, e.createComponentVNode)(2, m.Knob, { - bipolar: !0, - minValue: -100, - maxValue: 100, - value: V, - stepPixelSize: 5, - ml: '0', - onChange: (function () { - function w(T, A) { - return C('health_adj', { new: A }); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Oxygen Alarm', - children: (0, e.createComponentVNode)(2, m.Button, { - selected: b, - icon: b ? 'toggle-on' : 'toggle-off', - content: b ? 'On' : 'Off', - onClick: (function () { - function w() { - return C(b ? 'oxyOff' : 'oxyOn'); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Oxygen Alarm Threshold', - children: (0, e.createComponentVNode)(2, m.Knob, { - bipolar: !0, - minValue: -100, - maxValue: 100, - value: B, - stepPixelSize: 5, - ml: '0', - onChange: (function () { - function w(T, A) { - return C('oxy_adj', { new: A }); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Critical Alert', - children: (0, e.createComponentVNode)(2, m.Button, { - selected: I, - icon: I ? 'toggle-on' : 'toggle-off', - content: I ? 'On' : 'Off', - onClick: (function () { - function w() { - return C(I ? 'critOff' : 'critOn'); - } - return w; - })(), - }), - }), - ], - }); - }; - }, - 87511: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Orbit = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(66586); - function y(d, C) { - var g = - (typeof Symbol != 'undefined' && d[Symbol.iterator]) || - d['@@iterator']; - if (g) return (g = g.call(d)).next.bind(g); - if ( - Array.isArray(d) || - (g = S(d)) || - (C && d && typeof d.length == 'number') - ) { - g && (d = g); - var v = 0; - return function () { - return v >= d.length - ? { done: !0 } - : { done: !1, value: d[v++] }; - }; - } - throw new TypeError( - 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - } - function S(d, C) { - if (d) { - if (typeof d == 'string') return k(d, C); - var g = Object.prototype.toString.call(d).slice(8, -1); - if ( - (g === 'Object' && d.constructor && (g = d.constructor.name), - g === 'Map' || g === 'Set') - ) - return Array.from(d); - if ( - g === 'Arguments' || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g) - ) - return k(d, C); - } - } - function k(d, C) { - (C == null || C > d.length) && (C = d.length); - for (var g = 0, v = new Array(C); g < C; g++) v[g] = d[g]; - return v; - } - var p = / \(([0-9]+)\)$/, - l = function (C) { - return (0, a.createSearch)(C, function (g) { - return ( - g.name + - (g.assigned_role !== null ? '|' + g.assigned_role : '') - ); - }); - }, - c = function (C, g) { - return C < g ? -1 : C > g; - }, - f = function (C, g) { - var v = C.name, - h = g.name; - if (!v || !h) return 0; - var V = v.match(p), - b = h.match(p); - if (V && b && v.replace(p, '') === h.replace(p, '')) { - var B = parseInt(V[1], 10), - I = parseInt(b[1], 10); - return B - I; - } - return c(v, h); - }, - i = function (C, g) { - var v = C.searchText, - h = C.source, - V = C.title, - b = C.color, - B = C.sorted, - I = h.filter(l(v)); - return ( - B && I.sort(f), - h.length > 0 && - (0, e.createComponentVNode)(2, o.Section, { - title: V + ' - (' + h.length + ')', - children: I.map(function (w) { - return (0, e.createComponentVNode)( - 2, - u, - { thing: w, color: b }, - w.name - ); - }), - }) - ); - }, - u = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = C.color, - b = C.thing; - return (0, e.createComponentVNode)(2, o.Button, { - color: V, - tooltip: b.assigned_role - ? (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Box, { - as: 'img', - mr: '0.5em', - className: (0, N.classes)([ - 'orbit_job16x16', - b.assigned_role_sprite, - ]), - }), - ' ', - b.assigned_role, - ], - }) - : '', - tooltipPosition: 'bottom', - onClick: (function () { - function B() { - return h('orbit', { ref: b.ref }); - } - return B; - })(), - children: [ - b.name, - b.orbiters && - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - ml: 1, - children: [ - '(', - b.orbiters, - ' ', - (0, e.createComponentVNode)(2, o.Icon, { name: 'eye' }), - ')', - ], - }), - ], - }); - }, - s = (r.Orbit = (function () { - function d(C, g) { - for ( - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.alive, - B = V.antagonists, - I = V.highlights, - w = V.response_teams, - T = V.auto_observe, - A = V.dead, - x = V.ghosts, - E = V.misc, - P = V.npcs, - D = (0, t.useLocalState)(g, 'searchText', ''), - M = D[0], - O = D[1], - j = {}, - F = y(B), - U; - !(U = F()).done; - - ) { - var _ = U.value; - j[_.antag] === void 0 && (j[_.antag] = []), - j[_.antag].push(_); - } - var z = Object.entries(j); - z.sort(function ($, Y) { - return c($[0], Y[0]); - }); - var H = (function () { - function $(Y) { - for ( - var X = 0, - re = [ - z.map(function (pe) { - var ye = pe[0], - Be = pe[1]; - return Be; - }), - I, - b, - x, - A, - P, - E, - ]; - X < re.length; - X++ - ) { - var ae = re[X], - se = ae.filter(l(Y)).sort(f)[0]; - if (se !== void 0) { - h('orbit', { ref: se.ref }); - break; - } - } - } - return $; - })(); - return (0, e.createComponentVNode)(2, m.Window, { - width: 700, - height: 500, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, o.Section, { - children: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Icon, { - name: 'search', - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - o.Input, - { - placeholder: 'Search...', - autoFocus: !0, - fluid: !0, - value: M, - onInput: (function () { - function $(Y, X) { - return O(X); - } - return $; - })(), - onEnter: (function () { - function $(Y, X) { - return H(X); - } - return $; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Divider, - { vertical: !0 } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - inline: !0, - color: 'transparent', - tooltip: 'Refresh', - tooltipPosition: 'bottom-start', - icon: 'sync-alt', - onClick: (function () { - function $() { - return h('refresh'); - } - return $; - })(), - } - ), - }), - ], - }), - }), - B.length > 0 && - (0, e.createComponentVNode)(2, o.Section, { - title: 'Antagonists', - children: z.map(function ($) { - var Y = $[0], - X = $[1]; - return (0, e.createComponentVNode)( - 2, - o.Section, - { - title: Y + ' - (' + X.length + ')', - level: 2, - children: X.filter(l(M)) - .sort(f) - .map(function (re) { - return (0, e.createComponentVNode)( - 2, - u, - { color: 'bad', thing: re }, - re.name - ); - }), - }, - Y - ); - }), - }), - I.length > 0 && - (0, e.createComponentVNode)(2, i, { - title: 'Highlights', - source: I, - searchText: M, - color: 'teal', - }), - (0, e.createComponentVNode)(2, i, { - title: 'Response Teams', - source: w, - searchText: M, - color: 'purple', - }), - (0, e.createComponentVNode)(2, i, { - title: 'Alive', - source: b, - searchText: M, - color: 'good', - }), - (0, e.createComponentVNode)(2, i, { - title: 'Ghosts', - source: x, - searchText: M, - color: 'grey', - }), - (0, e.createComponentVNode)(2, i, { - title: 'Dead', - source: A, - searchText: M, - sorted: !1, - }), - (0, e.createComponentVNode)(2, i, { - title: 'NPCs', - source: P, - searchText: M, - sorted: !1, - }), - (0, e.createComponentVNode)(2, i, { - title: 'Misc', - source: E, - searchText: M, - sorted: !1, - }), - ], - }), - }); - } - return d; - })()); - }, - 54528: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.OreRedemption = void 0); - var e = n(28823), - a = n(66586), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(50175); - function y(d) { - if (d == null) throw new TypeError('Cannot destructure ' + d); - } - var S = (0, N.createLogger)('OreRedemption'), - k = function (C) { - return C.toLocaleString('en-US') + ' pts'; - }, - p = (r.OreRedemption = (function () { - function d(C, g) { - return (0, e.createComponentVNode)(2, m.Window, { - width: 490, - height: 750, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, l, { - height: '100%', - }), - }), - (0, e.createComponentVNode)(2, c), - (0, e.createComponentVNode)(2, f), - ], - }), - }), - }); - } - return d; - })()), - l = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.id, - B = V.points, - I = V.disk, - w = Object.assign({}, (y(C), C)); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Section, - Object.assign({}, w, { - 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: b - ? (0, e.createComponentVNode)(2, o.Button, { - selected: !0, - bold: !0, - verticalAlign: 'middle', - icon: 'eject', - content: b.name, - tooltip: 'Ejects the ID card.', - onClick: (function () { - function T() { - return h('eject_id'); - } - return T; - })(), - style: { 'white-space': 'pre-wrap' }, - }) - : (0, e.createComponentVNode)(2, o.Button, { - icon: 'sign-in-alt', - content: 'Insert', - tooltip: - 'Hold the ID card in your hand to insert.', - onClick: (function () { - function T() { - return h('insert_id'); - } - return T; - })(), - }), - }), - b && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Current Mining Points', - children: (0, e.createComponentVNode)(2, o.Box, { - bold: !0, - children: k(b.points), - }), - }), - b && - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Total Mining Points', - children: (0, e.createComponentVNode)(2, o.Box, { - bold: !0, - children: k(b.total_points), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Unclaimed Points', - color: B > 0 ? 'good' : 'grey', - bold: B > 0 && 'good', - children: k(B), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - children: (0, e.createComponentVNode)(2, o.Button, { - disabled: !b, - icon: 'hand-holding-usd', - content: 'Claim', - onClick: (function () { - function T() { - return h('claim'); - } - return T; - })(), - }), - }), - ], - }), - (0, e.createComponentVNode)(2, o.Divider), - I - ? (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: I.name, - tooltip: 'Ejects the design disk.', - onClick: (function () { - function T() { - return h('eject_disk'); - } - return T; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: !I.design || !I.compatible, - icon: 'upload', - content: 'Download', - tooltip: - 'Downloads the design on the disk into the machine.', - onClick: (function () { - function T() { - return h('download'); - } - return T; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Stored design', - children: (0, e.createComponentVNode)( - 2, - o.Box, - { - color: - I.design && - (I.compatible ? 'good' : 'bad'), - children: I.design || 'N/A', - } - ), - } - ), - ], - }) - : (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'No design disk inserted.', - }), - ], - }) - ) - ); - }, - c = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.sheets, - B = Object.assign({}, (y(C), C)); - return (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - height: '20%', - children: (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Section, - Object.assign( - { - fill: !0, - scrollable: !0, - className: 'OreRedemption__Ores', - p: '0', - }, - B, - { - children: [ - (0, e.createComponentVNode)(2, i, { - title: 'Sheets', - columns: [ - ['Available', '25%'], - ['Ore Value', '15%'], - ['Smelt', '20%'], - ], - }), - b.map(function (I) { - return (0, e.createComponentVNode)( - 2, - u, - { ore: I }, - I.id - ); - }), - ], - } - ) - ) - ), - }); - }, - f = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.alloys, - B = Object.assign({}, (y(C), C)); - return (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - o.Section, - Object.assign( - { - fill: !0, - scrollable: !0, - className: 'OreRedemption__Ores', - p: '0', - }, - B, - { - children: [ - (0, e.createComponentVNode)(2, i, { - title: 'Alloys', - columns: [ - ['Recipe', '50%'], - ['Available', '11%'], - ['Smelt', '20%'], - ], - }), - b.map(function (I) { - return (0, e.createComponentVNode)( - 2, - s, - { ore: I }, - I.id - ); - }), - ], - } - ) - ) - ), - }); - }, - i = function (C, g) { - var v; - return (0, e.createComponentVNode)(2, o.Box, { - className: 'OreHeader', - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: C.title, - }), - (v = C.columns) == null - ? void 0 - : v.map(function (h) { - return (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - basis: h[1], - textAlign: 'center', - color: 'label', - bold: !0, - children: h[0], - }, - h - ); - }), - ], - }), - }); - }, - u = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = C.ore; - if ( - !( - V.value && - V.amount <= 0 && - !(['metal', 'glass'].indexOf(V.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', - V.id, - ]), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: V.name, - }), - ], - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '20%', - textAlign: 'center', - color: V.amount >= 1 ? 'good' : 'gray', - bold: V.amount >= 1, - align: 'center', - children: V.amount.toLocaleString('en-US'), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '20%', - textAlign: 'center', - align: 'center', - children: V.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(V.amount, 50), - stepPixelSize: 6, - onChange: (function () { - function b(B, I) { - return h(V.value ? 'sheet' : 'alloy', { - id: V.id, - amount: I, - }); - } - return b; - })(), - } - ), - }), - ], - }), - }); - }, - s = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = C.ore; - return (0, e.createComponentVNode)(2, o.Box, { - className: 'SheetLine', - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '7%', - align: 'middle', - children: (0, e.createComponentVNode)(2, o.Box, { - className: (0, a.classes)(['alloys32x32', V.id]), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '30%', - textAlign: 'middle', - align: 'center', - children: V.name, - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '35%', - textAlign: 'middle', - color: V.amount >= 1 ? 'good' : 'gray', - align: 'center', - children: V.description, - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - basis: '10%', - textAlign: 'center', - color: V.amount >= 1 ? 'good' : 'gray', - bold: V.amount >= 1, - align: 'center', - children: V.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(V.amount, 50), - stepPixelSize: 6, - onChange: (function () { - function b(B, I) { - return h(V.value ? 'sheet' : 'alloy', { - id: V.id, - amount: I, - }); - } - return b; - })(), - }), - }), - ], - }), - }); - }; - }, - 55686: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PAI = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(76521), - N = n(33115), - y = function (p) { - var l; - try { - l = N('./' + p + '.js'); - } catch (f) { - if (f.code === 'MODULE_NOT_FOUND') - return (0, m.routingError)('notFound', p); - throw f; - } - var c = l[p]; - return c || (0, m.routingError)('missingExport', p); - }, - S = (r.PAI = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.app_template, - s = i.app_icon, - d = i.app_title, - C = y(u); - 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, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - p: 1, - fill: !0, - scrollable: !0, - title: (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: s, - mr: 1, - }), - d, - u !== 'pai_main_menu' && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - ml: 2, - mb: 0, - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function g() { - return f('Back'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Home', - icon: 'arrow-up', - onClick: (function () { - function g() { - return f('MASTER_back'); - } - return g; - })(), - }), - ], - 4 - ), - ], - }), - children: (0, e.createComponentVNode)(2, C), - }), - }), - }), - }), - }); - } - return k; - })()); - }, - 58717: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PDA = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(76521), - N = n(75168), - y = function (c) { - var f; - try { - f = N('./' + c + '.js'); - } catch (u) { - if (u.code === 'MODULE_NOT_FOUND') - return (0, m.routingError)('notFound', c); - throw u; - } - var i = f[c]; - return i || (0, m.routingError)('missingExport', c); - }, - S = (r.PDA = (function () { - function l(c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.app, - C = s.owner; - if (!C) - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 105, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Error', - children: - 'No user data found. Please swipe an ID card.', - }), - }), - }); - var g = y(d.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, k), - }), - (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: d.icon, - mr: 1, - }), - d.name, - ], - }), - children: (0, e.createComponentVNode)(2, g), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - mt: 7.5, - children: (0, e.createComponentVNode)(2, p), - }), - ], - }), - }), - }); - } - return l; - })()), - k = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.idInserted, - C = s.idLink, - g = s.stationTime, - v = s.cartridge_name; - return (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - ml: 0.5, - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'id-card', - color: 'transparent', - onClick: (function () { - function h() { - return u('Authenticate'); - } - return h; - })(), - content: d ? C : 'No ID Inserted', - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'sd-card', - color: 'transparent', - onClick: (function () { - function h() { - return u('Eject'); - } - return h; - })(), - content: v ? ['Eject ' + v] : 'No Cartridge Inserted', - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - textAlign: 'right', - bold: !0, - mr: 1, - mt: 0.5, - children: g, - }), - ], - }); - }, - p = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.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: [ - !!d.has_back && - (0, e.createComponentVNode)(2, t.Stack.Item, { - basis: '33%', - mr: -0.5, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - className: 'PDA__footer__button', - color: 'transparent', - iconColor: d.has_back ? 'white' : 'disabled', - icon: 'arrow-alt-circle-left-o', - onClick: (function () { - function C() { - return u('Back'); - } - return C; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - basis: d.has_back ? '33%' : '100%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - className: 'PDA__footer__button', - color: 'transparent', - iconColor: d.is_home ? 'disabled' : 'white', - icon: 'home', - onClick: (function () { - function C() { - u('Home'); - } - return C; - })(), - }), - }), - ], - }), - }); - }; - }, - 78062: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Pacman = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(48300), - N = (r.Pacman = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.active, - i = c.anchored, - u = c.broken, - s = c.emagged, - d = c.fuel_type, - C = c.fuel_usage, - g = c.fuel_stored, - v = c.fuel_cap, - h = c.is_ai, - V = c.tmp_current, - b = c.tmp_max, - B = c.tmp_overheat, - I = c.output_max, - w = c.power_gen, - T = c.output_set, - A = c.has_fuel, - x = g / v, - E = V / b, - P = T * w, - D = Math.round(g / C), - M = Math.round(D / 60), - O = D > 120 ? M + ' minutes' : D + ' seconds'; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 225, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (u || !i) && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Status', - children: [ - !!u && - (0, e.createComponentVNode)(2, t.Box, { - color: 'orange', - children: 'The generator is malfunctioning!', - }), - !u && - !i && - (0, e.createComponentVNode)(2, t.Box, { - color: 'orange', - children: - 'The generator needs to be anchored to the floor with a wrench.', - }), - ], - }), - !u && - !!i && - (0, e.createVNode)( - 1, - 'div', - null, - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Status', - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: f ? 'power-off' : 'times', - content: f ? 'On' : 'Off', - tooltip: - 'Toggles the generator on/off. Requires fuel.', - tooltipPosition: 'left', - disabled: !A, - selected: f, - onClick: (function () { - function j() { - return l('toggle_power'); - } - return j; - })(), - } - ), - 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: T, - minValue: 1, - maxValue: I * (s ? 2.5 : 1), - step: 1, - className: 'mt-1', - onDrag: (function () { - function j(F, U) { - return l('change_power', { - change_power: U, - }); - } - return j; - })(), - } - ), - '(', - (0, m.formatPower)(P), - ')', - ], - } - ), - } - ), - }), - (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: E, - ranges: { - green: [-1 / 0, 0.33], - orange: [0.33, 0.66], - red: [0.66, 1 / 0], - }, - children: [V, ' \u2103'], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Status', - children: [ - B > 50 && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'red', - children: - 'CRITICAL OVERHEAT!', - } - ), - B > 20 && - B <= 50 && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'orange', - children: - 'WARNING: Overheating!', - } - ), - B > 1 && - B <= 20 && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'orange', - children: - 'Temperature High', - } - ), - B === 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: f || h || !A, - onClick: (function () { - function j() { - return l('eject_fuel'); - } - return j; - })(), - } - ), - 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: d } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Fuel level', - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: x, - ranges: { - red: [-1 / 0, 0.33], - orange: [0.33, 0.66], - green: [0.66, 1 / 0], - }, - children: [ - Math.round(g / 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: [ - !!A && (C ? O : 'N/A'), - !A && - (0, e.createComponentVNode)( - 2, - t.Box, - { - color: 'red', - children: 'Out of fuel', - } - ), - ], - } - ), - ], - } - ), - } - ), - ], - }), - }), - ], - 4 - ), - ], - }), - }); - } - return y; - })()); - }, - 65823: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ParticleAccelerator = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ParticleAccelerator = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.assembled, - f = l.power, - i = l.strength, - u = l.max_strength; - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 160, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Control Panel', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync', - content: 'Connect', - onClick: (function () { - function s() { - return p('scan'); - } - return s; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - mb: '5px', - children: (0, e.createComponentVNode)(2, t.Box, { - color: c ? 'good' : 'bad', - children: c - ? 'Operational' - : 'Error: Verify Configuration', - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Power', - children: (0, e.createComponentVNode)(2, t.Button, { - icon: f ? 'power-off' : 'times', - content: f ? 'On' : 'Off', - selected: f, - disabled: !c, - onClick: (function () { - function s() { - return p('power'); - } - return s; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Strength', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'backward', - disabled: !c || i === 0, - onClick: (function () { - function s() { - return p('remove_strength'); - } - return s; - })(), - mr: '4px', - }), - i, - (0, e.createComponentVNode)(2, t.Button, { - icon: 'forward', - disabled: !c || i === u, - onClick: (function () { - function s() { - return p('add_strength'); - } - return s; - })(), - ml: '4px', - }), - ], - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 67572: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PdaPainter = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.PdaPainter = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.has_pda; - return (0, e.createComponentVNode)(2, o.Window, { - width: 510, - height: 505, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: i - ? (0, e.createComponentVNode)(2, y) - : (0, e.createComponentVNode)(2, N), - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act; - 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, { - bold: !0, - grow: !0, - textAlign: 'center', - align: 'center', - color: 'silver', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'download', - size: 5, - mb: '10px', - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - width: '160px', - textAlign: 'center', - content: 'Insert PDA', - onClick: (function () { - function i() { - return f('insert_pda'); - } - return i; - })(), - }), - ], - }), - }), - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.pda_colors; - return (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - horizontal: !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, - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'PdaPainter__list', - children: Object.keys(u).map(function (s) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - onClick: (function () { - function d() { - return f('choose_pda', { selectedPda: s }); - } - return d; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - children: (0, e.createVNode)( - 1, - 'img', - null, - null, - 1, - { - src: 'data:image/png;base64,' + u[s][0], - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '0px', - 'margin-left': '0px', - '-ms-interpolation-mode': - 'nearest-neighbor', - }, - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: s, - }), - ], - }, - s - ); - }), - }), - }), - }), - ], - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.current_appearance, - s = i.preview_appearance; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Current PDA', - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + u, - style: { - 'vertical-align': 'middle', - width: '160px', - margin: '0px', - 'margin-left': '0px', - '-ms-interpolation-mode': 'nearest-neighbor', - }, - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'eject', - content: 'Eject', - color: 'green', - onClick: (function () { - function d() { - return f('eject_pda'); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'paint-roller', - content: 'Paint PDA', - onClick: (function () { - function d() { - return f('paint_pda'); - } - return d; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Preview', - children: (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + s, - style: { - 'vertical-align': 'middle', - width: '160px', - margin: '0px', - 'margin-left': '0px', - '-ms-interpolation-mode': 'nearest-neighbor', - }, - }), - }), - ], - }); - }; - }, - 12456: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PersonalCrafting = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.PersonalCrafting = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.busy, - u = f.category, - s = f.display_craftable_only, - d = f.display_compact, - C = f.prev_cat, - g = f.next_cat, - v = f.subcategory, - h = f.prev_subcat, - V = 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: [ - !!i && - (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: u, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Show Craftable Only', - icon: s ? 'check-square-o' : 'square-o', - selected: s, - onClick: (function () { - function b() { - return c('toggle_recipes'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Compact Mode', - icon: d ? 'check-square-o' : 'square-o', - selected: d, - onClick: (function () { - function b() { - return c('toggle_compact'); - } - return b; - })(), - }), - ], - 4 - ), - children: [ - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: C, - icon: 'arrow-left', - onClick: (function () { - function b() { - return c('backwardCat'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: g, - icon: 'arrow-right', - onClick: (function () { - function b() { - return c('forwardCat'); - } - return b; - })(), - }), - ], - }), - v && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: h, - icon: 'arrow-left', - onClick: (function () { - function b() { - return c('backwardSubCat'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: V, - icon: 'arrow-right', - onClick: (function () { - function b() { - return c('forwardSubCat'); - } - return b; - })(), - }), - ], - }), - d - ? (0, e.createComponentVNode)(2, N) - : (0, e.createComponentVNode)(2, y), - ], - }), - ], - }), - }); - } - return S; - })()), - N = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.display_craftable_only, - u = f.can_craft, - s = f.cant_craft; - return (0, e.createComponentVNode)(2, t.Box, { - mt: 1, - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - u.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: d.name, - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'hammer', - content: 'Craft', - onClick: (function () { - function C() { - return c('make', { make: d.ref }); - } - return C; - })(), - }), - d.catalyst_text && - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.catalyst_text, - content: 'Catalysts', - color: 'transparent', - }), - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.req_text, - content: 'Requirements', - color: 'transparent', - }), - d.tool_text && - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.tool_text, - content: 'Tools', - color: 'transparent', - }), - ], - }, - d.name - ); - }), - !i && - s.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: d.name, - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'hammer', - content: 'Craft', - disabled: !0, - }), - d.catalyst_text && - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.catalyst_text, - content: 'Catalysts', - color: 'transparent', - }), - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.req_text, - content: 'Requirements', - color: 'transparent', - }), - d.tool_text && - (0, e.createComponentVNode)(2, t.Button, { - tooltip: d.tool_text, - content: 'Tools', - color: 'transparent', - }), - ], - }, - d.name - ); - }), - ], - }), - }); - }, - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.display_craftable_only, - u = f.can_craft, - s = f.cant_craft; - return (0, e.createComponentVNode)(2, t.Box, { - mt: 1, - children: [ - u.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: d.name, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'hammer', - content: 'Craft', - onClick: (function () { - function C() { - return c('make', { make: d.ref }); - } - return C; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - d.catalyst_text && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Catalysts', - children: d.catalyst_text, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Requirements', children: d.req_text } - ), - d.tool_text && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Tools', children: d.tool_text } - ), - ], - } - ), - }, - d.name - ); - }), - !i && - s.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: d.name, - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'hammer', - content: 'Craft', - disabled: !0, - }), - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - d.catalyst_text && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Catalysts', - children: d.catalyst_text, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Requirements', - children: d.req_text, - } - ), - d.tool_text && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Tools', children: d.tool_text } - ), - ], - } - ), - }, - d.name - ); - }), - ], - }); - }; - }, - 72143: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Photocopier = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Photocopier = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 440, - 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.Section, { - title: 'Photocopier', - color: 'silver', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - mb: 1, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: 12, - children: 'Copies:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '2em', - bold: !0, - children: f.copynumber, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - float: 'right', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'minus', - textAlign: 'center', - content: '', - onClick: (function () { - function i() { - return c('minus'); - } - return i; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'plus', - textAlign: 'center', - content: '', - onClick: (function () { - function i() { - return c('add'); - } - return i; - })(), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - mb: 2, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: 12, - children: 'Toner:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - children: f.toner, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - mb: 1, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: 12, - children: 'Inserted Document:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - disabled: !f.copyitem && !f.mob, - content: f.copyitem - ? f.copyitem - : f.mob - ? f.mob + "'s ass!" - : 'document', - onClick: (function () { - function i() { - return c('removedocument'); - } - return i; - })(), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: 12, - children: 'Inserted Folder:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - disabled: !f.folder, - content: f.folder ? f.folder : 'folder', - onClick: (function () { - function i() { - return c('removefolder'); - } - return i; - })(), - } - ), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, N), - }), - (0, e.createComponentVNode)(2, y), - ], - }), - }), - }); - } - return S; - })()), - N = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.issilicon; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'copy', - float: 'center', - textAlign: 'center', - content: 'Copy', - onClick: (function () { - function u() { - return c('copy'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'file-import', - float: 'center', - textAlign: 'center', - content: 'Scan', - onClick: (function () { - function u() { - return c('scandocument'); - } - return u; - })(), - }), - !!i && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'file', - color: 'green', - float: 'center', - textAlign: 'center', - content: 'Print Text', - onClick: (function () { - function u() { - return c('ai_text'); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'image', - color: 'green', - float: 'center', - textAlign: 'center', - content: 'Print Image', - onClick: (function () { - function u() { - return c('ai_pic'); - } - return u; - })(), - }), - ], - 4 - ), - ], - 0 - ); - }, - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Scanned Files', - children: f.files.map(function (i) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: i.name, - buttons: (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'print', - content: 'Print', - disabled: f.toner <= 0, - onClick: (function () { - function u() { - return c('filecopy', { uid: i.uid }); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - icon: 'trash-alt', - content: 'Delete', - color: 'bad', - onClick: (function () { - function u() { - return c('deletefile', { uid: i.uid }); - } - return u; - })(), - }), - ], - }), - }, - i.name - ); - }), - }); - }; - }, - 82020: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Photocopier220 = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(72026), - N = n(90955), - y = n(37843); - function S(f, i) { - var u = - (typeof Symbol != 'undefined' && f[Symbol.iterator]) || - f['@@iterator']; - if (u) return (u = u.call(f)).next.bind(u); - if ( - Array.isArray(f) || - (u = k(f)) || - (i && f && typeof f.length == 'number') - ) { - u && (f = u); - var s = 0; - return function () { - return s >= f.length - ? { done: !0 } - : { done: !1, value: f[s++] }; - }; - } - throw new TypeError( - 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.' - ); - } - function k(f, i) { - if (f) { - if (typeof f == 'string') return p(f, i); - var u = Object.prototype.toString.call(f).slice(8, -1); - if ( - (u === 'Object' && f.constructor && (u = f.constructor.name), - u === 'Map' || u === 'Set') - ) - return Array.from(f); - if ( - u === 'Arguments' || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u) - ) - return p(f, i); - } - } - function p(f, i) { - (i == null || i > f.length) && (i = f.length); - for (var u = 0, s = new Array(i); u < i; u++) s[u] = f[u]; - return s; - } - String.prototype.trimLongStr = function (f) { - return this.length > f ? this.substring(0, f) + '...' : this; - }; - var l = function (i, u) { - u === void 0 && (u = ''); - var s = (0, y.createSearch)(u, function (d) { - return d.altername; - }); - return (0, N.flow)([ - (0, m.filter)(function (d) { - return d == null ? void 0 : d.altername; - }), - u && (0, m.filter)(s), - (0, m.sortBy)(function (d) { - return d.id; - }), - ])(i); - }, - c = (r.Photocopier220 = (function () { - function f(i, u) { - for ( - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.copies, - v = C.maxcopies, - h = (0, a.useLocalState)(u, 'searchText', ''), - V = h[0], - b = h[1], - B = l( - (0, m.sortBy)(function (M) { - return M.category; - })(C.forms || []), - V - ), - I = [], - w = S(B), - T; - !(T = w()).done; - - ) { - var A = T.value; - I.includes(A.category) || I.push(A.category); - } - var x = (0, a.useLocalState)(u, 'number', 0), - E = x[0], - P = x[1], - D; - return ( - C.category === '' - ? (D = B) - : (D = B.filter(function (M) { - return M.category === C.category; - })), - (0, e.createComponentVNode)(2, o.Window, { - width: 550, - height: 575, - theme: C.ui_theme, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - basis: '40%', - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: '\u0421\u0442\u0430\u0442\u0443\u0441', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '50%', - mt: 0.3, - color: 'grey', - children: - '\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:', - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '50%', - children: (0, - e.createComponentVNode)( - 2, - t.ProgressBar, - { - minValue: 0, - maxValue: 30, - value: C.toner, - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - mt: 1, - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '50%', - mb: 0.3, - color: 'grey', - children: - '\u0424\u043E\u0440\u043C\u0430:', - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '50%', - textAlign: 'center', - bold: !0, - children: - C.form_id === '' - ? '\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430' - : C.form_id, - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '100%', - mt: 1, - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - disabled: !C.copyitem && !C.mob, - icon: - C.copyitem || C.mob - ? 'eject' - : 'times', - content: C.copyitem - ? C.copyitem - : C.mob - ? '\u0416\u043E\u043F\u0430 ' + - C.mob + - '!' - : '\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430', - onClick: (function () { - function M() { - return d('removedocument'); - } - return M; - })(), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '100%', - mt: '3px', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - disabled: !C.folder, - icon: C.folder - ? 'eject' - : 'times', - content: C.folder - ? C.folder - : '\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438', - onClick: (function () { - function M() { - return d('removefolder'); - } - return M; - })(), - } - ), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: - '\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '100%', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - icon: 'print', - disabled: - C.toner === 0 || - C.form === null, - content: - '\u041F\u0435\u0447\u0430\u0442\u044C', - onClick: (function () { - function M() { - return d('print_form'); - } - return M; - })(), - } - ), - } - ), - !!C.isAI && - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '100%', - ml: '5px', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - icon: 'image', - disabled: C.toner < 5, - content: - '\u0424\u043E\u0442\u043E', - tooltip: - '\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445', - onClick: (function () { - function M() { - return d('ai_pic'); - } - return M; - })(), - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '100%', - mt: '3px', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - icon: 'copy', - content: - '\u041A\u043E\u043F\u0438\u044F', - disabled: - C.toner === 0 || - (!C.copyitem && !C.mob), - onClick: (function () { - function M() { - return d('copy'); - } - return M; - })(), - } - ), - } - ), - !!C.isAI && - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - width: '100%', - ml: '5px', - mt: '3px', - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - icon: 'i-cursor', - content: - '\u0422\u0435\u043A\u0441\u0442', - tooltip: - '\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442', - disabled: C.toner === 0, - onClick: (function () { - function M() { - return d('ai_text'); - } - return M; - })(), - } - ), - } - ), - ], - }), - (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: 0.75, - width: '50%', - animated: !0, - minValue: 1, - maxValue: v, - value: g, - stepPixelSize: 10, - onChange: (function () { - function M(O, j) { - return d('copies', { new: j }); - } - return M; - })(), - } - ), - ], - }), - ], - }), - (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: -0.5, - icon: 'chevron-right', - color: 'transparent', - content: - '\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B', - selected: !C.category, - onClick: (function () { - function M() { - return d( - 'choose_category', - { category: '' } - ); - } - return M; - })(), - } - ), - } - ), - I.map(function (M) { - return (0, - e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - icon: 'chevron-right', - mb: -0.5, - color: 'transparent', - content: M, - selected: - C.category === M, - onClick: (function () { - function O() { - return d( - 'choose_category', - { category: M } - ); - } - return O; - })(), - }, - M - ), - }, - M - ); - }), - ], - } - ), - } - ), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - basis: '60%', - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - fill: !0, - scrollable: !0, - title: - C.category || - '\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B', - buttons: (0, e.createComponentVNode)( - 2, - t.Input, - { - mr: 18.5, - width: '100%', - placeholder: - '\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B', - onInput: (function () { - function M(O, j) { - return b(j); - } - return M; - })(), - } - ), - children: D.map(function (M) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - mb: 0.5, - color: 'transparent', - content: M.altername.trimLongStr(37), - tooltip: M.altername, - selected: C.form_id === M.id, - onClick: (function () { - function O() { - return d('choose_form', { - path: M.path, - id: M.id, - }); - } - return O; - })(), - } - ), - }, - M.path - ); - }), - } - ), - }), - ], - }), - }), - }) - ); - } - return f; - })()); - }, - 47051: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PoolController = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = ['tempKey']; - function N(p, l) { - if (p == null) return {}; - var c = {}, - f = Object.keys(p), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = p[i]); - return c; - } - var y = { - scalding: { - label: 'Scalding', - color: '#FF0000', - icon: 'fa fa-arrow-circle-up', - requireEmag: !0, - }, - warm: { - label: 'Warm', - color: '#990000', - icon: 'fa fa-arrow-circle-up', - }, - normal: { - label: 'Normal', - color: null, - icon: 'fa fa-arrow-circle-right', - }, - cool: { - label: 'Cool', - color: '#009999', - icon: 'fa fa-arrow-circle-down', - }, - frigid: { - label: 'Frigid', - color: '#00CCCC', - icon: 'fa fa-arrow-circle-down', - requireEmag: !0, - }, - }, - S = function (l, c) { - var f = l.tempKey, - i = N(l, m), - u = y[f]; - if (!u) return null; - var s = (0, a.useBackend)(c), - d = s.data, - C = s.act, - g = d.currentTemp, - v = u.label, - h = u.icon, - V = f === g, - b = function () { - C('setTemp', { temp: f }); - }; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.Button, - Object.assign( - { color: 'transparent', selected: V, onClick: b }, - i, - { - children: [ - (0, e.createComponentVNode)(2, t.Icon, { name: h }), - v, - ], - } - ) - ) - ); - }, - k = (r.PoolController = (function () { - function p(l, c) { - for ( - var f = (0, a.useBackend)(c), - i = f.data, - u = i.emagged, - s = i.currentTemp, - d = y[s] || y.normal, - C = d.label, - g = d.color, - v = [], - h = 0, - V = Object.entries(y); - h < V.length; - h++ - ) { - var b = V[h], - B = b[0], - I = b[1].requireEmag; - (!I || (I && u)) && v.push(B); - } - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 285, - 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: 'Status', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Current Temperature', - children: (0, e.createComponentVNode)( - 2, - t.Box, - { color: g, children: C } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Safety Status', - children: u - ? (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'WARNING: OVERRIDDEN', - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'good', - children: 'Nominal', - }), - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Temperature Selection', - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: v.map(function (w) { - return (0, e.createComponentVNode)( - 2, - S, - { fluid: !0, tempKey: w }, - w - ); - }), - } - ), - }), - ], - }), - }), - }); - } - return p; - })()); - }, - 5424: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PortablePump = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.PortablePump = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.has_holding_tank; - return (0, e.createComponentVNode)(2, o.Window, { - width: 435, - height: 330, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, y), - u - ? (0, e.createComponentVNode)(2, S) - : (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Holding Tank', - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - bold: 1, - textAlign: 'center', - mt: 2.5, - children: 'No Holding Tank Inserted.', - }), - }), - ], - }), - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.on, - s = i.direction, - d = i.port_connected; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Pump Settings', - buttons: (0, e.createComponentVNode)(2, t.Button, { - width: 4, - icon: 'power-off', - content: u ? 'On' : 'Off', - color: u ? null : 'red', - selected: u, - onClick: (function () { - function C() { - return f('power'); - } - return C; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Pump Direction', - children: (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - width: 4, - icon: 'sign-in-alt', - content: 'In', - selected: !s, - onClick: (function () { - function C() { - return f('set_direction', { direction: 0 }); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - width: 4, - icon: 'sign-out-alt', - content: 'Out', - selected: s, - onClick: (function () { - function C() { - return f('set_direction', { direction: 1 }); - } - return C; - })(), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Port status', - children: (0, e.createComponentVNode)(2, t.Box, { - color: d ? 'green' : 'average', - bold: 1, - ml: 0.5, - children: d ? 'Connected' : 'Disconnected', - }), - }), - ], - }), - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.tank_pressure, - s = i.target_pressure, - d = i.max_target_pressure, - C = d * 0.7, - g = d * 0.25; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Pressure Settings', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Stored pressure', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: u, - minValue: 0, - maxValue: d, - ranges: { - good: [C, 1 / 0], - average: [g, C], - bad: [-1 / 0, g], - }, - children: [u, ' kPa'], - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack, { - mt: 1, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - color: 'label', - mt: 0.3, - children: 'Target pressure:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'undo', - mr: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_pressure', { pressure: 101.325 }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-backward', - mr: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_pressure', { pressure: 0 }); - } - return v; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Slider, { - animated: !0, - unit: 'kPa', - width: 16.5, - stepPixelSize: 0.22, - minValue: 0, - maxValue: d, - value: s, - onChange: (function () { - function v(h, V) { - return f('set_pressure', { pressure: V }); - } - return v; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - ml: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_pressure', { pressure: d }); - } - return v; - })(), - }), - }), - ], - }), - ], - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.holding_tank, - s = i.max_target_pressure, - d = s * 0.7, - C = s * 0.25; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Holding Tank', - buttons: (0, e.createComponentVNode)(2, t.Button, { - onClick: (function () { - function g() { - return f('remove_tank'); - } - return g; - })(), - icon: 'eject', - children: 'Eject', - }), - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - children: 'Tank Label:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'silver', - ml: 4.5, - children: u.name, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - mt: 2, - children: 'Tank Pressure:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - mt: 1.5, - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: u.tank_pressure, - minValue: 0, - maxValue: s, - ranges: { - good: [d, 1 / 0], - average: [C, d], - bad: [-1 / 0, C], - }, - children: [u.tank_pressure, ' kPa'], - } - ), - }), - ], - }), - ], - }); - }; - }, - 70673: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PortableScrubber = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.PortableScrubber = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.has_holding_tank; - return (0, e.createComponentVNode)(2, o.Window, { - width: 435, - height: 300, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, y), - u - ? (0, e.createComponentVNode)(2, S) - : (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Holding Tank', - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - bold: 1, - textAlign: 'center', - mt: 2.5, - children: 'No Holding Tank Inserted.', - }), - }), - ], - }), - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.on, - s = i.port_connected; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Pump Settings', - buttons: (0, e.createComponentVNode)(2, t.Button, { - width: 4, - icon: 'power-off', - content: u ? 'On' : 'Off', - color: u ? null : 'red', - selected: u, - onClick: (function () { - function d() { - return f('power'); - } - return d; - })(), - }), - children: (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - children: 'Port Status:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: s ? 'green' : 'average', - bold: 1, - ml: 6, - children: s ? 'Connected' : 'Disconnected', - }), - ], - }), - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.tank_pressure, - s = i.rate, - d = i.max_rate, - C = d * 0.7, - g = d * 0.25; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Pressure Settings', - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Stored pressure', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: u, - minValue: 0, - maxValue: d, - ranges: { - good: [C, 1 / 0], - average: [g, C], - bad: [-1 / 0, g], - }, - children: [u, ' kPa'], - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack, { - mt: 1, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - color: 'label', - mt: 0.3, - children: 'Target pressure:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'undo', - mr: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_rate', { rate: 101.325 }); - } - return v; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-backward', - mr: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_rate', { rate: 0 }); - } - return v; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Slider, { - animated: !0, - unit: 'kPa', - width: 16.5, - stepPixelSize: 0.22, - minValue: 0, - maxValue: d, - value: s, - onChange: (function () { - function v(h, V) { - return f('set_rate', { rate: V }); - } - return v; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - ml: 0.5, - width: 2.2, - textAlign: 'center', - onClick: (function () { - function v() { - return f('set_rate', { rate: d }); - } - return v; - })(), - }), - }), - ], - }), - ], - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.holding_tank, - s = i.max_rate, - d = s * 0.7, - C = s * 0.25; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Holding Tank', - buttons: (0, e.createComponentVNode)(2, t.Button, { - onClick: (function () { - function g() { - return f('remove_tank'); - } - return g; - })(), - icon: 'eject', - children: 'Eject', - }), - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - children: 'Tank Label:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'silver', - ml: 4.5, - children: u.name, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - color: 'label', - mt: 2, - children: 'Tank Pressure:', - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - mt: 1.5, - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: u.tank_pressure, - minValue: 0, - maxValue: s, - ranges: { - good: [d, 1 / 0], - average: [C, d], - bad: [-1 / 0, C], - }, - children: [u.tank_pressure, ' kPa'], - } - ), - }), - ], - }), - ], - }); - }; - }, - 22015: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PortableTurret = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(14635), - N = (r.PortableTurret = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.locked, - i = c.on, - u = c.lethal, - s = c.lethal_is_configurable, - d = c.targetting_is_configurable, - C = c.check_weapons, - g = c.neutralize_noaccess, - v = c.access_is_configurable, - h = c.regions, - V = c.selectedAccess, - b = c.one_access, - B = c.neutralize_norecord, - I = c.neutralize_criminals, - w = c.neutralize_all, - T = c.neutralize_unidentified, - A = c.neutralize_cyborgs; - return (0, e.createComponentVNode)(2, o.Window, { - width: 475, - 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.NoticeBox, { - children: [ - 'Swipe an ID card to ', - f ? 'unlock' : 'lock', - ' this interface.', - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - m: 0, - children: (0, e.createComponentVNode)(2, t.Section, { - 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: i ? 'power-off' : 'times', - content: i ? 'On' : 'Off', - selected: i, - disabled: f, - onClick: (function () { - function x() { - return l('power'); - } - return x; - })(), - } - ), - } - ), - !!s && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Lethals', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: u - ? 'exclamation-triangle' - : 'times', - content: u ? 'On' : 'Off', - color: u ? 'bad' : '', - disabled: f, - onClick: (function () { - function x() { - return l('lethal'); - } - return x; - })(), - } - ), - } - ), - !!v && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'One Access Mode', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: b - ? 'address-card' - : 'exclamation-triangle', - content: b ? 'On' : 'Off', - selected: b, - disabled: f, - onClick: (function () { - function x() { - return l('one_access'); - } - return x; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - !!d && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Humanoid Targets', - children: [ - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: I, - content: 'Wanted Criminals', - disabled: f, - onClick: (function () { - function x() { - return l('autharrest'); - } - return x; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: B, - content: 'No Sec Record', - disabled: f, - onClick: (function () { - function x() { - return l('authnorecord'); - } - return x; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: C, - content: 'Unauthorized Weapons', - disabled: f, - onClick: (function () { - function x() { - return l('authweapon'); - } - return x; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: g, - content: 'Unauthorized Access', - disabled: f, - onClick: (function () { - function x() { - return l('authaccess'); - } - return x; - })(), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Other Targets', - children: [ - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: T, - content: - 'Unidentified Lifesigns (Xenos, Animals, Etc)', - disabled: f, - onClick: (function () { - function x() { - return l('authxeno'); - } - return x; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: A, - content: 'Cyborgs', - disabled: f, - onClick: (function () { - function x() { - return l('authborgs'); - } - return x; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: w, - content: 'All Non-Synthetics', - disabled: f, - onClick: (function () { - function x() { - return l('authsynth'); - } - return x; - })(), - } - ), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: - !!v && - (0, e.createComponentVNode)(2, m.AccessList, { - accesses: h, - selectedList: V, - accessMod: (function () { - function x(E) { - return l('set', { access: E }); - } - return x; - })(), - grantAll: (function () { - function x() { - return l('grant_all'); - } - return x; - })(), - denyAll: (function () { - function x() { - return l('clear_all'); - } - return x; - })(), - grantDep: (function () { - function x(E) { - return l('grant_region', { region: E }); - } - return x; - })(), - denyDep: (function () { - function x(E) { - return l('deny_region', { region: E }); - } - return x; - })(), - }), - }), - ], - }), - }), - }); - } - return y; - })()); - }, - 75199: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.PowerMonitorMainContent = r.PowerMonitor = void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(58331), - m = n(66586), - N = n(37843), - y = n(91819), - S = n(2971), - k = n(84947), - p = 6e5, - l = (r.PowerMonitor = (function () { - function d(C, g) { - return (0, e.createComponentVNode)(2, k.Window, { - width: 600, - height: 650, - children: (0, e.createComponentVNode)(2, k.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, c), - }), - }); - } - return d; - })()), - c = (r.PowerMonitorMainContent = (function () { - function d(C, g) { - var v = (0, y.useBackend)(g), - h = v.act, - V = v.data, - b = V.powermonitor, - B = V.select_monitor; - return (0, e.createComponentVNode)(2, S.Box, { - m: 0, - children: [ - !b && B && (0, e.createComponentVNode)(2, f), - b && (0, e.createComponentVNode)(2, i), - ], - }); - } - return d; - })()), - f = function (C, g) { - var v = (0, y.useBackend)(g), - h = v.act, - V = v.data, - b = V.powermonitors; - return (0, e.createComponentVNode)(2, S.Section, { - title: 'Select Power Monitor', - children: b.map(function (B) { - return (0, e.createComponentVNode)( - 2, - S.Box, - { - children: (0, e.createComponentVNode)(2, S.Button, { - content: B.Area, - icon: 'arrow-right', - onClick: (function () { - function I() { - return h('selectmonitor', { selectmonitor: B.uid }); - } - return I; - })(), - }), - }, - B - ); - }), - }); - }, - i = function (C, g) { - var v = (0, y.useBackend)(g), - h = v.act, - V = v.data, - b = V.powermonitor, - B = V.history, - I = V.apcs, - w = V.select_monitor, - T = V.no_powernet, - A; - if (T) - A = (0, e.createComponentVNode)(2, S.Box, { - color: 'bad', - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, S.Icon, { - name: 'exclamation-triangle', - size: '2', - my: '0.5rem', - }), - (0, e.createVNode)(1, 'br'), - 'Warning: The monitor is not connected to power grid via cable!', - ], - }); - else { - var x = (0, y.useLocalState)(g, 'sortByField', null), - E = x[0], - P = x[1], - D = B.supply[B.supply.length - 1] || 0, - M = B.demand[B.demand.length - 1] || 0, - O = B.supply.map(function (_, z) { - return [z, _]; - }), - j = B.demand.map(function (_, z) { - return [z, _]; - }), - F = Math.max.apply(Math, [p].concat(B.supply, B.demand)), - U = (0, t.flow)([ - (0, a.map)(function (_, z) { - return Object.assign({}, _, { id: _.name + z }); - }), - E === 'name' && - (0, a.sortBy)(function (_) { - return _.Name; - }), - E === 'charge' && - (0, a.sortBy)(function (_) { - return -_.CellPct; - }), - E === 'draw' && - (0, a.sortBy)(function (_) { - return -_.Load; - }), - ])(I); - A = (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, S.Flex, { - spacing: 1, - children: [ - (0, e.createComponentVNode)(2, S.Flex.Item, { - width: '200px', - children: (0, e.createComponentVNode)(2, S.Section, { - children: (0, e.createComponentVNode)( - 2, - S.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - S.LabeledList.Item, - { - label: 'Supply', - children: (0, e.createComponentVNode)( - 2, - S.ProgressBar, - { - value: D, - minValue: 0, - maxValue: F, - color: 'green', - children: - (0, o.toFixed)(D / 1e3) + ' kW', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - S.LabeledList.Item, - { - label: 'Draw', - children: (0, e.createComponentVNode)( - 2, - S.ProgressBar, - { - value: M, - minValue: 0, - maxValue: F, - color: 'red', - children: - (0, o.toFixed)(M / 1e3) + ' kW', - } - ), - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, S.Flex.Item, { - grow: 1, - children: (0, e.createComponentVNode)(2, S.Section, { - fill: !0, - ml: 1, - children: [ - (0, e.createComponentVNode)(2, S.Chart.Line, { - fillPositionedParent: !0, - data: O, - rangeX: [0, O.length - 1], - rangeY: [0, F], - strokeColor: 'rgba(32, 177, 66, 1)', - fillColor: 'rgba(32, 177, 66, 0.25)', - }), - (0, e.createComponentVNode)(2, S.Chart.Line, { - fillPositionedParent: !0, - data: j, - rangeX: [0, j.length - 1], - rangeY: [0, F], - strokeColor: 'rgba(219, 40, 40, 1)', - fillColor: 'rgba(219, 40, 40, 0.25)', - }), - ], - }), - }), - ], - }), - (0, e.createComponentVNode)(2, S.Box, { - mb: 1, - children: [ - (0, e.createComponentVNode)(2, S.Box, { - inline: !0, - mr: 2, - color: 'label', - children: 'Sort by:', - }), - (0, e.createComponentVNode)(2, S.Button.Checkbox, { - checked: E === 'name', - content: 'Name', - onClick: (function () { - function _() { - return P(E !== 'name' && 'name'); - } - return _; - })(), - }), - (0, e.createComponentVNode)(2, S.Button.Checkbox, { - checked: E === 'charge', - content: 'Charge', - onClick: (function () { - function _() { - return P(E !== 'charge' && 'charge'); - } - return _; - })(), - }), - (0, e.createComponentVNode)(2, S.Button.Checkbox, { - checked: E === 'draw', - content: 'Draw', - onClick: (function () { - function _() { - return P(E !== 'draw' && 'draw'); - } - return _; - })(), - }), - ], - }), - (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: 'Area', - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - collapsing: !0, - children: 'Charge', - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - textAlign: 'right', - children: 'Draw', - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - collapsing: !0, - title: 'Equipment', - children: 'Eqp', - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - collapsing: !0, - title: 'Lighting', - children: 'Lgt', - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - collapsing: !0, - title: 'Environment', - children: 'Env', - }), - ], - }), - U.map(function (_, z) { - return (0, e.createComponentVNode)( - 2, - S.Table.Row, - { - className: 'Table__row candystripe', - children: [ - (0, e.createComponentVNode)(2, S.Table.Cell, { - children: (0, N.decodeHtmlEntities)(_.Name), - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - className: - 'Table__cell text-right text-nowrap', - children: (0, e.createComponentVNode)(2, u, { - charging: _.CellStatus, - charge: _.CellPct, - }), - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - className: - 'Table__cell text-right text-nowrap', - children: _.Load, - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - className: - 'Table__cell text-center text-nowrap', - children: (0, e.createComponentVNode)(2, s, { - status: _.Equipment, - }), - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - className: - 'Table__cell text-center text-nowrap', - children: (0, e.createComponentVNode)(2, s, { - status: _.Lights, - }), - }), - (0, e.createComponentVNode)(2, S.Table.Cell, { - className: - 'Table__cell text-center text-nowrap', - children: (0, e.createComponentVNode)(2, s, { - status: _.Environment, - }), - }), - ], - }, - _.id - ); - }), - ], - }), - ], - 4 - ); - } - return (0, e.createComponentVNode)(2, S.Section, { - title: b, - buttons: (0, e.createComponentVNode)(2, S.Box, { - m: 0, - children: - w && - (0, e.createComponentVNode)(2, S.Button, { - content: 'Back', - icon: 'arrow-up', - onClick: (function () { - function _() { - return h('return'); - } - return _; - })(), - }), - }), - children: A, - }); - }, - u = function (C) { - var g = C.charging, - v = C.charge; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, S.Icon, { - width: '18px', - textAlign: 'center', - name: - (g === 'N' && - (v > 50 ? 'battery-half' : 'battery-quarter')) || - (g === 'C' && 'bolt') || - (g === 'F' && 'battery-full') || - (g === 'M' && 'slash'), - color: - (g === 'N' && (v > 50 ? 'yellow' : 'red')) || - (g === 'C' && 'yellow') || - (g === 'F' && 'green') || - (g === 'M' && 'orange'), - }), - (0, e.createComponentVNode)(2, S.Box, { - inline: !0, - width: '36px', - textAlign: 'right', - children: (0, o.toFixed)(v) + '%', - }), - ], - 4 - ); - }; - u.defaultHooks = m.pureComponentHooks; - var s = function (C) { - var g, - v, - h = C.status; - switch (h) { - case 'AOn': - (g = !0), (v = !0); - break; - case 'AOff': - (g = !0), (v = !1); - break; - case 'On': - (g = !1), (v = !0); - break; - case 'Off': - (g = !1), (v = !1); - break; - } - var V = (v ? 'On' : 'Off') + (' [' + (g ? 'auto' : 'manual') + ']'); - return (0, e.createComponentVNode)(2, S.ColorBox, { - color: v ? 'good' : 'bad', - content: g ? void 0 : 'M', - title: V, - }); - }; - s.defaultHooks = m.pureComponentHooks; - }, - 15164: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PrisonerImplantManager = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(88488), - m = n(22677), - N = n(51185), - y = n(69774), - S = n(84947), - k = (r.PrisonerImplantManager = (function () { - function p(l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.loginState, - d = u.prisonerInfo, - C = u.chemicalInfo, - g = u.trackingInfo, - v; - if (!s.logged_in) - return (0, e.createComponentVNode)(2, S.Window, { - theme: 'security', - width: 500, - height: 850, - children: (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, y.LoginScreen), - }), - }); - var h = [1, 5, 10]; - return (0, e.createComponentVNode)(2, S.Window, { - theme: 'security', - width: 500, - height: 850, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.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: d.name - ? 'eject' - : 'id-card', - selected: d.name, - content: d.name - ? d.name - : '-----', - tooltip: d.name - ? 'Eject ID' - : 'Insert ID', - onClick: (function () { - function V() { - return i('id_card'); - } - return V; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Points', - children: [ - d.points !== null - ? d.points - : '-/-', - (0, e.createComponentVNode)( - 2, - t.Button, - { - ml: 2, - icon: 'minus-square', - disabled: d.points === null, - content: 'Reset', - onClick: (function () { - function V() { - return i('reset_points'); - } - return V; - })(), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Point Goal', - children: [ - d.goal !== null ? d.goal : '-/-', - (0, e.createComponentVNode)( - 2, - t.Button, - { - ml: 2, - icon: 'pen', - disabled: d.goal === null, - content: 'Edit', - onClick: (function () { - function V() { - return (0, m.modalOpen)( - c, - 'set_points' - ); - } - return V; - })(), - } - ), - ], - } - ), - (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: d.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: g.map(function (V) { - 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: ', - V.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: V.location, - } - ), - (0, - e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Health', - children: V.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 b() { - return (0, - m.modalOpen)( - c, - 'warn', - { - uid: V.uid, - } - ); - } - return b; - })(), - } - ), - } - ), - ], - } - ), - ], - }, - V.subject - ), - ], - }), - (0, e.createVNode)(1, 'br'), - ], - 4 - ); - }), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - fill: !0, - scrollable: !0, - title: 'Chemical Implants', - children: C.map(function (V) { - 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: ', V.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: V.volume, - } - ), - } - ), - h.map(function (b) { - return (0, - e.createComponentVNode)( - 2, - t.Button, - { - mt: 2, - disabled: V.volume < b, - icon: 'syringe', - content: - 'Inject ' + b + 'u', - onClick: (function () { - function B() { - return i('inject', { - uid: V.uid, - amount: b, - }); - } - return B; - })(), - }, - b - ); - }), - ], - }, - V.name - ), - ], - }), - (0, e.createVNode)(1, 'br'), - ], - 4 - ); - }), - } - ), - }), - ], - }), - }), - ], - }); - } - return p; - })()); - }, - 99646: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PrisonerShuttleConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.PrisonerShuttleConsole = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.can_go_home, - f = l.emagged, - i = l.id_inserted, - u = l.id_name, - s = l.id_points, - d = l.id_goal, - C = f ? 0 : 1, - g = c ? 'Completed!' : 'Insufficient'; - f && (g = 'ERR0R'); - var v = 'No ID inserted'; - return ( - i - ? (v = (0, e.createComponentVNode)(2, t.ProgressBar, { - value: s / d, - ranges: { good: [C, 1 / 0], bad: [-1 / 0, C] }, - children: s + ' / ' + d + ' ' + g, - })) - : f && (v = 'ERR0R COMPLETED?!@'), - (0, e.createComponentVNode)(2, o.Window, { - width: 315, - height: 150, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - children: v, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Shuttle controls', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: 'Move shuttle', - disabled: !c, - onClick: (function () { - function h() { - return p('move_shuttle'); - } - return h; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Inserted ID', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: i ? u : '-------------', - onClick: (function () { - function h() { - return p('handle_id'); - } - return h; - })(), - }), - }), - ], - }), - }), - }) - ); - } - return N; - })()); - }, - 96493: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.PrizeCounter = void 0); - var e = n(28823), - a = n(66586), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.PrizeCounter = (function () { - function y(S, k) { - var p = (0, t.useBackend)(k), - l = p.act, - c = p.data, - f = c.tickets, - i = c.prizes, - u = i === void 0 ? [] : i, - s = (0, t.useLocalState)(k, 'searchText', ''), - d = s[0], - C = s[1], - g = u.filter(function (v) { - return v.name.toLowerCase().includes(d.toLowerCase()); - }); - return (0, e.createComponentVNode)(2, m.Window, { - width: 450, - height: 585, - title: 'Arcade Ticket Exchange', - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: 'Available Prizes', - buttons: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Input, - { - mt: 0.1, - width: 12.5, - placeholder: 'Search for a prize', - value: d, - onInput: (function () { - function v(h, V) { - return C(V); - } - return v; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - iconRight: !0, - icon: 'ticket', - disabled: !f, - content: (0, e.createFragment)( - [ - (0, e.createTextVNode)('Tickets: '), - (0, e.createVNode)(1, 'b', null, f, 0), - ], - 0 - ), - onClick: (function () { - function v() { - return l('eject'); - } - return v; - })(), - } - ), - }), - ], - }), - children: g.map(function (v) { - var h = v.cost > f; - return (0, e.createComponentVNode)( - 2, - o.Stack, - { - className: 'PrizeCounter__Item', - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - lineHeight: '0', - align: 'center', - children: (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'prize_counter64x64', - v.imageID, - ]) - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - width: '100%', - children: (0, e.createComponentVNode)( - 2, - o.Stack, - { - vertical: !0, - textAlign: 'center', - children: [ - (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - bold: !0, - mt: 1, - children: v.name, - } - ), - (0, e.createComponentVNode)( - 2, - o.Stack.Divider - ), - (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { mb: 1, children: v.desc } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - className: (0, a.classes)([ - 'PrizeCounter__BuyButton', - h && - 'PrizeCounter__BuyButton--disabled', - ]), - icon: 'ticket', - content: v.cost, - tooltip: h - ? 'Not enough tickets.' - : null, - tooltipPosition: 'top-end', - onClick: (function () { - function V() { - return ( - !h && - l('purchase', { - purchase: v.itemID, - }) - ); - } - return V; - })(), - } - ), - }), - ], - }, - v.name - ); - }), - }), - }), - }), - }), - }); - } - return y; - })()); - }, - 82443: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RCD = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(22677), - N = n(14635), - y = (r.RCD = (function () { - function i(u, s) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 480, - height: 670, - children: [ - (0, e.createComponentVNode)(2, m.ComplexModal), - (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, l), - (0, e.createComponentVNode)(2, c), - ], - }), - }), - ], - }); - } - return i; - })()), - S = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.data, - g = C.matter, - v = C.max_matter, - h = v * 0.7, - V = v * 0.25; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Matter Storage', - children: (0, e.createComponentVNode)(2, t.ProgressBar, { - ranges: { - good: [h, 1 / 0], - average: [V, h], - bad: [-1 / 0, V], - }, - value: g, - maxValue: v, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - textAlign: 'center', - children: g + ' / ' + v + ' units', - }), - }), - }), - }); - }, - k = function () { - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Construction Type', - children: (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, p, { - mode_type: 'Floors and Walls', - }), - (0, e.createComponentVNode)(2, p, { - mode_type: 'Airlocks', - }), - (0, e.createComponentVNode)(2, p, { - mode_type: 'Windows', - }), - (0, e.createComponentVNode)(2, p, { - mode_type: 'Deconstruction', - }), - ], - }), - }), - }); - }, - p = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = u.mode_type, - h = g.mode; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - color: 'transparent', - content: v, - selected: h === v ? 1 : 0, - onClick: (function () { - function V() { - return C('mode', { mode: v }); - } - return V; - })(), - }), - }); - }, - l = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.door_name, - h = g.electrochromic, - V = g.airlock_glass; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Airlock Settings', - children: (0, e.createComponentVNode)(2, t.Stack, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - color: 'transparent', - icon: 'pen-alt', - content: (0, e.createFragment)( - [ - (0, e.createTextVNode)('Rename: '), - (0, e.createVNode)(1, 'b', null, v, 0), - ], - 0 - ), - onClick: (function () { - function b() { - return (0, m.modalOpen)(s, 'renameAirlock'); - } - return b; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: - V === 1 && - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: h ? 'toggle-on' : 'toggle-off', - content: 'Electrochromic', - selected: h, - onClick: (function () { - function b() { - return C('electrochromic'); - } - return b; - })(), - }), - }), - ], - }), - }), - }); - }, - c = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.tab, - h = g.locked, - V = g.one_access, - b = g.selected_accesses, - B = g.regions; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Tabs, { - fluid: !0, - children: [ - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - icon: 'cog', - selected: v === 1, - onClick: (function () { - function I() { - return C('set_tab', { tab: 1 }); - } - return I; - })(), - children: 'Airlock Types', - }), - (0, e.createComponentVNode)(2, t.Tabs.Tab, { - selected: v === 2, - icon: 'list', - onClick: (function () { - function I() { - return C('set_tab', { tab: 2 }); - } - return I; - })(), - children: 'Airlock Access', - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: - v === 1 - ? (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Types', - children: (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, f, { - check_number: 0, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, f, { - check_number: 1, - }), - }), - ], - }), - }) - : v === 2 && h - ? (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Access', - buttons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'lock-open', - content: 'Unlock', - onClick: (function () { - function I() { - return C('set_lock', { - new_lock: 'unlock', - }); - } - return I; - })(), - } - ), - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - fill: !0, - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - textAlign: 'center', - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'lock', - size: '5', - mb: 3, - }), - (0, e.createVNode)(1, 'br'), - 'Airlock access selection is currently locked.', - ], - } - ), - } - ), - }) - : (0, e.createComponentVNode)(2, N.AccessList, { - sectionButtons: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'lock', - content: 'Lock', - onClick: (function () { - function I() { - return C('set_lock', { - new_lock: 'lock', - }); - } - return I; - })(), - } - ), - usedByRcd: 1, - rcdButtons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: V, - content: 'One', - onClick: (function () { - function I() { - return C('set_one_access', { - access: 'one', - }); - } - return I; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: !V, - width: 4, - content: 'All', - onClick: (function () { - function I() { - return C('set_one_access', { - access: 'all', - }); - } - return I; - })(), - } - ), - ], - 4 - ), - accesses: B, - selectedList: b, - accessMod: (function () { - function I(w) { - return C('set', { access: w }); - } - return I; - })(), - grantAll: (function () { - function I() { - return C('grant_all'); - } - return I; - })(), - denyAll: (function () { - function I() { - return C('clear_all'); - } - return I; - })(), - grantDep: (function () { - function I(w) { - return C('grant_region', { region: w }); - } - return I; - })(), - denyDep: (function () { - function I(w) { - return C('deny_region', { region: w }); - } - return I; - })(), - }), - }), - ], - 4 - ); - }, - f = function (u, s) { - for ( - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.door_types_ui_list, - h = g.door_type, - V = u.check_number, - b = [], - B = 0; - B < v.length; - B++ - ) - B % 2 === V && b.push(v[B]); - return (0, e.createComponentVNode)(2, t.Stack.Item, { - children: b.map(function (I, w) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - mb: 0.5, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - icon: null, - color: 'translucent', - checked: h === I.type, - content: (0, e.createFragment)( - [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + I.image, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '3px', - 'margin-right': '6px', - 'margin-left': '-3px', - }, - }), - I.name, - ], - 0 - ), - onClick: (function () { - function T() { - return C('door_type', { door_type: I.type }); - } - return T; - })(), - } - ), - }), - }, - w - ); - }), - }); - }; - }, - 61566: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RPD = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(66586), - N = (r.RPD = (function () { - function f(i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.mainmenu, - v = C.mode, - h = (function () { - function V(b) { - switch (b) { - case 1: - return (0, e.createComponentVNode)(2, y); - case 2: - return (0, e.createComponentVNode)(2, S); - case 3: - return (0, e.createComponentVNode)(2, k); - case 4: - return (0, e.createComponentVNode)(2, p); - case 5: - return (0, e.createComponentVNode)(2, l); - case 6: - return (0, e.createComponentVNode)(2, c); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return V; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 550, - height: 415, - 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.Tabs, { - fluid: !0, - children: g.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: V.icon, - selected: V.mode === v, - onClick: (function () { - function b() { - return d('mode', { mode: V.mode }); - } - return b; - })(), - children: V.category, - }, - V.category - ); - }), - }), - }), - h(v), - ], - }), - }), - }); - } - return f; - })()), - y = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.pipemenu, - v = C.pipe_category, - h = C.pipelist, - V = C.whatpipe, - b = C.iconrotation; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Tabs, { - fluid: !0, - children: g.map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - textAlign: 'center', - selected: B.pipemode === v, - onClick: (function () { - function I() { - return d('pipe_category', { - pipe_category: B.pipemode, - }); - } - return I; - })(), - children: B.category, - }, - B.category - ); - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: h - .filter(function (B) { - return B.pipe_type === 1; - }) - .filter(function (B) { - return B.pipe_category === v; - }) - .map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - content: B.pipe_name, - icon: 'cog', - selected: B.pipe_id === V, - onClick: (function () { - function I() { - return d('whatpipe', { - whatpipe: B.pipe_id, - }); - } - return I; - })(), - style: { 'margin-bottom': '2px' }, - } - ), - }, - B.pipe_name - ); - }), - } - ), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: h - .filter(function (B) { - return ( - B.pipe_type === 1 && - B.pipe_id === V && - B.orientations !== 1 - ); - }) - .map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - content: - 'Orient automatically', - selected: b === 0, - onClick: (function () { - function I() { - return d( - 'iconrotation', - { iconrotation: 0 } - ); - } - return I; - })(), - style: { - 'margin-bottom': '5px', - }, - } - ), - } - ), - B.bendy - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 4, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'southeast-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 4, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 2, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'southwest-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 2, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 1, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'northeast-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 1, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 8, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'northwest-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 8, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - ], - 4 - ) - : (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 1, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'north-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 1, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 4, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'east-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 4, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - B.orientations === 4 && - (0, - e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 2, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'south-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 2, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, - e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: - 'center', - color: - 'translucent', - selected: - b === 8, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: - (0, - m.classes)( - [ - 'rpd32x32', - 'west-' + - B.pipe_icon, - ] - ), - } - ), - onClick: - (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 8, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - ], - 0 - ), - ], - }, - B.pipe_id - ); - }), - } - ), - }), - }), - }), - ], - }), - }), - ], - 4 - ); - }, - S = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.pipe_category, - v = C.pipelist, - h = C.whatdpipe, - V = C.iconrotation; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: v - .filter(function (b) { - return b.pipe_type === 2; - }) - .map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - content: b.pipe_name, - icon: 'cog', - selected: b.pipe_id === h, - onClick: (function () { - function B() { - return d('whatdpipe', { - whatdpipe: b.pipe_id, - }); - } - return B; - })(), - style: { 'margin-bottom': '2px' }, - } - ), - }, - b.pipe_name - ); - }), - } - ), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: v - .filter(function (b) { - return ( - b.pipe_type === 2 && - b.pipe_id === h && - b.orientations !== 1 - ); - }) - .map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - textAlign: 'center', - content: 'Orient automatically', - selected: V === 0, - onClick: (function () { - function B() { - return d('iconrotation', { - iconrotation: 0, - }); - } - return B; - })(), - style: { 'margin-bottom': '5px' }, - } - ), - }), - (0, e.createComponentVNode)(2, t.Grid, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 1, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'north-' + - b.pipe_icon, - ]), - } - ), - onClick: (function () { - function B() { - return d( - 'iconrotation', - { iconrotation: 1 } - ); - } - return B; - })(), - style: { - 'margin-bottom': '5px', - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 4, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'east-' + b.pipe_icon, - ]), - } - ), - onClick: (function () { - function B() { - return d( - 'iconrotation', - { iconrotation: 4 } - ); - } - return B; - })(), - style: { - 'margin-bottom': '5px', - }, - } - ), - } - ), - ], - }), - b.orientations === 4 && - (0, e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 2, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'south-' + - b.pipe_icon, - ]), - } - ), - onClick: (function () { - function B() { - return d( - 'iconrotation', - { - iconrotation: 2, - } - ); - } - return B; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 8, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'west-' + - b.pipe_icon, - ]), - } - ), - onClick: (function () { - function B() { - return d( - 'iconrotation', - { - iconrotation: 8, - } - ); - } - return B; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - ], - }, - b.pipe_id - ); - }), - } - ), - }), - }), - }), - ], - }), - }); - }, - k = function (i, u) { - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (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, { - bold: !0, - grow: !0, - textAlign: 'center', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'sync-alt', - size: 5, - color: 'gray', - mb: 5, - }), - (0, e.createVNode)(1, 'br'), - 'Device ready to rotate loose pipes...', - ], - }), - }), - }), - }); - }, - p = function (i, u) { - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (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, { - bold: !0, - grow: !0, - textAlign: 'center', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'arrows-alt-h', - size: 5, - color: 'gray', - mb: 5, - }), - (0, e.createVNode)(1, 'br'), - 'Device ready to flip loose pipes...', - ], - }), - }), - }), - }); - }, - l = function (i, u) { - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (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, { - bold: !0, - grow: !0, - textAlign: 'center', - align: 'center', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'recycle', - size: 5, - color: 'gray', - mb: 5, - }), - (0, e.createVNode)(1, 'br'), - 'Device ready to eat loose pipes...', - ], - }), - }), - }), - }); - }, - c = function (i, u) { - var s = (0, a.useBackend)(u), - d = s.act, - C = s.data, - g = C.pipe_category, - v = C.pipelist, - h = C.whatttube, - V = C.iconrotation, - b = 3; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: v - .filter(function (B) { - return B.pipe_type === b; - }) - .map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - content: B.pipe_name, - icon: 'cog', - selected: B.pipe_id === h, - onClick: (function () { - function I() { - return d('whatttube', { - whatttube: B.pipe_id, - }); - } - return I; - })(), - style: { 'margin-bottom': '2px' }, - } - ), - }, - B.pipe_name - ); - }), - } - ), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '50%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Grid, { - children: (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: v - .filter(function (B) { - return ( - B.pipe_type === b && - B.pipe_id === h && - B.orientations !== 1 - ); - }) - .map(function (B) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - 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: 'translucent', - textAlign: 'center', - selected: V === 1, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'north-' + - B.pipe_icon, - ]), - } - ), - onClick: (function () { - function I() { - return d( - 'iconrotation', - { iconrotation: 1 } - ); - } - return I; - })(), - style: { - 'margin-bottom': '5px', - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 4, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'east-' + B.pipe_icon, - ]), - } - ), - onClick: (function () { - function I() { - return d( - 'iconrotation', - { iconrotation: 4 } - ); - } - return I; - })(), - style: { - 'margin-bottom': '5px', - }, - } - ), - } - ), - ], - }), - B.orientations === 4 && - (0, e.createComponentVNode)( - 2, - t.Grid, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 2, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'south-' + - B.pipe_icon, - ]), - } - ), - onClick: (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 2, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Grid.Column, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - color: 'translucent', - textAlign: 'center', - selected: V === 8, - content: (0, - e.createComponentVNode)( - 2, - t.Box, - { - className: (0, - m.classes)([ - 'rpd32x32', - 'west-' + - B.pipe_icon, - ]), - } - ), - onClick: (function () { - function I() { - return d( - 'iconrotation', - { - iconrotation: 8, - } - ); - } - return I; - })(), - style: { - 'margin-bottom': - '5px', - }, - } - ), - } - ), - ], - } - ), - ], - }, - B.pipe_id - ); - }), - } - ), - }), - }), - }), - ], - }), - }); - }; - }, - 24618: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Radio = void 0); - var e = n(28823), - a = n(72026), - t = n(58331), - o = n(91819), - m = n(2971), - N = n(30381), - y = n(84947), - S = (r.Radio = (function () { - function k(p, l) { - var c = (0, o.useBackend)(l), - f = c.act, - i = c.data, - u = i.freqlock, - s = i.frequency, - d = i.minFrequency, - C = i.maxFrequency, - g = i.canReset, - v = i.listening, - h = i.broadcasting, - V = i.loudspeaker, - b = i.has_loudspeaker, - B = N.RADIO_CHANNELS.find(function (P) { - return P.freq === s; - }), - I = !!(B && B.name), - w = [], - T = [], - A = 0; - for (A = 0; A < N.RADIO_CHANNELS.length; A++) - (T = N.RADIO_CHANNELS[A]), (w[T.name] = T.color); - var x = (0, a.map)(function (P, D) { - return { name: D, status: !!P }; - })(i.schannels), - E = (0, a.map)(function (P, D) { - return { name: D, freq: P }; - })(i.ichannels); - return (0, e.createComponentVNode)(2, y.Window, { - width: 375, - height: 130 + x.length * 21.2 + E.length * 11, - children: (0, e.createComponentVNode)(2, y.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, m.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, m.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Frequency', - children: [ - (u && - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - color: 'light-gray', - children: (0, t.toFixed)(s / 10, 1) + ' kHz', - })) || - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - m.NumberInput, - { - animate: !0, - unit: 'kHz', - step: 0.2, - stepPixelSize: 10, - minValue: d / 10, - maxValue: C / 10, - value: s / 10, - format: (function () { - function P(D) { - return (0, t.toFixed)(D, 1); - } - return P; - })(), - onChange: (function () { - function P(D, M) { - return f('frequency', { - adjust: M - s / 10, - }); - } - return P; - })(), - } - ), - (0, e.createComponentVNode)(2, m.Button, { - icon: 'undo', - content: '', - disabled: !g, - tooltip: 'Reset', - onClick: (function () { - function P() { - return f('frequency', { - tune: 'reset', - }); - } - return P; - })(), - }), - ], - 4 - ), - I && - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - color: B.color, - ml: 2, - children: ['[', B.name, ']'], - }), - ], - }), - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Audio', - children: [ - (0, e.createComponentVNode)(2, m.Button, { - textAlign: 'center', - width: '37px', - icon: v ? 'volume-up' : 'volume-mute', - selected: v, - color: v ? '' : 'bad', - tooltip: v - ? 'Disable Incoming' - : 'Enable Incoming', - onClick: (function () { - function P() { - return f('listen'); - } - return P; - })(), - }), - (0, e.createComponentVNode)(2, m.Button, { - textAlign: 'center', - width: '37px', - icon: h ? 'microphone' : 'microphone-slash', - selected: h, - tooltip: h ? 'Disable Hotmic' : 'Enable Hotmic', - onClick: (function () { - function P() { - return f('broadcast'); - } - return P; - })(), - }), - !!b && - (0, e.createComponentVNode)(2, m.Button, { - ml: 1, - icon: 'bullhorn', - selected: V, - content: 'Loudspeaker', - tooltip: V - ? 'Disable Loudspeaker' - : 'Enable Loudspeaker', - onClick: (function () { - function P() { - return f('loudspeaker'); - } - return P; - })(), - }), - ], - }), - x.length !== 0 && - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Keyed Channels', - children: x.map(function (P) { - return (0, e.createComponentVNode)( - 2, - m.Box, - { - children: [ - (0, e.createComponentVNode)(2, m.Button, { - icon: P.status - ? 'check-square-o' - : 'square-o', - selected: P.status, - content: '', - onClick: (function () { - function D() { - return f('channel', { - channel: P.name, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, m.Box, { - inline: !0, - color: w[P.name], - children: P.name, - }), - ], - }, - P.name - ); - }), - }), - E.length !== 0 && - (0, e.createComponentVNode)(2, m.LabeledList.Item, { - label: 'Standard Channel', - children: E.map(function (P) { - return (0, e.createComponentVNode)( - 2, - m.Button, - { - icon: 'arrow-right', - content: P.name, - selected: I && B.name === P.name, - onClick: (function () { - function D() { - return f('ichannel', { - ichannel: P.freq, - }); - } - return D; - })(), - }, - 'i_' + P.name - ); - }), - }), - ], - }), - }), - }), - }); - } - return k; - })()); - }, - 85183: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ReagentGrinder = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(83326), - N = n(48154), - y = (r.ReagentGrinder = (function () { - function l(c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = i.config, - C = s.operating, - g = d.title; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - 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, N.Operating, { - operating: C, - name: g, - }), - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, k), - (0, e.createComponentVNode)(2, p), - ], - }), - }), - }); - } - return l; - })()), - S = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.inactive; - 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: '50%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'mortar-pestle', - disabled: d, - tooltip: d - ? 'There are no contents' - : 'Grind the contents', - tooltipPosition: 'bottom', - content: 'Grind', - onClick: (function () { - function C() { - return u('grind'); - } - return C; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - width: '50%', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - icon: 'blender', - disabled: d, - tooltip: d - ? 'There are no contents' - : 'Juice the contents', - tooltipPosition: 'bottom', - content: 'Juice', - onClick: (function () { - function C() { - return u('juice'); - } - return C; - })(), - }), - }), - ], - }), - }); - }, - k = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.contents, - C = s.limit, - g = s.count, - v = s.inactive; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Contents', - fill: !0, - scrollable: !0, - buttons: (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: 'label', - mr: 2, - children: [g, ' / ', C, ' items'], - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: 'Eject Contents', - onClick: (function () { - function h() { - return u('eject'); - } - return h; - })(), - disabled: v, - tooltip: v ? 'There are no contents' : '', - }), - ], - }), - children: (0, e.createComponentVNode)(2, t.Table, { - className: 'Ingredient__Table', - children: d.map(function (h) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - tr: 5, - children: [ - (0, e.createVNode)( - 1, - 'td', - null, - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: h.name, - }), - 2 - ), - (0, e.createVNode)( - 1, - 'td', - null, - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: [h.amount, ' ', h.units], - }), - 2 - ), - ], - }, - h.name - ); - }), - }), - }); - }, - p = function (c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.beaker_loaded, - C = s.beaker_current_volume, - g = s.beaker_max_volume, - v = s.beaker_contents; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Beaker', - fill: !0, - scrollable: !0, - height: '40%', - buttons: - !!d && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - color: 'label', - mr: 2, - children: [C, ' / ', g, ' units'], - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: 'Detach Beaker', - onClick: (function () { - function h() { - return u('detach'); - } - return h; - })(), - }), - ], - }), - children: (0, e.createComponentVNode)(2, m.BeakerContents, { - beakerLoaded: d, - beakerContents: v, - }), - }); - }; - }, - 94890: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RemoteSignaler = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(92149), - N = (r.RemoteSignaler = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.on; - return (0, e.createComponentVNode)(2, o.Window, { - width: 300, - 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: 'Receiver', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'power-off', - content: f ? 'On' : 'Off', - color: f ? null : 'red', - selected: f, - onClick: (function () { - function i() { - return l('recv_power'); - } - return i; - })(), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, m.Signaler, { data: c }), - ], - }), - }), - }); - } - return y; - })()); - }, - 6301: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RequestConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.RequestConsole = (function () { - function i(u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.screen, - h = g.announcementConsole, - V = (function () { - function b(B) { - switch (B) { - case 0: - return (0, e.createComponentVNode)(2, N); - case 1: - return (0, e.createComponentVNode)(2, y, { - purpose: 'ASSISTANCE', - }); - case 2: - return (0, e.createComponentVNode)(2, y, { - purpose: 'SUPPLIES', - }); - case 3: - return (0, e.createComponentVNode)(2, y, { - purpose: 'INFO', - }); - case 4: - return (0, e.createComponentVNode)(2, S, { - type: 'SUCCESS', - }); - case 5: - return (0, e.createComponentVNode)(2, S, { - type: 'FAIL', - }); - case 6: - return (0, e.createComponentVNode)(2, k, { - type: 'MESSAGES', - }); - case 7: - return (0, e.createComponentVNode)(2, p); - case 8: - return (0, e.createComponentVNode)(2, l); - case 9: - return (0, e.createComponentVNode)(2, c); - case 10: - return (0, e.createComponentVNode)(2, k, { - type: 'SHIPPING', - }); - case 11: - return (0, e.createComponentVNode)(2, f); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return b; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 450, - height: h ? 425 : 385, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: V(v), - }), - }), - }); - } - return i; - })()), - N = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.newmessagepriority, - h = g.announcementConsole, - V = g.silent, - b; - return ( - v === 1 - ? (b = (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - bold: !0, - mb: 1, - children: 'There are new messages', - })) - : v === 2 - ? (b = (0, e.createComponentVNode)(2, t.Blink, { - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - bold: !0, - mb: 1, - children: 'NEW PRIORITY MESSAGES', - }), - })) - : (b = (0, e.createComponentVNode)(2, t.Box, { - color: 'label', - mb: 1, - children: 'There are no new messages', - })), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Main Menu', - buttons: (0, e.createComponentVNode)(2, t.Button, { - width: 9, - content: V ? 'Speaker Off' : 'Speaker On', - selected: !V, - icon: V ? 'volume-mute' : 'volume-up', - onClick: (function () { - function B() { - return C('toggleSilent'); - } - return B; - })(), - }), - children: [ - b, - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'View Messages', - icon: v > 0 ? 'envelope-open-text' : 'envelope', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 6 }); - } - return B; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - mt: 1, - children: [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Request Assistance', - icon: 'hand-paper', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 1 }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Request Supplies', - icon: 'box', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 2 }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Request Secondary Goal', - icon: 'clipboard-list', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 11 }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Relay Anonymous Information', - icon: 'comment', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 3 }); - } - return B; - })(), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - mt: 1, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Print Shipping Label', - icon: 'tag', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 9 }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'View Shipping Logs', - icon: 'clipboard-list', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 10 }); - } - return B; - })(), - }), - ], - }), - }), - !!h && - (0, e.createComponentVNode)(2, t.Stack.Item, { - mt: 1, - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - lineHeight: 3, - color: 'translucent', - content: 'Send Station-Wide Announcement', - icon: 'bullhorn', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 8 }); - } - return B; - })(), - }), - }), - ], - }), - }) - ); - }, - y = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.department, - h = [], - V; - switch (u.purpose) { - case 'ASSISTANCE': - (h = g.assist_dept), - (V = 'Request assistance from another department'); - break; - case 'SUPPLIES': - (h = g.supply_dept), - (V = 'Request supplies from another department'); - break; - case 'INFO': - (h = g.info_dept), - (V = 'Relay information to another department'); - break; - } - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: V, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function b() { - return C('setScreen', { setScreen: 0 }); - } - return b; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: h - .filter(function (b) { - return b !== v; - }) - .map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: b, - textAlign: 'right', - className: 'candystripe', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Message', - icon: 'envelope', - onClick: (function () { - function B() { - return C('writeInput', { - write: b, - priority: '1', - }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'High Priority', - icon: 'exclamation-circle', - onClick: (function () { - function B() { - return C('writeInput', { - write: b, - priority: '2', - }); - } - return B; - })(), - }), - ], - }, - b - ); - }), - }), - }), - }); - }, - S = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v; - switch (u.type) { - case 'SUCCESS': - v = 'Message sent successfully'; - break; - case 'FAIL': - v = 'Request supplies from another department'; - break; - } - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: v, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function h() { - return C('setScreen', { setScreen: 0 }); - } - return h; - })(), - }), - }); - }, - k = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v, - h; - switch (u.type) { - case 'MESSAGES': - (v = g.message_log), (h = 'Message Log'); - break; - case 'SHIPPING': - (v = g.shipping_log), (h = 'Shipping label print log'); - break; - } - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: h, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function V() { - return C('setScreen', { setScreen: 0 }); - } - return V; - })(), - }), - children: v.map(function (V) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - textAlign: 'left', - children: [ - V.map(function (b, B) { - return (0, e.createVNode)( - 1, - 'div', - null, - b, - 0, - null, - B - ); - }), - (0, e.createVNode)(1, 'hr'), - ], - }, - V - ); - }), - }), - }); - }, - p = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.recipient, - h = g.message, - V = g.msgVerified, - b = g.msgStamped; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Message Authentication', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function B() { - return C('setScreen', { setScreen: 0 }); - } - return B; - })(), - }), - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Recipient', - children: v, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Message', - children: h, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Validated by', - color: 'green', - children: V, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Stamped by', - color: 'blue', - children: b, - }), - ], - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - textAlign: 'center', - content: 'Send Message', - icon: 'envelope', - onClick: (function () { - function B() { - return C('department', { department: v }); - } - return B; - })(), - }), - }), - }), - ], - 4 - ); - }, - l = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.message, - h = g.announceAuth; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Station-Wide Announcement', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function V() { - return C('setScreen', { setScreen: 0 }); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Edit Message', - icon: 'edit', - onClick: (function () { - function V() { - return C('writeAnnouncement'); - } - return V; - })(), - }), - ], - 4 - ), - children: v, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - children: [ - h - ? (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - color: 'green', - children: 'ID verified. Authentication accepted.', - }) - : (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - color: 'label', - children: - 'Swipe your ID card to authenticate yourself', - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - mt: 2, - textAlign: 'center', - content: 'Send Announcement', - icon: 'bullhorn', - disabled: !(h && v), - onClick: (function () { - function V() { - return C('sendAnnouncement'); - } - return V; - })(), - }), - ], - }), - }), - ], - 4 - ); - }, - c = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.shipDest, - h = g.msgVerified, - V = g.ship_dept; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - textAlign: 'center', - children: (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 b() { - return C('setScreen', { setScreen: 0 }); - } - return b; - })(), - }), - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Destination', - children: v, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Validated by', - children: h, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - mt: 1, - textAlign: 'center', - content: 'Print Label', - icon: 'print', - disabled: !(v && h), - onClick: (function () { - function b() { - return C('printLabel'); - } - return b; - })(), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Destinations', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: V.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: b, - textAlign: 'right', - className: 'candystripe', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: v === b ? 'Selected' : 'Select', - selected: v === b, - onClick: (function () { - function B() { - return C('shipSelect', { shipSelect: b }); - } - return B; - })(), - } - ), - }, - b - ); - }), - }), - }), - }), - ], - 4 - ); - }, - f = function (u, s) { - var d = (0, a.useBackend)(s), - C = d.act, - g = d.data, - v = g.secondaryGoalAuth, - h = g.secondaryGoalEnabled; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Request Secondary Goal', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Back', - icon: 'arrow-left', - onClick: (function () { - function V() { - return C('setScreen', { setScreen: 0 }); - } - return V; - })(), - }), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Section, { - children: [ - h - ? v - ? (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - color: 'green', - children: - 'ID verified. Authentication accepted.', - }) - : (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - color: 'label', - children: - 'Swipe your ID card to authenticate yourself', - }) - : (0, e.createComponentVNode)(2, t.Box, { - textAlign: 'center', - color: 'label', - children: 'Complete your current goal first!', - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - mt: 2, - textAlign: 'center', - content: 'Request Secondary Goal', - icon: 'clipboard-list', - disabled: !(v && h), - onClick: (function () { - function V() { - return C('requestSecondaryGoal'); - } - return V; - })(), - }), - ], - }), - }), - ], - 4 - ); - }; - }, - 51939: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SUBMENU = r.RndConsole = r.MENU = void 0); - var e = n(28823), - a = n(91819), - t = n(84947), - o = n(2971), - m = n(63752), - N = (r.MENU = { - MAIN: 0, - LEVELS: 1, - DISK: 2, - DESTROY: 3, - LATHE: 4, - IMPRINTER: 5, - SETTINGS: 6, - }), - y = (r.SUBMENU = { - MAIN: 0, - DISK_COPY: 1, - LATHE_CATEGORY: 1, - LATHE_MAT_STORAGE: 2, - LATHE_CHEM_STORAGE: 3, - SETTINGS_DEVICES: 1, - }), - S = (r.RndConsole = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.wait_message; - return (0, e.createComponentVNode)(2, t.Window, { - width: 800, - height: 550, - children: (0, e.createComponentVNode)(2, t.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Box, { - className: 'RndConsole', - children: [ - (0, e.createComponentVNode)(2, m.RndNavbar), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: N.MAIN, - render: (function () { - function u() { - return (0, e.createComponentVNode)(2, m.MainMenu); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: N.LEVELS, - render: (function () { - function u() { - return (0, e.createComponentVNode)( - 2, - m.CurrentLevels - ); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: N.DISK, - render: (function () { - function u() { - return (0, e.createComponentVNode)( - 2, - m.DataDiskMenu - ); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: N.DESTROY, - render: (function () { - function u() { - return (0, e.createComponentVNode)( - 2, - m.DeconstructionMenu - ); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: (function () { - function u(s) { - return s === N.LATHE || s === N.IMPRINTER; - } - return u; - })(), - render: (function () { - function u() { - return (0, e.createComponentVNode)( - 2, - m.LatheMenu - ); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, m.RndRoute, { - menu: N.SETTINGS, - render: (function () { - function u() { - return (0, e.createComponentVNode)( - 2, - m.SettingsMenu - ); - } - return u; - })(), - }), - i - ? (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: i } - ), - }), - }) - : null, - ], - }), - }), - }); - } - return k; - })()); - }, - 50239: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CurrentLevels = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.CurrentLevels = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data, - p = k.tech_levels; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createVNode)( - 1, - 'h3', - null, - 'Current Research Levels:', - 16 - ), - p.map(function (l, c) { - var f = l.name, - i = l.level, - u = l.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: ', i], - }), - (0, e.createComponentVNode)(2, t.Box, { - children: ['* Summary: ', u], - }), - ], - }, - f - ); - }), - ], - }); - } - return m; - })()); - }, - 24183: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DataDiskMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(63752), - m = n(51939), - N = 'design', - y = 'tech', - S = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = C.act, - h = g.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 V() { - return v('updt_tech'); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Clear Disk', - icon: 'trash', - onClick: (function () { - function V() { - return v('clear_tech'); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, l), - ], - }), - ], - }) - : null; - }, - k = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = C.act, - h = g.disk_data; - if (!h) return null; - var V = h.name, - b = h.lathe_types, - B = h.materials, - I = b.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: V, - }), - I - ? (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Lathe Types', - children: I, - }) - : null, - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Required Materials', - }), - ], - }), - B.map(function (w) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - '- ', - (0, e.createVNode)(1, 'span', null, w.name, 0, { - style: { 'text-transform': 'capitalize' }, - }), - ' x ', - w.amount, - ], - }, - w.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 w() { - return v('updt_design'); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Clear Disk', - icon: 'trash', - onClick: (function () { - function w() { - return v('clear_design'); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, l), - ], - }), - ], - }); - }, - p = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = g.disk_type; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - children: 'This disk is empty.', - }), - (0, e.createComponentVNode)(2, t.Box, { - mt: '10px', - children: [ - (0, e.createComponentVNode)(2, o.RndNavButton, { - submenu: m.SUBMENU.DISK_COPY, - icon: 'arrow-down', - content: - v === y ? 'Load Tech to Disk' : 'Load Design to Disk', - }), - (0, e.createComponentVNode)(2, l), - ], - }), - ], - }); - }, - l = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = C.act, - h = g.disk_type; - return h - ? (0, e.createComponentVNode)(2, t.Button, { - content: 'Eject Disk', - icon: 'eject', - onClick: (function () { - function V() { - var b = h === y ? 'eject_tech' : 'eject_design'; - v(b); - } - return V; - })(), - }) - : null; - }, - c = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = g.disk_data, - h = g.disk_type, - V = function () { - if (!v) return (0, e.createComponentVNode)(2, p); - switch (h) { - case N: - return (0, e.createComponentVNode)(2, k); - case y: - return (0, e.createComponentVNode)(2, S); - default: - return null; - } - }; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Data Disk Contents', - children: V(), - }); - }, - f = function (s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = C.act, - h = g.disk_type, - V = g.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: V.sort(function (b, B) { - return b.name.localeCompare(B.name); - }).map(function (b) { - var B = b.name, - I = b.id; - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - noColon: !0, - label: B, - children: (0, e.createComponentVNode)(2, t.Button, { - icon: 'arrow-down', - content: 'Copy to Disk', - onClick: (function () { - function w() { - h === y - ? v('copy_tech', { id: I }) - : v('copy_design', { id: I }); - } - return w; - })(), - }), - }, - I - ); - }), - }), - }), - }); - }, - i = (r.DataDiskMenu = (function () { - function u(s, d) { - var C = (0, a.useBackend)(d), - g = C.data, - v = g.disk_type; - return v - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.RndRoute, { - submenu: m.SUBMENU.MAIN, - render: (function () { - function h() { - return (0, e.createComponentVNode)(2, c); - } - return h; - })(), - }), - (0, e.createComponentVNode)(2, o.RndRoute, { - submenu: m.SUBMENU.DISK_COPY, - render: (function () { - function h() { - return (0, e.createComponentVNode)(2, f); - } - return h; - })(), - }), - ], - 4 - ) - : null; - } - return u; - })()); - }, - 72751: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.DeconstructionMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.DeconstructionMenu = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data, - p = S.act, - l = k.loaded_item, - c = k.linked_destroy; - return c - ? l - ? (0, e.createComponentVNode)(2, t.Section, { - noTopPadding: !0, - title: 'Deconstruction Menu', - children: [ - (0, e.createComponentVNode)(2, t.Box, { - mt: '10px', - children: ['Name: ', l.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: l.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 m; - })()); - }, - 51802: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheCategory = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(63752), - m = (r.LatheCategory = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.data, - l = k.act, - c = p.category, - f = p.matching_designs, - i = p.menu, - u = i === 4, - s = u ? '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 (d) { - var C = d.id, - g = d.name, - v = d.can_build, - h = d.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: g, - disabled: v < 1, - onClick: (function () { - function V() { - return l(s, { id: C, amount: 1 }); - } - return V; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: - v >= 5 - ? (0, e.createComponentVNode)(2, t.Button, { - content: 'x5', - onClick: (function () { - function V() { - return l(s, { id: C, amount: 5 }); - } - return V; - })(), - }) - : null, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: - v >= 10 - ? (0, e.createComponentVNode)(2, t.Button, { - content: 'x10', - onClick: (function () { - function V() { - return l(s, { id: C, amount: 10 }); - } - return V; - })(), - }) - : null, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: h.map(function (V) { - return (0, e.createFragment)( - [ - ' | ', - (0, e.createVNode)( - 1, - 'span', - V.is_red ? 'color-red' : null, - [ - V.amount, - (0, e.createTextVNode)(' '), - V.name, - ], - 0 - ), - ], - 0 - ); - }), - }), - ], - }, - C - ); - }), - }), - ], - }); - } - return N; - })()); - }, - 47349: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheChemicalStorage = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LatheChemicalStorage = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data, - p = S.act, - l = k.loaded_chemicals, - c = k.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 i = c ? 'disposeallP' : 'disposeallI'; - p(i); - } - return f; - })(), - }), - (0, e.createComponentVNode)(2, t.LabeledList, { - children: l.map(function (f) { - var i = f.volume, - u = f.name, - s = f.id; - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '* ' + i + ' of ' + u, - children: (0, e.createComponentVNode)(2, t.Button, { - content: 'Purge', - icon: 'trash', - onClick: (function () { - function d() { - var C = c ? 'disposeP' : 'disposeI'; - p(C, { id: s }); - } - return d; - })(), - }), - }, - s - ); - }), - }), - ], - }); - } - return m; - })()); - }, - 73492: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheMainMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(63752), - m = (r.LatheMainMenu = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.data, - l = k.act, - c = p.menu, - f = p.categories, - i = c === 4 ? 'Protolathe' : 'Circuit Imprinter'; - return (0, e.createComponentVNode)(2, t.Section, { - title: i + ' 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 (u) { - 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: u, - onClick: (function () { - function s() { - l('setCategory', { category: u }); - } - return s; - })(), - }), - }, - u - ); - }), - }), - ], - }); - } - return N; - })()); - }, - 87115: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheMaterialStorage = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LatheMaterialStorage = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data, - p = S.act, - l = k.loaded_materials; - return (0, e.createComponentVNode)(2, t.Section, { - className: 'RndConsole__LatheMaterialStorage', - title: 'Material Storage', - children: (0, e.createComponentVNode)(2, t.Table, { - children: l.map(function (c) { - var f = c.id, - i = c.amount, - u = c.name, - s = (function () { - function v(h) { - var V = - k.menu === 4 - ? 'lathe_ejectsheet' - : 'imprinter_ejectsheet'; - p(V, { id: f, amount: h }); - } - return v; - })(), - d = Math.floor(i / 2e3), - C = i < 1, - g = d === 1 ? '' : 's'; - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - className: C ? 'color-grey' : 'color-yellow', - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - minWidth: '210px', - children: ['* ', i, ' of ', u], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - minWidth: '110px', - children: ['(', d, ' sheet', g, ')'], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: - i >= 2e3 - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: '1x', - icon: 'eject', - onClick: (function () { - function v() { - return s(1); - } - return v; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'C', - icon: 'eject', - onClick: (function () { - function v() { - return s('custom'); - } - return v; - })(), - } - ), - i >= 2e3 * 5 - ? (0, e.createComponentVNode)( - 2, - t.Button, - { - content: '5x', - icon: 'eject', - onClick: (function () { - function v() { - return s(5); - } - return v; - })(), - } - ) - : null, - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'All', - icon: 'eject', - onClick: (function () { - function v() { - return s(50); - } - return v; - })(), - } - ), - ], - 0 - ) - : null, - }), - ], - }, - f - ); - }), - }), - }); - } - return m; - })()); - }, - 2345: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheMaterials = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LatheMaterials = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data, - p = k.total_materials, - l = k.max_materials, - c = k.max_chemicals, - f = k.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, - }), - l - ? (0, e.createComponentVNode)(2, t.Table.Cell, { - children: ' / ' + l, - }) - : 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 m; - })()); - }, - 45805: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(28078), - o = n(63752), - m = n(2971), - N = n(51939), - y = (r.LatheMenu = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.data, - f = c.menu, - i = c.linked_lathe, - u = c.linked_imprinter; - return f === 4 && !i - ? (0, e.createComponentVNode)(2, m.Box, { - children: 'NO PROTOLATHE LINKED TO CONSOLE', - }) - : f === 5 && !u - ? (0, e.createComponentVNode)(2, m.Box, { - children: 'NO CIRCUIT IMPRITER LINKED TO CONSOLE', - }) - : (0, e.createComponentVNode)(2, m.Box, { - children: [ - (0, e.createComponentVNode)(2, t.RndRoute, { - submenu: N.SUBMENU.MAIN, - render: (function () { - function s() { - return (0, e.createComponentVNode)( - 2, - o.LatheMainMenu - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.RndRoute, { - submenu: N.SUBMENU.LATHE_CATEGORY, - render: (function () { - function s() { - return (0, e.createComponentVNode)( - 2, - o.LatheCategory - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.RndRoute, { - submenu: N.SUBMENU.LATHE_MAT_STORAGE, - render: (function () { - function s() { - return (0, e.createComponentVNode)( - 2, - o.LatheMaterialStorage - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.RndRoute, { - submenu: N.SUBMENU.LATHE_CHEM_STORAGE, - render: (function () { - function s() { - return (0, e.createComponentVNode)( - 2, - o.LatheChemicalStorage - ); - } - return s; - })(), - }), - ], - }); - } - return S; - })()); - }, - 92497: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LatheSearch = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LatheSearch = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act; - return (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Input, { - placeholder: 'Search...', - onEnter: (function () { - function p(l, c) { - return k('search', { to_search: c }); - } - return p; - })(), - }), - }); - } - return m; - })()); - }, - 25242: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.MainMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(63752), - m = n(51939), - N = (r.MainMenu = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.data, - c = l.disk_type, - f = l.linked_destroy, - i = l.linked_lathe, - u = l.linked_imprinter, - s = l.tech_levels; - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Main Menu', - children: [ - (0, e.createComponentVNode)(2, t.Flex, { - className: 'RndConsole__MainMenu__Buttons', - direction: 'column', - align: 'flex-start', - children: [ - (0, e.createComponentVNode)(2, o.RndNavButton, { - disabled: !c, - menu: m.MENU.DISK, - submenu: m.SUBMENU.MAIN, - icon: 'save', - content: 'Disk Operations', - }), - (0, e.createComponentVNode)(2, o.RndNavButton, { - disabled: !f, - menu: m.MENU.DESTROY, - submenu: m.SUBMENU.MAIN, - icon: 'unlink', - content: 'Destructive Analyzer Menu', - }), - (0, e.createComponentVNode)(2, o.RndNavButton, { - disabled: !i, - menu: m.MENU.LATHE, - submenu: m.SUBMENU.MAIN, - icon: 'print', - content: 'Protolathe Menu', - }), - (0, e.createComponentVNode)(2, o.RndNavButton, { - disabled: !u, - menu: m.MENU.IMPRINTER, - submenu: m.SUBMENU.MAIN, - icon: 'print', - content: 'Circuit Imprinter Menu', - }), - (0, e.createComponentVNode)(2, o.RndNavButton, { - menu: m.MENU.SETTINGS, - submenu: m.SUBMENU.MAIN, - icon: 'cog', - content: 'Settings', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Box, { mt: '12px' }), - (0, e.createVNode)( - 1, - 'h3', - null, - 'Current Research Levels:', - 16 - ), - (0, e.createComponentVNode)(2, t.LabeledList, { - children: s.map(function (d) { - var C = d.name, - g = d.level; - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: C, children: g }, - C - ); - }), - }), - ], - }); - } - return y; - })()); - }, - 29933: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RndNavButton = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.RndNavButton = (function () { - function m(N, y) { - var S = N.icon, - k = N.children, - p = N.disabled, - l = N.content, - c = (0, a.useBackend)(y), - f = c.data, - i = c.act, - u = f.menu, - s = f.submenu, - d = u, - C = s; - return ( - N.menu !== null && N.menu !== void 0 && (d = N.menu), - N.submenu !== null && N.submenu !== void 0 && (C = N.submenu), - (0, e.createComponentVNode)(2, t.Button, { - content: l, - icon: S, - disabled: p, - onClick: (function () { - function g() { - i('nav', { menu: d, submenu: C }); - } - return g; - })(), - children: k, - }) - ); - } - return m; - })()); - }, - 59959: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RndNavbar = void 0); - var e = n(28823), - a = n(63752), - t = n(2971), - o = n(51939), - m = (r.RndNavbar = (function () { - function N() { - return (0, e.createComponentVNode)(2, t.Box, { - className: 'RndConsole__RndNavbar', - children: [ - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: (function () { - function y(S) { - return S !== o.MENU.MAIN; - } - return y; - })(), - render: (function () { - function y() { - return (0, e.createComponentVNode)( - 2, - a.RndNavButton, - { - menu: o.MENU.MAIN, - submenu: o.SUBMENU.MAIN, - icon: 'reply', - content: 'Main Menu', - } - ); - } - return y; - })(), - }), - (0, e.createComponentVNode)(2, a.RndRoute, { - submenu: (function () { - function y(S) { - return S !== o.SUBMENU.MAIN; - } - return y; - })(), - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: o.MENU.DISK, - render: (function () { - function S() { - return (0, e.createComponentVNode)( - 2, - a.RndNavButton, - { - submenu: o.SUBMENU.MAIN, - icon: 'reply', - content: 'Disk Operations Menu', - } - ); - } - return S; - })(), - }), - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: o.MENU.LATHE, - render: (function () { - function S() { - return (0, e.createComponentVNode)( - 2, - a.RndNavButton, - { - submenu: o.SUBMENU.MAIN, - icon: 'reply', - content: 'Protolathe Menu', - } - ); - } - return S; - })(), - }), - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: o.MENU.IMPRINTER, - render: (function () { - function S() { - return (0, e.createComponentVNode)( - 2, - a.RndNavButton, - { - submenu: o.SUBMENU.MAIN, - icon: 'reply', - content: 'Circuit Imprinter Menu', - } - ); - } - return S; - })(), - }), - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: o.MENU.SETTINGS, - render: (function () { - function S() { - return (0, e.createComponentVNode)( - 2, - a.RndNavButton, - { - submenu: o.SUBMENU.MAIN, - icon: 'reply', - content: 'Settings Menu', - } - ); - } - return S; - })(), - }), - ], - }); - } - return y; - })(), - }), - (0, e.createComponentVNode)(2, a.RndRoute, { - menu: (function () { - function y(S) { - return S === o.MENU.LATHE || S === o.MENU.IMPRINTER; - } - return y; - })(), - submenu: o.SUBMENU.MAIN, - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, a.RndNavButton, { - submenu: o.SUBMENU.LATHE_MAT_STORAGE, - icon: 'arrow-up', - content: 'Material Storage', - }), - (0, e.createComponentVNode)(2, a.RndNavButton, { - submenu: o.SUBMENU.LATHE_CHEM_STORAGE, - icon: 'arrow-up', - content: 'Chemical Storage', - }), - ], - }); - } - return y; - })(), - }), - ], - }); - } - return N; - })()); - }, - 28078: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RndRoute = void 0); - var e = n(91819), - a = (r.RndRoute = (function () { - function t(o, m) { - var N = o.render, - y = (0, e.useBackend)(m), - S = y.data, - k = S.menu, - p = S.submenu, - l = (function () { - function f(i, u) { - return i == null - ? !0 - : typeof i == 'function' - ? i(u) - : i === u; - } - return f; - })(), - c = l(o.menu, k) && l(o.submenu, p); - return c ? N() : null; - } - return t; - })()); - }, - 59991: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SettingsMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(63752), - m = n(51939), - N = (r.SettingsMenu = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.data, - c = p.act, - f = l.sync, - i = l.admin, - u = l.linked_destroy, - s = l.linked_lathe, - d = l.linked_imprinter; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, o.RndRoute, { - submenu: m.SUBMENU.MAIN, - render: (function () { - function C() { - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Settings', - children: (0, e.createComponentVNode)(2, t.Flex, { - direction: 'column', - align: 'flex-start', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Sync Database with Network', - icon: 'sync', - disabled: !f, - onClick: (function () { - function g() { - c('sync'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Connect to Research Network', - icon: 'plug', - disabled: f, - onClick: (function () { - function g() { - c('togglesync'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - disabled: !f, - icon: 'unlink', - content: 'Disconnect from Research Network', - onClick: (function () { - function g() { - c('togglesync'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, o.RndNavButton, { - disabled: !f, - content: 'Device Linkage Menu', - icon: 'link', - menu: m.MENU.SETTINGS, - submenu: m.SUBMENU.SETTINGS_DEVICES, - }), - i === 1 - ? (0, e.createComponentVNode)(2, t.Button, { - icon: 'exclamation', - content: - '[ADMIN] Maximize Research Levels', - onClick: (function () { - function g() { - return c('maxresearch'); - } - return g; - })(), - }) - : null, - ], - }), - }); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, o.RndRoute, { - submenu: m.SUBMENU.SETTINGS_DEVICES, - render: (function () { - function C() { - return (0, e.createComponentVNode)(2, t.Section, { - title: 'Device Linkage Menu', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'link', - content: 'Re-sync with Nearby Devices', - onClick: (function () { - function g() { - return c('find_device'); - } - return g; - })(), - }), - (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: [ - u - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '* Destructive Analyzer', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'unlink', - content: 'Unlink', - onClick: (function () { - function g() { - return c('disconnect', { - item: 'destroy', - }); - } - return g; - })(), - } - ), - } - ) - : (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - noColon: !0, - label: - '* No Destructive Analyzer Linked', - } - ), - s - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '* Protolathe', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'unlink', - content: 'Unlink', - onClick: (function () { - function g() { - c('disconnect', { - item: 'lathe', - }); - } - return g; - })(), - } - ), - } - ) - : (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - noColon: !0, - label: '* No Protolathe Linked', - } - ), - d - ? (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '* Circuit Imprinter', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'unlink', - content: 'Unlink', - onClick: (function () { - function g() { - return c('disconnect', { - item: 'imprinter', - }); - } - return g; - })(), - } - ), - } - ) - : (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - noColon: !0, - label: - '* No Circuit Imprinter Linked', - } - ), - ], - }), - ], - }); - } - return C; - })(), - }), - ], - }); - } - return y; - })()); - }, - 63752: function (L, 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(50239); - r.CurrentLevels = e.CurrentLevels; - var a = n(24183); - r.DataDiskMenu = a.DataDiskMenu; - var t = n(72751); - r.DeconstructionMenu = t.DeconstructionMenu; - var o = n(51802); - r.LatheCategory = o.LatheCategory; - var m = n(47349); - r.LatheChemicalStorage = m.LatheChemicalStorage; - var N = n(73492); - r.LatheMainMenu = N.LatheMainMenu; - var y = n(2345); - r.LatheMaterials = y.LatheMaterials; - var S = n(87115); - r.LatheMaterialStorage = S.LatheMaterialStorage; - var k = n(45805); - r.LatheMenu = k.LatheMenu; - var p = n(92497); - r.LatheSearch = p.LatheSearch; - var l = n(25242); - r.MainMenu = l.MainMenu; - var c = n(59959); - r.RndNavbar = c.RndNavbar; - var f = n(29933); - r.RndNavButton = f.RndNavButton; - var i = n(28078); - r.RndRoute = i.RndRoute; - var u = n(59991); - r.SettingsMenu = u.SettingsMenu; - }, - 73407: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RobotSelfDiagnosis = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(37843), - N = function (k, p) { - var l = k / p; - return l <= 0.2 ? 'good' : l <= 0.5 ? 'average' : 'bad'; - }, - y = (r.RobotSelfDiagnosis = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.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 (i, u) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: (0, m.capitalize)(i.name), - children: - i.installed <= 0 - ? (0, e.createComponentVNode)(2, t.NoticeBox, { - m: -0.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: - i.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: N( - i.brute_damage, - i.max_damage - ), - children: i.brute_damage, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Burn Damage', - color: N( - i.electronic_damage, - i.max_damage - ), - children: i.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: i.powered - ? 'good' - : 'bad', - children: i.powered - ? 'Yes' - : 'No', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Enabled', - color: i.status - ? 'good' - : 'bad', - children: i.status - ? 'Yes' - : 'No', - } - ), - ], - } - ), - } - ), - ], - }), - }, - u - ); - }), - }), - }); - } - return S; - })()); - }, - 48356: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.RoboticsControlConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.RoboticsControlConsole = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.can_hack, - i = c.safety, - u = c.show_lock_all, - s = c.cyborgs, - d = s === void 0 ? [] : s; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 460, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - !!u && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Emergency Lock Down', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: i ? 'lock' : 'unlock', - content: i ? 'Disable Safety' : 'Enable Safety', - selected: i, - onClick: (function () { - function C() { - return l('arm', {}); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'lock', - disabled: i, - content: 'Lock ALL Cyborgs', - color: 'bad', - onClick: (function () { - function C() { - return l('masslock', {}); - } - return C; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, N, { - cyborgs: d, - can_hack: f, - }), - ], - }), - }); - } - return y; - })()), - N = function (S, k) { - var p = S.cyborgs, - l = S.can_hack, - c = (0, a.useBackend)(k), - f = c.act, - i = c.data, - u = 'Detonate'; - return ( - i.detonate_cooldown > 0 && - (u += ' (' + i.detonate_cooldown + 's)'), - 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 d() { - return f('hackbot', { uid: s.uid }); - } - return d; - })(), - }), - (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: !i.auth, - onClick: (function () { - function d() { - return f('stopbot', { uid: s.uid }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Confirm, { - icon: 'bomb', - content: u, - disabled: !i.auth || i.detonate_cooldown > 0, - color: 'bad', - onClick: (function () { - function d() { - return f('killbot', { uid: s.uid }); - } - return d; - })(), - }), - ], - 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.', - }) - ); - }; - }, - 33122: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Safe = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Safe = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.dial, - s = i.open, - d = i.locked, - C = i.contents; - return (0, e.createComponentVNode)(2, o.Window, { - theme: 'safe', - width: 600, - height: 800, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--engraving', - children: [ - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--engraving--hinge', - top: '25%', - }), - (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--engraving--hinge', - top: '75%', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Icon, { - className: 'Safe--engraving--arrow', - name: 'long-arrow-alt-down', - size: '3', - }), - (0, e.createVNode)(1, 'br'), - s - ? (0, e.createComponentVNode)(2, y) - : (0, e.createComponentVNode)(2, t.Box, { - as: 'img', - className: 'Safe--dial', - src: 'safe_dial.png', - style: { - transform: 'rotate(-' + 3.6 * u + 'deg)', - 'z-index': 0, - }, - }), - ], - }), - !s && (0, e.createComponentVNode)(2, S), - ], - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.dial, - s = i.open, - d = i.locked, - C = function (v, h) { - return (0, e.createComponentVNode)(2, t.Button, { - disabled: s || (h && !d), - icon: 'arrow-' + (h ? 'right' : 'left'), - content: (h ? 'Right' : 'Left') + ' ' + v, - iconRight: h, - onClick: (function () { - function V() { - return f(h ? 'turnleft' : 'turnright', { num: v }); - } - return V; - })(), - style: { 'z-index': 10 }, - }); - }; - return (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--dialer', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - disabled: d, - icon: s ? 'lock' : 'lock-open', - content: s ? 'Close' : 'Open', - mb: '0.5rem', - onClick: (function () { - function g() { - return f('open'); - } - return g; - })(), - }), - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Box, { - position: 'absolute', - children: [C(50), C(10), C(1)], - }), - (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--dialer--right', - position: 'absolute', - right: '5px', - children: [C(1, !0), C(10, !0), C(50, !0)], - }), - (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--dialer--number', - children: u, - }), - ], - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.contents; - return (0, e.createComponentVNode)(2, t.Box, { - className: 'Safe--contents', - overflow: 'auto', - children: u.map(function (s, d) { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - mb: '0.5rem', - onClick: (function () { - function C() { - return f('retrieve', { index: d + 1 }); - } - return C; - })(), - children: [ - (0, e.createComponentVNode)(2, t.Box, { - as: 'img', - src: s.sprite + '.png', - verticalAlign: 'middle', - ml: '-6px', - mr: '0.5rem', - }), - s.name, - ], - }), - (0, e.createVNode)(1, 'br'), - ], - 4, - s - ); - }), - }); - }, - S = function (p, l) { - return (0, e.createComponentVNode)(2, t.Section, { - className: 'Safe--help', - title: - 'Safe opening instructions (because you all keep forgetting)', - children: [ - (0, e.createComponentVNode)(2, t.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, t.Box, { - bold: !0, - children: - 'To lock fully, turn the dial to the left after closing the safe.', - }), - ], - }); - }; - }, - 46748: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SatelliteControl = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SatelliteControl = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.satellites, - f = l.notice, - i = l.meteor_shield, - u = l.meteor_shield_coverage, - s = l.meteor_shield_coverage_max, - d = l.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: [ - i && - (0, e.createComponentVNode)(2, t.Section, { - title: 'Station Shield Coverage', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - color: d >= 100 ? 'good' : 'average', - value: u, - maxValue: s, - children: [d, ' %'], - } - ), - }), - (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: l.notice, - } - ), - c.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '#' + C.id, - children: [ - C.mode, - ' ', - (0, e.createComponentVNode)(2, t.Button, { - content: C.active - ? 'Deactivate' - : 'Activate', - icon: 'arrow-circle-right', - onClick: (function () { - function g() { - return p('toggle', { id: C.id }); - } - return g; - })(), - }), - ], - }, - C.id - ); - }), - ], - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 46504: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SecureStorage = void 0); - var e = n(28823), - a = n(66586), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(99753), - y = n(31068), - S = (r.SecureStorage = (function () { - function c(f, i) { - return (0, e.createComponentVNode)(2, m.Window, { - theme: 'securestorage', - height: 500, - width: 280, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, p), - }), - }), - }), - }); - } - return c; - })()), - k = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = window.event ? f.which : f.keyCode; - if (d === y.KEY_ENTER) { - f.preventDefault(), s('keypad', { digit: 'E' }); - return; - } - if (d === y.KEY_ESCAPE) { - f.preventDefault(), s('keypad', { digit: 'C' }); - return; - } - if (d === y.KEY_BACKSPACE) { - f.preventDefault(), s('backspace'); - return; - } - if (d >= y.KEY_0 && d <= y.KEY_9) { - f.preventDefault(), s('keypad', { digit: d - y.KEY_0 }); - return; - } - if (d >= y.KEY_NUMPAD_0 && d <= y.KEY_NUMPAD_9) { - f.preventDefault(), s('keypad', { digit: d - y.KEY_NUMPAD_0 }); - return; - } - }, - p = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.locked, - g = d.no_passcode, - v = d.emagged, - h = d.user_entered_code, - V = [ - ['1', '2', '3'], - ['4', '5', '6'], - ['7', '8', '9'], - ['C', '0', 'E'], - ], - b = g ? '' : C ? 'bad' : 'good'; - return (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - onKeyDown: (function () { - function B(I) { - return k(I, i); - } - return B; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - height: 7.3, - children: (0, e.createComponentVNode)(2, o.Box, { - className: (0, a.classes)([ - 'SecureStorage__displayBox', - 'SecureStorage__displayBox--' + b, - ]), - height: '100%', - children: v ? 'ERROR' : h, - }), - }), - (0, e.createComponentVNode)(2, o.Table, { - children: V.map(function (B) { - return (0, e.createComponentVNode)( - 2, - N.TableRow, - { - children: B.map(function (I) { - return (0, e.createComponentVNode)( - 2, - N.TableCell, - { - children: (0, e.createComponentVNode)(2, l, { - number: I, - }), - }, - I - ); - }), - }, - B[0] - ); - }), - }), - ], - }); - }, - l = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = f.number; - return (0, e.createComponentVNode)(2, o.Button, { - fluid: !0, - bold: !0, - mb: '6px', - content: C, - textAlign: 'center', - fontSize: '60px', - lineHeight: 1.25, - width: '80px', - className: (0, a.classes)([ - 'SecureStorage__Button', - 'SecureStorage__Button--keypad', - 'SecureStorage__Button--' + C, - ]), - onClick: (function () { - function g() { - return s('keypad', { digit: C }); - } - return g; - })(), - }); - }; - }, - 54529: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SecurityRecords = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = n(84947), - N = n(22677), - y = n(51185), - S = n(69774), - k = n(76519), - p = { - '*Execute*': 'execute', - '*Arrest*': 'arrest', - Incarcerated: 'incarcerated', - Parolled: 'parolled', - Released: 'released', - Demote: 'demote', - Search: 'search', - Monitor: 'monitor', - }, - l = function (h, V) { - (0, N.modalOpen)(h, 'edit', { field: V.edit, value: V.value }); - }, - c = (r.SecurityRecords = (function () { - function v(h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.loginState, - T = I.currentPage, - A; - if (w.logged_in) - T === 1 - ? (A = (0, e.createComponentVNode)(2, i)) - : T === 2 && (A = (0, e.createComponentVNode)(2, d)); - else - return (0, e.createComponentVNode)(2, m.Window, { - theme: 'security', - width: 800, - height: 900, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, S.LoginScreen), - }), - }); - return (0, e.createComponentVNode)(2, m.Window, { - theme: 'security', - width: 800, - height: 900, - children: [ - (0, e.createComponentVNode)(2, N.ComplexModal), - (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, y.LoginInfo), - (0, e.createComponentVNode)(2, k.TemporaryNotice), - (0, e.createComponentVNode)(2, f), - A, - ], - }), - }), - ], - }); - } - return v; - })()), - f = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.currentPage, - T = I.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: w === 1, - onClick: (function () { - function A() { - return B('page', { page: 1 }); - } - return A; - })(), - children: 'List Records', - }), - w === 2 && - T && - !T.empty && - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - icon: 'file', - selected: w === 2, - children: ['Record: ', T.fields[0].value], - }), - ], - }), - }); - }, - i = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.records, - T = (0, t.useLocalState)(V, 'searchText', ''), - A = T[0], - x = T[1], - E = (0, t.useLocalState)(V, 'sortId', 'name'), - P = E[0], - D = E[1], - M = (0, t.useLocalState)(V, 'sortOrder', !0), - O = M[0], - j = M[1]; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, s), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - mt: 0.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, u, { - id: 'name', - children: 'Name', - }), - (0, e.createComponentVNode)(2, u, { - id: 'id', - children: 'ID', - }), - (0, e.createComponentVNode)(2, u, { - id: 'rank', - children: 'Assignment', - }), - (0, e.createComponentVNode)(2, u, { - id: 'fingerprint', - children: 'Fingerprint', - }), - (0, e.createComponentVNode)(2, u, { - id: 'status', - children: 'Criminal Status', - }), - ], - }), - w - .filter( - (0, a.createSearch)(A, function (F) { - return ( - F.name + - '|' + - F.id + - '|' + - F.rank + - '|' + - F.fingerprint + - '|' + - F.status - ); - }) - ) - .sort(function (F, U) { - var _ = O ? 1 : -1; - return F[P].localeCompare(U[P]) * _; - }) - .map(function (F) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - className: - 'SecurityRecords__listRow--' + p[F.status], - onClick: (function () { - function U() { - return B('view', { - uid_gen: F.uid_gen, - uid_sec: F.uid_sec, - }); - } - return U; - })(), - children: [ - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.Icon, - { name: 'user' } - ), - ' ', - F.name, - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: F.id } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: F.rank } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: F.fingerprint } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: F.status } - ), - ], - }, - F.id - ); - }), - ], - }), - }), - }), - ], - 4 - ); - }, - u = function (h, V) { - var b = (0, t.useLocalState)(V, 'sortId', 'name'), - B = b[0], - I = b[1], - w = (0, t.useLocalState)(V, 'sortOrder', !0), - T = w[0], - A = w[1], - x = h.id, - E = h.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 !== x && 'transparent', - fluid: !0, - onClick: (function () { - function P() { - B === x ? A(!T) : (I(x), A(!0)); - } - return P; - })(), - children: [ - E, - B === x && - (0, e.createComponentVNode)(2, o.Icon, { - name: T ? 'sort-up' : 'sort-down', - ml: '0.25rem;', - }), - ], - }), - }), - }); - }, - s = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.isPrinting, - T = (0, t.useLocalState)(V, 'searchText', ''), - A = T[0], - x = T[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 E() { - return B('new_general'); - } - return E; - })(), - }), - }), - (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 E() { - return (0, N.modalOpen)(V, 'print_cell_log'); - } - return E; - })(), - }), - }), - (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 E(P, D) { - return x(D); - } - return E; - })(), - }), - }), - ], - }); - }, - d = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.isPrinting, - T = I.general, - A = I.security; - return !T || !T.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, - 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 x() { - return B('print_record'); - } - return x; - })(), - }), - (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 x() { - return B('delete_general'); - } - return x; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, C), - }), - }), - !A || !A.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 x() { - return B('new_security'); - } - return x; - })(), - } - ), - 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: A.empty, - content: 'Delete Record', - onClick: (function () { - function x() { - return B('delete_security'); - } - return x; - })(), - } - ), - children: (0, e.createComponentVNode)( - 2, - o.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: A.fields.map( - function (x, E) { - return (0, - e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: x.field, - prewrap: !0, - children: [ - (0, a.decodeHtmlEntities)( - x.value - ), - !!x.edit && - (0, - e.createComponentVNode)( - 2, - o.Button, - { - icon: 'pen', - ml: '0.5rem', - mb: x.line_break - ? '1rem' - : 'initial', - onClick: - (function () { - function P() { - return l( - V, - x - ); - } - return P; - })(), - } - ), - ], - }, - E - ); - } - ), - } - ), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, g), - ], - 4 - ), - ], - 0 - ); - }, - C = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.data, - I = B.general; - return !I || !I.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: I.fields.map(function (w, T) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: w.field, - prewrap: !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 A() { - return l(V, w); - } - return A; - })(), - }), - ], - }, - T - ); - }), - } - ), - }), - !!I.has_photos && - I.photos.map(function (w, T) { - 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', - }, - }), - (0, e.createVNode)(1, 'br'), - 'Photo #', - T + 1, - ], - }, - T - ); - }), - ], - }); - }, - g = function (h, V) { - var b = (0, t.useBackend)(V), - B = b.act, - I = b.data, - w = I.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 T() { - return (0, N.modalOpen)(V, 'comment_add'); - } - return T; - })(), - }), - children: - w.comments.length === 0 - ? (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'No comments found.', - }) - : w.comments.map(function (T, A) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - prewrap: !0, - children: [ - (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - inline: !0, - children: T.header || 'Auto-generated', - }), - (0, e.createVNode)(1, 'br'), - T.text || T, - (0, e.createComponentVNode)(2, o.Button, { - icon: 'comment-slash', - color: 'bad', - ml: '0.5rem', - onClick: (function () { - function x() { - return B('comment_delete', { id: A + 1 }); - } - return x; - })(), - }), - ], - }, - A - ); - }), - }), - }); - }; - }, - 79315: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SeedExtractor = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SeedExtractor = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.stored_seeds, - i = c.vend_amount; - return (0, e.createComponentVNode)(2, o.Window, { - width: 800, - height: 400, - 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, { - fill: !0, - scrollable: !0, - title: 'Stored Seeds', - buttons: (0, e.createFragment)( - [ - (0, e.createTextVNode)( - 'Set Amount to be Vended:\xA0' - ), - (0, e.createComponentVNode)(2, t.NumberInput, { - animated: !0, - value: i, - width: '40px', - minValue: 1, - maxValue: 25, - stepPixelSize: 3, - onDrag: (function () { - function u(s, d) { - return l('set_vend_amount', { - vend_amount: d, - }); - } - return u; - })(), - }), - ], - 4 - ), - children: - f != null && f.length - ? (0, e.createComponentVNode)(2, N) - : 'No Seeds', - }), - }), - }), - }); - } - return y; - })()), - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.stored_seeds; - return (0, e.createComponentVNode)(2, t.Table, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - bold: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Name', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Lifespan', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Endurance', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Maturation', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Production', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Yield', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Potency', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Stock', - }), - ], - }), - f.map(function (i, u) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + i.image, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '0px', - 'margin-left': '0px', - }, - }), - i.name, - i.variant ? ' (' + i.variant + ')' : '', - ], - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.lifespan, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.endurance, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.maturation, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.production, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.yield, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.potency, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: [ - '(', - i.amount, - ' Left)\xA0', - (0, e.createComponentVNode)(2, t.Button, { - ml: 1, - content: 'Vend', - icon: 'arrow-circle-down', - onClick: (function () { - function s() { - return l('vend', { - seedid: i.id, - seedvariant: i.variant, - }); - } - return s; - })(), - }), - ], - }), - ], - }, - u - ); - }), - ], - }); - }; - }, - 58578: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ShuttleConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ShuttleConsole = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - 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: 'Location', - children: l.status - ? l.status - : (0, e.createComponentVNode)(2, t.NoticeBox, { - color: 'red', - children: 'Shuttle Missing', - }), - }), - !!l.shuttle && - ((!!l.docking_ports_len && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Send to ', - children: l.docking_ports.map(function (c) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'chevron-right', - content: c.name, - onClick: (function () { - function f() { - return p('move', { move: c.id }); - } - return f; - })(), - }, - c.name - ); - }), - } - )) || - (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Status', - color: 'red', - children: (0, e.createComponentVNode)( - 2, - t.NoticeBox, - { - color: 'red', - children: 'Shuttle Locked', - } - ), - } - ), - !!l.admin_controlled && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Authorization', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'exclamation-circle', - content: 'Request Authorization', - disabled: !l.status, - onClick: (function () { - function c() { - return p('request'); - } - return c; - })(), - } - ), - } - ), - ], - 0 - )), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 11154: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ShuttleManipulator = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.ShuttleManipulator = (function () { - function k(p, l) { - var c = (0, a.useLocalState)(l, 'tabIndex', 0), - f = c[0], - i = c[1], - u = (function () { - function s(d) { - switch (d) { - case 0: - return (0, e.createComponentVNode)(2, N); - case 1: - return (0, e.createComponentVNode)(2, y); - case 2: - return (0, e.createComponentVNode)(2, S); - default: - return "WE SHOULDN'T BE HERE!"; - } - } - return s; - })(); - 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 s() { - return i(0); - } - return s; - })(), - icon: 'info-circle', - children: 'Status', - }, - 'Status' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: f === 1, - onClick: (function () { - function s() { - return i(1); - } - return s; - })(), - icon: 'file-import', - children: 'Templates', - }, - 'Templates' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: f === 2, - onClick: (function () { - function s() { - return i(2); - } - return s; - })(), - icon: 'tools', - children: 'Modification', - }, - 'Modification' - ), - ], - }), - u(f), - ], - }), - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.shuttles; - return (0, e.createComponentVNode)(2, t.Box, { - children: u.map(function (s) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: s.name, - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'ID', - children: s.id, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Shuttle Timer', - children: s.timeleft, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Shuttle Mode', - children: s.mode, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Shuttle Status', - children: s.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 d() { - return f('jump_to', { - type: 'mobile', - id: s.id, - }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Fast Travel', - icon: 'fast-forward', - onClick: (function () { - function d() { - return f('fast_travel', { id: s.id }); - } - return d; - })(), - }), - ], - }), - ], - }), - }, - s.name - ); - }), - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.templates_tabs, - s = i.existing_shuttle, - d = i.templates; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Tabs, { - children: u.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: C === s.id, - icon: 'file', - onClick: (function () { - function g() { - return f('select_template_category', { cat: C }); - } - return g; - })(), - children: C, - }, - C - ); - }), - }), - !!s && - d[s.id].templates.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: C.name, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - C.description && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Description', - children: C.description, - } - ), - C.admin_notes && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Admin Notes', - children: C.admin_notes, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Actions', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Load Template', - icon: 'download', - onClick: (function () { - function g() { - return f('select_template', { - shuttle_id: C.shuttle_id, - }); - } - return g; - })(), - } - ), - } - ), - ], - } - ), - }, - C.name - ); - }), - ], - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.existing_shuttle, - s = i.selected; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - u - ? (0, e.createComponentVNode)(2, t.Section, { - title: 'Selected Shuttle: ' + u.name, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Status', children: u.status } - ), - u.timer && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Timer', children: u.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 d() { - return f('jump_to', { - type: 'mobile', - id: u.id, - }); - } - return d; - })(), - } - ), - } - ), - ], - } - ), - }) - : (0, e.createComponentVNode)(2, t.Section, { - title: 'Selected Shuttle: None', - }), - s - ? (0, e.createComponentVNode)(2, t.Section, { - title: 'Selected Template: ' + s.name, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - s.description && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Description', - children: s.description, - } - ), - s.admin_notes && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Admin Notes', - children: s.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 d() { - return f('preview', { - shuttle_id: s.shuttle_id, - }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Load', - icon: 'download', - onClick: (function () { - function d() { - return f('load', { - shuttle_id: s.shuttle_id, - }); - } - return d; - })(), - }), - ], - } - ), - ], - } - ), - }) - : (0, e.createComponentVNode)(2, t.Section, { - title: 'Selected Template: None', - }), - ], - }); - }; - }, - 80699: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Sleeper = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = [ - ['good', 'Alive'], - ['average', 'Critical'], - ['bad', 'DEAD'], - ], - y = [ - ['Resp.', 'oxyLoss'], - ['Toxin', 'toxLoss'], - ['Brute', 'bruteLoss'], - ['Burn', 'fireLoss'], - ], - S = { average: [0.25, 0.5], bad: [0.5, 1 / 0] }, - k = [ - 'bad', - 'average', - 'average', - 'good', - 'average', - 'average', - 'bad', - ], - p = (r.Sleeper = (function () { - function d(C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.hasOccupant, - B = b - ? (0, e.createComponentVNode)(2, l) - : (0, e.createComponentVNode)(2, s); - return (0, e.createComponentVNode)(2, m.Window, { - width: 550, - height: 760, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: B, - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, i), - }), - ], - }), - }), - }); - } - return d; - })()), - l = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.occupant; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, c), - (0, e.createComponentVNode)(2, f), - (0, e.createComponentVNode)(2, u), - ], - 4 - ); - }, - c = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.occupant, - B = V.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: B ? 'toggle-on' : 'toggle-off', - selected: B, - content: B ? 'On' : 'Off', - onClick: (function () { - function I() { - return h('auto_eject_dead_' + (B ? 'off' : 'on')); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'user-slash', - content: 'Eject', - onClick: (function () { - function I() { - return h('ejectify'); - } - return I; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Name', - children: b.name, - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Health', - children: (0, e.createComponentVNode)(2, o.ProgressBar, { - min: '0', - max: b.maxHealth, - value: b.health / b.maxHealth, - ranges: { - good: [0.5, 1 / 0], - average: [0, 0.5], - bad: [-1 / 0, 0], - }, - children: (0, a.round)(b.health, 0), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Status', - color: N[b.stat][0], - children: N[b.stat][1], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Temperature', - children: (0, e.createComponentVNode)(2, o.ProgressBar, { - min: '0', - max: b.maxTemp, - value: b.bodyTemperature / b.maxTemp, - color: k[b.temperatureSuitability + 3], - children: [ - (0, a.round)(b.btCelsius, 0), - '\xB0C,', - (0, a.round)(b.btFaren, 0), - '\xB0F', - ], - }), - }), - !!b.hasBlood && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Blood Level', - children: (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - min: '0', - max: b.bloodMax, - value: b.bloodLevel / b.bloodMax, - ranges: { - bad: [-1 / 0, 0.6], - average: [0.6, 0.9], - good: [0.6, 1 / 0], - }, - children: [ - b.bloodPercent, - '%, ', - b.bloodLevel, - 'cl', - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Pulse', - verticalAlign: 'middle', - children: [b.pulse, ' BPM'], - }), - ], - 4 - ), - ], - }), - }); - }, - f = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.data, - V = h.occupant; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Occupant Damage', - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: y.map(function (b, B) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: b[0], - children: (0, e.createComponentVNode)( - 2, - o.ProgressBar, - { - min: '0', - max: '100', - value: V[b[1]] / 100, - ranges: S, - children: (0, a.round)(V[b[1]], 0), - }, - B - ), - }, - B - ); - }), - }), - }); - }, - i = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.hasOccupant, - B = V.isBeakerLoaded, - I = V.beakerMaxSpace, - w = V.beakerFreeSpace, - T = V.dialysis, - A = T && w > 0; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Dialysis', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - disabled: !B || w <= 0 || !b, - selected: A, - icon: A ? 'toggle-on' : 'toggle-off', - content: A ? 'Active' : 'Inactive', - onClick: (function () { - function x() { - return h('togglefilter'); - } - return x; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - disabled: !B, - icon: 'eject', - content: 'Eject', - onClick: (function () { - function x() { - return h('removebeaker'); - } - return x; - })(), - }), - ], - 4 - ), - children: B - ? (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: I, - value: w / I, - ranges: { - good: [0.5, 1 / 0], - average: [0.25, 0.5], - bad: [-1 / 0, 0.25], - }, - children: [w, 'u'], - } - ), - } - ), - }) - : (0, e.createComponentVNode)(2, o.Box, { - color: 'label', - children: 'No beaker loaded.', - }), - }); - }, - u = function (C, g) { - var v = (0, t.useBackend)(g), - h = v.act, - V = v.data, - b = V.occupant, - B = V.chemicals, - I = V.maxchem, - w = V.amounts; - return (0, e.createComponentVNode)(2, o.Section, { - title: 'Occupant Chemicals', - children: B.map(function (T, A) { - var x = '', - E; - return ( - T.overdosing - ? ((x = 'bad'), - (E = (0, e.createComponentVNode)(2, o.Box, { - color: 'bad', - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - name: 'exclamation-circle', - }), - '\xA0 Overdosing!', - ], - }))) - : T.od_warning && - ((x = '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: T.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: I, - value: T.occ_amount / I, - color: x, - title: - 'Amount of chemicals currently inside the occupant / Total amount injectable by this machine', - mr: '0.5rem', - children: [T.pretty_amount, '/', I, 'u'], - }), - w.map(function (P, D) { - return (0, e.createComponentVNode)( - 2, - o.Button, - { - disabled: - !T.injectable || - T.occ_amount + P > I || - b.stat === 2, - icon: 'syringe', - content: 'Inject ' + P + 'u', - title: - 'Inject ' + - P + - 'u of ' + - T.title + - ' into the occupant', - mb: '0', - height: '19px', - onClick: (function () { - function M() { - return h('chemical', { - chemid: T.id, - amount: P, - }); - } - return M; - })(), - }, - D - ); - }), - ], - }), - }), - }, - A - ) - ); - }), - }); - }, - s = function (C, g) { - 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.', - ], - }), - }), - }); - }; - }, - 42439: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SlotMachine = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SlotMachine = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - if (l.money === null) - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 90, - 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 ( - l.plays === 1 - ? (c = l.plays + ' player has tried their luck today!') - : (c = l.plays + ' players have tried their luck today!'), - (0, e.createComponentVNode)(2, o.Window, { - width: 300, - height: 151, - 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: l.money } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '10 credits to spin', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'coins', - disabled: l.working, - content: l.working - ? 'Spinning...' - : 'Spin', - onClick: (function () { - function f() { - return p('spin'); - } - return f; - })(), - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Box, { - bold: !0, - lineHeight: 2, - color: l.resultlvl, - children: l.result, - }), - ], - }), - }), - }) - ); - } - return N; - })()); - }, - 280: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Smartfridge = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Smartfridge = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.secure, - f = l.can_dry, - i = l.drying, - u = l.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: i ? 'power-off' : 'times', - content: i ? 'On' : 'Off', - selected: i, - onClick: (function () { - function s() { - return p('drying'); - } - return s; - })(), - }), - children: [ - !u && - (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.', - ], - } - ), - }), - !!u && - u - .slice() - .sort(function (s, d) { - return s.display_name.localeCompare( - d.display_name - ); - }) - .map(function (s) { - return (0, e.createComponentVNode)( - 2, - t.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '55%', - children: s.display_name, - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: '25%', - children: [ - '(', - s.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 d() { - return p('vend', { - index: s.vend, - amount: 1, - }); - } - return d; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - width: '40px', - minValue: 0, - value: 0, - maxValue: s.quantity, - step: 1, - stepPixelSize: 3, - onChange: (function () { - function d(C, g) { - return p('vend', { - index: s.vend, - amount: g, - }); - } - return d; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - width: 4, - icon: 'arrow-down', - content: 'All', - tooltip: 'Dispense all.', - tooltipPosition: - 'bottom-start', - onClick: (function () { - function d() { - return p('vend', { - index: s.vend, - amount: s.quantity, - }); - } - return d; - })(), - } - ), - ], - } - ), - ], - }, - s - ); - }), - ], - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 47606: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Smes = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(48300), - m = n(84947), - N = 1e3, - y = (r.Smes = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.capacityPercent, - u = f.capacity, - s = f.charge, - d = f.inputAttempt, - C = f.inputting, - g = f.inputLevel, - v = f.inputLevelMax, - h = f.inputAvailable, - V = f.outputPowernet, - b = f.outputAttempt, - B = f.outputting, - I = f.outputLevel, - w = f.outputLevelMax, - T = f.outputUsed, - A = (i >= 100 && 'good') || (C && 'average') || 'bad', - x = (B && 'good') || (s > 0 && 'average') || 'bad'; - return (0, e.createComponentVNode)(2, m.Window, { - width: 340, - height: 345, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Stored Energy', - children: (0, e.createComponentVNode)( - 2, - t.ProgressBar, - { - value: i * 0.01, - ranges: { - good: [0.5, 1 / 0], - average: [0.15, 0.5], - bad: [-1 / 0, 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: d ? 'sync-alt' : 'times', - selected: d, - onClick: (function () { - function E() { - return c('tryinput'); - } - return E; - })(), - children: d ? 'Auto' : 'Off', - } - ), - children: (0, e.createComponentVNode)( - 2, - t.Box, - { - color: A, - children: - (i >= 100 && 'Fully Charged') || - (C && 'Charging') || - 'Not Charging', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Target Input', - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - inline: !0, - width: '100%', - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'fast-backward', - disabled: g === 0, - onClick: (function () { - function E() { - return c('input', { - target: 'min', - }); - } - return E; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'backward', - disabled: g === 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: g / N, - fillValue: h / N, - minValue: 0, - maxValue: v / N, - step: 5, - stepPixelSize: 4, - format: (function () { - function E(P) { - return (0, o.formatPower)( - P * N, - 1 - ); - } - return E; - })(), - onChange: (function () { - function E(P, D) { - return c('input', { - target: D * N, - }); - } - return E; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'forward', - disabled: g === v, - onClick: (function () { - function E() { - return c('input', { - adjust: 1e4, - }); - } - return E; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'fast-forward', - disabled: g === v, - 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: b ? 'power-off' : 'times', - selected: b, - onClick: (function () { - function E() { - return c('tryoutput'); - } - return E; - })(), - children: b ? 'On' : 'Off', - } - ), - children: (0, e.createComponentVNode)( - 2, - t.Box, - { - color: x, - children: V - ? B - ? 'Sending' - : s > 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: I === 0, - onClick: (function () { - function E() { - return c('output', { - target: 'min', - }); - } - return E; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'backward', - disabled: I === 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: I / N, - minValue: 0, - maxValue: w / N, - step: 5, - stepPixelSize: 4, - format: (function () { - function E(P) { - return (0, o.formatPower)( - P * N, - 1 - ); - } - return E; - })(), - onChange: (function () { - function E(P, D) { - return c('output', { - target: D * N, - }); - } - return E; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'forward', - disabled: I === w, - onClick: (function () { - function E() { - return c('output', { - adjust: 1e4, - }); - } - return E; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'fast-forward', - disabled: I === w, - onClick: (function () { - function E() { - return c('output', { - target: 'max', - }); - } - return E; - })(), - } - ), - ], - } - ), - ], - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Outputting', - children: (0, o.formatPower)(T), - } - ), - ], - } - ), - }), - ], - }), - }), - }); - } - return S; - })()); - }, - 66527: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SolarControl = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SolarControl = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = 0, - f = 1, - i = 2, - u = l.generated, - s = l.generated_ratio, - d = l.tracking_state, - C = l.tracking_rate, - g = l.connected_panels, - v = l.connected_tracker, - h = l.cdir, - V = l.direction, - b = l.rotating_direction; - return (0, e.createComponentVNode)(2, o.Window, { - width: 490, - height: 277, - 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 B() { - return p('refresh'); - } - return B; - })(), - }), - children: (0, e.createComponentVNode)(2, t.Grid, { - children: [ - (0, e.createComponentVNode)(2, t.Grid.Column, { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Solar tracker', - color: v ? 'good' : 'bad', - children: v ? 'OK' : 'N/A', - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Solar panels', - color: g > 0 ? 'good' : 'bad', - children: g, - } - ), - ], - } - ), - }), - (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: [0.66, 1 / 0], - average: [0.33, 0.66], - bad: [-1 / 0, 0.33], - }, - minValue: 0, - maxValue: 1, - value: s, - children: u + ' W', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Panel orientation', - children: [h, '\xB0 (', V, ')'], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Tracker rotation', - children: [ - d === i && - (0, e.createComponentVNode)( - 2, - t.Box, - { children: ' Automated ' } - ), - d === f && - (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - ' ', - C, - '\xB0/h (', - b, - ')', - ' ', - ], - } - ), - d === 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: [ - d !== i && - (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - unit: '\xB0', - step: 1, - stepPixelSize: 1, - minValue: 0, - maxValue: 359, - value: h, - onDrag: (function () { - function B(I, w) { - return p('cdir', { cdir: w }); - } - return B; - })(), - } - ), - d === i && - (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: d === c, - onClick: (function () { - function B() { - return p('track', { track: c }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'clock-o', - content: 'Timed', - selected: d === f, - onClick: (function () { - function B() { - return p('track', { track: f }); - } - return B; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sync', - content: 'Auto', - selected: d === i, - disabled: !v, - onClick: (function () { - function B() { - return p('track', { track: i }); - } - return B; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Tracker rotation', - children: [ - d === f && - (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - unit: '\xB0/h', - step: 1, - stepPixelSize: 1, - minValue: -7200, - maxValue: 7200, - value: C, - format: (function () { - function B(I) { - var w = - Math.sign(I) > 0 ? '+' : '-'; - return w + Math.abs(I); - } - return B; - })(), - onDrag: (function () { - function B(I, w) { - return p('tdir', { tdir: w }); - } - return B; - })(), - } - ), - d === c && - (0, e.createComponentVNode)(2, t.Box, { - lineHeight: '19px', - children: ' Tracker offline ', - }), - d === i && - (0, e.createComponentVNode)(2, t.Box, { - lineHeight: '19px', - children: ' Automated ', - }), - ], - } - ), - ], - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 27478: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SpawnersMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SpawnersMenu = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.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: 0.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 i() { - return p('jump', { ID: f.uids }); - } - return i; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'chevron-circle-right', - content: 'Spawn', - onClick: (function () { - function i() { - return p('spawn', { ID: f.uids }); - } - return i; - })(), - }), - ], - 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 N; - })()); - }, - 15565: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SpecMenu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SpecMenu = (function () { - function p(l, c) { - return (0, e.createComponentVNode)(2, o.Window, { - width: 1100, - height: 600, - theme: 'nologo', - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, y), - (0, e.createComponentVNode)(2, S), - (0, e.createComponentVNode)(2, k), - ], - }), - }), - }); - } - return p; - })()), - N = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.subclasses; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '25%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Hemomancer', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Choose', - onClick: (function () { - function d() { - return i('hemomancer'); - } - return d; - })(), - }), - 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 - ), - ], - }), - }); - }, - y = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.subclasses; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '25%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Umbrae', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Choose', - onClick: (function () { - function d() { - return i('umbrae'); - } - return d; - })(), - }), - 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 will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. 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 ensnares 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. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.' - ), - ], - 4 - ), - (0, e.createVNode)( - 1, - 'p', - null, - 'In addition, you also gain permanent X-ray vision.', - 16 - ), - ], - }), - }); - }, - S = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.subclasses; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '25%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Gargantua', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Choose', - onClick: (function () { - function d() { - return i('gargantua'); - } - return d; - })(), - }), - 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 do not 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, 'Charge', 16), - (0, e.createTextVNode)( - ': Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.' - ), - ], - 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, 'Desecrated Duel', 16), - (0, e.createTextVNode)( - ': Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.' - ), - ], - 4 - ), - ], - }), - }); - }, - k = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.subclasses; - return (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - basis: '25%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Dantalion', - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: 'Choose', - onClick: (function () { - function d() { - return i('dantalion'); - } - return d; - })(), - }), - 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 and then makes everyone nearby perceive others as random animals.' - ), - ], - 4 - ), - ], - }), - }); - }; - }, - 31752: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.StationAlertConsoleContent = r.StationAlertConsole = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.StationAlertConsole = (function () { - function y() { - return (0, e.createComponentVNode)(2, o.Window, { - width: 325, - height: 500, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, N), - }), - }); - } - return y; - })()), - N = (r.StationAlertConsoleContent = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.data, - c = l.alarms || [], - f = c.Fire || [], - i = c.Atmosphere || [], - u = c.Power || []; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Fire Alarms', - children: (0, e.createVNode)( - 1, - 'ul', - null, - [ - f.length === 0 && - (0, e.createVNode)( - 1, - 'li', - 'color-good', - 'Systems Nominal', - 16 - ), - f.map(function (s) { - return (0, e.createVNode)( - 1, - 'li', - 'color-average', - s, - 0, - null, - s - ); - }), - ], - 0 - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Atmospherics Alarms', - children: (0, e.createVNode)( - 1, - 'ul', - null, - [ - i.length === 0 && - (0, e.createVNode)( - 1, - 'li', - 'color-good', - 'Systems Nominal', - 16 - ), - i.map(function (s) { - return (0, e.createVNode)( - 1, - 'li', - 'color-average', - s, - 0, - null, - s - ); - }), - ], - 0 - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Power Alarms', - children: (0, e.createVNode)( - 1, - 'ul', - null, - [ - u.length === 0 && - (0, e.createVNode)( - 1, - 'li', - 'color-good', - 'Systems Nominal', - 16 - ), - u.map(function (s) { - return (0, e.createVNode)( - 1, - 'li', - 'color-average', - s, - 0, - null, - s - ); - }), - ], - 0 - ), - }), - ], - 4 - ); - } - return y; - })()); - }, - 64323: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.StationTraitsPanel = void 0); - var e = n(28823), - a = n(72026), - t = n(98644), - o = n(91819), - m = n(2971), - N = n(84947), - y = (function (l) { - return ( - (l[(l.SetupFutureStationTraits = 0)] = - 'SetupFutureStationTraits'), - (l[(l.ViewStationTraits = 1)] = 'ViewStationTraits'), - l - ); - })(y || {}), - S = function (c, f) { - var i = (0, o.useBackend)(f), - u = i.act, - s = i.data, - d = s.future_station_traits, - C = (0, o.useLocalState)(f, 'selectedFutureTrait', null), - g = C[0], - v = C[1], - h = Object.fromEntries( - s.valid_station_traits.map(function (b) { - return [b.name, b.path]; - }) - ), - V = Object.keys(h); - return ( - V.sort(), - (0, e.createComponentVNode)(2, m.Box, { - children: [ - (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, m.Dropdown, { - displayText: !g && 'Select trait to add...', - onSelected: v, - options: V, - selected: g, - width: '100%', - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Button, { - color: 'green', - icon: 'plus', - onClick: (function () { - function b() { - if (g) { - var B = h[g], - I = [B]; - if (d) { - var w, - T = d.map(function (A) { - return A.path; - }); - if (T.indexOf(B) !== -1) return; - I = (w = I).concat.apply(w, T); - } - u('setup_future_traits', { - station_traits: I, - }); - } - } - return b; - })(), - children: 'Add', - }), - }), - ], - }), - (0, e.createComponentVNode)(2, m.Divider), - Array.isArray(d) - ? d.length > 0 - ? (0, e.createComponentVNode)(2, m.Stack, { - vertical: !0, - fill: !0, - children: d.map(function (b) { - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: (0, e.createComponentVNode)( - 2, - m.Stack, - { - fill: !0, - children: [ - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { grow: !0, children: b.name } - ), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - color: 'red', - icon: 'times', - onClick: (function () { - function B() { - u('setup_future_traits', { - station_traits: (0, - a.filterMap)( - d, - function (I) { - if (I.path !== b.path) - return I.path; - } - ), - }); - } - return B; - })(), - children: 'Delete', - } - ), - } - ), - ], - } - ), - }, - b.path - ); - }), - }) - : (0, e.createComponentVNode)(2, m.Box, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - children: - 'No station traits will run next round.', - }), - (0, e.createComponentVNode)(2, m.Button, { - mt: 1, - fluid: !0, - color: 'good', - icon: 'times', - tooltip: - 'The next round will roll station traits randomly, just like normal', - onClick: (function () { - function b() { - return u('clear_future_traits'); - } - return b; - })(), - children: 'Run Station Traits Normally', - }), - ], - }) - : (0, e.createComponentVNode)(2, m.Box, { - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, m.Box, { - children: 'No future station traits are planned.', - }), - (0, e.createComponentVNode)(2, m.Button, { - mt: 1, - fluid: !0, - color: 'red', - icon: 'times', - onClick: (function () { - function b() { - return u('setup_future_traits', { - station_traits: [], - }); - } - return b; - })(), - children: - 'Prevent station traits from running next round', - }), - ], - }), - ], - }) - ); - }, - k = function (c, f) { - var i = (0, o.useBackend)(f), - u = i.act, - s = i.data; - return s.current_traits.length > 0 - ? (0, e.createComponentVNode)(2, m.Stack, { - vertical: !0, - fill: !0, - children: s.current_traits.map(function (d) { - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - grow: !0, - children: d.name, - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - m.Button.Confirm, - { - content: 'Revert', - color: 'red', - disabled: - s.too_late_to_revert || !d.can_revert, - tooltip: - (!d.can_revert && - 'This trait is not revertable.') || - (s.too_late_to_revert && - "It's too late to revert station traits, the round has already started."), - icon: 'times', - onClick: (function () { - function C() { - return u('revert', { ref: d.ref }); - } - return C; - })(), - } - ), - }), - ], - }), - }, - d.ref - ); - }), - }) - : (0, e.createComponentVNode)(2, m.Box, { - textAlign: 'center', - children: 'There are no active station traits.', - }); - }, - p = (r.StationTraitsPanel = (function () { - function l(c, f) { - var i = (0, o.useLocalState)( - f, - 'station_traits_tab', - y.ViewStationTraits - ), - u = i[0], - s = i[1], - d; - switch (u) { - case y.SetupFutureStationTraits: - d = (0, e.createComponentVNode)(2, S); - break; - case y.ViewStationTraits: - d = (0, e.createComponentVNode)(2, k); - break; - default: - (0, t.exhaustiveCheck)(u); - } - return (0, e.createComponentVNode)(2, N.Window, { - title: 'Modify Station Traits', - height: 350, - width: 350, - children: (0, e.createComponentVNode)(2, N.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, m.Stack.Item, { - children: (0, e.createComponentVNode)(2, m.Tabs, { - children: [ - (0, e.createComponentVNode)(2, m.Tabs.Tab, { - icon: 'eye', - selected: u === y.ViewStationTraits, - onClick: (function () { - function C() { - return s(y.ViewStationTraits); - } - return C; - })(), - children: 'View', - }), - (0, e.createComponentVNode)(2, m.Tabs.Tab, { - icon: 'edit', - selected: u === y.SetupFutureStationTraits, - onClick: (function () { - function C() { - return s(y.SetupFutureStationTraits); - } - return C; - })(), - children: 'Edit', - }), - ], - }), - }), - (0, e.createComponentVNode)(2, m.Stack.Item, { - m: 0, - children: [ - (0, e.createComponentVNode)(2, m.Divider), - d, - ], - }), - ], - }), - }), - }); - } - return l; - })()); - }, - 28973: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.StripMenu = void 0); - var e = n(28823), - a = n(72026), - t = n(96820), - o = n(91819), - m = n(2971), - N = n(84947), - y = 5, - S = 5, - k = '64px', - p = function (d) { - return d[0] + '/' + d[1]; - }, - l = function (d) { - var C = d.align, - g = d.children; - return (0, e.createComponentVNode)(2, m.Box, { - style: { - position: 'absolute', - left: C === 'left' ? '6px' : '48px', - 'text-align': C, - 'text-shadow': '2px 2px 2px #000', - top: '2px', - }, - children: g, - }); - }, - c = { - 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', - }, - }, - f = { - eyes: { - displayName: 'eyewear', - gridSpot: p([1, 0]), - image: 'inventory-glasses.png', - }, - head: { - displayName: 'headwear', - gridSpot: p([0, 1]), - image: 'inventory-head.png', - }, - mask: { - displayName: 'mask', - gridSpot: p([1, 1]), - image: 'inventory-mask.png', - }, - pet_collar: { - displayName: 'collar', - gridSpot: p([1, 1]), - image: 'inventory-collar.png', - }, - right_ear: { - displayName: 'right ear', - gridSpot: p([0, 2]), - image: 'inventory-ears.png', - }, - left_ear: { - displayName: 'left ear', - gridSpot: p([1, 2]), - image: 'inventory-ears.png', - }, - parrot_headset: { - displayName: 'headset', - gridSpot: p([1, 2]), - image: 'inventory-ears.png', - }, - handcuffs: { displayName: 'handcuffs', gridSpot: p([1, 3]) }, - legcuffs: { displayName: 'legcuffs', gridSpot: p([1, 4]) }, - jumpsuit: { - displayName: 'uniform', - gridSpot: p([2, 0]), - image: 'inventory-uniform.png', - }, - suit: { - displayName: 'suit', - gridSpot: p([2, 1]), - image: 'inventory-suit.png', - }, - gloves: { - displayName: 'gloves', - gridSpot: p([2, 2]), - image: 'inventory-gloves.png', - }, - right_hand: { - displayName: 'right hand', - gridSpot: p([2, 3]), - image: 'inventory-hand_r.png', - additionalComponent: (0, e.createComponentVNode)(2, l, { - align: 'left', - children: 'R', - }), - }, - left_hand: { - displayName: 'left hand', - gridSpot: p([2, 4]), - image: 'inventory-hand_l.png', - additionalComponent: (0, e.createComponentVNode)(2, l, { - align: 'right', - children: 'L', - }), - }, - shoes: { - displayName: 'shoes', - gridSpot: p([3, 1]), - image: 'inventory-shoes.png', - }, - suit_storage: { - displayName: 'suit storage', - gridSpot: p([4, 0]), - image: 'inventory-suit_storage.png', - }, - id: { - displayName: 'ID', - gridSpot: p([4, 1]), - image: 'inventory-id.png', - }, - belt: { - displayName: 'belt', - gridSpot: p([4, 2]), - image: 'inventory-belt.png', - }, - back: { - displayName: 'backpack', - gridSpot: p([4, 3]), - image: 'inventory-back.png', - }, - left_pocket: { - displayName: 'left pocket', - gridSpot: p([3, 4]), - image: 'inventory-pocket.png', - }, - right_pocket: { - displayName: 'right pocket', - gridSpot: p([3, 3]), - image: 'inventory-pocket.png', - }, - pda: { - displayName: 'PDA', - gridSpot: p([4, 4]), - image: 'inventory-pda.png', - }, - }, - i = (function (s) { - return ( - (s[(s.Completely = 1)] = 'Completely'), - (s[(s.Hidden = 2)] = 'Hidden'), - s - ); - })(i || {}), - u = (r.StripMenu = (function () { - function s(d, C) { - for ( - var g = (0, o.useBackend)(C), - v = g.act, - h = g.data, - V = new Map(), - b = 0, - B = Object.keys(h.items); - b < B.length; - b++ - ) { - var I = B[b]; - V.set(f[I].gridSpot, I); - } - var w = (function () { - function A(x) { - return x - ? x.cantstrip - ? 'transparent' - : x.interacting - ? 'average' - : 'translucent' - : 'translucent'; - } - return A; - })(), - T = (function () { - function A(x) { - return x && x.cantstrip ? 'transparent' : 'none'; - } - return A; - })(); - return (0, e.createComponentVNode)(2, N.Window, { - title: 'Stripping ' + h.name, - width: 360, - height: 390, - theme: 'nologo', - children: (0, e.createComponentVNode)(2, N.Window.Content, { - style: { 'background-color': 'rgba(0, 0, 0, 0.5)' }, - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - vertical: !0, - children: (0, a.range)(0, y).map(function (A) { - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - children: (0, e.createComponentVNode)(2, m.Stack, { - fill: !0, - children: (0, a.range)(0, S).map(function (x) { - var E = p([A, x]), - P = V.get(E); - if (!P) - return (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { style: { width: k, height: k } }, - E - ); - var D = h.items[P], - M = f[P], - O, - j, - F; - return ( - D === null - ? (F = M.displayName) - : 'name' in D - ? ((j = (0, e.createComponentVNode)( - 2, - m.Box, - { - as: 'img', - src: - 'data:image/jpeg;base64,' + - D.icon, - height: '100%', - width: '100%', - style: { - '-ms-interpolation-mode': - 'nearest-neighbor', - 'vertical-align': 'middle', - }, - } - )), - (F = D.name)) - : 'obscured' in D && - ((j = (0, e.createComponentVNode)( - 2, - m.Icon, - { - name: - D.obscured === i.Completely - ? 'ban' - : 'eye-slash', - size: 3, - ml: 0, - mt: 2.5, - color: 'white', - style: { - 'text-align': 'center', - height: '100%', - width: '100%', - }, - } - )), - (F = 'obscured ' + M.displayName)), - D !== null && - 'alternates' in D && - D.alternates !== null && - (O = D.alternates), - (0, e.createComponentVNode)( - 2, - m.Stack.Item, - { - style: { width: k, height: k }, - children: (0, e.createComponentVNode)( - 2, - m.Box, - { - style: { - position: 'relative', - width: '100%', - height: '100%', - }, - children: [ - (0, e.createComponentVNode)( - 2, - m.Button, - { - onClick: (function () { - function U() { - v('use', { key: P }); - } - return U; - })(), - fluid: !0, - color: w(D), - tooltip: F, - style: { - position: 'relative', - width: '100%', - height: '100%', - padding: 0, - 'background-color': T(D), - }, - children: [ - M.image && - (0, e.createComponentVNode)( - 2, - m.Box, - { - as: 'img', - src: (0, - t.resolveAsset)( - M.image - ), - opacity: 0.7, - style: { - position: 'absolute', - width: '32px', - height: '32px', - left: '50%', - top: '50%', - transform: - 'translateX(-50%) translateY(-50%) scale(2)', - }, - } - ), - (0, e.createComponentVNode)( - 2, - m.Box, - { - style: { - position: 'relative', - }, - children: j, - } - ), - M.additionalComponent, - ], - } - ), - (0, e.createComponentVNode)( - 2, - m.Stack, - { - direction: 'row-reverse', - children: - O !== void 0 && - O.map(function (U, _) { - var z = _ * 1.8; - return (0, - e.createComponentVNode)( - 2, - m.Stack.Item, - { - width: '100%', - children: (0, - e.createComponentVNode)( - 2, - m.Button, - { - onClick: - (function () { - function H() { - v('alt', { - key: P, - action_key: - U, - }); - } - return H; - })(), - tooltip: c[U].text, - width: '1.8em', - style: { - background: - 'rgba(0, 0, 0, 0.6)', - position: - 'absolute', - bottom: 0, - right: z + 'em', - 'z-index': 2 + _, - }, - children: (0, - e.createComponentVNode)( - 2, - m.Icon, - { - name: c[U].icon, - } - ), - } - ), - }, - _ - ); - }), - } - ), - ], - } - ), - }, - E - ) - ); - }), - }), - }, - A - ); - }), - }), - }), - }); - } - return s; - })()); - }, - 57633: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SuitStorage = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SuitStorage = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.uv; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 260, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - !!i && - (0, e.createComponentVNode)(2, t.Dimmer, { - backgroundColor: 'black', - opacity: 0.85, - children: (0, e.createComponentVNode)(2, t.Stack, { - children: (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - bold: !0, - textAlign: 'center', - mb: 1, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: 'spinner', - spin: 1, - size: 4, - mb: 4, - }), - (0, e.createVNode)(1, 'br'), - 'Disinfection of contents in progress...', - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, S), - ], - }), - }), - }); - } - return k; - })()), - N = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.helmet, - s = i.suit, - d = i.magboots, - C = i.mask, - g = i.storage, - v = i.open, - h = i.locked; - return (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Stored Items', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Start Disinfection Cycle', - icon: 'radiation', - textAlign: 'center', - onClick: (function () { - function V() { - return f('cook'); - } - return V; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: h ? 'Unlock' : 'Lock', - icon: h ? 'unlock' : 'lock', - disabled: v, - onClick: (function () { - function V() { - return f('toggle_lock'); - } - return V; - })(), - }), - ], - 4 - ), - children: - v && !h - ? (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, y, { - object: u, - label: 'Helmet', - missingText: 'helmet', - eject: 'dispense_helmet', - }), - (0, e.createComponentVNode)(2, y, { - object: s, - label: 'Suit', - missingText: 'suit', - eject: 'dispense_suit', - }), - (0, e.createComponentVNode)(2, y, { - object: d, - label: 'Boots', - missingText: 'boots', - eject: 'dispense_boots', - }), - (0, e.createComponentVNode)(2, y, { - object: C, - label: 'Breathmask', - missingText: 'mask', - eject: 'dispense_mask', - }), - (0, e.createComponentVNode)(2, y, { - object: g, - label: 'Storage', - missingText: 'storage item', - eject: 'dispense_storage', - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - children: (0, e.createComponentVNode)(2, t.Stack.Item, { - bold: !0, - grow: '1', - textAlign: 'center', - align: 'center', - color: 'label', - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - name: h ? 'lock' : 'exclamation-circle', - size: '5', - mb: 3, - }), - (0, e.createVNode)(1, 'br'), - h ? 'The unit is locked.' : 'The unit is closed.', - ], - }), - }), - }); - }, - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = p.object, - s = p.label, - d = p.missingText, - C = p.eject; - return (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: s, - children: (0, e.createComponentVNode)(2, t.Box, { - my: 0.5, - children: u - ? (0, e.createComponentVNode)(2, t.Button, { - my: -1, - icon: 'eject', - content: u, - onClick: (function () { - function g() { - return f(C); - } - return g; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'silver', - bold: !0, - children: ['No ', d, ' found.'], - }), - }), - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.open, - s = i.locked; - return (0, e.createComponentVNode)(2, t.Section, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: u - ? 'Close Suit Storage Unit' - : 'Open Suit Storage Unit', - icon: u ? 'times-circle' : 'expand', - color: u ? 'red' : 'green', - disabled: s, - textAlign: 'center', - onClick: (function () { - function d() { - return f('toggle_open'); - } - return d; - })(), - }), - }); - }; - }, - 72217: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SupermatterMonitor = void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(58331), - m = n(91819), - N = n(2971), - y = n(30381), - S = n(84947), - k = n(99753), - p = (r.SupermatterMonitor = (function () { - function i(u, s) { - var d = (0, m.useBackend)(s), - C = d.act, - g = d.data; - return g.active === 0 - ? (0, e.createComponentVNode)(2, c) - : (0, e.createComponentVNode)(2, f); - } - return i; - })()), - l = function (u) { - return Math.log2(16 + Math.max(0, u)) - 4; - }, - c = function (u, s) { - var d = (0, m.useBackend)(s), - C = d.act, - g = d.data, - v = g.supermatters, - h = v === void 0 ? [] : v; - return (0, e.createComponentVNode)(2, S.Window, { - width: 450, - height: 185, - children: (0, e.createComponentVNode)(2, S.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - title: 'Detected Supermatters', - buttons: (0, e.createComponentVNode)(2, N.Button, { - icon: 'sync', - content: 'Refresh', - onClick: (function () { - function V() { - return C('refresh'); - } - return V; - })(), - }), - children: (0, e.createComponentVNode)(2, N.Table, { - children: h.map(function (V) { - return (0, e.createComponentVNode)( - 2, - N.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, N.Table.Cell, { - children: V.supermatter_id + '. ' + V.area_name, - }), - (0, e.createComponentVNode)(2, N.Table.Cell, { - collapsing: !0, - color: 'label', - children: 'Integrity:', - }), - (0, e.createComponentVNode)(2, N.Table.Cell, { - collapsing: !0, - width: '120px', - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - value: V.integrity / 100, - ranges: { - good: [0.9, 1 / 0], - average: [0.5, 0.9], - bad: [-1 / 0, 0.5], - }, - } - ), - }), - (0, e.createComponentVNode)(2, N.Table.Cell, { - collapsing: !0, - children: (0, e.createComponentVNode)( - 2, - N.Button, - { - content: 'Details', - onClick: (function () { - function b() { - return C('view', { - view: V.supermatter_id, - }); - } - return b; - })(), - } - ), - }), - ], - }, - V.supermatter_id - ); - }), - }), - }), - }), - }); - }, - f = function (u, s) { - var d = (0, m.useBackend)(s), - C = d.act, - g = d.data, - v = g.active, - h = g.SM_integrity, - V = g.SM_power, - b = g.SM_ambienttemp, - B = g.SM_ambientpressure, - I = (0, t.flow)([ - function (T) { - return T.filter(function (A) { - return A.amount >= 0.01; - }); - }, - (0, a.sortBy)(function (T) { - return -T.amount; - }), - ])(g.gases || []), - w = Math.max.apply( - Math, - [1].concat( - I.map(function (T) { - return T.amount; - }) - ) - ); - return (0, e.createComponentVNode)(2, S.Window, { - width: 550, - height: 185, - children: (0, e.createComponentVNode)(2, S.Window.Content, { - children: (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - width: '270px', - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: 'Metrics', - children: (0, e.createComponentVNode)( - 2, - N.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - N.LabeledList.Item, - { - label: 'Integrity', - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - value: h / 100, - ranges: { - good: [0.9, 1 / 0], - average: [0.5, 0.9], - bad: [-1 / 0, 0.5], - }, - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - N.LabeledList.Item, - { - label: 'Relative EER', - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - value: V, - minValue: 0, - maxValue: 5e3, - ranges: { - good: [-1 / 0, 5e3], - average: [5e3, 7e3], - bad: [7e3, 1 / 0], - }, - children: - (0, o.toFixed)(V) + ' MeV/cm3', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - N.LabeledList.Item, - { - label: 'Temperature', - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - value: l(b), - minValue: 0, - maxValue: l(1e4), - ranges: { - teal: [-1 / 0, l(80)], - good: [l(80), l(373)], - average: [l(373), l(1e3)], - bad: [l(1e3), 1 / 0], - }, - children: (0, o.toFixed)(b) + ' K', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - N.LabeledList.Item, - { - label: 'Pressure', - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - value: l(B), - minValue: 0, - maxValue: l(5e4), - ranges: { - good: [l(1), l(300)], - average: [-1 / 0, l(1e3)], - bad: [l(1e3), 1 / 0], - }, - children: (0, o.toFixed)(B) + ' kPa', - } - ), - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - basis: 0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: 'Gases', - buttons: (0, e.createComponentVNode)(2, N.Button, { - icon: 'arrow-left', - content: 'Back', - onClick: (function () { - function T() { - return C('back'); - } - return T; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - N.LabeledList, - { - children: I.map(function (T) { - return (0, e.createComponentVNode)( - 2, - N.LabeledList.Item, - { - label: (0, y.getGasLabel)(T.name), - children: (0, e.createComponentVNode)( - 2, - N.ProgressBar, - { - color: (0, y.getGasColor)(T.name), - value: T.amount, - minValue: 0, - maxValue: w, - children: - (0, o.toFixed)(T.amount, 2) + '%', - } - ), - }, - T.name - ); - }), - } - ), - }), - }), - ], - }), - }), - }); - }; - }, - 55055: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SyndicateComputerSimple = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.SyndicateComputerSimple = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data; - return (0, e.createComponentVNode)(2, o.Window, { - theme: 'syndicate', - width: 400, - height: 400, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: l.rows.map(function (c) { - return (0, e.createComponentVNode)( - 2, - t.Section, - { - title: c.title, - buttons: (0, e.createComponentVNode)(2, t.Button, { - content: c.buttontitle, - disabled: c.buttondisabled, - tooltip: c.buttontooltip, - tooltipPosition: 'left', - onClick: (function () { - function f() { - return p(c.buttonact); - } - return f; - })(), - }), - children: [ - c.status, - !!c.bullets && - (0, e.createComponentVNode)(2, t.Box, { - children: c.bullets.map(function (f) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { children: f }, - f - ); - }), - }), - ], - }, - c.title - ); - }), - }), - }); - } - return N; - })()); - }, - 61225: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TEG = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (S) { - return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); - }, - N = (r.TEG = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data; - return c.error - ? (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: 'Error', - children: [ - c.error, - (0, e.createComponentVNode)(2, t.Button, { - icon: 'circle', - content: 'Recheck', - onClick: (function () { - function f() { - return l('check'); - } - return f; - })(), - }), - ], - }), - } - ), - }) - : (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: 'Cold Loop (' + c.cold_dir + ')', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Cold Inlet', - children: [ - m(c.cold_inlet_temp), - ' K,', - ' ', - m(c.cold_inlet_pressure), - ' kPa', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Cold Outlet', - children: [ - m(c.cold_outlet_temp), - ' K,', - ' ', - m(c.cold_outlet_pressure), - ' kPa', - ], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Hot Loop (' + c.hot_dir + ')', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Hot Inlet', - children: [ - m(c.hot_inlet_temp), - ' K,', - ' ', - m(c.hot_inlet_pressure), - ' kPa', - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Hot Outlet', - children: [ - m(c.hot_outlet_temp), - ' K,', - ' ', - m(c.hot_outlet_pressure), - ' kPa', - ], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Power Output', - children: [ - m(c.output_power), - ' W', - !!c.warning_switched && - (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: - 'Warning: Cold inlet temperature exceeds hot inlet temperature.', - }), - !!c.warning_cold_pressure && - (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: - 'Warning: Cold circulator inlet pressure is under 1,000 kPa.', - }), - !!c.warning_hot_pressure && - (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: - 'Warning: Hot circulator inlet pressure is under 1,000 kPa.', - }), - ], - }), - ], - } - ), - }); - } - return y; - })()); - }, - 61424: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.TTSSeedsExplorerContent = r.TTSSeedsExplorer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = { - 0: '\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435', - 1: 'Tier I', - 2: 'Tier II', - 3: 'Tier III', - 4: 'Tier IV', - 5: 'Tier V', - }, - N = { - male: '\u041C\u0443\u0436\u0441\u043A\u043E\u0439', - female: '\u0416\u0435\u043D\u0441\u043A\u0438\u0439', - }, - y = { - Мужской: { icon: 'mars', color: 'blue' }, - Женский: { icon: 'venus', color: 'purple' }, - Любой: { icon: 'venus-mars', color: 'white' }, - }, - S = function (c, f, i, u) { - return ( - u === void 0 && (u = null), - c.map(function (s) { - var d, - C = (d = s[u]) != null ? d : s; - return (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - checked: f.includes(s), - content: C, - onClick: (function () { - function g() { - f.includes(s) - ? i( - f.filter(function (v) { - var h; - return ((h = v[u]) != null ? h : v) !== s; - }) - ) - : i([s].concat(f)); - } - return g; - })(), - }, - C - ); - }) - ); - }, - k = (r.TTSSeedsExplorer = (function () { - function l() { - return (0, e.createComponentVNode)(2, o.Window, { - width: 600, - height: 800, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: (0, e.createComponentVNode)(2, p), - }), - }), - }); - } - return l; - })()), - p = (r.TTSSeedsExplorerContent = (function () { - function l(c, f) { - var i = (0, a.useBackend)(f), - u = i.act, - s = i.data, - d = s.providers, - C = s.seeds, - g = s.selected_seed, - v = s.phrases, - h = s.donator_level, - V = s.character_gender, - b = C.map(function (Z) { - return Z.category; - }).filter(function (Z, q, ue) { - return ue.indexOf(Z) === q; - }), - B = C.map(function (Z) { - return Z.gender; - }).filter(function (Z, q, ue) { - return ue.indexOf(Z) === q; - }), - I = C.map(function (Z) { - return Z.required_donator_level; - }) - .filter(function (Z, q, ue) { - return ue.indexOf(Z) === q; - }) - .sort(function (Z, q) { - return Z - q; - }) - .map(function (Z) { - return m[Z]; - }), - w = (0, a.useLocalState)(f, 'selectedProviders', d), - T = w[0], - A = w[1], - x = (0, a.useLocalState)( - f, - 'selectedGenders', - B.includes(N[V]) ? [N[V]] : B - ), - E = x[0], - P = x[1], - D = (0, a.useLocalState)(f, 'selectedCategories', b), - M = D[0], - O = D[1], - j = (0, a.useLocalState)( - f, - 'selectedDonatorLevels', - I.includes(m[h]) ? I.slice(0, I.indexOf(m[h]) + 1) : I - ), - F = j[0], - U = j[1], - _ = (0, a.useLocalState)(f, 'selectedPhrase', v[0]), - z = _[0], - H = _[1], - $ = (0, a.useLocalState)(f, 'searchtext', ''), - Y = $[0], - X = $[1], - re = S(d, T, A, 'name'), - ae = S(B, E, P), - se = S(b, M, O), - pe = S(I, F, U), - ye = (0, e.createComponentVNode)(2, t.Dropdown, { - options: v, - selected: z.replace(/(.{60})..+/, '$1...'), - width: '445px', - onSelected: (function () { - function Z(q) { - return H(q); - } - return Z; - })(), - }), - Be = (0, e.createComponentVNode)(2, t.Input, { - placeholder: - '\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...', - width: '100%', - onInput: (function () { - function Z(q, ue) { - return X(ue); - } - return Z; - })(), - }), - he = C.sort(function (Z, q) { - var ue = Z.name.toLowerCase(), - me = q.name.toLowerCase(); - return ue > me ? 1 : ue < me ? -1 : 0; - }).filter(function (Z) { - return ( - T.some(function (q) { - return q.name === Z.provider; - }) && - E.includes(Z.gender) && - M.includes(Z.category) && - F.includes(m[Z.required_donator_level]) && - Z.name.toLowerCase().includes(Y.toLowerCase()) - ); - }), - oe = he.map(function (Z) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - backgroundColor: g === Z.name ? 'green' : 'transparent', - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - color: g === Z.name ? 'green' : 'transparent', - content: - g === Z.name - ? '\u0412\u044B\u0431\u0440\u0430\u043D\u043E' - : '\u0412\u044B\u0431\u0440\u0430\u0442\u044C', - tooltip: - h < Z.required_donator_level && - '\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u0435\u0435 \u0432\u044B\u0441\u043E\u043A\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438', - onClick: (function () { - function q() { - return u('select', { seed: Z.name }); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - icon: 'music', - color: g === Z.name ? 'green' : 'transparent', - content: '', - tooltip: - '\u041F\u0440\u043E\u0441\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u0438\u043C\u0435\u0440', - onClick: (function () { - function q() { - return u('listen', { - seed: Z.name, - phrase: z, - }); - } - return q; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - textColor: - Z.required_donator_level > 0 && g !== Z.name - ? 'orange' - : 'white', - children: Z.name, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - opacity: g === Z.name ? 0.5 : 0.25, - textAlign: 'left', - children: Z.category, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - opacity: 0.5, - textColor: - g === 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: 0.5, - textColor: 'white', - textAlign: 'right', - children: - Z.required_donator_level > 0 && - (0, e.createFragment)( - [ - m[Z.required_donator_level], - (0, e.createComponentVNode)(2, t.Icon, { - ml: 1, - mr: 2, - name: 'coins', - }), - ], - 0 - ), - }), - ], - }, - Z.name - ); - }); - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - height: '175px', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: '\u0424\u0438\u043B\u044C\u0442\u0440\u044B', - 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: re, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: '\u041F\u043E\u043B', children: ae } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: - '\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438', - children: pe, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '\u0424\u0440\u0430\u0437\u0430', - children: ye, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: '\u041F\u043E\u0438\u0441\u043A', - children: Be, - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - height: '25%', - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: - '\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: - '\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451', - disabled: M.length === 0, - onClick: (function () { - function Z() { - return O([]); - } - return Z; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'check', - content: - '\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451', - disabled: M.length === b.length, - onClick: (function () { - function Z() { - return O(b); - } - return Z; - })(), - }), - ], - 4 - ), - children: se, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: - '\u0413\u043E\u043B\u043E\u0441\u0430 (' + - he.length + - '/' + - C.length + - ')', - children: (0, e.createComponentVNode)(2, t.Table, { - children: oe, - }), - }), - }), - (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, { - mt: 2, - 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.', - }), - ], - }), - }), - }), - ], - 4 - ); - } - return l; - })()); - }, - 97552: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.TachyonArrayContent = r.TachyonArray = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.TachyonArray = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.records, - i = f === void 0 ? [] : f, - u = c.explosion_target, - s = c.toxins_tech, - d = 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: u } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Current Toxins Level', children: s } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Administration', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'print', - content: 'Print All Logs', - disabled: !i.length || d, - align: 'center', - onClick: (function () { - function C() { - return l('print_logs'); - } - return C; - })(), - }), - (0, e.createComponentVNode)( - 2, - t.Button.Confirm, - { - icon: 'trash', - content: 'Delete All Logs', - disabled: !i.length, - color: 'bad', - align: 'center', - onClick: (function () { - function C() { - return l('delete_logs'); - } - return C; - })(), - } - ), - ], - } - ), - ], - } - ), - }), - i.length - ? (0, e.createComponentVNode)(2, N) - : (0, e.createComponentVNode)(2, t.NoticeBox, { - children: 'No Records', - }), - ], - }), - }); - } - return y; - })()), - N = (r.TachyonArrayContent = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.records, - i = 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', - }), - ], - }), - i.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.logged_time, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.epicenter, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.actual_size_message, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.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 s() { - return l('delete_record', { - index: u.index, - }); - } - return s; - })(), - } - ), - }), - ], - }, - u.index - ); - }), - ], - }), - }), - }), - }); - } - return y; - })()); - }, - 33291: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Tank = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Tank = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c; - return ( - l.has_mask - ? (c = (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Mask', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - width: '76%', - icon: l.connected ? 'check' : 'times', - content: l.connected - ? 'Internals On' - : 'Internals Off', - selected: l.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: 325, - height: 135, - 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: l.tankPressure / 1013, - ranges: { - good: [0.35, 1 / 0], - average: [0.15, 0.35], - bad: [-1 / 0, 0.15], - }, - children: l.tankPressure + ' kPa', - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Release Pressure', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-backward', - disabled: - l.ReleasePressure === - l.minReleasePressure, - tooltip: 'Min', - onClick: (function () { - function f() { - return p('pressure', { - pressure: 'min', - }); - } - return f; - })(), - }), - (0, e.createComponentVNode)( - 2, - t.NumberInput, - { - animated: !0, - value: parseFloat(l.releasePressure), - width: '65px', - unit: 'kPa', - minValue: l.minReleasePressure, - maxValue: l.maxReleasePressure, - onChange: (function () { - function f(i, u) { - return p('pressure', { - pressure: u, - }); - } - return f; - })(), - } - ), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'fast-forward', - disabled: - l.ReleasePressure === - l.maxReleasePressure, - tooltip: 'Max', - onClick: (function () { - function f() { - return p('pressure', { - pressure: 'max', - }); - } - return f; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'undo', - content: '', - disabled: - l.ReleasePressure === - l.defaultReleasePressure, - tooltip: 'Reset', - onClick: (function () { - function f() { - return p('pressure', { - pressure: 'reset', - }); - } - return f; - })(), - }), - ], - } - ), - c, - ], - } - ), - }), - }), - }) - ); - } - return N; - })()); - }, - 75480: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TankDispenser = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.TankDispenser = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.o_tanks, - f = l.p_tanks; - return (0, e.createComponentVNode)(2, o.Window, { - width: 250, - height: 105, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - content: 'Dispense Oxygen Tank (' + c + ')', - disabled: c === 0, - icon: 'arrow-circle-down', - onClick: (function () { - function i() { - return p('oxygen'); - } - return i; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.Box, { - children: (0, e.createComponentVNode)(2, t.Button, { - mt: 1, - fluid: !0, - content: 'Dispense Plasma Tank (' + f + ')', - disabled: f === 0, - icon: 'arrow-circle-down', - onClick: (function () { - function i() { - return p('plasma'); - } - return i; - })(), - }), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 62291: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TcommsCore = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.TcommsCore = (function () { - function p(l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.ion, - d = (0, a.useLocalState)(c, 'tabIndex', 0), - C = d[0], - g = d[1], - v = (function () { - function h(V) { - switch (V) { - case 0: - return (0, e.createComponentVNode)(2, y); - case 1: - return (0, e.createComponentVNode)(2, S); - case 2: - return (0, e.createComponentVNode)(2, k); - default: - return 'SOMETHING WENT VERY WRONG PLEASE AHELP'; - } - } - return h; - })(); - return (0, e.createComponentVNode)(2, o.Window, { - width: 900, - height: 520, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - s === 1 && (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, t.Tabs, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: 'wrench', - selected: C === 0, - onClick: (function () { - function h() { - return g(0); - } - return h; - })(), - children: 'Configuration', - }, - 'ConfigPage' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: 'link', - selected: C === 1, - onClick: (function () { - function h() { - return g(1); - } - return h; - })(), - children: 'Device Linkage', - }, - 'LinkagePage' - ), - (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - icon: 'user-times', - selected: C === 2, - onClick: (function () { - function h() { - return g(2); - } - return h; - })(), - children: 'User Filtering', - }, - 'FilterPage' - ), - ], - }), - v(C), - ], - }), - }); - } - return p; - })()), - N = function () { - return (0, e.createComponentVNode)(2, t.NoticeBox, { - children: - 'ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done.', - }); - }, - y = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.active, - d = u.sectors_available, - C = u.nttc_toggle_jobs, - g = u.nttc_toggle_job_color, - v = u.nttc_toggle_name_color, - h = u.nttc_toggle_command_bold, - V = u.nttc_job_indicator_type, - b = u.nttc_setting_language, - B = u.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: s ? 'On' : 'Off', - selected: s, - icon: 'power-off', - onClick: (function () { - function I() { - return i('toggle_active'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Sector Coverage', - children: d, - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Radio Configuration', - children: (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Job Announcements', - children: (0, e.createComponentVNode)(2, t.Button, { - content: C ? 'On' : 'Off', - selected: C, - icon: 'user-tag', - onClick: (function () { - function I() { - return i('nttc_toggle_jobs'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Job Departmentalisation', - children: (0, e.createComponentVNode)(2, t.Button, { - content: g ? 'On' : 'Off', - selected: g, - icon: 'clipboard-list', - onClick: (function () { - function I() { - return i('nttc_toggle_job_color'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Name Departmentalisation', - children: (0, e.createComponentVNode)(2, t.Button, { - content: v ? 'On' : 'Off', - selected: v, - icon: 'user-tag', - onClick: (function () { - function I() { - return i('nttc_toggle_name_color'); - } - return I; - })(), - }), - }), - (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 I() { - return i('nttc_toggle_command_bold'); - } - return I; - })(), - }), - }), - ], - }), - }), - (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: V || 'Unset', - selected: V, - icon: 'pencil-alt', - onClick: (function () { - function I() { - return i('nttc_job_indicator_type'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Language Conversion', - children: (0, e.createComponentVNode)(2, t.Button, { - content: b || 'Unset', - selected: b, - icon: 'globe', - onClick: (function () { - function I() { - return i('nttc_setting_language'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Network ID', - children: (0, e.createComponentVNode)(2, t.Button, { - content: B || 'Unset', - selected: B, - icon: 'server', - onClick: (function () { - function I() { - return i('network_id'); - } - return I; - })(), - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Maintenance', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Import Configuration', - icon: 'file-import', - onClick: (function () { - function I() { - return i('import'); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Export Configuration', - icon: 'file-export', - onClick: (function () { - function I() { - return i('export'); - } - return I; - })(), - }), - ], - }), - ], - 4 - ); - }, - S = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.link_password, - d = u.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: s || 'Unset', - selected: s, - icon: 'lock', - onClick: (function () { - function C() { - return i('change_password'); - } - return C; - })(), - }), - } - ), - }), - (0, e.createComponentVNode)(2, t.Table, { - m: '0.5rem', - children: [ - (0, e.createComponentVNode)(2, t.Table.Row, { - header: !0, - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Network Address', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Network ID', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Sector', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Status', - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: 'Unlink', - }), - ], - }), - d.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: C.addr, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: C.net_id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: C.sector, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: - C.status === 1 - ? (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: 'Online', - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Offline', - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Unlink', - icon: 'unlink', - onClick: (function () { - function g() { - return i('unlink', { addr: C.addr }); - } - return g; - })(), - } - ), - }), - ], - }, - C.addr - ); - }), - ], - }), - ], - }); - }, - k = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = f.data, - s = u.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 d() { - return i('add_filter'); - } - return d; - })(), - }), - 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', - }), - ], - }), - s.map(function (d) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: d, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Remove', - icon: 'user-times', - onClick: (function () { - function C() { - return i('remove_filter', { user: d }); - } - return C; - })(), - } - ), - }), - ], - }, - d - ); - }), - ], - }), - }); - }; - }, - 82905: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TcommsRelay = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.TcommsRelay = (function () { - function S(k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.linked, - u = f.active, - s = f.network_id; - return (0, e.createComponentVNode)(2, o.Window, { - width: 600, - height: 292, - 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: u ? 'On' : 'Off', - selected: u, - icon: 'power-off', - onClick: (function () { - function d() { - return c('toggle_active'); - } - return d; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Network ID', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: s || 'Unset', - selected: s, - icon: 'server', - onClick: (function () { - function d() { - return c('network_id'); - } - return d; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Link Status', - children: - i === 1 - ? (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: 'Linked', - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Unlinked', - }), - } - ), - ], - } - ), - }), - i === 1 - ? (0, e.createComponentVNode)(2, N) - : (0, e.createComponentVNode)(2, y), - ], - }), - }); - } - return S; - })()), - N = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = f.linked_core_id, - u = f.linked_core_addr, - s = 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: i, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Linked Core Address', - children: u, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Hidden Link', - children: (0, e.createComponentVNode)(2, t.Button, { - content: s ? 'Yes' : 'No', - icon: s ? 'eye-slash' : 'eye', - selected: s, - onClick: (function () { - function d() { - return c('toggle_hidden_link'); - } - return d; - })(), - }), - }), - (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 d() { - return c('unlink'); - } - return d; - })(), - }), - }), - ], - }), - }); - }, - y = function (k, p) { - var l = (0, a.useBackend)(p), - c = l.act, - f = l.data, - i = 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', - }), - ], - }), - i.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.addr, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.net_id, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: u.sector, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Link', - icon: 'link', - onClick: (function () { - function s() { - return c('link', { addr: u.addr }); - } - return s; - })(), - } - ), - }), - ], - }, - u.addr - ); - }), - ], - }), - }); - }; - }, - 87692: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Teleporter = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Teleporter = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.targetsTeleport ? l.targetsTeleport : {}, - f = 0, - i = 1, - u = 2, - s = l.calibrated, - d = l.calibrating, - C = l.powerstation, - g = l.regime, - v = l.teleporterhub, - h = l.target, - V = l.locked; - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: 270, - 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: [ - (!C || !v) && - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - title: 'Error', - children: [ - v, - !C && - (0, e.createComponentVNode)(2, t.Box, { - color: 'bad', - children: ' Powerstation not linked ', - }), - C && - !v && - (0, e.createComponentVNode)(2, t.Box, { - color: 'bad', - children: ' Teleporter hub not linked ', - }), - ], - }), - C && - v && - (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: 'Status', - children: [ - (0, e.createComponentVNode)(2, t.Stack, { - mb: 1, - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: 8.5, - color: 'label', - children: 'Teleport target:', - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - g === f && - (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - width: 18.2, - selected: h, - options: Object.keys(c), - color: - h !== 'None' - ? 'default' - : 'bad', - onSelected: (function () { - function b(B) { - return p('settarget', { - x: c[B].x, - y: c[B].y, - z: c[B].z, - }); - } - return b; - })(), - } - ), - g === i && - (0, e.createComponentVNode)( - 2, - t.Dropdown, - { - width: 18.2, - selected: h, - options: Object.keys(c), - color: - h !== 'None' - ? 'default' - : 'bad', - onSelected: (function () { - function b(B) { - return p('settarget', { - x: c[B].x, - y: c[B].y, - z: c[B].z, - }); - } - return b; - })(), - } - ), - g === u && - (0, e.createComponentVNode)( - 2, - t.Box, - { children: h } - ), - ], - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: 8.5, - color: 'label', - children: 'Regime:', - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - content: 'Gate', - tooltip: - 'Teleport to another teleport hub.', - tooltipPosition: 'top', - color: g === i ? 'good' : null, - onClick: (function () { - function b() { - return p('setregime', { - regime: i, - }); - } - return b; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - content: 'Teleporter', - tooltip: 'One-way teleport.', - tooltipPosition: 'top', - color: g === f ? 'good' : null, - onClick: (function () { - function b() { - return p('setregime', { - regime: f, - }); - } - return b; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - grow: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - content: 'GPS', - tooltip: - 'Teleport to a location stored in a GPS device.', - tooltipPosition: 'top-end', - color: g === u ? 'good' : null, - disabled: !V, - onClick: (function () { - function b() { - return p('setregime', { - regime: u, - }); - } - return b; - })(), - } - ), - } - ), - ], - }), - (0, e.createComponentVNode)(2, t.Stack, { - label: 'Calibration', - mt: 1, - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: 8.5, - color: 'label', - children: 'Calibration:', - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: [ - h !== 'None' && - (0, e.createComponentVNode)( - 2, - t.Stack, - { - fill: !0, - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - width: 15.8, - textAlign: 'center', - mt: 0.5, - children: - (d && - (0, - e.createComponentVNode)( - 2, - t.Box, - { - color: 'average', - children: - 'In Progress', - } - )) || - (s && - (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, - t.Stack.Item, - { - grow: !0, - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - icon: 'sync-alt', - tooltip: - 'Calibrates the hub. Accidents may occur when the calibration is not optimal.', - tooltipPosition: - 'bottom-end', - disabled: !!(s || d), - onClick: - (function () { - function b() { - return p( - 'calibrate' - ); - } - return b; - })(), - } - ), - } - ), - ], - } - ), - h === 'None' && - (0, e.createComponentVNode)( - 2, - t.Box, - { - lineHeight: '21px', - children: 'No target set', - } - ), - ], - } - ), - ], - }), - ], - }), - !!(V && C && v && g === u) && - (0, e.createComponentVNode)(2, t.Section, { - title: 'GPS', - children: (0, e.createComponentVNode)( - 2, - t.Stack, - { - 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 p('load'); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Eject', - tooltip: 'Ejects the GPS device', - icon: 'eject', - onClick: (function () { - function b() { - return p('eject'); - } - return b; - })(), - }), - ], - } - ), - }), - ], - }), - }), - }), - }); - } - return N; - })()); - }, - 40759: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TempGun = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.TempGun = (function () { - function p(l, c) { - var f = (0, t.useBackend)(c), - i = f.act, - u = f.data, - s = u.target_temperature, - d = u.temperature, - C = u.max_temp, - g = u.min_temp; - return (0, e.createComponentVNode)(2, m.Window, { - width: 250, - height: 121, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, o.Section, { - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Target Temperature', - children: [ - (0, e.createComponentVNode)(2, o.NumberInput, { - animate: !0, - step: 10, - stepPixelSize: 6, - minValue: g, - maxValue: C, - value: s, - format: (function () { - function v(h) { - return (0, a.toFixed)(h, 2); - } - return v; - })(), - width: '50px', - onDrag: (function () { - function v(h, V) { - return i('target_temperature', { - target_temperature: V, - }); - } - return v; - })(), - }), - '\xB0C', - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Current Temperature', - children: (0, e.createComponentVNode)(2, o.Box, { - color: y(d), - bold: d > 500 - 273.15, - children: [ - (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { value: (0, a.round)(d, 2) } - ), - '\xB0C', - ], - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Power Cost', - children: (0, e.createComponentVNode)(2, o.Box, { - color: k(d), - children: S(d), - }), - }), - ], - }), - }), - }), - }); - } - return p; - })()), - y = function (l) { - return l <= -100 - ? 'blue' - : l <= 0 - ? 'teal' - : l <= 100 - ? 'green' - : l <= 200 - ? 'orange' - : 'red'; - }, - S = function (l) { - return l <= 100 - 273.15 - ? 'High' - : l <= 250 - 273.15 - ? 'Medium' - : l <= 300 - 273.15 - ? 'Low' - : l <= 400 - 273.15 - ? 'Medium' - : 'High'; - }, - k = function (l) { - return l <= 100 - 273.15 - ? 'red' - : l <= 250 - 273.15 - ? 'orange' - : l <= 300 - 273.15 - ? 'green' - : l <= 400 - 273.15 - ? 'orange' - : 'red'; - }; - }, - 32369: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.sanitizeMultiline = - r.removeAllSkiplines = - r.TextInputModal = - void 0); - var e = n(28823), - a = n(2146), - t = n(98658), - o = n(91819), - m = n(31068), - N = n(2971), - y = n(84947), - S = (r.sanitizeMultiline = (function () { - function c(f) { - return f.replace(/(\n|\r\n){3,}/, '\n\n'); - } - return c; - })()), - k = (r.removeAllSkiplines = (function () { - function c(f) { - return f.replace(/[\r\n]+/, ''); - } - return c; - })()), - p = (r.TextInputModal = (function () { - function c(f, i) { - var u = (0, o.useBackend)(i), - s = u.act, - d = u.data, - C = d.max_length, - g = d.message, - v = g === void 0 ? '' : g, - h = d.multiline, - V = d.placeholder, - b = d.timeout, - B = d.title, - I = (0, o.useLocalState)(i, 'input', V || ''), - w = I[0], - T = I[1], - A = (function () { - function P(D) { - if (D !== w) { - var M = h ? S(D) : k(D); - T(M); - } - } - return P; - })(), - x = h || w.length >= 40, - E = - 130 + - (v.length > 40 ? Math.ceil(v.length / 4) : 0) + - (x ? 80 : 0); - return (0, e.createComponentVNode)(2, y.Window, { - title: B, - width: 325, - height: E, - children: [ - b && (0, e.createComponentVNode)(2, a.Loader, { value: b }), - (0, e.createComponentVNode)(2, y.Window.Content, { - onKeyDown: (function () { - function P(D) { - var M = window.event ? D.which : D.keyCode; - M === m.KEY_ENTER && - (!x || !D.shiftKey) && - s('submit', { entry: w }), - M === m.KEY_ESCAPE && s('cancel'); - } - return P; - })(), - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - children: (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Box, { - color: 'label', - children: v, - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, l, { - input: w, - onType: A, - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.InputButtons, - { input: w, message: w.length + '/' + C } - ), - }), - ], - }), - }), - }), - ], - }); - } - return c; - })()), - l = function (f, i) { - var u = (0, o.useBackend)(i), - s = u.act, - d = u.data, - C = d.max_length, - g = d.multiline, - v = f.input, - h = f.onType, - V = g || v.length >= 40; - return (0, e.createComponentVNode)(2, N.TextArea, { - autoFocus: !0, - autoSelect: !0, - height: g || v.length >= 40 ? '100%' : '1.8rem', - maxLength: C, - onEscape: (function () { - function b() { - return s('cancel'); - } - return b; - })(), - onEnter: (function () { - function b(B) { - (V && B.shiftKey) || - (B.preventDefault(), s('submit', { entry: v })); - } - return b; - })(), - onInput: (function () { - function b(B, I) { - return h(I); - } - return b; - })(), - placeholder: 'Type something...', - value: v, - }); - }; - }, - 82296: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.ThermoMachine = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = n(84947), - N = (r.ThermoMachine = (function () { - function y(S, k) { - var p = (0, t.useBackend)(k), - l = p.act, - c = p.data; - return (0, e.createComponentVNode)(2, m.Window, { - width: 300, - height: 225, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: [ - (0, e.createComponentVNode)(2, o.Section, { - title: 'Status', - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Temperature', - children: [ - (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { - value: c.temperature, - format: (function () { - function f(i) { - return (0, a.toFixed)(i, 2); - } - return f; - })(), - } - ), - ' K', - ], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Pressure', - children: [ - (0, e.createComponentVNode)( - 2, - o.AnimatedNumber, - { - value: c.pressure, - format: (function () { - function f(i) { - return (0, a.toFixed)(i, 2); - } - return f; - })(), - } - ), - ' kPa', - ], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.Section, { - title: 'Controls', - buttons: (0, e.createComponentVNode)(2, o.Button, { - icon: c.on ? 'power-off' : 'times', - content: c.on ? 'On' : 'Off', - selected: c.on, - onClick: (function () { - function f() { - return l('power'); - } - return f; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Setting', - textAlign: 'center', - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - icon: c.cooling - ? 'temperature-low' - : 'temperature-high', - content: c.cooling - ? 'Cooling' - : 'Heating', - selected: c.cooling, - onClick: (function () { - function f() { - return l('cooling'); - } - return f; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Target Temperature', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'fast-backward', - disabled: c.target === c.min, - title: 'Minimum temperature', - onClick: (function () { - function f() { - return l('target', { target: c.min }); - } - return f; - })(), - }), - (0, e.createComponentVNode)( - 2, - o.NumberInput, - { - animated: !0, - value: Math.round(c.target), - unit: 'K', - width: 5.4, - lineHeight: 1.4, - minValue: Math.round(c.min), - maxValue: Math.round(c.max), - step: 5, - stepPixelSize: 3, - onDrag: (function () { - function f(i, u) { - return l('target', { target: u }); - } - return f; - })(), - } - ), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'fast-forward', - disabled: c.target === c.max, - title: 'Maximum Temperature', - onClick: (function () { - function f() { - return l('target', { target: c.max }); - } - return f; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'sync', - disabled: c.target === c.initial, - title: 'Room Temperature', - onClick: (function () { - function f() { - return l('target', { - target: c.initial, - }); - } - return f; - })(), - }), - ], - } - ), - ], - } - ), - }), - ], - }), - }); - } - return y; - })()); - }, - 68488: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TransferValve = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.TransferValve = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.tank_one, - f = l.tank_two, - i = l.attached_device, - u = l.valve; - return (0, e.createComponentVNode)(2, o.Window, { - width: 460, - height: 285, - 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: 'Valve Status', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: u ? 'unlock' : 'lock', - content: u ? 'Open' : 'Closed', - disabled: !c || !f, - onClick: (function () { - function s() { - return p('toggle'); - } - return s; - })(), - } - ), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Assembly', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'cog', - content: 'Configure Assembly', - disabled: !i, - onClick: (function () { - function s() { - return p('device'); - } - return s; - })(), - }), - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Attachment', - children: i - ? (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: i, - disabled: !i, - onClick: (function () { - function s() { - return p('remove_device'); - } - return s; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'No Assembly', - }), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Attachment One', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Attachment', - children: c - ? (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: c, - disabled: !c, - onClick: (function () { - function s() { - return p('tankone'); - } - return s; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'No Tank', - }), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Attachment Two', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Attachment', - children: f - ? (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - content: f, - disabled: !f, - onClick: (function () { - function s() { - return p('tanktwo'); - } - return s; - })(), - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'average', - children: 'No Tank', - }), - } - ), - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 26868: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TurbineComputer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = n(58331), - N = (r.TurbineComputer = (function () { - function k(p, l) { - var c = (0, a.useBackend)(l), - f = c.act, - i = c.data, - u = i.compressor, - s = i.compressor_broken, - d = i.turbine, - C = i.turbine_broken, - g = i.online, - v = !!(u && !s && d && !C); - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 200, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - title: 'Status', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Button, { - icon: g ? 'power-off' : 'times', - content: g ? 'Online' : 'Offline', - selected: g, - disabled: !v, - onClick: (function () { - function h() { - return f('toggle_power'); - } - return h; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: 'Disconnect', - onClick: (function () { - function h() { - return f('disconnect'); - } - return h; - })(), - }), - ], - 4 - ), - children: v - ? (0, e.createComponentVNode)(2, S) - : (0, e.createComponentVNode)(2, y), - }), - }), - }); - } - return k; - })()), - y = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.compressor, - u = f.compressor_broken, - s = f.turbine, - d = f.turbine_broken, - C = f.online; - return (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Compressor Status', - color: !i || u ? 'bad' : 'good', - children: u ? (i ? 'Offline' : 'Missing') : 'Online', - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Turbine Status', - color: !s || d ? 'bad' : 'good', - children: d ? (s ? 'Offline' : 'Missing') : 'Online', - }), - ], - }); - }, - S = function (p, l) { - var c = (0, a.useBackend)(l), - f = c.data, - i = f.rpm, - u = f.temperature, - s = f.power, - d = f.bearing_heat; - return (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Turbine Speed', - children: [i, ' RPM'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Internal Temp', - children: [u, ' K'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Generated Power', - children: [s, ' W'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Bearing Heat', - children: (0, e.createComponentVNode)(2, t.ProgressBar, { - value: d, - minValue: 0, - maxValue: 100, - ranges: { - good: [-1 / 0, 60], - average: [60, 90], - bad: [90, 1 / 0], - }, - children: (0, m.toFixed)(d) + '%', - }), - }), - ], - }); - }; - }, - 30778: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Uplink = void 0); - var e = n(28823), - a = n(72026), - t = n(90955), - o = n(37843), - m = n(91819), - N = n(2971), - y = n(84947), - S = n(22677), - k = function (g) { - switch (g) { - case 0: - return (0, e.createComponentVNode)(2, l); - case 1: - return (0, e.createComponentVNode)(2, c); - case 2: - return (0, e.createComponentVNode)(2, d); - default: - return 'SOMETHING WENT VERY WRONG PLEASE AHELP'; - } - }, - p = (r.Uplink = (function () { - function C(g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = b.cart, - I = (0, m.useLocalState)(v, 'tabIndex', 0), - w = I[0], - T = I[1], - A = (0, m.useLocalState)(v, 'searchText', ''), - x = A[0], - E = A[1]; - return (0, e.createComponentVNode)(2, y.Window, { - width: 900, - height: 600, - theme: 'syndicate', - children: [ - (0, e.createComponentVNode)(2, S.ComplexModal), - (0, e.createComponentVNode)(2, y.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Tabs, { - children: [ - (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - selected: w === 0, - onClick: (function () { - function P() { - T(0), E(''); - } - return P; - })(), - icon: 'store', - children: 'View Market', - }, - 'PurchasePage' - ), - (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - selected: w === 1, - onClick: (function () { - function P() { - T(1), E(''); - } - return P; - })(), - icon: 'shopping-cart', - children: [ - 'View Shopping Cart', - ' ', - B && B.length ? '(' + B.length + ')' : '', - ], - }, - 'Cart' - ), - (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - selected: w === 2, - onClick: (function () { - function P() { - T(2), E(''); - } - return P; - })(), - icon: 'user', - children: 'Exploitable Information', - }, - 'ExploitableInfo' - ), - (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - onClick: (function () { - function P() { - return V('lock'); - } - return P; - })(), - icon: 'lock', - children: 'Lock Uplink', - }, - 'LockUplink' - ), - ], - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: k(w), - }), - ], - }), - }), - ], - }); - } - return C; - })()), - l = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = b.crystals, - I = b.cats, - w = (0, m.useLocalState)(v, 'uplinkItems', I[0].items), - T = w[0], - A = w[1], - x = (0, m.useLocalState)(v, 'searchText', ''), - E = x[0], - P = x[1], - D = function (_, z) { - z === void 0 && (z = ''); - var H = (0, o.createSearch)(z, function ($) { - var Y = $.hijack_only === 1 ? '|hijack' : ''; - return $.name + '|' + $.desc + '|' + $.cost + 'tc' + Y; - }); - return (0, t.flow)([ - (0, a.filter)(function ($) { - return $ == null ? void 0 : $.name; - }), - z && (0, a.filter)(H), - (0, a.sortBy)(function ($) { - return $ == null ? void 0 : $.name; - }), - ])(_); - }, - M = function (_) { - if ((P(_), _ === '')) return A(I[0].items); - A( - D( - I.map(function (z) { - return z.items; - }).flat(), - _ - ) - ); - }, - O = (0, m.useLocalState)(v, 'showDesc', 1), - j = O[0], - F = O[1]; - return (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack, { - vertical: !0, - children: (0, e.createComponentVNode)(2, N.Stack.Item, { - children: (0, e.createComponentVNode)(2, N.Section, { - title: 'Current Balance: ' + B + 'TC', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, N.Button.Checkbox, { - content: 'Show Descriptions', - checked: j, - onClick: (function () { - function U() { - return F(!j); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, N.Button, { - content: 'Random Item', - icon: 'question', - onClick: (function () { - function U() { - return V('buyRandom'); - } - return U; - })(), - }), - (0, e.createComponentVNode)(2, N.Button, { - content: 'Refund Currently Held Item', - icon: 'undo', - onClick: (function () { - function U() { - return V('refund'); - } - return U; - })(), - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, N.Input, { - fluid: !0, - placeholder: 'Search Equipment', - onInput: (function () { - function U(_, z) { - M(z); - } - return U; - })(), - value: E, - }), - }), - }), - }), - (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - mt: 0.3, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - width: '30%', - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - children: (0, e.createComponentVNode)(2, N.Tabs, { - vertical: !0, - children: I.map(function (U) { - return (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - selected: E !== '' ? !1 : U.items === T, - onClick: (function () { - function _() { - A(U.items), P(''); - } - return _; - })(), - children: U.cat, - }, - U - ); - }), - }), - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - children: (0, e.createComponentVNode)(2, N.Stack, { - vertical: !0, - children: T.map(function (U) { - return (0, e.createComponentVNode)( - 2, - N.Stack.Item, - { - p: 1, - backgroundColor: 'rgba(255, 0, 0, 0.1)', - children: (0, e.createComponentVNode)( - 2, - i, - { i: U, showDecription: j }, - (0, o.decodeHtmlEntities)(U.name) - ), - }, - (0, o.decodeHtmlEntities)(U.name) - ); - }), - }), - }), - }), - ], - }), - ], - }); - }, - c = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = b.cart, - I = b.crystals, - w = b.cart_price, - T = (0, m.useLocalState)(v, 'showDesc', 0), - A = T[0], - x = T[1]; - return (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: 'Current Balance: ' + I + 'TC', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, N.Button.Checkbox, { - content: 'Show Descriptions', - checked: A, - onClick: (function () { - function E() { - return x(!A); - } - return E; - })(), - }), - (0, e.createComponentVNode)(2, N.Button, { - content: 'Empty Cart', - icon: 'trash', - onClick: (function () { - function E() { - return V('empty_cart'); - } - return E; - })(), - disabled: !B, - }), - (0, e.createComponentVNode)(2, N.Button, { - content: 'Purchase Cart (' + w + 'TC)', - icon: 'shopping-cart', - onClick: (function () { - function E() { - return V('purchase_cart'); - } - return E; - })(), - disabled: !B || w > I, - }), - ], - 4 - ), - children: (0, e.createComponentVNode)(2, N.Stack, { - vertical: !0, - children: B - ? B.map(function (E) { - return (0, e.createComponentVNode)( - 2, - N.Stack.Item, - { - p: 1, - mr: 1, - backgroundColor: 'rgba(255, 0, 0, 0.1)', - children: (0, e.createComponentVNode)(2, i, { - i: E, - showDecription: A, - buttons: (0, e.createComponentVNode)(2, s, { - i: E, - }), - }), - }, - (0, o.decodeHtmlEntities)(E.name) - ); - }) - : (0, e.createComponentVNode)(2, N.Box, { - italic: !0, - children: 'Your Shopping Cart is empty!', - }), - }), - }), - }), - (0, e.createComponentVNode)(2, f), - ], - }); - }, - f = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = b.cats, - I = b.lucky_numbers; - return (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: 'Suggested Purchases', - buttons: (0, e.createComponentVNode)(2, N.Button, { - icon: 'dice', - content: 'See more suggestions', - onClick: (function () { - function w() { - return V('shuffle_lucky_numbers'); - } - return w; - })(), - }), - children: (0, e.createComponentVNode)(2, N.Stack, { - wrap: !0, - children: I.map(function (w) { - return B[w.cat].items[w.item]; - }) - .filter(function (w) { - return w != null; - }) - .map(function (w, T) { - return (0, e.createComponentVNode)( - 2, - N.Stack.Item, - { - p: 1, - mb: 1, - ml: 1, - width: 34, - backgroundColor: 'rgba(255, 0, 0, 0.15)', - children: (0, e.createComponentVNode)(2, i, { - grow: !0, - i: w, - }), - }, - T - ); - }), - }), - }), - }); - }, - i = function (g, v) { - var h = g.i, - V = g.showDecription, - b = V === void 0 ? 1 : V, - B = g.buttons, - I = - B === void 0 - ? (0, e.createComponentVNode)(2, u, { i: h }) - : B; - return (0, e.createComponentVNode)(2, N.Section, { - title: (0, o.decodeHtmlEntities)(h.name), - showBottom: b, - buttons: I, - children: b - ? (0, e.createComponentVNode)(2, N.Box, { - italic: !0, - children: (0, o.decodeHtmlEntities)(h.desc), - }) - : null, - }); - }, - u = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = g.i, - I = b.crystals; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, N.Button, { - icon: 'shopping-cart', - color: B.hijack_only === 1 && 'red', - tooltip: 'Add to cart.', - tooltipPosition: 'left', - onClick: (function () { - function w() { - return V('add_to_cart', { item: B.obj_path }); - } - return w; - })(), - disabled: B.cost > I, - }), - (0, e.createComponentVNode)(2, N.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 V('buyItem', { item: B.obj_path }); - } - return w; - })(), - disabled: B.cost > I, - }), - ], - 4 - ); - }, - s = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = g.i, - I = b.exploitable; - return (0, e.createComponentVNode)(2, N.Stack, { - children: [ - (0, e.createComponentVNode)(2, N.Button, { - icon: 'times', - content: '(' + B.cost * B.amount + 'TC)', - tooltip: 'Remove from cart.', - tooltipPosition: 'left', - onClick: (function () { - function w() { - return V('remove_from_cart', { item: B.obj_path }); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, N.Button, { - icon: 'minus', - tooltip: B.limit === 0 && 'Discount already redeemed!', - ml: '5px', - onClick: (function () { - function w() { - return V('set_cart_item_quantity', { - item: B.obj_path, - quantity: --B.amount, - }); - } - return w; - })(), - disabled: B.amount <= 0, - }), - (0, e.createComponentVNode)(2, N.Button.Input, { - content: B.amount, - width: '45px', - tooltipPosition: 'bottom-end', - tooltip: B.limit === 0 && 'Discount already redeemed!', - onCommit: (function () { - function w(T, A) { - return V('set_cart_item_quantity', { - item: B.obj_path, - quantity: A, - }); - } - return w; - })(), - disabled: - B.limit !== -1 && B.amount >= B.limit && B.amount <= 0, - }), - (0, e.createComponentVNode)(2, N.Button, { - mb: 0.3, - icon: 'plus', - tooltipPosition: 'bottom-start', - tooltip: B.limit === 0 && 'Discount already redeemed!', - onClick: (function () { - function w() { - return V('set_cart_item_quantity', { - item: B.obj_path, - quantity: ++B.amount, - }); - } - return w; - })(), - disabled: B.limit !== -1 && B.amount >= B.limit, - }), - ], - }); - }, - d = function (g, v) { - var h = (0, m.useBackend)(v), - V = h.act, - b = h.data, - B = b.exploitable, - I = (0, m.useLocalState)(v, 'selectedRecord', B[0]), - w = I[0], - T = I[1], - A = (0, m.useLocalState)(v, 'searchText', ''), - x = A[0], - E = A[1], - P = function (O, j) { - j === void 0 && (j = ''); - var F = (0, o.createSearch)(j, function (U) { - return U.name; - }); - return (0, t.flow)([ - (0, a.filter)(function (U) { - return U == null ? void 0 : U.name; - }), - j && (0, a.filter)(F), - (0, a.sortBy)(function (U) { - return U.name; - }), - ])(O); - }, - D = P(B, x); - return (0, e.createComponentVNode)(2, N.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, N.Stack.Item, { - width: '30%', - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: 'Exploitable Records', - children: [ - (0, e.createComponentVNode)(2, N.Input, { - fluid: !0, - mb: 1, - placeholder: 'Search Crew', - onInput: (function () { - function M(O, j) { - return E(j); - } - return M; - })(), - }), - (0, e.createComponentVNode)(2, N.Tabs, { - vertical: !0, - children: D.map(function (M) { - return (0, e.createComponentVNode)( - 2, - N.Tabs.Tab, - { - selected: M === w, - onClick: (function () { - function O() { - return T(M); - } - return O; - })(), - children: M.name, - }, - M - ); - }), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, N.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)(2, N.Section, { - fill: !0, - scrollable: !0, - title: w.name, - children: (0, e.createComponentVNode)(2, N.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Age', - children: w.age, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Fingerprint', - children: w.fingerprint, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Rank', - children: w.rank, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Sex', - children: w.sex, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Species', - children: w.species, - }), - ], - }), - }), - }), - ], - }); - }; - }, - 7307: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Vending = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = S.product, - i = S.productStock, - u = S.productImage, - s = c.chargesMoney, - d = c.user, - C = c.usermoney, - g = c.inserted_cash, - v = c.vend_ready, - h = c.inserted_item_name, - V = !s || f.price === 0, - b = 'ERROR!', - B = ''; - V - ? ((b = 'FREE'), (B = 'arrow-circle-down')) - : ((b = f.price), (B = 'shopping-cart')); - var I = !v || i === 0 || (!V && f.price > C && f.price > g); - return (0, e.createComponentVNode)(2, t.Table.Row, { - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - children: (0, e.createVNode)(1, 'img', null, null, 1, { - src: 'data:image/jpeg;base64,' + u, - style: { - 'vertical-align': 'middle', - width: '32px', - margin: '0px', - 'margin-left': '0px', - }, - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - bold: !0, - children: f.name, - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Box, { - color: - (i <= 0 && 'bad') || - (i <= f.max_amount / 2 && 'average') || - 'good', - children: [i, ' in stock'], - }), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - collapsing: !0, - textAlign: 'center', - children: (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - disabled: I, - icon: B, - content: b, - textAlign: 'left', - onClick: (function () { - function w() { - return l('vend', { inum: f.inum }); - } - return w; - })(), - }), - }), - ], - }); - }, - N = (r.Vending = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.user, - i = c.usermoney, - u = c.inserted_cash, - s = c.chargesMoney, - d = c.product_records, - C = d === void 0 ? [] : d, - g = c.hidden_records, - v = g === void 0 ? [] : g, - h = c.stock, - V = c.vend_ready, - b = c.inserted_item_name, - B = c.panel_open, - I = c.speaker, - w = c.imagelist, - T; - return ( - (T = [].concat(C)), - c.extended_inventory && (T = [].concat(T, v)), - (T = T.filter(function (A) { - return !!A; - })), - (0, e.createComponentVNode)(2, o.Window, { - title: 'Vending Machine', - width: 450, - height: Math.min((s ? 171 : 89) + T.length * 32, 585), - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: (0, e.createComponentVNode)(2, t.Stack, { - fill: !0, - vertical: !0, - children: [ - !!s && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - title: 'User', - buttons: (0, e.createComponentVNode)( - 2, - t.Stack, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: - !!b && - (0, e.createComponentVNode)( - 2, - t.Button, - { - fluid: !0, - icon: 'eject', - content: (0, e.createVNode)( - 1, - 'span', - null, - b, - 0, - { - style: { - 'text-transform': - 'capitalize', - }, - } - ), - onClick: (function () { - function A() { - return l( - 'eject_item', - {} - ); - } - return A; - })(), - } - ), - } - ), - (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - children: (0, - e.createComponentVNode)( - 2, - t.Button, - { - disabled: !u, - icon: 'money-bill-wave-alt', - content: u - ? (0, e.createFragment)( - [ - (0, e.createVNode)( - 1, - 'b', - null, - u, - 0 - ), - (0, e.createTextVNode)( - ' credits' - ), - ], - 0 - ) - : 'Dispense Change', - tooltip: u - ? 'Dispense Change' - : null, - textAlign: 'left', - onClick: (function () { - function A() { - return l('change'); - } - return A; - })(), - } - ), - } - ), - ], - } - ), - children: - f && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - 'Welcome, ', - (0, e.createVNode)( - 1, - 'b', - null, - f.name, - 0 - ), - ',', - ' ', - (0, e.createVNode)( - 1, - 'b', - null, - f.job || 'Unemployed', - 0 - ), - '!', - (0, e.createVNode)(1, 'br'), - 'Your balance is ', - (0, e.createVNode)( - 1, - 'b', - null, - [ - i, - (0, e.createTextVNode)(' credits'), - ], - 0 - ), - '.', - (0, e.createVNode)(1, 'br'), - ], - }), - } - ), - }), - !!B && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - title: 'Maintenance', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: I ? 'check' : 'volume-mute', - selected: I, - content: 'Speaker', - textAlign: 'left', - onClick: (function () { - function A() { - return l('toggle_voice', {}); - } - return A; - })(), - } - ), - } - ), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - fill: !0, - scrollable: !0, - title: 'Products', - children: (0, e.createComponentVNode)( - 2, - t.Table, - { - children: T.map(function (A) { - return (0, e.createComponentVNode)( - 2, - m, - { - product: A, - productStock: h[A.name], - productImage: w[A.path], - }, - A.name - ); - }), - } - ), - } - ), - }), - ], - }), - }), - }) - ); - } - return y; - })()); - }, - 25485: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.VolumeMixer = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.VolumeMixer = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.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, i) { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, t.Box, { - fontSize: '1.25rem', - color: 'label', - mt: i > 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: 0.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 u() { - return p('volume', { - channel: f.num, - volume: 0, - }); - } - return u; - })(), - }), - } - ), - } - ), - (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 u(s, d) { - return p('volume', { - channel: f.num, - volume: d, - }); - } - return u; - })(), - } - ), - } - ), - (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 u() { - return p('volume', { - channel: f.num, - volume: 100, - }); - } - return u; - })(), - }), - } - ), - } - ), - ], - } - ), - }), - ], - 4, - f.num - ); - }), - }), - }), - }); - } - return N; - })()); - }, - 26564: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.VotePanel = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.VotePanel = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.remaining, - f = l.question, - i = l.choices, - u = l.user_vote, - s = l.counts, - d = l.show_counts; - return (0, e.createComponentVNode)(2, o.Window, { - width: 400, - height: 360, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Section, { - fill: !0, - scrollable: !0, - title: f, - children: [ - (0, e.createComponentVNode)(2, t.Box, { - mb: 1.5, - ml: 0.5, - children: [ - 'Time remaining: ', - Math.round(c / 10), - 's', - ], - }), - i.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - mb: 1, - fluid: !0, - lineHeight: 3, - color: 'translucent', - multiLine: C, - content: - C + (d ? ' (' + (s[C] || 0) + ')' : ''), - onClick: (function () { - function g() { - return p('vote', { target: C }); - } - return g; - })(), - selected: C === u, - } - ), - }, - C - ); - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 496: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Wires = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.Wires = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.wires || [], - f = l.status || [], - i = 56 + c.length * 23 + (status ? 0 : 15 + f.length * 17); - return (0, e.createComponentVNode)(2, o.Window, { - width: 350, - height: i, - 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 (u) { - return (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - className: 'candystripe', - label: u.color_name, - labelColor: u.seen_color, - color: u.seen_color, - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: u.cut ? 'Mend' : 'Cut', - onClick: (function () { - function s() { - return p('cut', { - wire: u.color, - }); - } - return s; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Pulse', - onClick: (function () { - function s() { - return p('pulse', { - wire: u.color, - }); - } - return s; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: u.attached - ? 'Detach' - : 'Attach', - onClick: (function () { - function s() { - return p('attach', { - wire: u.color, - }); - } - return s; - })(), - } - ), - ], - 4 - ), - children: - !!u.wire && - (0, e.createVNode)( - 1, - 'i', - null, - [ - (0, e.createTextVNode)('('), - u.wire, - (0, e.createTextVNode)(')'), - ], - 0 - ), - }, - u.seen_color - ); - }), - } - ), - }), - }), - !!f.length && - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Section, - { - children: f.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { color: 'lightgray', children: u }, - u - ); - }), - } - ), - }), - ], - }), - }), - }); - } - return N; - })()); - }, - 28919: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.WizardApprenticeContract = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(84947), - m = (r.WizardApprenticeContract = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.used; - return (0, e.createComponentVNode)(2, o.Window, { - width: 500, - height: 555, - children: (0, e.createComponentVNode)(2, o.Window.Content, { - scrollable: !0, - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: 'Contract of Apprenticeship', - children: [ - 'Using this contract, you may summon an apprentice to aid you on your mission.', - (0, e.createVNode)( - 1, - 'p', - null, - 'If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.', - 16 - ), - c - ? (0, e.createComponentVNode)(2, t.Box, { - bold: !0, - color: 'red', - children: - "You've already summoned an apprentice or you are in process of summoning one.", - }) - : '', - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: - 'Which school of magic is your apprentice studying?', - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Fire', - children: [ - 'Your apprentice is skilled in bending fire. ', - (0, e.createVNode)(1, 'br'), - 'They know Fireball, Sacred Flame, and Ethereal Jaunt.', - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Select', - disabled: c, - onClick: (function () { - function f() { - return p('fire'); - } - return f; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Translocation', - children: [ - 'Your apprentice is able to defy physics, learning how to move through bluespace. ', - (0, e.createVNode)(1, 'br'), - 'They know Teleport, Blink and Ethereal Jaunt.', - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Select', - disabled: c, - onClick: (function () { - function f() { - return p('translocation'); - } - return f; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Restoration', - children: [ - 'Your apprentice is dedicated to supporting your magical prowess.', - (0, e.createVNode)(1, 'br'), - 'They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.', - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Select', - disabled: c, - onClick: (function () { - function f() { - return p('restoration'); - } - return f; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Stealth', - children: [ - 'Your apprentice is learning the art of infiltrating mundane facilities. ', - (0, e.createVNode)(1, 'br'), - 'They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.', - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Select', - disabled: c, - onClick: (function () { - function f() { - return p('stealth'); - } - return f; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Honk', - children: [ - "Your apprentice is here to spread the Honkmother's blessings.", - (0, e.createVNode)(1, 'br'), - 'They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ', - (0, e.createVNode)(1, 'br'), - "While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.", - (0, e.createVNode)(1, 'br'), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Select', - disabled: c, - onClick: (function () { - function f() { - return p('honk'); - } - return f; - })(), - }), - ], - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Divider - ), - ], - } - ), - }), - ], - }), - }); - } - return N; - })()); - }, - 14635: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AccessList = void 0); - var e = n(28823), - a = n(72026), - t = n(91819), - o = n(2971); - function m(p, l) { - 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 = N(p)) || - (l && 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 N(p, l) { - if (p) { - if (typeof p == 'string') return y(p, l); - var c = Object.prototype.toString.call(p).slice(8, -1); - if ( - (c === 'Object' && p.constructor && (c = p.constructor.name), - c === 'Map' || c === 'Set') - ) - return Array.from(p); - if ( - c === 'Arguments' || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) - ) - return y(p, l); - } - } - function y(p, l) { - (l == null || l > p.length) && (l = p.length); - for (var c = 0, f = new Array(l); c < l; c++) f[c] = p[c]; - return f; - } - var S = { - 0: { icon: 'times-circle', color: 'bad' }, - 1: { icon: 'stop-circle', color: null }, - 2: { icon: 'check-circle', color: 'good' }, - }, - k = (r.AccessList = (function () { - function p(l, c) { - var f, - i = l.sectionButtons, - u = i === void 0 ? null : i, - s = l.usedByRcd, - d = l.rcdButtons, - C = l.accesses, - g = C === void 0 ? [] : C, - v = l.selectedList, - h = v === void 0 ? [] : v, - V = l.grantableList, - b = V === void 0 ? [] : V, - B = l.accessMod, - I = l.grantAll, - w = l.denyAll, - T = l.grantDep, - A = l.denyDep, - x = (0, t.useLocalState)( - c, - 'accessName', - (f = g[0]) == null ? void 0 : f.name - ), - E = x[0], - P = x[1], - D = g.find(function (j) { - return j.name === E; - }), - M = (0, a.sortBy)(function (j) { - return j.desc; - })((D == null ? void 0 : D.accesses) || []), - O = (function () { - function j(F) { - for (var U = !1, _ = !1, z = m(F), H; !(H = z()).done; ) { - var $ = H.value; - h.includes($.ref) ? (U = !0) : (_ = !0); - } - return !U && _ ? 0 : U && _ ? 1 : 2; - } - return j; - })(); - return (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: 'Access', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'check-double', - content: 'Select All', - color: 'good', - onClick: (function () { - function j() { - return I(); - } - return j; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'undo', - content: 'Deselect All', - color: 'bad', - onClick: (function () { - function j() { - return w(); - } - return j; - })(), - }), - u, - ], - 0 - ), - children: (0, e.createComponentVNode)(2, o.Stack, { - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - basis: '25%', - children: (0, e.createComponentVNode)(2, o.Tabs, { - vertical: !0, - children: g.map(function (j) { - var F = j.accesses || [], - U = S[O(F)].icon, - _ = S[O(F)].color; - return (0, e.createComponentVNode)( - 2, - o.Tabs.Tab, - { - altSelection: !0, - color: _, - icon: U, - selected: j.name === E, - onClick: (function () { - function z() { - return P(j.name); - } - return z; - })(), - children: j.name, - }, - j.name - ); - }), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Divider, { - vertical: !0, - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - basis: '80%', - children: [ - (0, e.createComponentVNode)(2, o.Stack, { - mb: 1, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - icon: 'check', - content: 'Select All In Region', - color: 'good', - onClick: (function () { - function j() { - return T(D.regid); - } - return j; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - grow: !0, - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - fluid: !0, - icon: 'times', - content: 'Deselect All In Region', - color: 'bad', - onClick: (function () { - function j() { - return A(D.regid); - } - return j; - })(), - } - ), - }), - ], - }), - !!s && - (0, e.createComponentVNode)(2, o.Box, { - my: 1.5, - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Require', children: d } - ), - } - ), - }), - M.map(function (j) { - return (0, e.createComponentVNode)( - 2, - o.Button.Checkbox, - { - fluid: !0, - content: j.desc, - disabled: - b.length > 0 && - !b.includes(j.ref) && - !h.includes(j.ref), - checked: h.includes(j.ref), - onClick: (function () { - function F() { - return B(j.ref); - } - return F; - })(), - }, - j.desc - ); - }), - ], - }), - ], - }), - }); - } - return p; - })()); - }, - 29136: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.AtmosScan = void 0); - var e = n(28823), - a = n(72026), - t = n(91819), - o = n(2971), - m = function (S, k, p, l, c) { - return S < k - ? 'bad' - : S < p || S > l - ? 'average' - : S > c - ? 'bad' - : 'good'; - }, - N = (r.AtmosScan = (function () { - function y(S, k) { - var p = S.data.aircontents; - return (0, e.createComponentVNode)(2, o.Box, { - children: (0, e.createComponentVNode)(2, o.LabeledList, { - children: (0, a.filter)(function (l) { - return ( - l.val !== '0' || - l.entry === 'Pressure' || - l.entry === 'Temperature' - ); - })(p).map(function (l) { - return (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: l.entry, - color: m( - l.val, - l.bad_low, - l.poor_low, - l.poor_high, - l.bad_high - ), - children: [l.val, l.units], - }, - l.entry - ); - }), - }), - }); - } - return y; - })()); - }, - 83326: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BeakerContents = void 0); - var e = n(28823), - a = n(2971), - t = n(64635), - o = function (y) { - return y + ' unit' + (y === 1 ? '' : 's'); - }, - m = (r.BeakerContents = (function () { - function N(y) { - var S = y.beakerLoaded, - k = y.beakerContents, - p = k === void 0 ? [] : k, - l = y.buttons; - return (0, e.createComponentVNode)(2, a.Stack, { - vertical: !0, - children: [ - (!S && - (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 - ), - !!l && - (0, e.createComponentVNode)(2, a.Stack.Item, { - children: l(c, f), - }), - ], - }, - c.name - ); - }), - ], - }); - } - return N; - })()); - m.propTypes = { - beakerLoaded: t.bool, - beakerContents: t.array, - buttons: t.arrayOf(t.element), - }; - }, - 86041: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BotStatus = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.BotStatus = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.locked, - c = p.noaccess, - f = p.maintpanel, - i = p.on, - u = p.autopatrol, - s = p.canhack, - d = p.emagged, - C = p.remote_disabled; - return (0, e.createFragment)( - [ - (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: i ? 'power-off' : 'times', - content: i ? 'On' : 'Off', - selected: i, - disabled: c, - onClick: (function () { - function g() { - return k('power'); - } - return g; - })(), - }), - }), - u !== null && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Patrol', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: u, - content: 'Auto Patrol', - disabled: c, - onClick: (function () { - function g() { - return k('autopatrol'); - } - return g; - })(), - } - ), - }), - !!f && - (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: d ? 'bad' : 'good', - children: d ? 'DISABLED!' : 'Enabled', - }), - }), - !!s && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Hacking', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'terminal', - content: d ? 'Restore Safties' : 'Hack', - disabled: c, - color: 'bad', - onClick: (function () { - function g() { - return k('hack'); - } - return g; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Remote Access', - children: (0, e.createComponentVNode)( - 2, - t.Button.Checkbox, - { - fluid: !0, - checked: !C, - content: 'AI Remote Control', - disabled: c, - onClick: (function () { - function g() { - return k('disableremote'); - } - return g; - })(), - } - ), - }), - ], - }), - }), - ], - 4 - ); - } - return m; - })()); - }, - 22677: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.modalRegisterBodyOverride = - r.modalOpen = - r.modalClose = - r.modalAnswer = - r.ComplexModal = - void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = {}, - m = (r.modalOpen = (function () { - function p(l, c, f) { - var i = (0, a.useBackend)(l), - u = i.act, - s = i.data, - d = Object.assign(s.modal ? s.modal.args : {}, f || {}); - u('modal_open', { id: c, arguments: JSON.stringify(d) }); - } - return p; - })()), - N = (r.modalRegisterBodyOverride = (function () { - function p(l, c) { - o[l] = c; - } - return p; - })()), - y = (r.modalAnswer = (function () { - function p(l, c, f, i) { - var u = (0, a.useBackend)(l), - s = u.act, - d = u.data; - if (d.modal) { - var C = Object.assign(d.modal.args || {}, i || {}); - s('modal_answer', { - id: c, - answer: f, - arguments: JSON.stringify(C), - }); - } - } - return p; - })()), - S = (r.modalClose = (function () { - function p(l, c) { - var f = (0, a.useBackend)(l), - i = f.act; - i('modal_close', { id: c }); - } - return p; - })()), - k = (r.ComplexModal = (function () { - function p(l, c) { - var f = (0, a.useBackend)(c), - i = f.data; - if (i.modal) { - var u = i.modal, - s = u.id, - d = u.text, - C = u.type, - g, - v = (0, e.createComponentVNode)(2, t.Button, { - className: 'Button--modal', - icon: 'arrow-left', - content: 'Cancel', - onClick: (function () { - function w() { - return S(c); - } - return w; - })(), - }), - h, - V, - b = 'auto'; - if (o[s]) h = o[s](i.modal, c); - else if (C === 'input') { - var B = i.modal.value; - (g = (function () { - function w(T) { - return y(c, s, B); - } - return w; - })()), - (h = (0, e.createComponentVNode)(2, t.Input, { - value: i.modal.value, - placeholder: 'ENTER to submit', - width: '100%', - my: '0.5rem', - autofocus: !0, - onChange: (function () { - function w(T, A) { - B = A; - } - return w; - })(), - })), - (V = (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 w() { - return S(c); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'check', - content: 'Confirm', - color: 'good', - float: 'right', - m: '0', - onClick: (function () { - function w() { - return y(c, s, B); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Box, { - clear: 'both', - }), - ], - })); - } else if (C === 'choice') { - var I = - typeof i.modal.choices == 'object' - ? Object.values(i.modal.choices) - : i.modal.choices; - (h = (0, e.createComponentVNode)(2, t.Dropdown, { - options: I, - selected: i.modal.value, - width: '100%', - my: '0.5rem', - onSelected: (function () { - function w(T) { - return y(c, s, T); - } - return w; - })(), - })), - (b = 'initial'); - } else - C === 'bento' - ? (h = (0, e.createComponentVNode)(2, t.Stack, { - spacingPrecise: '1', - wrap: 'wrap', - my: '0.5rem', - maxHeight: '1%', - children: i.modal.choices.map(function (w, T) { - return (0, e.createComponentVNode)( - 2, - t.Stack.Item, - { - flex: '1 1 auto', - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - selected: - T + 1 === parseInt(i.modal.value, 10), - onClick: (function () { - function A() { - return y(c, s, T + 1); - } - return A; - })(), - children: (0, e.createVNode)( - 1, - 'img', - null, - null, - 1, - { src: w } - ), - } - ), - }, - T - ); - }), - })) - : C === 'boolean' && - (V = (0, e.createComponentVNode)(2, t.Box, { - mt: '0.5rem', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'times', - content: i.modal.no_text, - color: 'bad', - float: 'left', - mb: '0', - onClick: (function () { - function w() { - return y(c, s, 0); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'check', - content: i.modal.yes_text, - color: 'good', - float: 'right', - m: '0', - onClick: (function () { - function w() { - return y(c, s, 1); - } - return w; - })(), - }), - (0, e.createComponentVNode)(2, t.Box, { - clear: 'both', - }), - ], - })); - return (0, e.createComponentVNode)(2, t.Modal, { - maxWidth: l.maxWidth || window.innerWidth / 2 + 'px', - maxHeight: l.maxHeight || window.innerHeight / 2 + 'px', - onEnter: g, - mx: 'auto', - overflowY: b, - 'padding-bottom': '5px', - children: [ - d && - (0, e.createComponentVNode)(2, t.Box, { - inline: !0, - children: d, - }), - o[s] && v, - h, - V, - ], - }); - } - } - return p; - })()); - }, - 692: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.CrewManifest = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(37843), - m = n(30381), - N = m.COLORS.department, - y = [ - 'Captain', - 'Head of Security', - 'Chief Engineer', - 'Chief Medical Officer', - 'Research Director', - 'Head of Personnel', - 'Quartermaster', - ], - S = function (f) { - return y.indexOf(f) !== -1 ? 'green' : 'orange'; - }, - k = function (f) { - if (y.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 (i) { - return (0, e.createComponentVNode)( - 2, - t.Table.Row, - { - color: S(i.rank), - bold: k(i.rank), - children: [ - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, o.decodeHtmlEntities)(i.name), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: (0, o.decodeHtmlEntities)(i.rank), - }), - (0, e.createComponentVNode)(2, t.Table.Cell, { - children: i.active, - }), - ], - }, - i.name + i.rank - ); - }), - ], - }) - ); - }, - l = (r.CrewManifest = (function () { - function c(f, i) { - var u = (0, a.useBackend)(i), - s = u.act, - d; - if (f.data) d = f.data; - else { - var C = (0, a.useBackend)(i), - g = C.data; - d = g; - } - var v = d, - h = v.manifest, - V = h.heads, - b = h.sec, - B = h.eng, - I = h.med, - w = h.sci, - T = h.ser, - A = h.sup, - x = h.misc; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { - title: (0, e.createComponentVNode)(2, t.Box, { - backgroundColor: N.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(V), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: (0, e.createComponentVNode)(2, t.Box, { - backgroundColor: N.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(b), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: (0, e.createComponentVNode)(2, t.Box, { - backgroundColor: N.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: N.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(I), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: (0, e.createComponentVNode)(2, t.Box, { - backgroundColor: N.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: N.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(T), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: (0, e.createComponentVNode)(2, t.Box, { - backgroundColor: N.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(A), - }), - (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(x), - }), - ], - }); - } - return c; - })()); - }, - 98658: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.InputButtons = void 0); - var e = n(28823), - a = n(2971), - t = n(91819), - o = (r.InputButtons = (function () { - function m(N, y) { - var S = (0, t.useBackend)(y), - k = S.act, - p = S.data, - l = p.large_buttons, - c = p.swapped_buttons, - f = N.input, - i = N.message, - u = N.disabled, - s = (0, e.createComponentVNode)(2, a.Button, { - color: 'good', - content: 'Submit', - bold: !!l, - fluid: !!l, - onClick: (function () { - function C() { - return k('submit', { entry: f }); - } - return C; - })(), - textAlign: 'center', - tooltip: l && i, - disabled: u, - width: !l && 6, - }), - d = (0, e.createComponentVNode)(2, a.Button, { - color: 'bad', - content: 'Cancel', - bold: !!l, - fluid: !!l, - onClick: (function () { - function C() { - return k('cancel'); - } - return C; - })(), - textAlign: 'center', - width: !l && 6, - }); - return (0, e.createComponentVNode)(2, a.Flex, { - fill: !0, - align: 'center', - direction: c ? 'row-reverse' : 'row', - justify: 'space-around', - children: [ - l - ? (0, e.createComponentVNode)(2, a.Flex.Item, { - grow: !0, - ml: c ? 0.5 : 0, - mr: c ? 0 : 0.5, - children: d, - }) - : (0, e.createComponentVNode)(2, a.Flex.Item, { - children: d, - }), - !l && - i && - (0, e.createComponentVNode)(2, a.Flex.Item, { - children: (0, e.createComponentVNode)(2, a.Box, { - color: 'label', - textAlign: 'center', - children: i, - }), - }), - l - ? (0, e.createComponentVNode)(2, a.Flex.Item, { - grow: !0, - mr: c ? 0.5 : 0, - ml: c ? 0 : 0.5, - children: s, - }) - : (0, e.createComponentVNode)(2, a.Flex.Item, { - children: s, - }), - ], - }); - } - return m; - })()); - }, - 29723: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.InterfaceLockNoticeBox = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.InterfaceLockNoticeBox = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = N.siliconUser, - c = l === void 0 ? p.siliconUser : l, - f = N.locked, - i = f === void 0 ? p.locked : f, - u = N.normallyLocked, - s = u === void 0 ? p.normallyLocked : u, - d = N.onLockStatusChange, - C = - d === void 0 - ? function () { - return k('lock'); - } - : d, - g = N.accessText, - v = g === void 0 ? 'an ID card' : g; - 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: s ? 'red' : 'green', - icon: s ? 'lock' : 'unlock', - content: s ? 'Locked' : 'Unlocked', - onClick: (function () { - function h() { - C && C(!i); - } - return h; - })(), - }), - }), - ], - }), - }) - : (0, e.createComponentVNode)(2, t.NoticeBox, { - children: [ - 'Swipe ', - v, - ' to ', - i ? 'unlock' : 'lock', - ' this interface.', - ], - }); - } - return m; - })()); - }, - 2146: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Loader = void 0); - var e = n(28823), - a = n(58331), - t = n(2971), - o = (r.Loader = (function () { - function m(N) { - var y = N.value; - return (0, e.createVNode)( - 1, - 'div', - 'AlertModal__Loader', - (0, e.createComponentVNode)(2, t.Box, { - className: 'AlertModal__LoaderProgress', - style: { width: (0, a.clamp01)(y) * 100 + '%' }, - }), - 2 - ); - } - return m; - })()); - }, - 51185: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LoginInfo = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LoginInfo = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = 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: 0.5, - children: [ - 'Logged in as: ', - l.name, - ' (', - l.rank, - ')', - ], - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - icon: 'eject', - disabled: !l.id, - content: 'Eject ID', - color: 'good', - onClick: (function () { - function c() { - return k('login_eject'); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sign-out-alt', - content: 'Logout', - color: 'good', - onClick: (function () { - function c() { - return k('login_logout'); - } - return c; - })(), - }), - ], - }), - ], - }), - }); - } - return m; - })()); - }, - 69774: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.LoginScreen = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.LoginScreen = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.loginState, - c = p.isAI, - f = p.isRobot, - i = 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: l.id ? l.id : '----------', - ml: '0.5rem', - onClick: (function () { - function u() { - return k('login_insert'); - } - return u; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sign-in-alt', - disabled: !l.id, - content: 'Login', - onClick: (function () { - function u() { - return k('login_login', { login_type: 1 }); - } - return u; - })(), - }), - !!c && - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sign-in-alt', - content: 'Login as AI', - onClick: (function () { - function u() { - return k('login_login', { login_type: 2 }); - } - return u; - })(), - }), - !!f && - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sign-in-alt', - content: 'Login as Cyborg', - onClick: (function () { - function u() { - return k('login_login', { login_type: 3 }); - } - return u; - })(), - }), - !!i && - (0, e.createComponentVNode)(2, t.Button, { - icon: 'sign-in-alt', - content: 'CentComm Secure Login', - onClick: (function () { - function u() { - return k('login_login', { login_type: 4 }); - } - return u; - })(), - }), - ], - }), - }), - }); - } - return m; - })()); - }, - 48154: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Operating = void 0); - var e = n(28823), - a = n(2971), - t = n(64635), - o = (r.Operating = (function () { - function m(N) { - var y = N.operating, - S = N.name; - if (y) - return (0, e.createComponentVNode)(2, a.Dimmer, { - children: (0, e.createComponentVNode)(2, a.Flex, { - mb: '30px', - children: (0, e.createComponentVNode)(2, a.Flex.Item, { - bold: !0, - color: 'silver', - textAlign: 'center', - children: [ - (0, e.createComponentVNode)(2, a.Icon, { - name: 'spinner', - spin: !0, - size: 4, - mb: '15px', - }), - (0, e.createVNode)(1, 'br'), - 'The ', - S, - ' is processing...', - ], - }), - }), - }); - } - return m; - })()); - o.propTypes = { operating: t.bool, name: t.string }; - }, - 92149: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Signaler = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = (r.Signaler = (function () { - function N(y, S) { - var k = (0, t.useBackend)(S), - p = k.act, - l = y.data, - c = l.code, - f = l.frequency, - i = l.minFrequency, - u = l.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: 0.2, - stepPixelSize: 6, - minValue: i / 10, - maxValue: u / 10, - value: f / 10, - format: (function () { - function s(d) { - return (0, a.toFixed)(d, 1); - } - return s; - })(), - width: '80px', - onDrag: (function () { - function s(d, C) { - return p('freq', { freq: C }); - } - return s; - })(), - } - ), - }), - (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 s(d, C) { - return p('code', { code: C }); - } - return s; - })(), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, o.Button, { - mt: 1, - fluid: !0, - icon: 'arrow-up', - content: 'Send Signal', - textAlign: 'center', - onClick: (function () { - function s() { - return p('signal'); - } - return s; - })(), - }), - ], - }); - } - return N; - })()); - }, - 79969: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.SimpleRecords = void 0); - var e = n(28823), - a = n(91819), - t = n(37843), - o = n(90955), - m = n(72026), - N = n(2971), - y = (r.SimpleRecords = (function () { - function p(l, c) { - var f = l.data.records; - return (0, e.createComponentVNode)(2, N.Box, { - children: f - ? (0, e.createComponentVNode)(2, k, { - data: l.data, - recordType: l.recordType, - }) - : (0, e.createComponentVNode)(2, S, { data: l.data }), - }); - } - return p; - })()), - S = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = l.data.recordsList, - s = (0, a.useLocalState)(c, 'searchText', ''), - d = s[0], - C = s[1], - g = function (V, b) { - b === void 0 && (b = ''); - var B = (0, t.createSearch)(b, function (I) { - return I.Name; - }); - return (0, o.flow)([ - (0, m.filter)(function (I) { - return I == null ? void 0 : I.Name; - }), - b && (0, m.filter)(B), - (0, m.sortBy)(function (I) { - return I.Name; - }), - ])(u); - }, - v = g(u, d); - return (0, e.createComponentVNode)(2, N.Box, { - children: [ - (0, e.createComponentVNode)(2, N.Input, { - fluid: !0, - mb: 1, - placeholder: 'Search records...', - onInput: (function () { - function h(V, b) { - return C(b); - } - return h; - })(), - }), - v.map(function (h) { - return (0, e.createComponentVNode)( - 2, - N.Box, - { - children: (0, e.createComponentVNode)(2, N.Button, { - mb: 0.5, - content: h.Name, - icon: 'user', - onClick: (function () { - function V() { - return i('Records', { target: h.uid }); - } - return V; - })(), - }), - }, - h - ); - }), - ], - }); - }, - k = function (l, c) { - var f = (0, a.useBackend)(c), - i = f.act, - u = l.data.records, - s = u.general, - d = u.medical, - C = u.security, - g; - switch (l.recordType) { - case 'MED': - g = (0, e.createComponentVNode)(2, N.Section, { - level: 2, - title: 'Medical Data', - children: d - ? (0, e.createComponentVNode)(2, N.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Blood Type', - children: d.blood_type, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Minor Disabilities', - children: d.mi_dis, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: d.mi_dis_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Major Disabilities', - children: d.ma_dis, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: d.ma_dis_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Allergies', - children: d.alg, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: d.alg_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Current Diseases', - children: d.cdi, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: d.cdi_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Important Notes', - children: d.notes, - }), - ], - }) - : (0, e.createComponentVNode)(2, N.Box, { - color: 'red', - bold: !0, - children: 'Medical record lost!', - }), - }); - break; - case 'SEC': - g = (0, e.createComponentVNode)(2, N.Section, { - level: 2, - title: 'Security Data', - children: C - ? (0, e.createComponentVNode)(2, N.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Criminal Status', - children: C.criminal, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Minor Crimes', - children: C.mi_crim, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: C.mi_crim_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Major Crimes', - children: C.ma_crim, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Details', - children: C.ma_crim_d, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Important Notes', - children: C.notes, - }), - ], - }) - : (0, e.createComponentVNode)(2, N.Box, { - color: 'red', - bold: !0, - children: 'Security record lost!', - }), - }); - break; - } - return (0, e.createComponentVNode)(2, N.Box, { - children: [ - (0, e.createComponentVNode)(2, N.Section, { - title: 'General Data', - children: s - ? (0, e.createComponentVNode)(2, N.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Name', - children: s.name, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Sex', - children: s.sex, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Species', - children: s.species, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Age', - children: s.age, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Rank', - children: s.rank, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Fingerprint', - children: s.fingerprint, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Physical Status', - children: s.p_stat, - }), - (0, e.createComponentVNode)(2, N.LabeledList.Item, { - label: 'Mental Status', - children: s.m_stat, - }), - ], - }) - : (0, e.createComponentVNode)(2, N.Box, { - color: 'red', - bold: !0, - children: 'General record lost!', - }), - }), - g, - ], - }); - }; - }, - 76519: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.TemporaryNotice = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.TemporaryNotice = (function () { - function m(N, y) { - var S, - k = (0, a.useBackend)(y), - p = k.act, - l = k.data, - c = l.temp; - if (c) { - var f = ((S = {}), (S[c.style] = !0), S); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - t.NoticeBox, - Object.assign({}, f, { - children: (0, e.createComponentVNode)(2, t.Stack, { - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - grow: !0, - mt: 0.5, - children: c.text, - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)( - 2, - t.Button, - { - icon: 'times-circle', - onClick: (function () { - function i() { - return p('cleartemp'); - } - return i; - })(), - } - ), - }), - ], - }), - }) - ) - ); - } - } - return m; - })()); - }, - 98638: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_atmosphere = void 0); - var e = n(28823), - a = n(91819), - t = n(29136), - o = (r.pai_atmosphere = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)(2, t.AtmosScan, { - data: p.app_data, - }); - } - return m; - })()); - }, - 56601: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_bioscan = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pai_bioscan = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.app_data, - c = l.holder, - f = l.dead, - i = l.health, - u = l.brute, - s = l.oxy, - d = l.tox, - C = l.burn, - g = l.temp; - 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: i / 100, - ranges: { - good: [0.5, 1 / 0], - average: [0, 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: s, - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Toxin Damage', - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: d, - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Burn Damage', - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'orange', - children: C, - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Brute Damage', - children: (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: u, - }), - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Error: No biological host found.', - }); - } - return m; - })()); - }, - 48047: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_directives = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pai_directives = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.app_data, - c = l.master, - f = l.dna, - i = l.prime, - u = l.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 s() { - return k('getdna'); - } - return s; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Prime Directive', - children: i, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Supplemental Directives', - children: u || 'None', - }), - ], - }), - (0, e.createComponentVNode)(2, t.Box, { - mt: 2, - children: - 'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.', - }), - (0, e.createComponentVNode)(2, t.Box, { - mt: 2, - children: - 'Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability.', - }), - ], - }); - } - return m; - })()); - }, - 4646: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_doorjack = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pai_doorjack = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.app_data, - c = l.cable, - f = l.machine, - i = l.inprogress, - u = l.progress, - s = l.aborted, - d; - f - ? (d = (0, e.createComponentVNode)(2, t.Button, { - selected: !0, - content: 'Connected', - })) - : (d = (0, e.createComponentVNode)(2, t.Button, { - content: c ? 'Extended' : 'Retracted', - color: c ? 'orange' : null, - onClick: (function () { - function g() { - return k('cable'); - } - return g; - })(), - })); - var C; - return ( - f && - (C = (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Hack', - children: [ - (0, e.createComponentVNode)(2, t.ProgressBar, { - ranges: { - good: [67, 1 / 0], - average: [33, 67], - bad: [-1 / 0, 33], - }, - value: u, - maxValue: 100, - }), - i - ? (0, e.createComponentVNode)(2, t.Button, { - mt: 1, - color: 'red', - content: 'Abort', - onClick: (function () { - function g() { - return k('cancel'); - } - return g; - })(), - }) - : (0, e.createComponentVNode)(2, t.Button, { - mt: 1, - content: 'Start', - onClick: (function () { - function g() { - return k('jack'); - } - return g; - })(), - }), - ], - })), - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Cable', - children: d, - }), - C, - ], - }) - ); - } - return m; - })()); - }, - 94648: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_main_menu = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pai_main_menu = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.app_data, - c = l.available_software, - f = l.installed_software, - i = l.installed_toggles, - u = l.available_ram, - s = l.emotions, - d = l.current_emotion, - C = l.speech_verbs, - g = l.current_speech_verb, - v = l.available_chassises, - h = l.current_chassis, - V = []; - return ( - f.map(function (b) { - return (V[b.key] = b.name); - }), - i.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: u, - }), - (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, - { - content: b.name + ' (' + b.cost + ')', - icon: b.icon, - disabled: b.cost > u, - onClick: (function () { - function B() { - return k('purchaseSoftware', { - key: b.key, - }); - } - return B; - })(), - }, - 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 B() { - return k('startSoftware', { - software_key: b.key, - }); - } - return B; - })(), - }, - b.key - ); - }), - f.length === 0 && 'No software installed!', - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Installed Toggles', - children: [ - i.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: b.name, - icon: b.icon, - selected: b.active, - onClick: (function () { - function B() { - return k('setToggle', { - toggle_key: b.key, - }); - } - return B; - })(), - }, - b.key - ); - }), - i.length === 0 && 'No toggles installed!', - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Select Emotion', - children: s.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: b.name, - selected: b.id === d, - onClick: (function () { - function B() { - return k('setEmotion', { emotion: b.id }); - } - return B; - })(), - }, - b.id - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Select Speaking State', - children: C.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: b.name, - selected: b.name === g, - onClick: (function () { - function B() { - return k('setSpeechStyle', { - speech_state: b.name, - }); - } - return B; - })(), - }, - b.id - ); - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Select Chassis Type', - children: v.map(function (b) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - content: b.name, - selected: b.icon === h, - onClick: (function () { - function B() { - return k('setChassis', { - chassis_to_change: b.icon, - }); - } - return B; - })(), - }, - b.id - ); - }), - }), - ], - }), - }) - ); - } - return m; - })()); - }, - 45549: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_manifest = void 0); - var e = n(28823), - a = n(91819), - t = n(692), - o = (r.pai_manifest = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)(2, t.CrewManifest, { - data: p.app_data, - }); - } - return m; - })()); - }, - 53434: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_medrecords = void 0); - var e = n(28823), - a = n(91819), - t = n(79969), - o = (r.pai_medrecords = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data; - return (0, e.createComponentVNode)(2, t.SimpleRecords, { - data: k.app_data, - recordType: 'MED', - }); - } - return m; - })()); - }, - 7328: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_messenger = void 0); - var e = n(28823), - a = n(91819), - t = n(38467), - o = (r.pai_messenger = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.app_data.active_convo; - return l - ? (0, e.createComponentVNode)(2, t.ActiveConversation, { - data: p.app_data, - }) - : (0, e.createComponentVNode)(2, t.MessengerList, { - data: p.app_data, - }); - } - return m; - })()); - }, - 32036: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_radio = void 0); - var e = n(28823), - a = n(91819), - t = n(58331), - o = n(2971), - m = (r.pai_radio = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.app_data, - f = c.minFrequency, - i = c.maxFrequency, - u = c.frequency, - s = 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: 0.2, - stepPixelSize: 6, - minValue: f / 10, - maxValue: i / 10, - value: u / 10, - format: (function () { - function d(C) { - return (0, t.toFixed)(C, 1); - } - return d; - })(), - onChange: (function () { - function d(C, g) { - return p('freq', { freq: g }); - } - return d; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - tooltip: 'Reset', - icon: 'undo', - onClick: (function () { - function d() { - return p('freq', { freq: '145.9' }); - } - return d; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Broadcast Nearby Speech', - children: (0, e.createComponentVNode)(2, o.Button, { - onClick: (function () { - function d() { - return p('toggleBroadcast'); - } - return d; - })(), - selected: s, - content: s ? 'Enabled' : 'Disabled', - }), - }), - ], - }); - } - return N; - })()); - }, - 76020: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_secrecords = void 0); - var e = n(28823), - a = n(91819), - t = n(79969), - o = (r.pai_secrecords = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data; - return (0, e.createComponentVNode)(2, t.SimpleRecords, { - data: k.app_data, - recordType: 'SEC', - }); - } - return m; - })()); - }, - 11562: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pai_signaler = void 0); - var e = n(28823), - a = n(91819), - t = n(92149), - o = (r.pai_signaler = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)(2, t.Signaler, { - data: p.app_data, - }); - } - return m; - })()); - }, - 29539: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_atmos_scan = void 0); - var e = n(28823), - a = n(91819), - t = n(29136), - o = (r.pda_atmos_scan = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data; - return (0, e.createComponentVNode)(2, t.AtmosScan, { data: k }); - } - return m; - })()); - }, - 92180: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_janitor = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_janitor = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.janitor, - c = l.user_loc, - f = l.mops, - i = l.buckets, - u = l.cleanbots, - s = l.carts, - d = l.janicarts; - 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 (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - C.x, - ',', - C.y, - ' (', - C.dir, - ') - ', - C.status, - ], - }, - C - ); - }), - }), - i && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Mop Bucket Locations', - children: i.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - C.x, - ',', - C.y, - ' (', - C.dir, - ') - [', - C.volume, - '/', - C.max_volume, - ']', - ], - }, - C - ); - }), - }), - u && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Cleanbot Locations', - children: u.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - C.x, - ',', - C.y, - ' (', - C.dir, - ') - ', - C.status, - ], - }, - C - ); - }), - }), - s && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Janitorial Cart Locations', - children: s.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - C.x, - ',', - C.y, - ' (', - C.dir, - ') - [', - C.volume, - '/', - C.max_volume, - ']', - ], - }, - C - ); - }), - }), - d && - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Janicart Locations', - children: d.map(function (C) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - C.x, - ',', - C.y, - ' (', - C.direction_from_user, - ')', - ], - }, - C - ); - }), - }), - ], - }); - } - return m; - })()); - }, - 57725: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_main_menu = void 0); - var e = n(28823), - a = n(58331), - t = n(91819), - o = n(2971), - m = (r.pda_main_menu = (function () { - function N(y, S) { - var k = (0, t.useBackend)(S), - p = k.act, - l = k.data, - c = l.owner, - f = l.ownjob, - i = l.idInserted, - u = l.categories, - s = l.pai, - d = l.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: !i, - onClick: (function () { - function C() { - return p('UpdateInfo'); - } - return C; - })(), - } - ), - } - ), - ], - } - ), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: (0, e.createComponentVNode)(2, o.Section, { - title: 'Functions', - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: u.map(function (C) { - var g = l.apps[C]; - return !g || !g.length - ? null - : (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: C, - children: g.map(function (v) { - return (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: - v.uid in d - ? v.notify_icon - : v.icon, - iconSpin: v.uid in d, - color: - v.uid in d - ? 'red' - : 'transparent', - content: v.name, - onClick: (function () { - function h() { - return p('StartProgram', { - program: v.uid, - }); - } - return h; - })(), - }, - v.uid - ); - }), - }, - C - ); - }), - } - ), - }), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: - !!s && - (0, e.createComponentVNode)(2, o.Section, { - title: 'pAI', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - fluid: !0, - icon: 'cog', - content: 'Configuration', - onClick: (function () { - function C() { - return p('pai', { option: 1 }); - } - return C; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - fluid: !0, - icon: 'eject', - content: 'Eject pAI', - onClick: (function () { - function C() { - return p('pai', { option: 2 }); - } - return C; - })(), - }), - ], - }), - }), - ], - }); - } - return N; - })()); - }, - 29978: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_manifest = void 0); - var e = n(28823), - a = n(91819), - t = n(692), - o = (r.pda_manifest = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)(2, t.CrewManifest); - } - return m; - })()); - }, - 20567: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_medical = void 0); - var e = n(28823), - a = n(91819), - t = n(79969), - o = (r.pda_medical = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data; - return (0, e.createComponentVNode)(2, t.SimpleRecords, { - data: k, - recordType: 'MED', - }); - } - return m; - })()); - }, - 38467: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.pda_messenger = r.MessengerList = r.ActiveConversation = void 0); - var e = n(28823), - a = n(72026), - t = n(91819), - o = n(2971), - m = (r.pda_messenger = (function () { - function k(p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = c.data, - u = i.active_convo; - return u - ? (0, e.createComponentVNode)(2, N, { data: i }) - : (0, e.createComponentVNode)(2, y, { data: i }); - } - return k; - })()), - N = (r.ActiveConversation = (function () { - function k(p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = p.data, - u = i.convo_name, - s = i.convo_job, - d = i.messages, - C = i.active_convo, - g = (0, t.useLocalState)(l, 'clipboardMode', !1), - v = g[0], - h = g[1], - V = (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: 'Conversation with ' + u + ' (' + s + ')', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eye', - selected: v, - tooltip: 'Enter Clipboard Mode', - tooltipPosition: 'bottom-start', - onClick: (function () { - function b() { - return h(!v); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'comment', - onClick: (function () { - function b() { - return f('Message', { target: C }); - } - return b; - })(), - content: 'Reply', - }), - ], - 4 - ), - children: (0, a.filter)(function (b) { - return b.target === C; - })(d).map(function (b, B) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - textAlign: b.sent ? 'right' : 'left', - position: 'relative', - mb: 1, - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - fontSize: 2.5, - color: b.sent ? '#4d9121' : '#cd7a0d', - position: 'absolute', - left: b.sent ? null : '0px', - right: b.sent ? '0px' : null, - bottom: '-4px', - style: { - 'z-index': '0', - transform: b.sent ? 'scale(-1, 1)' : null, - }, - name: 'comment', - }), - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - backgroundColor: b.sent ? '#4d9121' : '#cd7a0d', - p: 1, - maxWidth: '100%', - position: 'relative', - textAlign: b.sent ? 'left' : 'right', - style: { - 'z-index': '1', - 'border-radius': '10px', - 'word-break': 'normal', - }, - children: [ - b.sent ? 'You:' : 'Them:', - ' ', - b.message, - ], - }), - ], - }, - B - ); - }), - }); - return ( - v && - (V = (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: 'Conversation with ' + u + ' (' + s + ')', - buttons: (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'eye', - selected: v, - tooltip: 'Exit Clipboard Mode', - tooltipPosition: 'bottom-start', - onClick: (function () { - function b() { - return h(!v); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'comment', - onClick: (function () { - function b() { - return f('Message', { target: C }); - } - return b; - })(), - content: 'Reply', - }), - ], - 4 - ), - children: (0, a.filter)(function (b) { - return b.target === C; - })(d).map(function (b, B) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - color: b.sent ? '#4d9121' : '#cd7a0d', - style: { 'word-break': 'normal' }, - children: [ - b.sent ? 'You:' : 'Them:', - ' ', - (0, e.createComponentVNode)(2, o.Box, { - inline: !0, - children: b.message, - }), - ], - }, - B - ); - }), - })), - (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - mb: 0.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 b() { - return f('Clear', { option: 'Convo' }); - } - return b; - })(), - } - ), - } - ), - } - ), - }), - V, - ], - }) - ); - } - return k; - })()), - y = (r.MessengerList = (function () { - function k(p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = p.data, - u = i.convopdas, - s = i.pdas, - d = i.charges, - C = i.silent, - g = i.toff, - v = i.ringtone_list, - h = i.ringtone, - V = (0, t.useLocalState)(l, 'searchTerm', ''), - b = V[0], - B = V[1]; - return (0, e.createComponentVNode)(2, o.Stack, { - fill: !0, - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, o.Stack.Item, { - mb: 5, - children: [ - (0, e.createComponentVNode)(2, o.LabeledList, { - children: (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Messenger Functions', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - selected: !C, - icon: C ? 'volume-mute' : 'volume-up', - onClick: (function () { - function I() { - return f('Toggle Ringer'); - } - return I; - })(), - children: ['Ringer: ', C ? 'Off' : 'On'], - }), - (0, e.createComponentVNode)(2, o.Button, { - color: g ? 'bad' : 'green', - icon: 'power-off', - onClick: (function () { - function I() { - return f('Toggle Messenger'); - } - return I; - })(), - children: ['Messenger: ', g ? 'Off' : 'On'], - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'trash', - color: 'bad', - onClick: (function () { - function I() { - return f('Clear', { option: 'All' }); - } - return I; - })(), - children: 'Delete All Conversations', - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'bell', - onClick: (function () { - function I() { - return f('Ringtone'); - } - return I; - })(), - children: 'Set Custom Ringtone', - }), - (0, e.createComponentVNode)(2, o.Button, { - children: (0, e.createComponentVNode)( - 2, - o.Dropdown, - { - selected: h, - width: '100px', - options: Object.keys(v), - onSelected: (function () { - function I(w) { - return f('Available_Ringtones', { - selected_ringtone: w, - }); - } - return I; - })(), - } - ), - }), - ], - } - ), - }), - (!g && - (0, e.createComponentVNode)(2, o.Box, { - children: [ - !!d && - (0, e.createComponentVNode)(2, o.Box, { - mt: 0.5, - mb: 1, - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Cartridge Special Function', - children: [d, ' charges left.'], - } - ), - } - ), - }), - (!u.length && - !s.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: 0.5, - value: b, - onInput: (function () { - function I(w, T) { - B(T); - } - return I; - })(), - }), - ], - }), - ], - })) || - (0, e.createComponentVNode)(2, o.Box, { - color: 'bad', - children: 'Messenger Offline.', - }), - ], - }), - (0, e.createComponentVNode)(2, S, { - title: 'Current Conversations', - data: i, - pdas: u, - msgAct: 'Select Conversation', - searchTerm: b, - }), - (0, e.createComponentVNode)(2, S, { - title: 'Other PDAs', - pdas: s, - msgAct: 'Message', - data: i, - searchTerm: b, - }), - ], - }); - } - return k; - })()), - S = function (p, l) { - var c = (0, t.useBackend)(l), - f = c.act, - i = p.data, - u = p.pdas, - s = p.title, - d = p.msgAct, - C = p.searchTerm, - g = i.charges, - v = i.plugins; - return !u || !u.length - ? (0, e.createComponentVNode)(2, o.Section, { - title: s, - children: 'No PDAs found.', - }) - : (0, e.createComponentVNode)(2, o.Section, { - fill: !0, - scrollable: !0, - title: s, - children: u - .filter(function (h) { - return h.Name.toLowerCase().includes(C.toLowerCase()); - }) - .map(function (h) { - return (0, e.createComponentVNode)( - 2, - o.Stack, - { - m: 0.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 V() { - return f(d, { target: h.uid }); - } - return V; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.Stack.Item, { - children: - !!g && - v.map(function (V) { - return (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: V.icon, - content: V.name, - onClick: (function () { - function b() { - return f('Messenger Plugin', { - plugin: V.uid, - target: h.uid, - }); - } - return b; - })(), - }, - V.uid - ); - }), - }), - ], - }, - h.uid - ); - }), - }); - }; - }, - 54291: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_mob_hunt = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(96820), - m = (r.pda_mob_hunt = (function () { - function N(y, S) { - var k = (0, a.useBackend)(S), - p = k.act, - l = k.data, - c = l.connected, - f = l.wild_captures, - i = l.no_collection, - u = l.entry; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Connection Status', - children: c - ? (0, e.createComponentVNode)(2, t.Box, { - color: 'green', - children: [ - 'Connected', - (0, e.createComponentVNode)(2, t.Button, { - ml: 2, - content: 'Disconnect', - icon: 'sign-out-alt', - onClick: (function () { - function s() { - return p('Disconnect'); - } - return s; - })(), - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: [ - 'Disconnected', - (0, e.createComponentVNode)(2, t.Button, { - ml: 2, - content: 'Connect', - icon: 'sign-in-alt', - onClick: (function () { - function s() { - return p('Reconnect'); - } - return s; - })(), - }), - ], - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Total Wild Captures', - children: f, - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Collection', - mt: 2, - buttons: (0, e.createComponentVNode)(2, t.Box, { - children: - !i && - (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Previous', - icon: 'arrow-left', - onClick: (function () { - function s() { - return p('Prev'); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Next', - icon: 'arrow-right', - onClick: (function () { - function s() { - return p('Next'); - } - return s; - })(), - }), - ], - }), - }), - children: i - ? 'Your collection is empty! Go capture some Nano-Mobs!' - : u - ? (0, e.createComponentVNode)(2, t.Flex, { - children: [ - (0, e.createComponentVNode)(2, t.Flex.Item, { - children: (0, e.createVNode)( - 1, - 'img', - null, - null, - 1, - { - src: (0, o.resolveAsset)(u.sprite), - style: { - width: '64px', - '-ms-interpolation-mode': - 'nearest-neighbor', - }, - } - ), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - grow: 1, - basis: 0, - children: (0, e.createComponentVNode)( - 2, - t.LabeledList, - { - children: [ - u.nickname && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Nickname', - children: u.nickname, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Species', - children: u.real_name, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { label: 'Level', children: u.level } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Primary Type', - children: u.type1, - } - ), - u.type2 && - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Secondary Type', - children: u.type2, - } - ), - (0, e.createComponentVNode)( - 2, - t.LabeledList.Item, - { - label: 'Actions', - children: [ - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Transfer', - icon: 'sd-card', - onClick: (function () { - function s() { - return p('Transfer'); - } - return s; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Release', - icon: 'arrow-up', - onClick: (function () { - function s() { - return p('Release'); - } - return s; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Rename', - icon: 'pencil-alt', - onClick: (function () { - function s() { - return p('Rename'); - } - return s; - })(), - } - ), - !!u.is_hacked && - (0, e.createComponentVNode)( - 2, - t.Button, - { - content: 'Set Trap', - icon: 'bolt', - color: 'red', - onClick: (function () { - function s() { - return p('Set_Trap'); - } - return s; - })(), - } - ), - ], - } - ), - ], - } - ), - }), - ], - }) - : (0, e.createComponentVNode)(2, t.Box, { - color: 'red', - children: 'Mob entry missing!', - }), - }), - ], - }); - } - return N; - })()); - }, - 31112: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_mule = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_mule = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.mulebot, - i = f.active; - return (0, e.createComponentVNode)(2, t.Box, { - children: i - ? (0, e.createComponentVNode)(2, N) - : (0, e.createComponentVNode)(2, m), - }); - } - return y; - })()), - m = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.mulebot, - i = f.bots; - return i.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)(2, t.Button, { - content: u.Name, - icon: 'cog', - onClick: (function () { - function s() { - return l('control', { bot: u.uid }); - } - return s; - })(), - }), - }, - u.Name - ); - }); - }, - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.mulebot, - i = f.botstatus, - u = f.active, - s = i.mode, - d = i.loca, - C = i.load, - g = i.powr, - v = i.dest, - h = i.home, - V = i.retn, - b = i.pick, - B; - switch (s) { - case 0: - B = 'Ready'; - break; - case 1: - B = 'Loading/Unloading'; - break; - case 2: - case 12: - B = 'Navigating to delivery location'; - break; - case 3: - B = 'Navigating to Home'; - break; - case 4: - B = 'Waiting for clear path'; - break; - case 5: - case 6: - B = 'Calculating navigation path'; - break; - case 7: - B = 'Unable to locate destination'; - break; - default: - B = s; - break; - } - return (0, e.createComponentVNode)(2, t.Section, { - title: u, - children: [ - s === -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: d, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - children: B, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Power', - children: [g, '%'], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Home', - children: h, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Destination', - children: (0, e.createComponentVNode)(2, t.Button, { - content: v ? v + ' (Set)' : 'None (Set)', - onClick: (function () { - function I() { - return l('target'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Current Load', - children: (0, e.createComponentVNode)(2, t.Button, { - content: C ? C + ' (Unload)' : 'None', - disabled: !C, - onClick: (function () { - function I() { - return l('unload'); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Auto Pickup', - children: (0, e.createComponentVNode)(2, t.Button, { - content: b ? 'Yes' : 'No', - selected: b, - onClick: (function () { - function I() { - return l('set_pickup_type', { - autopick: b ? 0 : 1, - }); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Auto Return', - children: (0, e.createComponentVNode)(2, t.Button, { - content: V ? 'Yes' : 'No', - selected: V, - onClick: (function () { - function I() { - return l('set_auto_return', { - autoret: V ? 0 : 1, - }); - } - return I; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Controls', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Stop', - icon: 'stop', - onClick: (function () { - function I() { - return l('stop'); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Proceed', - icon: 'play', - onClick: (function () { - function I() { - return l('start'); - } - return I; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Return Home', - icon: 'home', - onClick: (function () { - function I() { - return l('home'); - } - return I; - })(), - }), - ], - }), - ], - }), - ], - }); - }; - }, - 2817: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_nanobank = void 0); - var e = n(28823), - a = n(37843), - t = n(91819), - o = n(2971), - m = (r.pda_nanobank = (function () { - function c(f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.logged_in, - g = d.owner_name, - v = d.money; - return C - ? (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Box, { - children: (0, e.createComponentVNode)( - 2, - o.LabeledList, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Account Name', children: g } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Account Balance', - children: ['$', v], - } - ), - ], - } - ), - }), - (0, e.createComponentVNode)(2, o.Box, { - children: [ - (0, e.createComponentVNode)(2, N), - (0, e.createComponentVNode)(2, y), - ], - }), - ], - 4 - ) - : (0, e.createComponentVNode)(2, l); - } - return c; - })()), - N = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.data, - d = (0, t.useLocalState)(i, 'tabIndex', 1), - C = d[0], - g = d[1]; - return (0, e.createComponentVNode)(2, o.Tabs, { - mt: 2, - children: [ - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - selected: C === 1, - onClick: (function () { - function v() { - return g(1); - } - return v; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - mr: 1, - name: 'list', - }), - 'Transfers', - ], - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - selected: C === 2, - onClick: (function () { - function v() { - return g(2); - } - return v; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - mr: 1, - name: 'list', - }), - 'Account Actions', - ], - }), - (0, e.createComponentVNode)(2, o.Tabs.Tab, { - selected: C === 3, - onClick: (function () { - function v() { - return g(3); - } - return v; - })(), - children: [ - (0, e.createComponentVNode)(2, o.Icon, { - mr: 1, - name: 'list', - }), - 'Transaction History', - ], - }), - ], - }); - }, - y = function (f, i) { - var u = (0, t.useLocalState)(i, 'tabIndex', 1), - s = u[0], - d = (0, t.useBackend)(i), - C = d.data, - g = C.db_status; - if (!g) - return (0, e.createComponentVNode)(2, o.Box, { - children: 'Account Database Connection Severed', - }); - switch (s) { - case 1: - return (0, e.createComponentVNode)(2, S); - case 2: - return (0, e.createComponentVNode)(2, k); - case 3: - return (0, e.createComponentVNode)(2, p); - default: - return "You are somehow on a tab that doesn't exist! Please let a coder know."; - } - }, - S = function (f, i) { - var u, - s = (0, t.useBackend)(i), - d = s.act, - C = s.data, - g = C.requests, - v = C.available_accounts, - h = C.money, - V = (0, t.useLocalState)(i, 'selectedAccount'), - b = V[0], - B = V[1], - I = (0, t.useLocalState)(i, 'transferAmount'), - w = I[0], - T = I[1], - A = (0, t.useLocalState)(i, 'searchText', ''), - x = A[0], - E = A[1], - P = []; - return ( - v.map(function (D) { - return (P[D.name] = D.UID); - }), - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account', - children: [ - (0, e.createComponentVNode)(2, o.Input, { - placeholder: 'Search by account name', - onInput: (function () { - function D(M, O) { - return E(O); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, o.Dropdown, { - mt: 0.6, - width: '190px', - options: v - .filter( - (0, a.createSearch)(x, function (D) { - return D.name; - }) - ) - .map(function (D) { - return D.name; - }), - selected: - (u = v.filter(function (D) { - return D.UID === b; - })[0]) == null - ? void 0 - : u.name, - onSelected: (function () { - function D(M) { - return B(P[M]); - } - return D; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Amount', - children: (0, e.createComponentVNode)(2, o.Input, { - placeholder: 'Up to 5000', - onInput: (function () { - function D(M, O) { - return T(O); - } - return D; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Actions', - children: [ - (0, e.createComponentVNode)(2, o.Button.Confirm, { - bold: !0, - icon: 'paper-plane', - width: 'auto', - disabled: h < w || !b, - content: 'Send', - onClick: (function () { - function D() { - return d('transfer', { - amount: w, - transfer_to_account: b, - }); - } - return D; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - bold: !0, - icon: 'hand-holding-usd', - width: 'auto', - disabled: !b, - content: 'Request', - onClick: (function () { - function D() { - return d('transfer_request', { - amount: w, - transfer_to_account: b, - }); - } - return D; - })(), - }), - ], - }), - ], - }), - (0, e.createComponentVNode)(2, o.Section, { - level: 3, - title: 'Requests', - children: g.map(function (D) { - return (0, e.createComponentVNode)( - 2, - o.Box, - { - mt: 1, - ml: 1, - children: [ - (0, e.createVNode)( - 1, - 'b', - null, - [ - (0, e.createTextVNode)('Request from '), - D.requester, - ], - 0 - ), - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { label: 'Amount', children: D.amount } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Time', - children: [D.time, ' Minutes ago'], - } - ), - (0, e.createComponentVNode)( - 2, - o.LabeledList.Item, - { - label: 'Actions', - children: [ - (0, e.createComponentVNode)( - 2, - o.Button.Confirm, - { - icon: 'thumbs-up', - color: 'good', - disabled: h < D.amount, - content: 'Accept', - onClick: (function () { - function M() { - return d( - 'resolve_transfer_request', - { - accepted: 1, - requestUID: D.request_id, - } - ); - } - return M; - })(), - } - ), - (0, e.createComponentVNode)( - 2, - o.Button, - { - icon: 'thumbs-down', - color: 'bad', - content: 'Deny', - onClick: (function () { - function M() { - return d( - 'resolve_transfer_request', - { requestUID: D.request_id } - ); - } - return M; - })(), - } - ), - ], - } - ), - ], - }), - ], - }, - D.UID - ); - }), - }), - ], - 4 - ) - ); - }, - k = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.security_level, - g = d.department_members, - v = d.auto_approve, - h = d.auto_approve_amount, - V = d.is_department_account; - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account Security', - children: [ - (0, e.createComponentVNode)(2, o.Button, { - icon: 'user-lock', - selected: C === 1, - content: 'Account Number Only', - tooltip: - 'Set Account security so that only having the account number is required for transactions', - onClick: (function () { - function b() { - return s('set_security', { - new_security_level: 1, - }); - } - return b; - })(), - }), - (0, e.createComponentVNode)(2, o.Button, { - icon: 'user-lock', - selected: C === 2, - content: 'Require Pin Entry', - tooltip: - 'Set Account security so that pin entry is required for transactions', - onClick: (function () { - function b() { - return s('set_security', { - new_security_level: 2, - }); - } - return b; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Logout', - children: (0, e.createComponentVNode)(2, o.Button, { - icon: 'sign-out-alt', - width: 'auto', - content: 'Logout', - onClick: (function () { - function b() { - return s('logout'); - } - return b; - })(), - }), - }), - ], - }), - !!V && - (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, o.Divider), - (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Auto Approve Orders', - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - color: v ? 'good' : 'bad', - content: v ? 'Yes' : 'No', - onClick: (function () { - function b() { - return s('toggle_auto_approve'); - } - return b; - })(), - } - ), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Auto Approve Purchases when', - children: (0, e.createComponentVNode)( - 2, - o.Input, - { - placeholder: '# Credits', - value: h, - onInput: (function () { - function b(B, I) { - return s('set_approve_amount', { - approve_amount: I, - }); - } - return b; - })(), - } - ), - }), - ], - }), - (0, e.createComponentVNode)(2, o.Divider), - (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: 'Name', - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Occupation', - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: 'Can Approve Crates', - }), - ], - }), - g.map(function (b) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - children: [ - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: b.name } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { children: b.job } - ), - (0, e.createComponentVNode)( - 2, - o.Table.Cell, - { - children: (0, e.createComponentVNode)( - 2, - o.Button, - { - color: b.can_approve - ? 'good' - : 'bad', - content: b.can_approve - ? 'Yes' - : 'No', - onClick: (function () { - function B() { - return s( - 'toggle_member_approval', - { member: b.name } - ); - } - return B; - })(), - } - ), - } - ), - ], - }, - b - ); - }), - ], - }), - ], - 4 - ), - ], - 0 - ); - }, - p = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = d.transaction_log; - return (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', - }), - ], - }), - C.map(function (g) { - return (0, e.createComponentVNode)( - 2, - o.Table.Row, - { - children: [ - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: g.time, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: g.purpose, - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - color: g.is_deposit ? 'green' : 'red', - children: ['$', g.amount], - }), - (0, e.createComponentVNode)(2, o.Table.Cell, { - children: g.target_name, - }), - ], - }, - g - ); - }), - ], - }); - }, - l = function (f, i) { - var u = (0, t.useBackend)(i), - s = u.act, - d = u.data, - C = (0, t.useLocalState)(i, 'accountID', null), - g = C[0], - v = C[1], - h = (0, t.useLocalState)(i, 'accountPin', null), - V = h[0], - b = h[1], - B = d.card_account_num, - I = g || B; - return (0, e.createComponentVNode)(2, o.LabeledList, { - children: [ - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Account ID', - children: (0, e.createComponentVNode)(2, o.Input, { - placeholder: 'Account ID', - onInput: (function () { - function w(T, A) { - return v(A); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - label: 'Pin', - children: (0, e.createComponentVNode)(2, o.Input, { - placeholder: 'Account Pin', - onInput: (function () { - function w(T, A) { - return b(A); - } - return w; - })(), - }), - }), - (0, e.createComponentVNode)(2, o.LabeledList.Item, { - children: (0, e.createComponentVNode)(2, o.Button, { - content: 'Login', - icon: 'sign-in-alt', - disabled: !g && !B, - onClick: (function () { - function w() { - return s('login', { account_num: I, account_pin: V }); - } - return w; - })(), - }), - }), - ], - }); - }; - }, - 66621: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_notes = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_notes = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.note; - return (0, e.createComponentVNode)(2, t.Box, { - children: [ - (0, e.createComponentVNode)(2, t.Section, { children: l }), - (0, e.createComponentVNode)(2, t.Button, { - icon: 'pen', - onClick: (function () { - function c() { - return k('Edit'); - } - return c; - })(), - content: 'Edit', - }), - ], - }); - } - return m; - })()); - }, - 96490: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_power = void 0); - var e = n(28823), - a = n(91819), - t = n(75199), - o = (r.pda_power = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)( - 2, - t.PowerMonitorMainContent - ); - } - return m; - })()); - }, - 36436: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_secbot = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_secbot = (function () { - function y(S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.beepsky, - i = f.active; - return (0, e.createComponentVNode)(2, t.Box, { - children: i - ? (0, e.createComponentVNode)(2, N) - : (0, e.createComponentVNode)(2, m), - }); - } - return y; - })()), - m = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.beepsky, - i = f.bots; - return i.map(function (u) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: (0, e.createComponentVNode)(2, t.Button, { - content: u.Name, - icon: 'cog', - onClick: (function () { - function s() { - return l('control', { bot: u.uid }); - } - return s; - })(), - }), - }, - u.Name - ); - }); - }, - N = function (S, k) { - var p = (0, a.useBackend)(k), - l = p.act, - c = p.data, - f = c.beepsky, - i = f.botstatus, - u = f.active, - s = i.mode, - d = i.loca, - C; - switch (s) { - case 0: - C = 'Ready'; - break; - case 1: - C = 'Apprehending target'; - break; - case 2: - case 3: - C = 'Arresting target'; - break; - case 4: - C = 'Starting patrol'; - break; - case 5: - C = 'On patrol'; - break; - case 6: - C = 'Responding to summons'; - break; - } - return (0, e.createComponentVNode)(2, t.Section, { - title: u, - children: [ - s === -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: d, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Status', - children: C, - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Controls', - children: [ - (0, e.createComponentVNode)(2, t.Button, { - content: 'Go', - icon: 'play', - onClick: (function () { - function g() { - return l('go'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Stop', - icon: 'stop', - onClick: (function () { - function g() { - return l('stop'); - } - return g; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: 'Summon', - icon: 'arrow-down', - onClick: (function () { - function g() { - return l('summon'); - } - return g; - })(), - }), - ], - }), - ], - }), - ], - }); - }; - }, - 55244: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_security = void 0); - var e = n(28823), - a = n(91819), - t = n(79969), - o = (r.pda_security = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.data; - return (0, e.createComponentVNode)(2, t.SimpleRecords, { - data: k, - recordType: 'SEC', - }); - } - return m; - })()); - }, - 23470: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_signaler = void 0); - var e = n(28823), - a = n(91819), - t = n(92149), - o = (r.pda_signaler = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data; - return (0, e.createComponentVNode)(2, t.Signaler, { data: p }); - } - return m; - })()); - }, - 43085: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_status_display = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_status_display = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = 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 k('Status', { statdisp: 0 }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'clock', - content: 'Evac ETA', - onClick: (function () { - function c() { - return k('Status', { statdisp: 1 }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'edit', - content: 'Message', - onClick: (function () { - function c() { - return k('Status', { statdisp: 2 }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'exclamation-triangle', - content: 'Red Alert', - onClick: (function () { - function c() { - return k('Status', { - statdisp: 3, - alert: 'redalert', - }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'boxes', - content: 'NT Logo', - onClick: (function () { - function c() { - return k('Status', { - statdisp: 3, - alert: 'default', - }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'lock', - content: 'Lockdown', - onClick: (function () { - function c() { - return k('Status', { - statdisp: 3, - alert: 'lockdown', - }); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - color: 'transparent', - icon: 'biohazard', - content: 'Biohazard', - onClick: (function () { - function c() { - return k('Status', { - statdisp: 3, - alert: 'biohazard', - }); - } - return c; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Message line 1', - children: (0, e.createComponentVNode)(2, t.Button, { - content: l.message1 + ' (set)', - icon: 'pen', - onClick: (function () { - function c() { - return k('SetMessage', { msgnum: 1 }); - } - return c; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Message line 2', - children: (0, e.createComponentVNode)(2, t.Button, { - content: l.message2 + ' (set)', - icon: 'pen', - onClick: (function () { - function c() { - return k('SetMessage', { msgnum: 2 }); - } - return c; - })(), - }), - }), - ], - }), - }); - } - return m; - })()); - }, - 26948: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.pda_supplyrecords = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = (r.pda_supplyrecords = (function () { - function m(N, y) { - var S = (0, a.useBackend)(y), - k = S.act, - p = S.data, - l = p.supply, - c = l.shuttle_loc, - f = l.shuttle_time, - i = l.shuttle_moving, - u = l.approved, - s = l.approved_count, - d = l.requests, - C = l.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: i - ? (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: - C > 0 && - d.map(function (g) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - '#', - g.Number, - ' - "', - g.Name, - '" for "', - g.OrderedBy, - '"', - ], - }, - g - ); - }), - }), - (0, e.createComponentVNode)(2, t.Section, { - title: 'Approved Orders', - children: - s > 0 && - u.map(function (g) { - return (0, e.createComponentVNode)( - 2, - t.Box, - { - children: [ - '#', - g.Number, - ' - "', - g.Name, - '" for "', - g.ApprovedBy, - '"', - ], - }, - g - ); - }), - }), - ], - }); - } - return m; - })()); - }, - 73786: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Layout = void 0); - var e = n(28823), - a = n(66586), - t = n(93843), - o = n(33053), - m = ['className', 'theme', 'children'], - N = ['className', 'scrollable', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function y(h, l) { - if (h == null) return {}; - var c = {}, - f = Object.keys(h), - i, - u; - for (u = 0; u < f.length; u++) - (i = f[u]), !(l.indexOf(i) >= 0) && (c[i] = h[i]); - return c; - } - var S = (r.Layout = (function () { - function h(l) { - var c = l.className, - f = l.theme, - i = f === void 0 ? 'nanotrasen' : f, - u = l.children, - s = y(l, m); - return (0, e.createVNode)( - 1, - 'div', - 'theme-' + i, - (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)( - ['Layout', c].concat((0, t.computeBoxClassName)(s)) - ), - u, - 0, - Object.assign({}, (0, t.computeBoxProps)(s)) - ) - ), - 2 - ); - } - return h; - })()), - k = function (l) { - var c = l.className, - f = l.scrollable, - i = l.children, - u = y(l, N); - return (0, e.normalizeProps)( - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)([ - 'Layout__content', - f && 'Layout__content--scrollable', - c, - (0, t.computeBoxClassName)(u), - ]), - i, - 0, - Object.assign({}, (0, t.computeBoxProps)(u)) - ) - ); - }; - (k.defaultHooks = { - onComponentDidMount: (function () { - function h(l) { - return (0, o.addScrollableNode)(l); - } - return h; - })(), - onComponentWillUnmount: (function () { - function h(l) { - return (0, o.removeScrollableNode)(l); - } - return h; - })(), - }), - (S.Content = k); - }, - 55067: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Pane = void 0); - var e = n(28823), - a = n(66586), - t = n(91819), - o = n(2971), - m = n(39241), - N = n(73786), - y = ['theme', 'children', 'className'], - S = ['className', 'fitted', 'children']; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ function k(c, f) { - if (c == null) return {}; - var i = {}, - u = Object.keys(c), - s, - d; - for (d = 0; d < u.length; d++) - (s = u[d]), !(f.indexOf(s) >= 0) && (i[s] = c[s]); - return i; - } - var h = (r.Pane = (function () { - function c(f, i) { - var u = f.theme, - s = f.children, - d = f.className, - C = k(f, y), - g = (0, t.useBackend)(i), - v = g.suspended, - p = (0, m.useDebug)(i), - V = p.debugLayout; - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - N.Layout, - Object.assign( - { className: (0, a.classes)(['Window', d]), theme: u }, - C, - { - children: (0, e.createComponentVNode)(2, o.Box, { - fillPositionedParent: !0, - className: V && 'debug-layout', - children: !v && s, - }), - } - ) - ) - ); - } - return c; - })()), - l = function (f) { - var i = f.className, - u = f.fitted, - s = f.children, - d = k(f, S); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - N.Layout.Content, - Object.assign( - { className: (0, a.classes)(['Window__content', i]) }, - d, - { - children: - (u && s) || - (0, e.createVNode)( - 1, - 'div', - 'Window__contentPadding', - s, - 0 - ), - } - ) - ) - ); - }; - h.Content = l; - }, - 82118: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Window = void 0); - var e = n(28823), - a = n(66586), - t = n(90816), - o = n(37843), - m = n(91819), - N = n(2971), - y = n(30381), - S = n(39241), - k = n(20697), - h = n(45360), - l = n(50175), - c = n(73786), - f = ['className', 'fitted', 'children']; - function i(b, B) { - if (b == null) return {}; - var I = {}, - w = Object.keys(b), - T, - A; - for (A = 0; A < w.length; A++) - (T = w[A]), !(B.indexOf(T) >= 0) && (I[T] = b[T]); - return I; - } - function u(b, B) { - (b.prototype = Object.create(B.prototype)), - (b.prototype.constructor = b), - s(b, B); - } - function s(b, B) { - return ( - (s = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : (function () { - function I(w, T) { - return (w.__proto__ = T), w; - } - return I; - })()), - s(b, B) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var d = (0, l.createLogger)('Window'), - C = [400, 600], - g = (r.Window = (function (b) { - u(B, b); - function B() { - return b.apply(this, arguments) || this; - } - var I = B.prototype; - return ( - (I.componentDidMount = (function () { - function w() { - var T = (0, m.useBackend)(this.context), - A = T.suspended; - A || (d.log('mounting'), this.updateGeometry()); - } - return w; - })()), - (I.componentDidUpdate = (function () { - function w(T) { - var A = - this.props.width !== T.width || - this.props.height !== T.height; - A && this.updateGeometry(); - } - return w; - })()), - (I.updateGeometry = (function () { - function w() { - var T, - A = (0, m.useBackend)(this.context), - x = A.config, - E = Object.assign({ size: C }, x.window); - this.props.width && - this.props.height && - (E.size = [this.props.width, this.props.height]), - (T = x.window) != null && - T.key && - (0, p.setWindowKey)(x.window.key), - (0, p.recallWindowGeometry)(E); - } - return w; - })()), - (I.render = (function () { - function w() { - var T, - A = this.props, - x = A.theme, - E = A.title, - P = A.children, - D = (0, m.useBackend)(this.context), - M = D.config, - O = D.suspended, - j = (0, S.useDebug)(this.context), - F = j.debugLayout, - U = (0, t.useDispatch)(this.context), - _ = (T = M.window) == null ? void 0 : T.fancy, - z = - M.user && - (M.user.observer - ? M.status < y.UI_DISABLED - : M.status < y.UI_INTERACTIVE); - return (0, e.createComponentVNode)(2, c.Layout, { - className: 'Window', - theme: x, - children: [ - (0, e.createComponentVNode)(2, V, { - className: 'Window__titleBar', - title: - !O && (E || (0, o.decodeHtmlEntities)(M.title)), - status: M.status, - fancy: _, - onDragStart: p.dragStartHandler, - onClose: (function () { - function H() { - d.log('pressed close'), - U((0, m.backendSuspendStart)()); - } - return H; - })(), - }), - (0, e.createVNode)( - 1, - 'div', - (0, a.classes)(['Window__rest', F && 'debug-layout']), - [ - !O && P, - z && (0, e.createVNode)(1, 'div', 'Window__dimmer'), - ], - 0 - ), - _ && - (0, e.createFragment)( - [ - (0, e.createVNode)( - 1, - 'div', - 'Window__resizeHandle__e', - null, - 1, - { onMousedown: (0, p.resizeStartHandler)(1, 0) } - ), - (0, e.createVNode)( - 1, - 'div', - 'Window__resizeHandle__s', - null, - 1, - { onMousedown: (0, p.resizeStartHandler)(0, 1) } - ), - (0, e.createVNode)( - 1, - 'div', - 'Window__resizeHandle__se', - null, - 1, - { onMousedown: (0, p.resizeStartHandler)(1, 1) } - ), - ], - 4 - ), - ], - }); - } - return w; - })()), - B - ); - })(e.Component)), - v = function (B) { - var I = B.className, - w = B.fitted, - T = B.children, - A = i(B, f); - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - c.Layout.Content, - Object.assign( - { className: (0, a.classes)(['Window__content', I]) }, - A, - { - children: - (w && T) || - (0, e.createVNode)( - 1, - 'div', - 'Window__contentPadding', - T, - 0 - ), - } - ) - ) - ); - }; - g.Content = v; - var h = function (B) { - switch (B) { - case y.UI_INTERACTIVE: - return 'good'; - case y.UI_UPDATE: - return 'average'; - case y.UI_DISABLED: - default: - return 'bad'; - } - }, - V = function (B, I) { - var w = B.className, - T = B.title, - A = B.status, - x = B.fancy, - E = B.onDragStart, - P = B.onClose, - D = (0, t.useDispatch)(I); - return (0, e.createVNode)( - 1, - 'div', - (0, a.classes)(['TitleBar', w]), - [ - (A === void 0 && - (0, e.createComponentVNode)(2, N.Icon, { - className: 'TitleBar__statusIcon', - name: 'tools', - opacity: 0.5, - })) || - (0, e.createComponentVNode)(2, N.Icon, { - className: 'TitleBar__statusIcon', - color: h(A), - name: 'eye', - }), - (0, e.createVNode)( - 1, - 'div', - 'TitleBar__title', - (typeof T == 'string' && - T === T.toLowerCase() && - (0, o.toTitleCase)(T)) || - T, - 0 - ), - (0, e.createVNode)(1, 'div', 'TitleBar__dragZone', null, 1, { - onMousedown: (function () { - function M(O) { - return x && E(O); - } - return M; - })(), - }), - !1, - !!x && - (0, e.createVNode)( - 1, - 'div', - 'TitleBar__close TitleBar__clickable', - Byond.IS_LTE_IE8 ? 'x' : '\xD7', - 0, - { onclick: P } - ), - ], - 0 - ); - }; - }, - 84947: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.Window = r.Pane = r.Layout = void 0); - var e = n(73786); - r.Layout = e.Layout; - var a = n(55067); - r.Pane = a.Pane; - var t = n(82118); - r.Window = t.Window; - }, - 85955: function (L, r) { - 'use strict'; - (r.__esModule = !0), (r.captureExternalLinks = void 0); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var n = (r.captureExternalLinks = (function () { - function e() { - document.addEventListener('click', function (a) { - for (var t = a.target; ; ) { - if (!t || t === document.body) return; - var o = String(t.tagName).toLowerCase(); - if (o === 'a') break; - t = t.parentElement; - } - var m = t.getAttribute('href') || '', - N = m.charAt(0) === '?' || m.startsWith('byond://'); - if (!N) { - a.preventDefault(); - var y = m; - y.toLowerCase().startsWith('www') && (y = 'https://' + y), - Byond.sendMessage({ type: 'openLink', url: y }); - } - }); - } - return e; - })()); - }, - 50175: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.logger = r.createLogger = void 0); - var e = n(87454); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var a = 0, - t = 1, - o = 2, - m = 3, - N = 4, - y = function (l, c) { - for ( - var f = arguments.length, - i = new Array(f > 2 ? f - 2 : 0), - u = 2; - u < f; - u++ - ) - i[u - 2] = arguments[u]; - if (l >= o) { - var s = - [c] - .concat(i) - .map(function (d) { - return typeof d == 'string' - ? d - : d instanceof Error - ? d.stack || String(d) - : JSON.stringify(d); - }) - .filter(function (d) { - return d; - }) - .join(' ') + - '\nUser Agent: ' + - navigator.userAgent; - Byond.sendMessage({ type: 'log', message: s }); - } - }, - S = (r.createLogger = (function () { - function h(l) { - return { - debug: (function () { - function c() { - for ( - var f = arguments.length, i = new Array(f), u = 0; - u < f; - u++ - ) - i[u] = arguments[u]; - return y.apply(void 0, [a, l].concat(i)); - } - return c; - })(), - log: (function () { - function c() { - for ( - var f = arguments.length, i = new Array(f), u = 0; - u < f; - u++ - ) - i[u] = arguments[u]; - return y.apply(void 0, [t, l].concat(i)); - } - return c; - })(), - info: (function () { - function c() { - for ( - var f = arguments.length, i = new Array(f), u = 0; - u < f; - u++ - ) - i[u] = arguments[u]; - return y.apply(void 0, [o, l].concat(i)); - } - return c; - })(), - warn: (function () { - function c() { - for ( - var f = arguments.length, i = new Array(f), u = 0; - u < f; - u++ - ) - i[u] = arguments[u]; - return y.apply(void 0, [m, l].concat(i)); - } - return c; - })(), - error: (function () { - function c() { - for ( - var f = arguments.length, i = new Array(f), u = 0; - u < f; - u++ - ) - i[u] = arguments[u]; - return y.apply(void 0, [N, l].concat(i)); - } - return c; - })(), - }; - } - return h; - })()), - k = (r.logger = S()); - }, - 64960: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), - (r.suspendRenderer = r.resumeRenderer = r.createRenderer = void 0); - var e = n(60031), - a = n(28823), - t = n(50175), - o = (0, t.createLogger)('renderer'), - m, - N = !0, - y = !1, - S = (r.resumeRenderer = (function () { - function l() { - (N = N || 'resumed'), (y = !1); - } - return l; - })()), - k = (r.suspendRenderer = (function () { - function l() { - y = !0; - } - return l; - })()), - h = (r.createRenderer = (function () { - function l(c) { - return function () { - e.perf.mark('render/start'), - m || (m = document.getElementById('react-root')), - (0, a.render)(c(), m), - e.perf.mark('render/finish'), - !y && N && (N = !1); - }; - } - return l; - })()); - }, - 76521: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.getRoutedComponent = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(94505), - m = n(84947); - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var N = n(8156), - y = function (c, f) { - return function () { - return (0, e.createComponentVNode)(2, m.Window, { - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - children: [ - c === 'notFound' && - (0, e.createVNode)( - 1, - 'div', - null, - [ - (0, e.createTextVNode)('Interface '), - (0, e.createVNode)(1, 'b', null, f, 0), - (0, e.createTextVNode)(' was not found.'), - ], - 4 - ), - c === 'missingExport' && - (0, e.createVNode)( - 1, - 'div', - null, - [ - (0, e.createTextVNode)('Interface '), - (0, e.createVNode)(1, 'b', null, f, 0), - (0, e.createTextVNode)(' is missing an export.'), - ], - 4 - ), - ], - }), - }); - }; - }, - S = function () { - return (0, e.createComponentVNode)(2, m.Window, { - children: (0, e.createComponentVNode)(2, m.Window.Content, { - scrollable: !0, - }), - }); - }, - k = function () { - return (0, e.createComponentVNode)(2, m.Window, { - height: 130, - title: 'Loading', - width: 150, - children: (0, e.createComponentVNode)(2, m.Window.Content, { - children: (0, e.createComponentVNode)(2, t.Stack, { - align: 'center', - fill: !0, - justify: 'center', - vertical: !0, - children: [ - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: (0, e.createComponentVNode)(2, t.Icon, { - color: 'blue', - name: 'toolbox', - spin: !0, - size: 4, - }), - }), - (0, e.createComponentVNode)(2, t.Stack.Item, { - children: 'Please wait...', - }), - ], - }), - }), - }); - }, - h = (r.getRoutedComponent = (function () { - function l(c) { - var f = c.getState(), - i = (0, a.selectBackend)(f), - u = i.suspended, - s = i.config; - if (u) return S; - if (s.refreshing) return k; - if (0) var d; - for ( - var C = s == null ? void 0 : s.interface, - g = [ - function (B) { - return './' + B + '.tsx'; - }, - function (B) { - return './' + B + '.js'; - }, - function (B) { - return './' + B + '/index.tsx'; - }, - function (B) { - return './' + B + '/index.js'; - }, - ], - v; - !v && g.length > 0; - - ) { - var p = g.shift(), - V = p(C); - try { - v = N(V); - } catch (B) { - if (B.code !== 'MODULE_NOT_FOUND') throw B; - } - } - if (!v) return y('notFound', C); - var b = v[C]; - return b || y('missingExport', C); - } - return l; - })()); - }, - 79143: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.configureStore = r.StoreProvider = void 0); - var e = n(90955), - a = n(90816), - t = n(28823), - o = n(96820), - m = n(91819), - N = n(39241), - y = n(50175); - function S(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 () { - function d(C, g) { - return (C.__proto__ = g), C; - } - return d; - })()), - k(u, s) - ); - } - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var h = (0, y.createLogger)('store'), - l = (r.configureStore = (function () { - function u(s) { - var d, C; - s === void 0 && (s = {}); - var g = s, - v = g.sideEffects, - p = v === void 0 ? !0 : v, - V = (0, e.flow)([ - (0, a.combineReducers)({ - debug: N.debugReducer, - backend: m.backendReducer, - }), - s.reducer, - ]), - b = p - ? [].concat( - ((d = s.middleware) == null ? void 0 : d.pre) || [], - [o.assetMiddleware, m.backendMiddleware], - ((C = s.middleware) == null ? void 0 : C.post) || [] - ) - : [], - B = a.applyMiddleware.apply(void 0, b), - I = (0, a.createStore)(V, B); - return ( - (window.__store__ = I), (window.__augmentStack__ = f(I)), I - ); - } - return u; - })()), - c = function (s) { - return function (d) { - return function (C) { - var g = C.type, - v = C.payload; - return ( - g === 'update' || g === 'backend/update' - ? h.debug('action', { type: g }) - : h.debug('action', C), - d(C) - ); - }; - }; - }, - f = function (s) { - return function (d, C) { - var g, v; - C - ? typeof C == 'object' && !C.stack && (C.stack = d) - : ((C = new Error(d.split('\n')[0])), (C.stack = d)), - h.log('FatalError:', C); - var p = s.getState(), - V = p == null || (g = p.backend) == null ? void 0 : g.config, - b = d; - return ( - (b += '\nUser Agent: ' + navigator.userAgent), - (b += - '\nState: ' + - JSON.stringify({ - ckey: - V == null || (v = V.client) == null ? void 0 : v.ckey, - interface: V == null ? void 0 : V.interface, - window: V == null ? void 0 : V.window, - })), - b - ); - }; - }, - i = (r.StoreProvider = (function (u) { - S(s, u); - function s() { - return u.apply(this, arguments) || this; - } - var d = s.prototype; - return ( - (d.getChildContext = (function () { - function C() { - var g = this.props.store; - return { store: g }; - } - return C; - })()), - (d.render = (function () { - function C() { - return this.props.children; - } - return C; - })()), - s - ); - })(t.Component)); - }, - 90969: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var t = (r.meta = { - title: 'Blink', - render: (function () { - function m() { - return (0, e.createComponentVNode)(2, o); - } - return m; - })(), - }), - o = function (N, y) { - return (0, e.createComponentVNode)(2, a.Section, { - children: (0, e.createComponentVNode)(2, a.Blink, { - children: 'Blink', - }), - }); - }; - }, - 22030: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971), - t = n(51753); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'BlockQuote', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - return (0, e.createComponentVNode)(2, a.Section, { - children: (0, e.createComponentVNode)(2, a.BlockQuote, { - children: (0, e.createComponentVNode)(2, t.BoxWithSampleText), - }), - }); - }; - }, - 35286: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var t = (r.meta = { - title: 'Box', - render: (function () { - function m() { - return (0, e.createComponentVNode)(2, o); - } - return m; - })(), - }), - o = function (N, y) { - 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: 0.5, - children: 'opacity 0.5', - }), - (0, e.createComponentVNode)(2, a.Box, { - opacity: 0.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', - }), - ], - }); - }; - }, - 38465: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var t = (r.meta = { - title: 'Button', - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, N); - } - return y; - })(), - }), - o = [ - 'red', - 'orange', - 'yellow', - 'olive', - 'green', - 'teal', - 'blue', - 'violet', - 'purple', - 'pink', - 'brown', - 'grey', - ], - m = ['good', 'average', 'bad', 'black', 'white'], - N = function (S, k) { - 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: [ - m.map(function (h) { - return (0, e.createComponentVNode)( - 2, - a.Button, - { color: h, content: h }, - h - ); - }), - (0, e.createVNode)(1, 'br'), - o.map(function (h) { - return (0, e.createComponentVNode)( - 2, - a.Button, - { color: h, content: h }, - h - ); - }), - (0, e.createVNode)(1, 'br'), - o.map(function (h) { - return (0, e.createComponentVNode)( - 2, - a.Box, - { inline: !0, mx: '7px', color: h, children: h }, - h - ); - }), - ], - }), - ], - }); - }; - }, - 16748: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971), - o = n(50175); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var m = (r.meta = { - title: 'ByondUi', - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, N); - } - return y; - })(), - }), - N = function (S, k) { - var h = (0, a.useLocalState)( - k, - 'byondUiEvalCode', - "Byond.winset('" + - Byond.windowId + - "', {\n 'is-visible': true,\n})" - ), - l = h[0], - c = h[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 setImmediate(function () { - try { - var i = new Function('return (' + l + ')')(); - i && i.then - ? (o.logger.log('Promise'), - i.then(o.logger.log)) - : o.logger.log(i); - } catch (u) { - o.logger.log(u); - } - }); - } - return f; - })(), - children: 'Evaluate', - }), - children: (0, e.createComponentVNode)(2, t.Box, { - as: 'textarea', - width: '100%', - height: '10em', - onChange: (function () { - function f(i) { - return c(i.target.value); - } - return f; - })(), - children: l, - }), - }), - ], - 4 - ); - }; - }, - 76475: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971), - t = n(51753); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Collapsible', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - 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), - }), - }); - }; - }, - 28994: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Flex & Sections', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - var k = (0, a.useLocalState)(S, 'fs_grow', 1), - h = k[0], - l = k[1], - c = (0, a.useLocalState)(S, 'fs_direction', 'column'), - f = c[0], - i = c[1], - u = (0, a.useLocalState)(S, 'fs_fill', !0), - s = u[0], - d = u[1], - C = (0, a.useLocalState)(S, 'fs_title', !0), - g = C[0], - v = C[1]; - return (0, e.createComponentVNode)(2, t.Flex, { - height: '100%', - direction: 'column', - children: [ - (0, e.createComponentVNode)(2, t.Flex.Item, { - mb: 1, - children: (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - onClick: (function () { - function p() { - return i(f === 'column' ? 'row' : 'column'); - } - return p; - })(), - children: 'Flex direction="' + f + '"', - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - onClick: (function () { - function p() { - return l(+!h); - } - return p; - })(), - children: 'Flex.Item grow={' + h + '}', - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - onClick: (function () { - function p() { - return d(!s); - } - return p; - })(), - children: 'Section fill={' + String(s) + '}', - }), - (0, e.createComponentVNode)(2, t.Button, { - fluid: !0, - selected: g, - onClick: (function () { - function p() { - return v(!g); - } - return p; - })(), - 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: h, - children: (0, e.createComponentVNode)(2, t.Section, { - title: g && 'Section 1', - fill: s, - children: 'Content', - }), - }), - (0, e.createComponentVNode)(2, t.Flex.Item, { - grow: h, - children: (0, e.createComponentVNode)(2, t.Section, { - title: g && 'Section 2', - fill: s, - children: 'Content', - }), - }), - ], - }), - }), - ], - }); - }; - }, - 25462: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Input', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - var k = (0, a.useLocalState)(S, 'number', 0), - h = k[0], - l = k[1], - c = (0, a.useLocalState)(S, 'text', 'Sample text'), - f = c[0], - i = 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 u(s, d) { - return i(d); - } - return u; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Input (onInput)', - children: (0, e.createComponentVNode)(2, t.Input, { - value: f, - onInput: (function () { - function u(s, d) { - return i(d); - } - return u; - })(), - }), - }), - (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: h, - minValue: -100, - maxValue: 100, - onChange: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - }), - }), - (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: h, - minValue: -100, - maxValue: 100, - onDrag: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - }), - }), - (0, e.createComponentVNode)(2, t.LabeledList.Item, { - label: 'Slider (onDrag)', - children: (0, e.createComponentVNode)(2, t.Slider, { - step: 1, - stepPixelSize: 5, - value: h, - minValue: -100, - maxValue: 100, - onDrag: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - }), - }), - (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: h, - minValue: -100, - maxValue: 100, - onDrag: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - }), - (0, e.createComponentVNode)(2, t.Knob, { - ml: 1, - inline: !0, - bipolar: !0, - size: 1, - step: 1, - stepPixelSize: 2, - value: h, - minValue: -100, - maxValue: 100, - onDrag: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - }), - ], - }), - (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: h, - minValue: -100, - maxValue: 100, - dragMatrix: [0, -1], - step: 1, - stepPixelSize: 5, - onDrag: (function () { - function u(s, d) { - return l(d); - } - return u; - })(), - children: (function () { - function u(s) { - return (0, e.createComponentVNode)(2, t.Box, { - onMouseDown: s.handleDragStart, - children: [ - (0, e.createComponentVNode)(2, t.Icon, { - size: 4, - color: 'yellow', - name: 'times', - rotation: s.displayValue * 4, - }), - s.inputElement, - ], - }); - } - return u; - })(), - } - ), - }), - }), - ], - }), - }); - }; - }, - 97028: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971), - t = (r.meta = { - title: 'Popper', - render: (function () { - function m() { - return (0, e.createComponentVNode)(2, o); - } - return m; - })(), - }), - o = function () { - return (0, e.createFragment)( - [ - (0, e.createComponentVNode)(2, a.Popper, { - popperContent: (0, e.createComponentVNode)(2, a.Box, { - style: { background: 'white', border: '2px solid blue' }, - children: 'Loogatme!', - }), - options: { placement: 'bottom' }, - children: (0, e.createComponentVNode)(2, a.Box, { - style: { - border: '5px solid white', - height: '300px', - width: '200px', - }, - }), - }), - (0, e.createComponentVNode)(2, a.Popper, { - popperContent: (0, e.createComponentVNode)(2, a.Box, { - style: { background: 'white', border: '2px solid blue' }, - children: 'I am on the right!', - }), - options: { placement: 'right' }, - children: (0, e.createComponentVNode)(2, a.Box, { - style: { - border: '5px solid white', - height: '500px', - width: '100px', - }, - }), - }), - ], - 4 - ); - }; - }, - 85266: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'ProgressBar', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - var k = (0, a.useLocalState)(S, 'progress', 0.5), - h = k[0], - l = k[1]; - return (0, e.createComponentVNode)(2, t.Section, { - children: [ - (0, e.createComponentVNode)(2, t.ProgressBar, { - ranges: { - good: [0.5, 1 / 0], - bad: [-1 / 0, 0.1], - average: [0, 0.5], - }, - minValue: -1, - maxValue: 1, - value: h, - children: ['Value: ', Number(h).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 l(h - 0.1); - } - return c; - })(), - }), - (0, e.createComponentVNode)(2, t.Button, { - content: '+0.1', - onClick: (function () { - function c() { - return l(h + 0.1); - } - return c; - })(), - }), - ], - }), - ], - }); - }; - }, - 36216: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var t = (r.meta = { - title: 'Stack', - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, N); - } - return y; - })(), - }), - o = function () { - return (0, e.createComponentVNode)(2, a.Box, { - inline: !0, - width: 1, - height: 1, - children: 'A', - }); - }, - m = 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 - ); - }, - N = function (S, k) { - 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, m), - (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, m), - (0, e.createComponentVNode)(2, a.Stack.Item, { - children: (0, e.createComponentVNode)(2, a.Stack, { - fill: !0, - children: [ - (0, e.createComponentVNode)(2, m), - (0, e.createComponentVNode)(2, a.Stack.Item, { - grow: 1, - }), - (0, e.createComponentVNode)(2, m), - (0, e.createComponentVNode)(2, m), - ], - }), - }), - (0, e.createComponentVNode)(2, a.Stack.Item, { - grow: 1, - }), - (0, e.createComponentVNode)(2, m), - ], - }), - }), - ], - }), - }); - }; - }, - 22338: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(96417), - t = n(2971), - o = n(48300); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var m = (r.meta = { - title: 'Storage', - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, N); - } - return y; - })(), - }), - N = function (S, k) { - return window.localStorage - ? (0, e.createComponentVNode)(2, t.Section, { - title: 'Local Storage', - buttons: (0, e.createComponentVNode)(2, t.Button, { - icon: 'recycle', - onClick: (function () { - function h() { - localStorage.clear(), a.storage.clear(); - } - return h; - })(), - 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.', - }); - }; - }, - 88446: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Tabs', - render: (function () { - function y() { - return (0, e.createComponentVNode)(2, N); - } - return y; - })(), - }), - m = ['Tab #1', 'Tab #2', 'Tab #3', 'Tab #4'], - N = function (S, k) { - var h = (0, a.useLocalState)(k, 'tabIndex', 0), - l = h[0], - c = h[1], - f = (0, a.useLocalState)(k, 'tabProps', {}), - i = f[0], - u = 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: i.vertical, - onClick: (function () { - function s() { - return u( - Object.assign({}, i, { vertical: !i.vertical }) - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - inline: !0, - content: 'leftSlot', - checked: i.leftSlot, - onClick: (function () { - function s() { - return u( - Object.assign({}, i, { leftSlot: !i.leftSlot }) - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - inline: !0, - content: 'rightSlot', - checked: i.rightSlot, - onClick: (function () { - function s() { - return u( - Object.assign({}, i, { rightSlot: !i.rightSlot }) - ); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - inline: !0, - content: 'icon', - checked: i.icon, - onClick: (function () { - function s() { - return u(Object.assign({}, i, { icon: !i.icon })); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - inline: !0, - content: 'fluid', - checked: i.fluid, - onClick: (function () { - function s() { - return u(Object.assign({}, i, { fluid: !i.fluid })); - } - return s; - })(), - }), - (0, e.createComponentVNode)(2, t.Button.Checkbox, { - inline: !0, - content: 'left aligned', - checked: i.leftAligned, - onClick: (function () { - function s() { - return u( - Object.assign({}, i, { - leftAligned: !i.leftAligned, - }) - ); - } - return s; - })(), - }), - ], - }), - (0, e.createComponentVNode)(2, t.Section, { - fitted: !0, - children: (0, e.createComponentVNode)(2, t.Tabs, { - vertical: i.vertical, - fluid: i.fluid, - textAlign: i.leftAligned && 'left', - children: m.map(function (s, d) { - return (0, e.createComponentVNode)( - 2, - t.Tabs.Tab, - { - selected: d === l, - icon: i.icon && 'info-circle', - leftSlot: - i.leftSlot && - (0, e.createComponentVNode)(2, t.Button, { - circular: !0, - compact: !0, - color: 'transparent', - icon: 'times', - }), - rightSlot: - i.rightSlot && - (0, e.createComponentVNode)(2, t.Button, { - circular: !0, - compact: !0, - color: 'transparent', - icon: 'times', - }), - onClick: (function () { - function C() { - return c(d); - } - return C; - })(), - children: s, - }, - d - ); - }), - }), - }), - ], - 4 - ); - }; - }, - 2938: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(91819), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Themes', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function (y, S) { - var k = (0, a.useLocalState)(S, 'kitchenSinkTheme'), - h = k[0], - l = k[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: h, - onInput: (function () { - function c(f, i) { - return l(i); - } - return c; - })(), - }), - }), - }), - }); - }; - }, - 54212: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.meta = void 0); - var e = n(28823), - a = n(60028), - t = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var o = (r.meta = { - title: 'Tooltip', - render: (function () { - function N() { - return (0, e.createComponentVNode)(2, m); - } - return N; - })(), - }), - m = function () { - var y = [ - '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: y.map(function (S) { - return (0, e.createComponentVNode)( - 2, - t.Button, - { - color: 'transparent', - tooltip: 'Tooltip text.', - tooltipPosition: S, - content: S, - }, - S - ); - }), - }), - ], - }); - }; - }, - 51753: function (L, r, n) { - 'use strict'; - (r.__esModule = !0), (r.BoxWithSampleText = void 0); - var e = n(28823), - a = n(2971); - /** - * @file - * @copyright 2021 Aleksej Komarov - * @license MIT - */ var t = (r.BoxWithSampleText = (function () { - function o(m) { - return (0, e.normalizeProps)( - (0, e.createComponentVNode)( - 2, - a.Box, - Object.assign({}, m, { - children: [ - (0, e.createComponentVNode)(2, a.Box, { - italic: !0, - children: 'Jackdaws love my big sphinx of quartz.', - }), - (0, e.createComponentVNode)(2, a.Box, { - mt: 1, - bold: !0, - children: - 'The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture.', - }), - ], - }) - ) - ); - } - return o; - })()); - }, - 47468: function () {}, - 52355: function () {}, - 66309: function () {}, - 74395: function () {}, - 86879: function () {}, - 66782: function () {}, - 72694: function () {}, - 35116: function () {}, - 47968: function () {}, - 67041: function () {}, - 59719: function () {}, - 14045: function () {}, - 81912: function () {}, - 53152: function () {}, - 33115: function (L, r, n) { - var e = { - './pai_atmosphere.js': 98638, - './pai_bioscan.js': 56601, - './pai_directives.js': 48047, - './pai_doorjack.js': 4646, - './pai_main_menu.js': 94648, - './pai_manifest.js': 45549, - './pai_medrecords.js': 53434, - './pai_messenger.js': 7328, - './pai_radio.js': 32036, - './pai_secrecords.js': 76020, - './pai_signaler.js': 11562, - }; - function a(o) { - var m = t(o); - return n(m); - } - function t(o) { - if (!n.o(e, o)) { - var m = new Error("Cannot find module '" + o + "'"); - throw ((m.code = 'MODULE_NOT_FOUND'), m); - } - return e[o]; - } - (a.keys = function () { - return Object.keys(e); - }), - (a.resolve = t), - (L.exports = a), - (a.id = 33115); - }, - 75168: function (L, r, n) { - var e = { - './pda_atmos_scan.js': 29539, - './pda_janitor.js': 92180, - './pda_main_menu.js': 57725, - './pda_manifest.js': 29978, - './pda_medical.js': 20567, - './pda_messenger.js': 38467, - './pda_mob_hunt.js': 54291, - './pda_mule.js': 31112, - './pda_nanobank.js': 2817, - './pda_notes.js': 66621, - './pda_power.js': 96490, - './pda_secbot.js': 36436, - './pda_security.js': 55244, - './pda_signaler.js': 23470, - './pda_status_display.js': 43085, - './pda_supplyrecords.js': 26948, - }; - function a(o) { - var m = t(o); - return n(m); - } - function t(o) { - if (!n.o(e, o)) { - var m = new Error("Cannot find module '" + o + "'"); - throw ((m.code = 'MODULE_NOT_FOUND'), m); - } - return e[o]; - } - (a.keys = function () { - return Object.keys(e); - }), - (a.resolve = t), - (L.exports = a), - (a.id = 75168); - }, - 8156: function (L, r, n) { - var e = { - './AICard': 89163, - './AICard.js': 89163, - './AIFixer': 46817, - './AIFixer.js': 46817, - './APC': 20420, - './APC.js': 20420, - './ATM': 16822, - './ATM.js': 16822, - './AccountsUplinkTerminal': 90698, - './AccountsUplinkTerminal.js': 90698, - './AgentCard': 66895, - './AgentCard.js': 66895, - './AiAirlock': 26354, - './AiAirlock.js': 26354, - './AirAlarm': 26673, - './AirAlarm.js': 26673, - './AirlockAccessController': 98565, - './AirlockAccessController.js': 98565, - './AirlockElectronics': 76385, - './AirlockElectronics.js': 76385, - './AlertModal': 55666, - './AlertModal.tsx': 55666, - './AppearanceChanger': 16504, - './AppearanceChanger.js': 16504, - './AtmosAlertConsole': 77280, - './AtmosAlertConsole.js': 77280, - './AtmosControl': 66274, - './AtmosControl.js': 66274, - './AtmosFilter': 90588, - './AtmosFilter.js': 90588, - './AtmosMixer': 87486, - './AtmosMixer.js': 87486, - './AtmosPump': 46714, - './AtmosPump.js': 46714, - './AtmosTankControl': 66032, - './AtmosTankControl.js': 66032, - './Autolathe': 62343, - './Autolathe.js': 62343, - './BioChipPad': 13940, - './BioChipPad.js': 13940, - './Biogenerator': 55295, - './Biogenerator.js': 55295, - './BlueSpaceArtilleryControl': 92247, - './BlueSpaceArtilleryControl.js': 92247, - './BluespaceTap': 74594, - './BluespaceTap.js': 74594, - './BodyScanner': 31876, - './BodyScanner.js': 31876, - './BookBinder': 73440, - './BookBinder.js': 73440, - './BotClean': 40730, - './BotClean.js': 40730, - './BotFloor': 36078, - './BotFloor.js': 36078, - './BotHonk': 89121, - './BotHonk.js': 89121, - './BotMed': 39805, - './BotMed.js': 39805, - './BotSecurity': 35519, - './BotSecurity.js': 35519, - './BrigCells': 71169, - './BrigCells.js': 71169, - './BrigTimer': 19070, - './BrigTimer.js': 19070, - './CameraConsole': 59681, - './CameraConsole.js': 59681, - './CameraConsole220': 64487, - './CameraConsole220.js': 64487, - './Canister': 21348, - './Canister.js': 21348, - './CardComputer': 13944, - './CardComputer.js': 13944, - './CargoConsole': 62486, - './CargoConsole.js': 62486, - './ChangelogView': 86885, - './ChangelogView.js': 86885, - './ChemDispenser': 56975, - './ChemDispenser.js': 56975, - './ChemHeater': 48734, - './ChemHeater.js': 48734, - './ChemMaster': 35918, - './ChemMaster.js': 35918, - './CloningConsole': 8573, - './CloningConsole.js': 8573, - './CloningPod': 58378, - './CloningPod.js': 58378, - './ColourMatrixTester': 14283, - './ColourMatrixTester.js': 14283, - './CommunicationsComputer': 98577, - './CommunicationsComputer.js': 98577, - './CompostBin': 70611, - './CompostBin.js': 70611, - './Contractor': 73744, - './Contractor.js': 73744, - './ConveyorSwitch': 57392, - './ConveyorSwitch.js': 57392, - './CrewMonitor': 91413, - './CrewMonitor.js': 91413, - './Cryo': 55104, - './Cryo.js': 55104, - './CryopodConsole': 1763, - './CryopodConsole.js': 1763, - './DNAModifier': 69055, - './DNAModifier.js': 69055, - './DestinationTagger': 94406, - './DestinationTagger.js': 94406, - './DisposalBin': 17585, - './DisposalBin.js': 17585, - './DnaVault': 64636, - './DnaVault.js': 64636, - './DroneConsole': 13015, - './DroneConsole.js': 13015, - './EFTPOS': 97673, - './EFTPOS.js': 97673, - './ERTManager': 29206, - './ERTManager.js': 29206, - './EconomyManager': 77877, - './EconomyManager.js': 77877, - './Electropack': 10707, - './Electropack.js': 10707, - './EmotePanel': 85307, - './EmotePanel.js': 85307, - './EvolutionMenu': 52640, - './EvolutionMenu.js': 52640, - './ExosuitFabricator': 70672, - './ExosuitFabricator.js': 70672, - './ExperimentConsole': 25627, - './ExperimentConsole.js': 25627, - './ExternalAirlockController': 14172, - './ExternalAirlockController.js': 14172, - './FaxMachine': 61893, - './FaxMachine.js': 61893, - './FilingCabinet': 80031, - './FilingCabinet.js': 80031, - './FloorPainter': 39552, - './FloorPainter.js': 39552, - './GPS': 5090, - './GPS.js': 5090, - './GeneModder': 1055, - './GeneModder.js': 1055, - './GenericCrewManifest': 14232, - './GenericCrewManifest.js': 14232, - './GhostHudPanel': 86268, - './GhostHudPanel.js': 86268, - './GlandDispenser': 8977, - './GlandDispenser.js': 8977, - './GravityGen': 70309, - './GravityGen.js': 70309, - './GuestPass': 64769, - './GuestPass.js': 64769, - './HandheldChemDispenser': 12219, - './HandheldChemDispenser.js': 12219, - './HealthSensor': 53917, - './HealthSensor.js': 53917, - './Holodeck': 93116, - './Holodeck.js': 93116, - './Instrument': 77209, - './Instrument.js': 77209, - './Jukebox': 28847, - './Jukebox.tsx': 28847, - './KeycardAuth': 64261, - './KeycardAuth.js': 64261, - './KitchenMachine': 34898, - './KitchenMachine.js': 34898, - './LawManager': 52564, - './LawManager.js': 52564, - './LibraryComputer': 55499, - './LibraryComputer.js': 55499, - './LibraryManager': 92682, - './LibraryManager.js': 92682, - './ListInputModal': 68e3, - './ListInputModal.tsx': 68e3, - './MODsuit': 75965, - './MODsuit.js': 75965, - './MagnetController': 86322, - './MagnetController.js': 86322, - './MechBayConsole': 54374, - './MechBayConsole.js': 54374, - './MechaControlConsole': 14823, - './MechaControlConsole.js': 14823, - './MedicalRecords': 16189, - './MedicalRecords.js': 16189, - './MerchVendor': 44482, - './MerchVendor.js': 44482, - './MiningVendor': 53551, - './MiningVendor.js': 53551, - './ModpacksList': 71545, - './ModpacksList.js': 71545, - './NTRecruiter': 61100, - './NTRecruiter.js': 61100, - './Newscaster': 6802, - './Newscaster.js': 6802, - './NuclearBomb': 64639, - './NuclearBomb.js': 64639, - './NumberInputModal': 45523, - './NumberInputModal.tsx': 45523, - './OperatingComputer': 48314, - './OperatingComputer.js': 48314, - './Orbit': 87511, - './Orbit.js': 87511, - './OreRedemption': 54528, - './OreRedemption.js': 54528, - './PAI': 55686, - './PAI.js': 55686, - './PDA': 58717, - './PDA.js': 58717, - './Pacman': 78062, - './Pacman.js': 78062, - './ParticleAccelerator': 65823, - './ParticleAccelerator.js': 65823, - './PdaPainter': 67572, - './PdaPainter.js': 67572, - './PersonalCrafting': 12456, - './PersonalCrafting.js': 12456, - './Photocopier': 72143, - './Photocopier.js': 72143, - './Photocopier220': 82020, - './Photocopier220.js': 82020, - './PoolController': 47051, - './PoolController.js': 47051, - './PortablePump': 5424, - './PortablePump.js': 5424, - './PortableScrubber': 70673, - './PortableScrubber.js': 70673, - './PortableTurret': 22015, - './PortableTurret.js': 22015, - './PowerMonitor': 75199, - './PowerMonitor.js': 75199, - './PrisonerImplantManager': 15164, - './PrisonerImplantManager.js': 15164, - './PrisonerShuttleConsole': 99646, - './PrisonerShuttleConsole.js': 99646, - './PrizeCounter': 96493, - './PrizeCounter.tsx': 96493, - './RCD': 82443, - './RCD.js': 82443, - './RPD': 61566, - './RPD.js': 61566, - './Radio': 24618, - './Radio.js': 24618, - './ReagentGrinder': 85183, - './ReagentGrinder.js': 85183, - './RemoteSignaler': 94890, - './RemoteSignaler.js': 94890, - './RequestConsole': 6301, - './RequestConsole.js': 6301, - './RndConsole': 51939, - './RndConsole.js': 51939, - './RndConsoleComponents': 63752, - './RndConsoleComponents/': 63752, - './RndConsoleComponents/CurrentLevels': 50239, - './RndConsoleComponents/CurrentLevels.js': 50239, - './RndConsoleComponents/DataDiskMenu': 24183, - './RndConsoleComponents/DataDiskMenu.js': 24183, - './RndConsoleComponents/DeconstructionMenu': 72751, - './RndConsoleComponents/DeconstructionMenu.js': 72751, - './RndConsoleComponents/LatheCategory': 51802, - './RndConsoleComponents/LatheCategory.js': 51802, - './RndConsoleComponents/LatheChemicalStorage': 47349, - './RndConsoleComponents/LatheChemicalStorage.js': 47349, - './RndConsoleComponents/LatheMainMenu': 73492, - './RndConsoleComponents/LatheMainMenu.js': 73492, - './RndConsoleComponents/LatheMaterialStorage': 87115, - './RndConsoleComponents/LatheMaterialStorage.js': 87115, - './RndConsoleComponents/LatheMaterials': 2345, - './RndConsoleComponents/LatheMaterials.js': 2345, - './RndConsoleComponents/LatheMenu': 45805, - './RndConsoleComponents/LatheMenu.js': 45805, - './RndConsoleComponents/LatheSearch': 92497, - './RndConsoleComponents/LatheSearch.js': 92497, - './RndConsoleComponents/MainMenu': 25242, - './RndConsoleComponents/MainMenu.js': 25242, - './RndConsoleComponents/RndNavButton': 29933, - './RndConsoleComponents/RndNavButton.js': 29933, - './RndConsoleComponents/RndNavbar': 59959, - './RndConsoleComponents/RndNavbar.js': 59959, - './RndConsoleComponents/RndRoute': 28078, - './RndConsoleComponents/RndRoute.js': 28078, - './RndConsoleComponents/SettingsMenu': 59991, - './RndConsoleComponents/SettingsMenu.js': 59991, - './RndConsoleComponents/index': 63752, - './RndConsoleComponents/index.js': 63752, - './RobotSelfDiagnosis': 73407, - './RobotSelfDiagnosis.js': 73407, - './RoboticsControlConsole': 48356, - './RoboticsControlConsole.js': 48356, - './Safe': 33122, - './Safe.js': 33122, - './SatelliteControl': 46748, - './SatelliteControl.js': 46748, - './SecureStorage': 46504, - './SecureStorage.js': 46504, - './SecurityRecords': 54529, - './SecurityRecords.js': 54529, - './SeedExtractor': 79315, - './SeedExtractor.js': 79315, - './ShuttleConsole': 58578, - './ShuttleConsole.js': 58578, - './ShuttleManipulator': 11154, - './ShuttleManipulator.js': 11154, - './Sleeper': 80699, - './Sleeper.js': 80699, - './SlotMachine': 42439, - './SlotMachine.js': 42439, - './Smartfridge': 280, - './Smartfridge.js': 280, - './Smes': 47606, - './Smes.js': 47606, - './SolarControl': 66527, - './SolarControl.js': 66527, - './SpawnersMenu': 27478, - './SpawnersMenu.js': 27478, - './SpecMenu': 15565, - './SpecMenu.js': 15565, - './StationAlertConsole': 31752, - './StationAlertConsole.js': 31752, - './StationTraitsPanel': 64323, - './StationTraitsPanel.tsx': 64323, - './StripMenu': 28973, - './StripMenu.tsx': 28973, - './SuitStorage': 57633, - './SuitStorage.js': 57633, - './SupermatterMonitor': 72217, - './SupermatterMonitor.js': 72217, - './SyndicateComputerSimple': 55055, - './SyndicateComputerSimple.js': 55055, - './TEG': 61225, - './TEG.js': 61225, - './TTSSeedsExplorer': 61424, - './TTSSeedsExplorer.tsx': 61424, - './TachyonArray': 97552, - './TachyonArray.js': 97552, - './Tank': 33291, - './Tank.js': 33291, - './TankDispenser': 75480, - './TankDispenser.js': 75480, - './TcommsCore': 62291, - './TcommsCore.js': 62291, - './TcommsRelay': 82905, - './TcommsRelay.js': 82905, - './Teleporter': 87692, - './Teleporter.js': 87692, - './TempGun': 40759, - './TempGun.js': 40759, - './TextInputModal': 32369, - './TextInputModal.tsx': 32369, - './ThermoMachine': 82296, - './ThermoMachine.js': 82296, - './TransferValve': 68488, - './TransferValve.js': 68488, - './TurbineComputer': 26868, - './TurbineComputer.js': 26868, - './Uplink': 30778, - './Uplink.js': 30778, - './Vending': 7307, - './Vending.js': 7307, - './VolumeMixer': 25485, - './VolumeMixer.js': 25485, - './VotePanel': 26564, - './VotePanel.js': 26564, - './Wires': 496, - './Wires.js': 496, - './WizardApprenticeContract': 28919, - './WizardApprenticeContract.js': 28919, - './common/AccessList': 14635, - './common/AccessList.js': 14635, - './common/AtmosScan': 29136, - './common/AtmosScan.js': 29136, - './common/BeakerContents': 83326, - './common/BeakerContents.js': 83326, - './common/BotStatus': 86041, - './common/BotStatus.js': 86041, - './common/ComplexModal': 22677, - './common/ComplexModal.js': 22677, - './common/CrewManifest': 692, - './common/CrewManifest.js': 692, - './common/InputButtons': 98658, - './common/InputButtons.tsx': 98658, - './common/InterfaceLockNoticeBox': 29723, - './common/InterfaceLockNoticeBox.js': 29723, - './common/Loader': 2146, - './common/Loader.tsx': 2146, - './common/LoginInfo': 51185, - './common/LoginInfo.js': 51185, - './common/LoginScreen': 69774, - './common/LoginScreen.js': 69774, - './common/Operating': 48154, - './common/Operating.js': 48154, - './common/Signaler': 92149, - './common/Signaler.js': 92149, - './common/SimpleRecords': 79969, - './common/SimpleRecords.js': 79969, - './common/TemporaryNotice': 76519, - './common/TemporaryNotice.js': 76519, - './pai/pai_atmosphere': 98638, - './pai/pai_atmosphere.js': 98638, - './pai/pai_bioscan': 56601, - './pai/pai_bioscan.js': 56601, - './pai/pai_directives': 48047, - './pai/pai_directives.js': 48047, - './pai/pai_doorjack': 4646, - './pai/pai_doorjack.js': 4646, - './pai/pai_main_menu': 94648, - './pai/pai_main_menu.js': 94648, - './pai/pai_manifest': 45549, - './pai/pai_manifest.js': 45549, - './pai/pai_medrecords': 53434, - './pai/pai_medrecords.js': 53434, - './pai/pai_messenger': 7328, - './pai/pai_messenger.js': 7328, - './pai/pai_radio': 32036, - './pai/pai_radio.js': 32036, - './pai/pai_secrecords': 76020, - './pai/pai_secrecords.js': 76020, - './pai/pai_signaler': 11562, - './pai/pai_signaler.js': 11562, - './pda/pda_atmos_scan': 29539, - './pda/pda_atmos_scan.js': 29539, - './pda/pda_janitor': 92180, - './pda/pda_janitor.js': 92180, - './pda/pda_main_menu': 57725, - './pda/pda_main_menu.js': 57725, - './pda/pda_manifest': 29978, - './pda/pda_manifest.js': 29978, - './pda/pda_medical': 20567, - './pda/pda_medical.js': 20567, - './pda/pda_messenger': 38467, - './pda/pda_messenger.js': 38467, - './pda/pda_mob_hunt': 54291, - './pda/pda_mob_hunt.js': 54291, - './pda/pda_mule': 31112, - './pda/pda_mule.js': 31112, - './pda/pda_nanobank': 2817, - './pda/pda_nanobank.js': 2817, - './pda/pda_notes': 66621, - './pda/pda_notes.js': 66621, - './pda/pda_power': 96490, - './pda/pda_power.js': 96490, - './pda/pda_secbot': 36436, - './pda/pda_secbot.js': 36436, - './pda/pda_security': 55244, - './pda/pda_security.js': 55244, - './pda/pda_signaler': 23470, - './pda/pda_signaler.js': 23470, - './pda/pda_status_display': 43085, - './pda/pda_status_display.js': 43085, - './pda/pda_supplyrecords': 26948, - './pda/pda_supplyrecords.js': 26948, - }; - function a(o) { - var m = t(o); - return n(m); - } - function t(o) { - if (!n.o(e, o)) { - var m = new Error("Cannot find module '" + o + "'"); - throw ((m.code = 'MODULE_NOT_FOUND'), m); - } - return e[o]; - } - (a.keys = function () { - return Object.keys(e); - }), - (a.resolve = t), - (L.exports = a), - (a.id = 8156); - }, - 69321: function (L, r, n) { - var e = { - './Blink.stories.js': 90969, - './BlockQuote.stories.js': 22030, - './Box.stories.js': 35286, - './Button.stories.js': 38465, - './ByondUi.stories.js': 16748, - './Collapsible.stories.js': 76475, - './Flex.stories.js': 28994, - './Input.stories.js': 25462, - './Popper.stories.js': 97028, - './ProgressBar.stories.js': 85266, - './Stack.stories.js': 36216, - './Storage.stories.js': 22338, - './Tabs.stories.js': 88446, - './Themes.stories.js': 2938, - './Tooltip.stories.js': 54212, - }; - function a(o) { - var m = t(o); - return n(m); - } - function t(o) { - if (!n.o(e, o)) { - var m = new Error("Cannot find module '" + o + "'"); - throw ((m.code = 'MODULE_NOT_FOUND'), m); - } - return e[o]; - } - (a.keys = function () { - return Object.keys(e); - }), - (a.resolve = t), - (L.exports = a), - (a.id = 69321); - }, - 79474: function (L, r, n) { - 'use strict'; - var e = n(53664), - a = n(36787), - t = TypeError; - L.exports = function (o) { - if (e(o)) return o; - throw new t(a(o) + ' is not a function'); - }; - }, - 48218: function (L, r, n) { - 'use strict'; - var e = n(49632), - a = n(36787), - t = TypeError; - L.exports = function (o) { - if (e(o)) return o; - throw new t(a(o) + ' is not a constructor'); - }; - }, - 30907: function (L, r, n) { - 'use strict'; - var e = n(62600), - a = String, - t = TypeError; - L.exports = function (o) { - if (e(o)) return o; - throw new t("Can't set " + a(o) + ' as a prototype'); - }; - }, - 98759: function (L, r, n) { - 'use strict'; - var e = n(95558), - a = n(15439), - t = n(8165).f, - o = e('unscopables'), - m = Array.prototype; - m[o] === void 0 && t(m, o, { configurable: !0, value: a(null) }), - (L.exports = function (N) { - m[o][N] = !0; - }); - }, - 47158: function (L, r, n) { - 'use strict'; - var e = n(13300).charAt; - L.exports = function (a, t, o) { - return t + (o ? e(a, t).length : 1); - }; - }, - 14434: function (L, r, n) { - 'use strict'; - var e = n(54341), - a = TypeError; - L.exports = function (t, o) { - if (e(o, t)) return t; - throw new a('Incorrect invocation'); - }; - }, - 45418: function (L, r, n) { - 'use strict'; - var e = n(66379), - a = String, - t = TypeError; - L.exports = function (o) { - if (e(o)) return o; - throw new t(a(o) + ' is not an object'); - }; - }, - 11559: function (L) { - 'use strict'; - L.exports = - typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; - }, - 8685: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = e(function () { - if (typeof ArrayBuffer == 'function') { - var a = new ArrayBuffer(8); - Object.isExtensible(a) && - Object.defineProperty(a, 'a', { value: 8 }); - } - }); - }, - 30432: function (L, r, n) { - 'use strict'; - var e = n(11559), - a = n(16361), - t = n(26856), - o = n(53664), - m = n(66379), - N = n(3302), - y = n(48615), - S = n(36787), - k = n(21650), - p = n(60855), - l = n(57301), - c = n(54341), - f = n(56379), - i = n(91420), - u = n(95558), - s = n(76246), - d = n(4471), - C = d.enforce, - g = d.get, - v = t.Int8Array, - h = v && v.prototype, - V = t.Uint8ClampedArray, - b = V && V.prototype, - B = v && f(v), - I = h && f(h), - w = Object.prototype, - T = t.TypeError, - A = u('toStringTag'), - x = s('TYPED_ARRAY_TAG'), - E = 'TypedArrayConstructor', - P = e && !!i && y(t.opera) !== 'Opera', - D = !1, - M, - O, - j, - F = { - Int8Array: 1, - Uint8Array: 1, - Uint8ClampedArray: 1, - Int16Array: 2, - Uint16Array: 2, - Int32Array: 4, - Uint32Array: 4, - Float32Array: 4, - Float64Array: 8, - }, - U = { BigInt64Array: 8, BigUint64Array: 8 }, - _ = (function () { - function ae(se) { - if (!m(se)) return !1; - var pe = y(se); - return pe === 'DataView' || N(F, pe) || N(U, pe); - } - return ae; - })(), - z = function ae(se) { - var pe = f(se); - if (m(pe)) { - var ye = g(pe); - return ye && N(ye, E) ? ye[E] : ae(pe); - } - }, - H = function (se) { - if (!m(se)) return !1; - var pe = y(se); - return N(F, pe) || N(U, pe); - }, - $ = function (se) { - if (H(se)) return se; - throw new T('Target is not a typed array'); - }, - Y = function (se) { - if (o(se) && (!i || c(B, se))) return se; - throw new T(S(se) + ' is not a typed array constructor'); - }, - X = function (se, pe, ye, Be) { - if (a) { - if (ye) - for (var he in F) { - var oe = t[he]; - if (oe && N(oe.prototype, se)) - try { - delete oe.prototype[se]; - } catch (Z) { - try { - oe.prototype[se] = pe; - } catch (q) {} - } - } - (!I[se] || ye) && p(I, se, ye ? pe : (P && h[se]) || pe, Be); - } - }, - re = function (se, pe, ye) { - var Be, he; - if (a) { - if (i) { - if (ye) { - for (Be in F) - if (((he = t[Be]), he && N(he, se))) - try { - delete he[se]; - } catch (oe) {} - } - if (!B[se] || ye) - try { - return p(B, se, ye ? pe : (P && B[se]) || pe); - } catch (oe) {} - else return; - } - for (Be in F) - (he = t[Be]), he && (!he[se] || ye) && p(he, se, pe); - } - }; - for (M in F) - (O = t[M]), (j = O && O.prototype), j ? (C(j)[E] = O) : (P = !1); - for (M in U) (O = t[M]), (j = O && O.prototype), j && (C(j)[E] = O); - if ( - (!P || !o(B) || B === Function.prototype) && - ((B = (function () { - function ae() { - throw new T('Incorrect invocation'); - } - return ae; - })()), - P) - ) - for (M in F) t[M] && i(t[M], B); - if ((!P || !I || I === w) && ((I = B.prototype), P)) - for (M in F) t[M] && i(t[M].prototype, I); - if ((P && f(b) !== I && i(b, I), a && !N(I, A))) { - (D = !0), - l(I, A, { - configurable: !0, - get: (function () { - function ae() { - return m(this) ? this[x] : void 0; - } - return ae; - })(), - }); - for (M in F) t[M] && k(t[M], x, M); - } - L.exports = { - NATIVE_ARRAY_BUFFER_VIEWS: P, - TYPED_ARRAY_TAG: D && x, - aTypedArray: $, - aTypedArrayConstructor: Y, - exportTypedArrayMethod: X, - exportTypedArrayStaticMethod: re, - getTypedArrayConstructor: z, - isView: _, - isTypedArray: H, - TypedArray: B, - TypedArrayPrototype: I, - }; - }, - 31284: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(72908), - t = n(16361), - o = n(11559), - m = n(15340), - N = n(21650), - y = n(57301), - S = n(26148), - k = n(13586), - p = n(14434), - l = n(84501), - c = n(74369), - f = n(28968), - i = n(48705), - u = n(48350), - s = n(56379), - d = n(91420), - C = n(39948), - g = n(31170), - v = n(43405), - h = n(83826), - V = n(15676), - b = n(4471), - B = m.PROPER, - I = m.CONFIGURABLE, - w = 'ArrayBuffer', - T = 'DataView', - A = 'prototype', - x = 'Wrong length', - E = 'Wrong index', - P = b.getterFor(w), - D = b.getterFor(T), - M = b.set, - O = e[w], - j = O, - F = j && j[A], - U = e[T], - _ = U && U[A], - z = Object.prototype, - H = e.Array, - $ = e.RangeError, - Y = a(C), - X = a([].reverse), - re = u.pack, - ae = u.unpack, - se = function (ge) { - return [ge & 255]; - }, - pe = function (ge) { - return [ge & 255, (ge >> 8) & 255]; - }, - ye = function (ge) { - return [ - ge & 255, - (ge >> 8) & 255, - (ge >> 16) & 255, - (ge >> 24) & 255, - ]; - }, - Be = function (ge) { - return (ge[3] << 24) | (ge[2] << 16) | (ge[1] << 8) | ge[0]; - }, - he = function (ge) { - return re(i(ge), 23, 4); - }, - oe = function (ge) { - return re(ge, 52, 8); - }, - Z = function (ge, ke, ve) { - y(ge[A], ke, { - configurable: !0, - get: (function () { - function Se() { - return ve(this)[ke]; - } - return Se; - })(), - }); - }, - q = function (ge, ke, ve, Se) { - var we = D(ge), - xe = f(ve), - Oe = !!Se; - if (xe + ke > we.byteLength) throw new $(E); - var We = we.bytes, - Ve = xe + we.byteOffset, - ce = g(We, Ve, Ve + ke); - return Oe ? ce : X(ce); - }, - ue = function (ge, ke, ve, Se, we, xe) { - var Oe = D(ge), - We = f(ve), - Ve = Se(+we), - ce = !!xe; - if (We + ke > Oe.byteLength) throw new $(E); - for ( - var le = Oe.bytes, Ce = We + Oe.byteOffset, de = 0; - de < ke; - de++ - ) - le[Ce + de] = Ve[ce ? de : ke - de - 1]; - }; - if (!o) - (j = (function () { - function fe(ge) { - p(this, F); - var ke = f(ge); - M(this, { type: w, bytes: Y(H(ke), 0), byteLength: ke }), - t || ((this.byteLength = ke), (this.detached = !1)); - } - return fe; - })()), - (F = j[A]), - (U = (function () { - function fe(ge, ke, ve) { - p(this, _), p(ge, F); - var Se = P(ge), - we = Se.byteLength, - xe = l(ke); - if (xe < 0 || xe > we) throw new $('Wrong offset'); - if (((ve = ve === void 0 ? we - xe : c(ve)), xe + ve > we)) - throw new $(x); - M(this, { - type: T, - buffer: ge, - byteLength: ve, - byteOffset: xe, - bytes: Se.bytes, - }), - t || - ((this.buffer = ge), - (this.byteLength = ve), - (this.byteOffset = xe)); - } - return fe; - })()), - (_ = U[A]), - t && - (Z(j, 'byteLength', P), - Z(U, 'buffer', D), - Z(U, 'byteLength', D), - Z(U, 'byteOffset', D)), - S(_, { - getInt8: (function () { - function fe(ge) { - return (q(this, 1, ge)[0] << 24) >> 24; - } - return fe; - })(), - getUint8: (function () { - function fe(ge) { - return q(this, 1, ge)[0]; - } - return fe; - })(), - getInt16: (function () { - function fe(ge) { - var ke = q( - this, - 2, - ge, - arguments.length > 1 ? arguments[1] : !1 - ); - return (((ke[1] << 8) | ke[0]) << 16) >> 16; - } - return fe; - })(), - getUint16: (function () { - function fe(ge) { - var ke = q( - this, - 2, - ge, - arguments.length > 1 ? arguments[1] : !1 - ); - return (ke[1] << 8) | ke[0]; - } - return fe; - })(), - getInt32: (function () { - function fe(ge) { - return Be( - q(this, 4, ge, arguments.length > 1 ? arguments[1] : !1) - ); - } - return fe; - })(), - getUint32: (function () { - function fe(ge) { - return ( - Be( - q(this, 4, ge, arguments.length > 1 ? arguments[1] : !1) - ) >>> 0 - ); - } - return fe; - })(), - getFloat32: (function () { - function fe(ge) { - return ae( - q(this, 4, ge, arguments.length > 1 ? arguments[1] : !1), - 23 - ); - } - return fe; - })(), - getFloat64: (function () { - function fe(ge) { - return ae( - q(this, 8, ge, arguments.length > 1 ? arguments[1] : !1), - 52 - ); - } - return fe; - })(), - setInt8: (function () { - function fe(ge, ke) { - ue(this, 1, ge, se, ke); - } - return fe; - })(), - setUint8: (function () { - function fe(ge, ke) { - ue(this, 1, ge, se, ke); - } - return fe; - })(), - setInt16: (function () { - function fe(ge, ke) { - ue( - this, - 2, - ge, - pe, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - setUint16: (function () { - function fe(ge, ke) { - ue( - this, - 2, - ge, - pe, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - setInt32: (function () { - function fe(ge, ke) { - ue( - this, - 4, - ge, - ye, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - setUint32: (function () { - function fe(ge, ke) { - ue( - this, - 4, - ge, - ye, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - setFloat32: (function () { - function fe(ge, ke) { - ue( - this, - 4, - ge, - he, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - setFloat64: (function () { - function fe(ge, ke) { - ue( - this, - 8, - ge, - oe, - ke, - arguments.length > 2 ? arguments[2] : !1 - ); - } - return fe; - })(), - }); - else { - var me = B && O.name !== w; - !k(function () { - O(1); - }) || - !k(function () { - new O(-1); - }) || - k(function () { - return ( - new O(), new O(1.5), new O(NaN), O.length !== 1 || (me && !I) - ); - }) - ? ((j = (function () { - function fe(ge) { - return p(this, F), v(new O(f(ge)), this, j); - } - return fe; - })()), - (j[A] = F), - (F.constructor = j), - h(j, O)) - : me && I && N(O, 'name', w), - d && s(_) !== z && d(_, z); - var ne = new U(new j(2)), - be = a(_.setInt8); - ne.setInt8(0, 2147483648), - ne.setInt8(1, 2147483649), - (ne.getInt8(0) || !ne.getInt8(1)) && - S( - _, - { - setInt8: (function () { - function fe(ge, ke) { - be(this, ge, (ke << 24) >> 24); - } - return fe; - })(), - setUint8: (function () { - function fe(ge, ke) { - be(this, ge, (ke << 24) >> 24); - } - return fe; - })(), - }, - { unsafe: !0 } - ); - } - V(j, w), V(U, T), (L.exports = { ArrayBuffer: j, DataView: U }); - }, - 28332: function (L, r, n) { - 'use strict'; - var e = n(63549), - a = n(39531), - t = n(83207), - o = n(81245), - m = Math.min; - L.exports = - [].copyWithin || - (function () { - function N(y, S) { - var k = e(this), - p = t(k), - l = a(y, p), - c = a(S, p), - f = arguments.length > 2 ? arguments[2] : void 0, - i = m((f === void 0 ? p : a(f, p)) - c, p - l), - u = 1; - for ( - c < l && l < c + i && ((u = -1), (c += i - 1), (l += i - 1)); - i-- > 0; - - ) - c in k ? (k[l] = k[c]) : o(k, l), (l += u), (c += u); - return k; - } - return N; - })(); - }, - 39948: function (L, r, n) { - 'use strict'; - var e = n(63549), - a = n(39531), - t = n(83207); - L.exports = (function () { - function o(m) { - for ( - var N = e(this), - y = t(N), - S = arguments.length, - k = a(S > 1 ? arguments[1] : void 0, y), - p = S > 2 ? arguments[2] : void 0, - l = p === void 0 ? y : a(p, y); - l > k; - - ) - N[k++] = m; - return N; - } - return o; - })(); - }, - 16856: function (L, r, n) { - 'use strict'; - var e = n(18539).forEach, - a = n(56127), - t = a('forEach'); - L.exports = t - ? [].forEach - : (function () { - function o(m) { - return e( - this, - m, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return o; - })(); - }, - 21465: function (L, r, n) { - 'use strict'; - var e = n(83207); - L.exports = function (a, t, o) { - for ( - var m = 0, N = arguments.length > 2 ? o : e(t), y = new a(N); - N > m; - - ) - y[m] = t[m++]; - return y; - }; - }, - 45056: function (L, r, n) { - 'use strict'; - var e = n(8942), - a = n(20276), - t = n(63549), - o = n(80002), - m = n(48594), - N = n(49632), - y = n(83207), - S = n(80750), - k = n(45731), - p = n(52984), - l = Array; - L.exports = (function () { - function c(f) { - var i = t(f), - u = N(this), - s = arguments.length, - d = s > 1 ? arguments[1] : void 0, - C = d !== void 0; - C && (d = e(d, s > 2 ? arguments[2] : void 0)); - var g = p(i), - v = 0, - h, - V, - b, - B, - I, - w; - if (g && !(this === l && m(g))) - for ( - B = k(i, g), I = B.next, V = u ? new this() : []; - !(b = a(I, B)).done; - v++ - ) - (w = C ? o(B, d, [b.value, v], !0) : b.value), S(V, v, w); - else - for (h = y(i), V = u ? new this(h) : l(h); h > v; v++) - (w = C ? d(i[v], v) : i[v]), S(V, v, w); - return (V.length = v), V; - } - return c; - })(); - }, - 33483: function (L, r, n) { - 'use strict'; - var e = n(54292), - a = n(39531), - t = n(83207), - o = function (N) { - return function (y, S, k) { - var p = e(y), - l = t(p), - c = a(k, l), - f; - if (N && S !== S) { - for (; l > c; ) if (((f = p[c++]), f !== f)) return !0; - } else - for (; l > c; c++) - if ((N || c in p) && p[c] === S) return N || c || 0; - return !N && -1; - }; - }; - L.exports = { includes: o(!0), indexOf: o(!1) }; - }, - 18539: function (L, r, n) { - 'use strict'; - var e = n(8942), - a = n(72908), - t = n(80689), - o = n(63549), - m = n(83207), - N = n(51582), - y = a([].push), - S = function (p) { - var l = p === 1, - c = p === 2, - f = p === 3, - i = p === 4, - u = p === 6, - s = p === 7, - d = p === 5 || u; - return function (C, g, v, h) { - for ( - var V = o(C), - b = t(V), - B = m(b), - I = e(g, v), - w = 0, - T = h || N, - A = l ? T(C, B) : c || s ? T(C, 0) : void 0, - x, - E; - B > w; - w++ - ) - if ((d || w in b) && ((x = b[w]), (E = I(x, w, V)), p)) - if (l) A[w] = E; - else if (E) - switch (p) { - case 3: - return !0; - case 5: - return x; - case 6: - return w; - case 2: - y(A, x); - } - else - switch (p) { - case 4: - return !1; - case 7: - y(A, x); - } - return u ? -1 : f || i ? i : A; - }; - }; - L.exports = { - forEach: S(0), - map: S(1), - filter: S(2), - some: S(3), - every: S(4), - find: S(5), - findIndex: S(6), - filterReject: S(7), - }; - }, - 16400: function (L, r, n) { - 'use strict'; - var e = n(47244), - a = n(54292), - t = n(84501), - o = n(83207), - m = n(56127), - N = Math.min, - y = [].lastIndexOf, - S = !!y && 1 / [1].lastIndexOf(1, -0) < 0, - k = m('lastIndexOf'), - p = S || !k; - L.exports = p - ? (function () { - function l(c) { - if (S) return e(y, this, arguments) || 0; - var f = a(this), - i = o(f), - u = i - 1; - for ( - arguments.length > 1 && (u = N(u, t(arguments[1]))), - u < 0 && (u = i + u); - u >= 0; - u-- - ) - if (u in f && f[u] === c) return u || 0; - return -1; - } - return l; - })() - : y; - }, - 34924: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(95558), - t = n(43541), - o = a('species'); - L.exports = function (m) { - return ( - t >= 51 || - !e(function () { - var N = [], - y = (N.constructor = {}); - return ( - (y[o] = function () { - return { foo: 1 }; - }), - N[m](Boolean).foo !== 1 - ); - }) - ); - }; - }, - 56127: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = function (a, t) { - var o = [][a]; - return ( - !!o && - e(function () { - o.call( - null, - t || - function () { - return 1; - }, - 1 - ); - }) - ); - }; - }, - 58394: function (L, r, n) { - 'use strict'; - var e = n(79474), - a = n(63549), - t = n(80689), - o = n(83207), - m = TypeError, - N = function (S) { - return function (k, p, l, c) { - var f = a(k), - i = t(f), - u = o(f); - e(p); - var s = S ? u - 1 : 0, - d = S ? -1 : 1; - if (l < 2) - for (;;) { - if (s in i) { - (c = i[s]), (s += d); - break; - } - if (((s += d), S ? s < 0 : u <= s)) - throw new m( - 'Reduce of empty array with no initial value' - ); - } - for (; S ? s >= 0 : u > s; s += d) - s in i && (c = p(c, i[s], s, f)); - return c; - }; - }; - L.exports = { left: N(!1), right: N(!0) }; - }, - 10779: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(59882), - t = TypeError, - o = Object.getOwnPropertyDescriptor, - m = - e && - !(function () { - if (this !== void 0) return !0; - try { - Object.defineProperty([], 'length', { writable: !1 }).length = - 1; - } catch (N) { - return N instanceof TypeError; - } - })(); - L.exports = m - ? function (N, y) { - if (a(N) && !o(N, 'length').writable) - throw new t('Cannot set read only .length'); - return (N.length = y); - } - : function (N, y) { - return (N.length = y); - }; - }, - 31170: function (L, r, n) { - 'use strict'; - var e = n(72908); - L.exports = e([].slice); - }, - 91183: function (L, r, n) { - 'use strict'; - var e = n(31170), - a = Math.floor, - t = function o(m, N) { - var y = m.length; - if (y < 8) - for (var S = 1, k, p; S < y; ) { - for (p = S, k = m[S]; p && N(m[p - 1], k) > 0; ) - m[p] = m[--p]; - p !== S++ && (m[p] = k); - } - else - for ( - var l = a(y / 2), - c = o(e(m, 0, l), N), - f = o(e(m, l), N), - i = c.length, - u = f.length, - s = 0, - d = 0; - s < i || d < u; - - ) - m[s + d] = - s < i && d < u - ? N(c[s], f[d]) <= 0 - ? c[s++] - : f[d++] - : s < i - ? c[s++] - : f[d++]; - return m; - }; - L.exports = t; - }, - 6516: function (L, r, n) { - 'use strict'; - var e = n(59882), - a = n(49632), - t = n(66379), - o = n(95558), - m = o('species'), - N = Array; - L.exports = function (y) { - var S; - return ( - e(y) && - ((S = y.constructor), - a(S) && (S === N || e(S.prototype)) - ? (S = void 0) - : t(S) && ((S = S[m]), S === null && (S = void 0))), - S === void 0 ? N : S - ); - }; - }, - 51582: function (L, r, n) { - 'use strict'; - var e = n(6516); - L.exports = function (a, t) { - return new (e(a))(t === 0 ? 0 : t); - }; - }, - 80002: function (L, r, n) { - 'use strict'; - var e = n(45418), - a = n(65169); - L.exports = function (t, o, m, N) { - try { - return N ? o(e(m)[0], m[1]) : o(m); - } catch (y) { - a(t, 'throw', y); - } - }; - }, - 1608: function (L, r, n) { - 'use strict'; - var e = n(95558), - a = e('iterator'), - t = !1; - try { - var o = 0, - m = { - next: (function () { - function N() { - return { done: !!o++ }; - } - return N; - })(), - return: (function () { - function N() { - t = !0; - } - return N; - })(), - }; - (m[a] = function () { - return this; - }), - Array.from(m, function () { - throw 2; - }); - } catch (N) {} - L.exports = function (N, y) { - try { - if (!y && !t) return !1; - } catch (p) { - return !1; - } - var S = !1; - try { - var k = {}; - (k[a] = function () { - return { - next: (function () { - function p() { - return { done: (S = !0) }; - } - return p; - })(), - }; - }), - N(k); - } catch (p) {} - return S; - }; - }, - 8649: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = e({}.toString), - t = e(''.slice); - L.exports = function (o) { - return t(a(o), 8, -1); - }; - }, - 48615: function (L, r, n) { - 'use strict'; - var e = n(41936), - a = n(53664), - t = n(8649), - o = n(95558), - m = o('toStringTag'), - N = Object, - y = - t( - (function () { - return arguments; - })() - ) === 'Arguments', - S = function (p, l) { - try { - return p[l]; - } catch (c) {} - }; - L.exports = e - ? t - : function (k) { - var p, l, c; - return k === void 0 - ? 'Undefined' - : k === null - ? 'Null' - : typeof (l = S((p = N(k)), m)) == 'string' - ? l - : y - ? t(p) - : (c = t(p)) === 'Object' && a(p.callee) - ? 'Arguments' - : c; - }; - }, - 42384: function (L, r, n) { - 'use strict'; - var e = n(15439), - a = n(57301), - t = n(26148), - o = n(8942), - m = n(14434), - N = n(62695), - y = n(20453), - S = n(21436), - k = n(32214), - p = n(92468), - l = n(16361), - c = n(66526).fastKey, - f = n(4471), - i = f.set, - u = f.getterFor; - L.exports = { - getConstructor: (function () { - function s(d, C, g, v) { - var h = d(function (w, T) { - m(w, V), - i(w, { - type: C, - index: e(null), - first: void 0, - last: void 0, - size: 0, - }), - l || (w.size = 0), - N(T) || y(T, w[v], { that: w, AS_ENTRIES: g }); - }), - V = h.prototype, - b = u(C), - B = (function () { - function w(T, A, x) { - var E = b(T), - P = I(T, A), - D, - M; - return ( - P - ? (P.value = x) - : ((E.last = P = - { - index: (M = c(A, !0)), - key: A, - value: x, - previous: (D = E.last), - next: void 0, - removed: !1, - }), - E.first || (E.first = P), - D && (D.next = P), - l ? E.size++ : T.size++, - M !== 'F' && (E.index[M] = P)), - T - ); - } - return w; - })(), - I = (function () { - function w(T, A) { - var x = b(T), - E = c(A), - P; - if (E !== 'F') return x.index[E]; - for (P = x.first; P; P = P.next) - if (P.key === A) return P; - } - return w; - })(); - return ( - t(V, { - clear: (function () { - function w() { - for (var T = this, A = b(T), x = A.first; x; ) - (x.removed = !0), - x.previous && - (x.previous = x.previous.next = void 0), - (x = x.next); - (A.first = A.last = void 0), - (A.index = e(null)), - l ? (A.size = 0) : (T.size = 0); - } - return w; - })(), - delete: (function () { - function w(T) { - var A = this, - x = b(A), - E = I(A, T); - if (E) { - var P = E.next, - D = E.previous; - delete x.index[E.index], - (E.removed = !0), - D && (D.next = P), - P && (P.previous = D), - x.first === E && (x.first = P), - x.last === E && (x.last = D), - l ? x.size-- : A.size--; - } - return !!E; - } - return w; - })(), - forEach: (function () { - function w(T) { - for ( - var A = b(this), - x = o( - T, - arguments.length > 1 ? arguments[1] : void 0 - ), - E; - (E = E ? E.next : A.first); - - ) - for (x(E.value, E.key, this); E && E.removed; ) - E = E.previous; - } - return w; - })(), - has: (function () { - function w(T) { - return !!I(this, T); - } - return w; - })(), - }), - t( - V, - g - ? { - get: (function () { - function w(T) { - var A = I(this, T); - return A && A.value; - } - return w; - })(), - set: (function () { - function w(T, A) { - return B(this, T === 0 ? 0 : T, A); - } - return w; - })(), - } - : { - add: (function () { - function w(T) { - return B(this, (T = T === 0 ? 0 : T), T); - } - return w; - })(), - } - ), - l && - a(V, 'size', { - configurable: !0, - get: (function () { - function w() { - return b(this).size; - } - return w; - })(), - }), - h - ); - } - return s; - })(), - setStrong: (function () { - function s(d, C, g) { - var v = C + ' Iterator', - h = u(C), - V = u(v); - S( - d, - C, - function (b, B) { - i(this, { - type: v, - target: b, - state: h(b), - kind: B, - last: void 0, - }); - }, - function () { - for ( - var b = V(this), B = b.kind, I = b.last; - I && I.removed; - - ) - I = I.previous; - return !b.target || - !(b.last = I = I ? I.next : b.state.first) - ? ((b.target = void 0), k(void 0, !0)) - : k( - B === 'keys' - ? I.key - : B === 'values' - ? I.value - : [I.key, I.value], - !1 - ); - }, - g ? 'entries' : 'values', - !g, - !0 - ), - p(C); - } - return s; - })(), - }; - }, - 19250: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(26148), - t = n(66526).getWeakData, - o = n(14434), - m = n(45418), - N = n(62695), - y = n(66379), - S = n(20453), - k = n(18539), - p = n(3302), - l = n(4471), - c = l.set, - f = l.getterFor, - i = k.find, - u = k.findIndex, - s = e([].splice), - d = 0, - C = function (V) { - return V.frozen || (V.frozen = new g()); - }, - g = function () { - this.entries = []; - }, - v = function (V, b) { - return i(V.entries, function (B) { - return B[0] === b; - }); - }; - (g.prototype = { - get: (function () { - function h(V) { - var b = v(this, V); - if (b) return b[1]; - } - return h; - })(), - has: (function () { - function h(V) { - return !!v(this, V); - } - return h; - })(), - set: (function () { - function h(V, b) { - var B = v(this, V); - B ? (B[1] = b) : this.entries.push([V, b]); - } - return h; - })(), - delete: (function () { - function h(V) { - var b = u(this.entries, function (B) { - return B[0] === V; - }); - return ~b && s(this.entries, b, 1), !!~b; - } - return h; - })(), - }), - (L.exports = { - getConstructor: (function () { - function h(V, b, B, I) { - var w = V(function (E, P) { - o(E, T), - c(E, { type: b, id: d++, frozen: void 0 }), - N(P) || S(P, E[I], { that: E, AS_ENTRIES: B }); - }), - T = w.prototype, - A = f(b), - x = (function () { - function E(P, D, M) { - var O = A(P), - j = t(m(D), !0); - return j === !0 ? C(O).set(D, M) : (j[O.id] = M), P; - } - return E; - })(); - return ( - a(T, { - delete: (function () { - function E(P) { - var D = A(this); - if (!y(P)) return !1; - var M = t(P); - return M === !0 - ? C(D).delete(P) - : M && p(M, D.id) && delete M[D.id]; - } - return E; - })(), - has: (function () { - function E(P) { - var D = A(this); - if (!y(P)) return !1; - var M = t(P); - return M === !0 ? C(D).has(P) : M && p(M, D.id); - } - return E; - })(), - }), - a( - T, - B - ? { - get: (function () { - function E(P) { - var D = A(this); - if (y(P)) { - var M = t(P); - return M === !0 - ? C(D).get(P) - : M - ? M[D.id] - : void 0; - } - } - return E; - })(), - set: (function () { - function E(P, D) { - return x(this, P, D); - } - return E; - })(), - } - : { - add: (function () { - function E(P) { - return x(this, P, !0); - } - return E; - })(), - } - ), - w - ); - } - return h; - })(), - }); - }, - 10609: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(72908), - o = n(23620), - m = n(60855), - N = n(66526), - y = n(20453), - S = n(14434), - k = n(53664), - p = n(62695), - l = n(66379), - c = n(13586), - f = n(1608), - i = n(15676), - u = n(43405); - L.exports = function (s, d, C) { - var g = s.indexOf('Map') !== -1, - v = s.indexOf('Weak') !== -1, - h = g ? 'set' : 'add', - V = a[s], - b = V && V.prototype, - B = V, - I = {}, - w = function (O) { - var j = t(b[O]); - m( - b, - O, - O === 'add' - ? (function () { - function F(U) { - return j(this, U === 0 ? 0 : U), this; - } - return F; - })() - : O === 'delete' - ? function (F) { - return v && !l(F) ? !1 : j(this, F === 0 ? 0 : F); - } - : O === 'get' - ? (function () { - function F(U) { - return v && !l(U) - ? void 0 - : j(this, U === 0 ? 0 : U); - } - return F; - })() - : O === 'has' - ? (function () { - function F(U) { - return v && !l(U) - ? !1 - : j(this, U === 0 ? 0 : U); - } - return F; - })() - : (function () { - function F(U, _) { - return j(this, U === 0 ? 0 : U, _), this; - } - return F; - })() - ); - }, - T = o( - s, - !k(V) || - !( - v || - (b.forEach && - !c(function () { - new V().entries().next(); - })) - ) - ); - if (T) (B = C.getConstructor(d, s, g, h)), N.enable(); - else if (o(s, !0)) { - var A = new B(), - x = A[h](v ? {} : -0, 1) !== A, - E = c(function () { - A.has(1); - }), - P = f(function (M) { - new V(M); - }), - D = - !v && - c(function () { - for (var M = new V(), O = 5; O--; ) M[h](O, O); - return !M.has(-0); - }); - P || - ((B = d(function (M, O) { - S(M, b); - var j = u(new V(), M, B); - return p(O) || y(O, j[h], { that: j, AS_ENTRIES: g }), j; - })), - (B.prototype = b), - (b.constructor = B)), - (E || D) && (w('delete'), w('has'), g && w('get')), - (D || x) && w(h), - v && b.clear && delete b.clear; - } - return ( - (I[s] = B), - e({ global: !0, constructor: !0, forced: B !== V }, I), - i(B, s), - v || C.setStrong(B, s, g), - B - ); - }; - }, - 83826: function (L, r, n) { - 'use strict'; - var e = n(3302), - a = n(53988), - t = n(19765), - o = n(8165); - L.exports = function (m, N, y) { - for (var S = a(N), k = o.f, p = t.f, l = 0; l < S.length; l++) { - var c = S[l]; - !e(m, c) && !(y && e(y, c)) && k(m, c, p(N, c)); - } - }; - }, - 46339: function (L, r, n) { - 'use strict'; - var e = n(95558), - a = e('match'); - L.exports = function (t) { - var o = /./; - try { - '/./'[t](o); - } catch (m) { - try { - return (o[a] = !1), '/./'[t](o); - } catch (N) {} - } - return !1; - }; - }, - 62297: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = !e(function () { - function a() {} - return ( - (a.prototype.constructor = null), - Object.getPrototypeOf(new a()) !== a.prototype - ); - }); - }, - 38017: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(305), - t = n(8758), - o = /"/g, - m = e(''.replace); - L.exports = function (N, y, S, k) { - var p = t(a(N)), - l = '<' + y; - return ( - S !== '' && (l += ' ' + S + '="' + m(t(k), o, '"') + '"'), - l + '>' + p + '' - ); - }; - }, - 32214: function (L) { - 'use strict'; - L.exports = function (r, n) { - return { value: r, done: n }; - }; - }, - 21650: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(8165), - t = n(73970); - L.exports = e - ? function (o, m, N) { - return a.f(o, m, t(1, N)); - } - : function (o, m, N) { - return (o[m] = N), o; - }; - }, - 73970: function (L) { - 'use strict'; - L.exports = function (r, n) { - return { - enumerable: !(r & 1), - configurable: !(r & 2), - writable: !(r & 4), - value: n, - }; - }; - }, - 80750: function (L, r, n) { - 'use strict'; - var e = n(72445), - a = n(8165), - t = n(73970); - L.exports = function (o, m, N) { - var y = e(m); - y in o ? a.f(o, y, t(0, N)) : (o[y] = N); - }; - }, - 20228: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(13586), - t = n(81290).start, - o = RangeError, - m = isFinite, - N = Math.abs, - y = Date.prototype, - S = y.toISOString, - k = e(y.getTime), - p = e(y.getUTCDate), - l = e(y.getUTCFullYear), - c = e(y.getUTCHours), - f = e(y.getUTCMilliseconds), - i = e(y.getUTCMinutes), - u = e(y.getUTCMonth), - s = e(y.getUTCSeconds); - L.exports = - a(function () { - return ( - S.call(new Date(-50000000000001)) !== '0385-07-25T07:06:39.999Z' - ); - }) || - !a(function () { - S.call(new Date(NaN)); - }) - ? (function () { - function d() { - if (!m(k(this))) throw new o('Invalid time value'); - var C = this, - g = l(C), - v = f(C), - h = g < 0 ? '-' : g > 9999 ? '+' : ''; - return ( - h + - t(N(g), h ? 6 : 4, 0) + - '-' + - t(u(C) + 1, 2, 0) + - '-' + - t(p(C), 2, 0) + - 'T' + - t(c(C), 2, 0) + - ':' + - t(i(C), 2, 0) + - ':' + - t(s(C), 2, 0) + - '.' + - t(v, 3, 0) + - 'Z' - ); - } - return d; - })() - : S; - }, - 81603: function (L, r, n) { - 'use strict'; - var e = n(45418), - a = n(56109), - t = TypeError; - L.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); - }; - }, - 57301: function (L, r, n) { - 'use strict'; - var e = n(40773), - a = n(8165); - L.exports = function (t, o, m) { - return ( - m.get && e(m.get, o, { getter: !0 }), - m.set && e(m.set, o, { setter: !0 }), - a.f(t, o, m) - ); - }; - }, - 60855: function (L, r, n) { - 'use strict'; - var e = n(53664), - a = n(8165), - t = n(40773), - o = n(17553); - L.exports = function (m, N, y, S) { - S || (S = {}); - var k = S.enumerable, - p = S.name !== void 0 ? S.name : N; - if ((e(y) && t(y, p, S), S.global)) k ? (m[N] = y) : o(N, y); - else { - try { - S.unsafe ? m[N] && (k = !0) : delete m[N]; - } catch (l) {} - k - ? (m[N] = y) - : a.f(m, N, { - value: y, - enumerable: !1, - configurable: !S.nonConfigurable, - writable: !S.nonWritable, - }); - } - return m; - }; - }, - 26148: function (L, r, n) { - 'use strict'; - var e = n(60855); - L.exports = function (a, t, o) { - for (var m in t) e(a, m, t[m], o); - return a; - }; - }, - 17553: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = Object.defineProperty; - L.exports = function (t, o) { - try { - a(e, t, { value: o, configurable: !0, writable: !0 }); - } catch (m) { - e[t] = o; - } - return o; - }; - }, - 81245: function (L, r, n) { - 'use strict'; - var e = n(36787), - a = TypeError; - L.exports = function (t, o) { - if (!delete t[o]) - throw new a('Cannot delete property ' + e(o) + ' of ' + e(t)); - }; - }, - 16361: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = !e(function () { - return ( - Object.defineProperty({}, 1, { - get: (function () { - function a() { - return 7; - } - return a; - })(), - })[1] !== 7 - ); - }); - }, - 55642: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(66379), - t = e.document, - o = a(t) && a(t.createElement); - L.exports = function (m) { - return o ? t.createElement(m) : {}; - }; - }, - 54579: function (L) { - 'use strict'; - var r = TypeError, - n = 9007199254740991; - L.exports = function (e) { - if (e > n) throw r('Maximum allowed index exceeded'); - return e; - }; - }, - 31574: function (L, r, n) { - 'use strict'; - var e = n(74247), - a = e.match(/firefox\/(\d+)/i); - L.exports = !!a && +a[1]; - }, - 52460: function (L, r, n) { - 'use strict'; - var e = n(53437), - a = n(86727); - L.exports = - !e && - !a && - typeof window == 'object' && - typeof document == 'object'; - }, - 68261: function (L) { - 'use strict'; - L.exports = - typeof Bun == 'function' && Bun && typeof Bun.version == 'string'; - }, - 53437: function (L) { - 'use strict'; - L.exports = - typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; - }, - 88836: function (L, r, n) { - 'use strict'; - var e = n(74247); - L.exports = /MSIE|Trident/.test(e); - }, - 79034: function (L, r, n) { - 'use strict'; - var e = n(74247); - L.exports = - /ipad|iphone|ipod/i.test(e) && typeof Pebble != 'undefined'; - }, - 25184: function (L, r, n) { - 'use strict'; - var e = n(74247); - L.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(e); - }, - 86727: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(8649); - L.exports = a(e.process) === 'process'; - }, - 71979: function (L, r, n) { - 'use strict'; - var e = n(74247); - L.exports = /web0s(?!.*chrome)/i.test(e); - }, - 74247: function (L) { - 'use strict'; - L.exports = - (typeof navigator != 'undefined' && String(navigator.userAgent)) || - ''; - }, - 43541: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(74247), - t = e.process, - o = e.Deno, - m = (t && t.versions) || (o && o.version), - N = m && m.v8, - y, - S; - N && - ((y = N.split('.')), - (S = y[0] > 0 && y[0] < 4 ? 1 : +(y[0] + y[1]))), - !S && - a && - ((y = a.match(/Edge\/(\d+)/)), - (!y || y[1] >= 74) && - ((y = a.match(/Chrome\/(\d+)/)), y && (S = +y[1]))), - (L.exports = S); - }, - 27204: function (L, r, n) { - 'use strict'; - var e = n(74247), - a = e.match(/AppleWebKit\/(\d+)\./); - L.exports = !!a && +a[1]; - }, - 38139: function (L) { - 'use strict'; - L.exports = [ - 'constructor', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'toLocaleString', - 'toString', - 'valueOf', - ]; - }, - 3116: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(19765).f, - t = n(21650), - o = n(60855), - m = n(17553), - N = n(83826), - y = n(23620); - L.exports = function (S, k) { - var p = S.target, - l = S.global, - c = S.stat, - f, - i, - u, - s, - d, - C; - if ( - (l - ? (i = e) - : c - ? (i = e[p] || m(p, {})) - : (i = (e[p] || {}).prototype), - i) - ) - for (u in k) { - if ( - ((d = k[u]), - S.dontCallGetSet - ? ((C = a(i, u)), (s = C && C.value)) - : (s = i[u]), - (f = y(l ? u : p + (c ? '.' : '#') + u, S.forced)), - !f && s !== void 0) - ) { - if (typeof d == typeof s) continue; - N(d, s); - } - (S.sham || (s && s.sham)) && t(d, 'sham', !0), o(i, u, d, S); - } - }; - }, - 13586: function (L) { - 'use strict'; - L.exports = function (r) { - try { - return !!r(); - } catch (n) { - return !0; - } - }; - }, - 18690: function (L, r, n) { - 'use strict'; - n(72941); - var e = n(69935), - a = n(60855), - t = n(59049), - o = n(13586), - m = n(95558), - N = n(21650), - y = m('species'), - S = RegExp.prototype; - L.exports = function (k, p, l, c) { - var f = m(k), - i = !o(function () { - var C = {}; - return ( - (C[f] = function () { - return 7; - }), - ''[k](C) !== 7 - ); - }), - u = - i && - !o(function () { - var C = !1, - g = /a/; - return ( - k === 'split' && - ((g = {}), - (g.constructor = {}), - (g.constructor[y] = function () { - return g; - }), - (g.flags = ''), - (g[f] = /./[f])), - (g.exec = function () { - return (C = !0), null; - }), - g[f](''), - !C - ); - }); - if (!i || !u || l) { - var s = e(/./[f]), - d = p(f, ''[k], function (C, g, v, h, V) { - var b = e(C), - B = g.exec; - return B === t || B === S.exec - ? i && !V - ? { done: !0, value: s(g, v, h) } - : { done: !0, value: b(v, g, h) } - : { done: !1 }; - }); - a(String.prototype, k, d[0]), a(S, f, d[1]); - } - c && N(S[f], 'sham', !0); - }; - }, - 73132: function (L, r, n) { - 'use strict'; - var e = n(59882), - a = n(83207), - t = n(54579), - o = n(8942), - m = function N(y, S, k, p, l, c, f, i) { - for (var u = l, s = 0, d = f ? o(f, i) : !1, C, g; s < p; ) - s in k && - ((C = d ? d(k[s], s, S) : k[s]), - c > 0 && e(C) - ? ((g = a(C)), (u = N(y, S, C, g, u, c - 1) - 1)) - : (t(u + 1), (y[u] = C)), - u++), - s++; - return u; - }; - L.exports = m; - }, - 58199: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = !e(function () { - return Object.isExtensible(Object.preventExtensions({})); - }); - }, - 47244: function (L, r, n) { - 'use strict'; - var e = n(86678), - a = Function.prototype, - t = a.apply, - o = a.call; - L.exports = - (typeof Reflect == 'object' && Reflect.apply) || - (e - ? o.bind(t) - : function () { - return o.apply(t, arguments); - }); - }, - 8942: function (L, r, n) { - 'use strict'; - var e = n(69935), - a = n(79474), - t = n(86678), - o = e(e.bind); - L.exports = function (m, N) { - return ( - a(m), - N === void 0 - ? m - : t - ? o(m, N) - : function () { - return m.apply(N, arguments); - } - ); - }; - }, - 86678: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = !e(function () { - var a = function () {}.bind(); - return typeof a != 'function' || a.hasOwnProperty('prototype'); - }); - }, - 82060: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(79474), - t = n(66379), - o = n(3302), - m = n(31170), - N = n(86678), - y = Function, - S = e([].concat), - k = e([].join), - p = {}, - l = function (f, i, u) { - if (!o(p, i)) { - for (var s = [], d = 0; d < i; d++) s[d] = 'a[' + d + ']'; - p[i] = y('C,a', 'return new C(' + k(s, ',') + ')'); - } - return p[i](f, u); - }; - L.exports = N - ? y.bind - : (function () { - function c(f) { - var i = a(this), - u = i.prototype, - s = m(arguments, 1), - d = (function () { - function C() { - var g = S(s, m(arguments)); - return this instanceof d - ? l(i, g.length, g) - : i.apply(f, g); - } - return C; - })(); - return t(u) && (d.prototype = u), d; - } - return c; - })(); - }, - 20276: function (L, r, n) { - 'use strict'; - var e = n(86678), - a = Function.prototype.call; - L.exports = e - ? a.bind(a) - : function () { - return a.apply(a, arguments); - }; - }, - 15340: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(3302), - t = Function.prototype, - o = e && Object.getOwnPropertyDescriptor, - m = a(t, 'name'), - N = - m && - (function () { - function S() {} - return S; - })().name === 'something', - y = m && (!e || (e && o(t, 'name').configurable)); - L.exports = { EXISTS: m, PROPER: N, CONFIGURABLE: y }; - }, - 53715: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(79474); - L.exports = function (t, o, m) { - try { - return e(a(Object.getOwnPropertyDescriptor(t, o)[m])); - } catch (N) {} - }; - }, - 69935: function (L, r, n) { - 'use strict'; - var e = n(8649), - a = n(72908); - L.exports = function (t) { - if (e(t) === 'Function') return a(t); - }; - }, - 72908: function (L, r, n) { - 'use strict'; - var e = n(86678), - a = Function.prototype, - t = a.call, - o = e && a.bind.bind(t, t); - L.exports = e - ? o - : function (m) { - return function () { - return t.apply(m, arguments); - }; - }; - }, - 22070: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(53664), - t = function (m) { - return a(m) ? m : void 0; - }; - L.exports = function (o, m) { - return arguments.length < 2 ? t(e[o]) : e[o] && e[o][m]; - }; - }, - 52984: function (L, r, n) { - 'use strict'; - var e = n(48615), - a = n(76540), - t = n(62695), - o = n(47730), - m = n(95558), - N = m('iterator'); - L.exports = function (y) { - if (!t(y)) return a(y, N) || a(y, '@@iterator') || o[e(y)]; - }; - }, - 45731: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(79474), - t = n(45418), - o = n(36787), - m = n(52984), - N = TypeError; - L.exports = function (y, S) { - var k = arguments.length < 2 ? m(y) : S; - if (a(k)) return t(e(k, y)); - throw new N(o(y) + ' is not iterable'); - }; - }, - 58226: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(59882), - t = n(53664), - o = n(8649), - m = n(8758), - N = e([].push); - L.exports = function (y) { - if (t(y)) return y; - if (a(y)) { - for (var S = y.length, k = [], p = 0; p < S; p++) { - var l = y[p]; - typeof l == 'string' - ? N(k, l) - : (typeof l == 'number' || - o(l) === 'Number' || - o(l) === 'String') && - N(k, m(l)); - } - var c = k.length, - f = !0; - return function (i, u) { - if (f) return (f = !1), u; - if (a(this)) return u; - for (var s = 0; s < c; s++) if (k[s] === i) return u; - }; - } - }; - }, - 76540: function (L, r, n) { - 'use strict'; - var e = n(79474), - a = n(62695); - L.exports = function (t, o) { - var m = t[o]; - return a(m) ? void 0 : e(m); - }; - }, - 56802: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(63549), - t = Math.floor, - o = e(''.charAt), - m = e(''.replace), - N = e(''.slice), - y = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, - S = /\$([$&'`]|\d{1,2})/g; - L.exports = function (k, p, l, c, f, i) { - var u = l + k.length, - s = c.length, - d = S; - return ( - f !== void 0 && ((f = a(f)), (d = y)), - m(i, d, function (C, g) { - var v; - switch (o(g, 0)) { - case '$': - return '$'; - case '&': - return k; - case '`': - return N(p, 0, l); - case "'": - return N(p, u); - case '<': - v = f[N(g, 1, -1)]; - break; - default: - var h = +g; - if (h === 0) return C; - if (h > s) { - var V = t(h / 10); - return V === 0 - ? C - : V <= s - ? c[V - 1] === void 0 - ? o(g, 1) - : c[V - 1] + o(g, 1) - : C; - } - v = c[h - 1]; - } - return v === void 0 ? '' : v; - }) - ); - }; - }, - 26856: function (L, r, n) { - 'use strict'; - var e = function (t) { - return t && t.Math === Math && t; - }; - L.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')(); - }, - 3302: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(63549), - t = e({}.hasOwnProperty); - L.exports = - Object.hasOwn || - (function () { - function o(m, N) { - return t(a(m), N); - } - return o; - })(); - }, - 51653: function (L) { - 'use strict'; - L.exports = {}; - }, - 66481: function (L) { - 'use strict'; - L.exports = function (r, n) { - try { - arguments.length; - } catch (e) {} - }; - }, - 21474: function (L, r, n) { - 'use strict'; - var e = n(22070); - L.exports = e('document', 'documentElement'); - }, - 16109: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(13586), - t = n(55642); - L.exports = - !e && - !a(function () { - return ( - Object.defineProperty(t('div'), 'a', { - get: (function () { - function o() { - return 7; - } - return o; - })(), - }).a !== 7 - ); - }); - }, - 48350: function (L) { - 'use strict'; - var r = Array, - n = Math.abs, - e = Math.pow, - a = Math.floor, - t = Math.log, - o = Math.LN2, - m = function (S, k, p) { - var l = r(p), - c = p * 8 - k - 1, - f = (1 << c) - 1, - i = f >> 1, - u = k === 23 ? e(2, -24) - e(2, -77) : 0, - s = S < 0 || (S === 0 && 1 / S < 0) ? 1 : 0, - d = 0, - C, - g, - v; - for ( - S = n(S), - S !== S || S === 1 / 0 - ? ((g = S !== S ? 1 : 0), (C = f)) - : ((C = a(t(S) / o)), - (v = e(2, -C)), - S * v < 1 && (C--, (v *= 2)), - C + i >= 1 ? (S += u / v) : (S += u * e(2, 1 - i)), - S * v >= 2 && (C++, (v /= 2)), - C + i >= f - ? ((g = 0), (C = f)) - : C + i >= 1 - ? ((g = (S * v - 1) * e(2, k)), (C += i)) - : ((g = S * e(2, i - 1) * e(2, k)), (C = 0))); - k >= 8; - - ) - (l[d++] = g & 255), (g /= 256), (k -= 8); - for (C = (C << k) | g, c += k; c > 0; ) - (l[d++] = C & 255), (C /= 256), (c -= 8); - return (l[--d] |= s * 128), l; - }, - N = function (S, k) { - var p = S.length, - l = p * 8 - k - 1, - c = (1 << l) - 1, - f = c >> 1, - i = l - 7, - u = p - 1, - s = S[u--], - d = s & 127, - C; - for (s >>= 7; i > 0; ) (d = d * 256 + S[u--]), (i -= 8); - for (C = d & ((1 << -i) - 1), d >>= -i, i += k; i > 0; ) - (C = C * 256 + S[u--]), (i -= 8); - if (d === 0) d = 1 - f; - else { - if (d === c) return C ? NaN : s ? -1 / 0 : 1 / 0; - (C += e(2, k)), (d -= f); - } - return (s ? -1 : 1) * C * e(2, d - k); - }; - L.exports = { pack: m, unpack: N }; - }, - 80689: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(13586), - t = n(8649), - o = Object, - m = e(''.split); - L.exports = a(function () { - return !o('z').propertyIsEnumerable(0); - }) - ? function (N) { - return t(N) === 'String' ? m(N, '') : o(N); - } - : o; - }, - 43405: function (L, r, n) { - 'use strict'; - var e = n(53664), - a = n(66379), - t = n(91420); - L.exports = function (o, m, N) { - var y, S; - return ( - t && - e((y = m.constructor)) && - y !== N && - a((S = y.prototype)) && - S !== N.prototype && - t(o, S), - o - ); - }; - }, - 92004: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(53664), - t = n(70192), - o = e(Function.toString); - a(t.inspectSource) || - (t.inspectSource = function (m) { - return o(m); - }), - (L.exports = t.inspectSource); - }, - 66526: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(51653), - o = n(66379), - m = n(3302), - N = n(8165).f, - y = n(60097), - S = n(31024), - k = n(58221), - p = n(76246), - l = n(58199), - c = !1, - f = p('meta'), - i = 0, - u = function (V) { - N(V, f, { value: { objectID: 'O' + i++, weakData: {} } }); - }, - s = function (V, b) { - if (!o(V)) - return typeof V == 'symbol' - ? V - : (typeof V == 'string' ? 'S' : 'P') + V; - if (!m(V, f)) { - if (!k(V)) return 'F'; - if (!b) return 'E'; - u(V); - } - return V[f].objectID; - }, - d = function (V, b) { - if (!m(V, f)) { - if (!k(V)) return !0; - if (!b) return !1; - u(V); - } - return V[f].weakData; - }, - C = function (V) { - return l && c && k(V) && !m(V, f) && u(V), V; - }, - g = function () { - (v.enable = function () {}), (c = !0); - var V = y.f, - b = a([].splice), - B = {}; - (B[f] = 1), - V(B).length && - ((y.f = function (I) { - for (var w = V(I), T = 0, A = w.length; T < A; T++) - if (w[T] === f) { - b(w, T, 1); - break; - } - return w; - }), - e( - { target: 'Object', stat: !0, forced: !0 }, - { getOwnPropertyNames: S.f } - )); - }, - v = (L.exports = { - enable: g, - fastKey: s, - getWeakData: d, - onFreeze: C, - }); - t[f] = !0; - }, - 4471: function (L, r, n) { - 'use strict'; - var e = n(73844), - a = n(26856), - t = n(66379), - o = n(21650), - m = n(3302), - N = n(70192), - y = n(97223), - S = n(51653), - k = 'Object already initialized', - p = a.TypeError, - l = a.WeakMap, - c, - f, - i, - u = function (v) { - return i(v) ? f(v) : c(v, {}); - }, - s = function (v) { - return function (h) { - var V; - if (!t(h) || (V = f(h)).type !== v) - throw new p('Incompatible receiver, ' + v + ' required'); - return V; - }; - }; - if (e || N.state) { - var d = N.state || (N.state = new l()); - (d.get = d.get), - (d.has = d.has), - (d.set = d.set), - (c = function (v, h) { - if (d.has(v)) throw new p(k); - return (h.facade = v), d.set(v, h), h; - }), - (f = function (v) { - return d.get(v) || {}; - }), - (i = function (v) { - return d.has(v); - }); - } else { - var C = y('state'); - (S[C] = !0), - (c = function (v, h) { - if (m(v, C)) throw new p(k); - return (h.facade = v), o(v, C, h), h; - }), - (f = function (v) { - return m(v, C) ? v[C] : {}; - }), - (i = function (v) { - return m(v, C); - }); - } - L.exports = { set: c, get: f, has: i, enforce: u, getterFor: s }; - }, - 48594: function (L, r, n) { - 'use strict'; - var e = n(95558), - a = n(47730), - t = e('iterator'), - o = Array.prototype; - L.exports = function (m) { - return m !== void 0 && (a.Array === m || o[t] === m); - }; - }, - 59882: function (L, r, n) { - 'use strict'; - var e = n(8649); - L.exports = - Array.isArray || - (function () { - function a(t) { - return e(t) === 'Array'; - } - return a; - })(); - }, - 76567: function (L, r, n) { - 'use strict'; - var e = n(48615); - L.exports = function (a) { - var t = e(a); - return t === 'BigInt64Array' || t === 'BigUint64Array'; - }; - }, - 53664: function (L) { - 'use strict'; - var r = typeof document == 'object' && document.all; - L.exports = - typeof r == 'undefined' && r !== void 0 - ? function (n) { - return typeof n == 'function' || n === r; - } - : function (n) { - return typeof n == 'function'; - }; - }, - 49632: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(13586), - t = n(53664), - o = n(48615), - m = n(22070), - N = n(92004), - y = function () {}, - S = [], - k = m('Reflect', 'construct'), - p = /^\s*(?:class|function)\b/, - l = e(p.exec), - c = !p.test(y), - f = (function () { - function u(s) { - if (!t(s)) return !1; - try { - return k(y, S, s), !0; - } catch (d) { - return !1; - } - } - return u; - })(), - i = (function () { - function u(s) { - if (!t(s)) return !1; - switch (o(s)) { - case 'AsyncFunction': - case 'GeneratorFunction': - case 'AsyncGeneratorFunction': - return !1; - } - try { - return c || !!l(p, N(s)); - } catch (d) { - return !0; - } - } - return u; - })(); - (i.sham = !0), - (L.exports = - !k || - a(function () { - var u; - return ( - f(f.call) || - !f(Object) || - !f(function () { - u = !0; - }) || - u - ); - }) - ? i - : f); - }, - 75129: function (L, r, n) { - 'use strict'; - var e = n(3302); - L.exports = function (a) { - return a !== void 0 && (e(a, 'value') || e(a, 'writable')); - }; - }, - 23620: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(53664), - t = /#|\.prototype\./, - o = function (p, l) { - var c = N[m(p)]; - return c === S ? !0 : c === y ? !1 : a(l) ? e(l) : !!l; - }, - m = (o.normalize = function (k) { - return String(k).replace(t, '.').toLowerCase(); - }), - N = (o.data = {}), - y = (o.NATIVE = 'N'), - S = (o.POLYFILL = 'P'); - L.exports = o; - }, - 76117: function (L, r, n) { - 'use strict'; - var e = n(66379), - a = Math.floor; - L.exports = - Number.isInteger || - (function () { - function t(o) { - return !e(o) && isFinite(o) && a(o) === o; - } - return t; - })(); - }, - 62695: function (L) { - 'use strict'; - L.exports = function (r) { - return r == null; - }; - }, - 66379: function (L, r, n) { - 'use strict'; - var e = n(53664); - L.exports = function (a) { - return typeof a == 'object' ? a !== null : e(a); - }; - }, - 62600: function (L, r, n) { - 'use strict'; - var e = n(66379); - L.exports = function (a) { - return e(a) || a === null; - }; - }, - 90139: function (L) { - 'use strict'; - L.exports = !1; - }, - 28774: function (L, r, n) { - 'use strict'; - var e = n(66379), - a = n(8649), - t = n(95558), - o = t('match'); - L.exports = function (m) { - var N; - return e(m) && ((N = m[o]) !== void 0 ? !!N : a(m) === 'RegExp'); - }; - }, - 43474: function (L, r, n) { - 'use strict'; - var e = n(22070), - a = n(53664), - t = n(54341), - o = n(95343), - m = Object; - L.exports = o - ? function (N) { - return typeof N == 'symbol'; - } - : function (N) { - var y = e('Symbol'); - return a(y) && t(y.prototype, m(N)); - }; - }, - 20453: function (L, r, n) { - 'use strict'; - var e = n(8942), - a = n(20276), - t = n(45418), - o = n(36787), - m = n(48594), - N = n(83207), - y = n(54341), - S = n(45731), - k = n(52984), - p = n(65169), - l = TypeError, - c = function (u, s) { - (this.stopped = u), (this.result = s); - }, - f = c.prototype; - L.exports = function (i, u, s) { - var d = s && s.that, - C = !!(s && s.AS_ENTRIES), - g = !!(s && s.IS_RECORD), - v = !!(s && s.IS_ITERATOR), - h = !!(s && s.INTERRUPTED), - V = e(u, d), - b, - B, - I, - w, - T, - A, - x, - E = function (M) { - return b && p(b, 'normal', M), new c(!0, M); - }, - P = function (M) { - return C - ? (t(M), h ? V(M[0], M[1], E) : V(M[0], M[1])) - : h - ? V(M, E) - : V(M); - }; - if (g) b = i.iterator; - else if (v) b = i; - else { - if (((B = k(i)), !B)) throw new l(o(i) + ' is not iterable'); - if (m(B)) { - for (I = 0, w = N(i); w > I; I++) - if (((T = P(i[I])), T && y(f, T))) return T; - return new c(!1); - } - b = S(i, B); - } - for (A = g ? i.next : b.next; !(x = a(A, b)).done; ) { - try { - T = P(x.value); - } catch (D) { - p(b, 'throw', D); - } - if (typeof T == 'object' && T && y(f, T)) return T; - } - return new c(!1); - }; - }, - 65169: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(45418), - t = n(76540); - L.exports = function (o, m, N) { - var y, S; - a(o); - try { - if (((y = t(o, 'return')), !y)) { - if (m === 'throw') throw N; - return N; - } - y = e(y, o); - } catch (k) { - (S = !0), (y = k); - } - if (m === 'throw') throw N; - if (S) throw y; - return a(y), N; - }; - }, - 41903: function (L, r, n) { - 'use strict'; - var e = n(83665).IteratorPrototype, - a = n(15439), - t = n(73970), - o = n(15676), - m = n(47730), - N = function () { - return this; - }; - L.exports = function (y, S, k, p) { - var l = S + ' Iterator'; - return ( - (y.prototype = a(e, { next: t(+!p, k) })), - o(y, l, !1, !0), - (m[l] = N), - y - ); - }; - }, - 21436: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20276), - t = n(90139), - o = n(15340), - m = n(53664), - N = n(41903), - y = n(56379), - S = n(91420), - k = n(15676), - p = n(21650), - l = n(60855), - c = n(95558), - f = n(47730), - i = n(83665), - u = o.PROPER, - s = o.CONFIGURABLE, - d = i.IteratorPrototype, - C = i.BUGGY_SAFARI_ITERATORS, - g = c('iterator'), - v = 'keys', - h = 'values', - V = 'entries', - b = function () { - return this; - }; - L.exports = function (B, I, w, T, A, x, E) { - N(w, I, T); - var P = function (Y) { - if (Y === A && F) return F; - if (!C && Y && Y in O) return O[Y]; - switch (Y) { - case v: - return (function () { - function X() { - return new w(this, Y); - } - return X; - })(); - case h: - return (function () { - function X() { - return new w(this, Y); - } - return X; - })(); - case V: - return (function () { - function X() { - return new w(this, Y); - } - return X; - })(); - } - return function () { - return new w(this); - }; - }, - D = I + ' Iterator', - M = !1, - O = B.prototype, - j = O[g] || O['@@iterator'] || (A && O[A]), - F = (!C && j) || P(A), - U = (I === 'Array' && O.entries) || j, - _, - z, - H; - if ( - (U && - ((_ = y(U.call(new B()))), - _ !== Object.prototype && - _.next && - (!t && y(_) !== d && (S ? S(_, d) : m(_[g]) || l(_, g, b)), - k(_, D, !0, !0), - t && (f[D] = b))), - u && - A === h && - j && - j.name !== h && - (!t && s - ? p(O, 'name', h) - : ((M = !0), - (F = (function () { - function $() { - return a(j, this); - } - return $; - })()))), - A) - ) - if ( - ((z = { values: P(h), keys: x ? F : P(v), entries: P(V) }), E) - ) - for (H in z) (C || M || !(H in O)) && l(O, H, z[H]); - else e({ target: I, proto: !0, forced: C || M }, z); - return ( - (!t || E) && O[g] !== F && l(O, g, F, { name: A }), (f[I] = F), z - ); - }; - }, - 83665: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(53664), - t = n(66379), - o = n(15439), - m = n(56379), - N = n(60855), - y = n(95558), - S = n(90139), - k = y('iterator'), - p = !1, - l, - c, - f; - [].keys && - ((f = [].keys()), - 'next' in f - ? ((c = m(m(f))), c !== Object.prototype && (l = c)) - : (p = !0)); - var i = - !t(l) || - e(function () { - var u = {}; - return l[k].call(u) !== u; - }); - i ? (l = {}) : S && (l = o(l)), - a(l[k]) || - N(l, k, function () { - return this; - }), - (L.exports = { IteratorPrototype: l, BUGGY_SAFARI_ITERATORS: p }); - }, - 47730: function (L) { - 'use strict'; - L.exports = {}; - }, - 83207: function (L, r, n) { - 'use strict'; - var e = n(74369); - L.exports = function (a) { - return e(a.length); - }; - }, - 40773: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(13586), - t = n(53664), - o = n(3302), - m = n(16361), - N = n(15340).CONFIGURABLE, - y = n(92004), - S = n(4471), - k = S.enforce, - p = S.get, - l = String, - c = Object.defineProperty, - f = e(''.slice), - i = e(''.replace), - u = e([].join), - s = - m && - !a(function () { - return c(function () {}, 'length', { value: 8 }).length !== 8; - }), - d = String(String).split('String'), - C = (L.exports = function (g, v, h) { - f(l(v), 0, 7) === 'Symbol(' && - (v = '[' + i(l(v), /^Symbol\(([^)]*)\)/, '$1') + ']'), - h && h.getter && (v = 'get ' + v), - h && h.setter && (v = 'set ' + v), - (!o(g, 'name') || (N && g.name !== v)) && - (m - ? c(g, 'name', { value: v, configurable: !0 }) - : (g.name = v)), - s && - h && - o(h, 'arity') && - g.length !== h.arity && - c(g, 'length', { value: h.arity }); - try { - h && o(h, 'constructor') && h.constructor - ? m && c(g, 'prototype', { writable: !1 }) - : g.prototype && (g.prototype = void 0); - } catch (b) {} - var V = k(g); - return ( - o(V, 'source') || - (V.source = u(d, typeof v == 'string' ? v : '')), - g - ); - }); - Function.prototype.toString = C( - (function () { - function g() { - return (t(this) && p(this).source) || y(this); - } - return g; - })(), - 'toString' - ); - }, - 80563: function (L) { - 'use strict'; - var r = Math.expm1, - n = Math.exp; - L.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; - }, - 27509: function (L, r, n) { - 'use strict'; - var e = n(30585), - a = Math.abs, - t = 2220446049250313e-31, - o = 1 / t, - m = function (y) { - return y + o - o; - }; - L.exports = function (N, y, S, k) { - var p = +N, - l = a(p), - c = e(p); - if (l < k) return c * m(l / k / y) * k * y; - var f = (1 + y / t) * l, - i = f - (f - l); - return i > S || i !== i ? c * (1 / 0) : c * i; - }; - }, - 48705: function (L, r, n) { - 'use strict'; - var e = n(27509), - a = 11920928955078125e-23, - t = 34028234663852886e22, - o = 11754943508222875e-54; - L.exports = - Math.fround || - (function () { - function m(N) { - return e(N, a, t, o); - } - return m; - })(); - }, - 74347: function (L) { - 'use strict'; - var r = Math.log, - n = Math.LOG10E; - L.exports = - Math.log10 || - (function () { - function e(a) { - return r(a) * n; - } - return e; - })(); - }, - 50169: function (L) { - 'use strict'; - var r = Math.log; - L.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; - })(); - }, - 30585: function (L) { - 'use strict'; - L.exports = - Math.sign || - (function () { - function r(n) { - var e = +n; - return e === 0 || e !== e ? e : e < 0 ? -1 : 1; - } - return r; - })(); - }, - 54037: function (L) { - 'use strict'; - var r = Math.ceil, - n = Math.floor; - L.exports = - Math.trunc || - (function () { - function e(a) { - var t = +a; - return (t > 0 ? n : r)(t); - } - return e; - })(); - }, - 60816: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(8975), - t = n(8942), - o = n(87073).set, - m = n(8274), - N = n(25184), - y = n(79034), - S = n(71979), - k = n(86727), - p = e.MutationObserver || e.WebKitMutationObserver, - l = e.document, - c = e.process, - f = e.Promise, - i = a('queueMicrotask'), - u, - s, - d, - C, - g; - if (!i) { - var v = new m(), - h = function () { - var b, B; - for (k && (b = c.domain) && b.exit(); (B = v.get()); ) - try { - B(); - } catch (I) { - throw (v.head && u(), I); - } - b && b.enter(); - }; - !N && !k && !S && p && l - ? ((s = !0), - (d = l.createTextNode('')), - new p(h).observe(d, { characterData: !0 }), - (u = function () { - d.data = s = !s; - })) - : !y && f && f.resolve - ? ((C = f.resolve(void 0)), - (C.constructor = f), - (g = t(C.then, C)), - (u = function () { - g(h); - })) - : k - ? (u = function () { - c.nextTick(h); - }) - : ((o = t(o, e)), - (u = function () { - o(h); - })), - (i = function (b) { - v.head || u(), v.add(b); - }); - } - L.exports = i; - }, - 14187: function (L, r, n) { - 'use strict'; - var e = n(79474), - a = TypeError, - t = function (m) { - var N, y; - (this.promise = new m(function (S, k) { - if (N !== void 0 || y !== void 0) - throw new a('Bad Promise constructor'); - (N = S), (y = k); - })), - (this.resolve = e(N)), - (this.reject = e(y)); - }; - L.exports.f = function (o) { - return new t(o); - }; - }, - 75816: function (L, r, n) { - 'use strict'; - var e = n(28774), - a = TypeError; - L.exports = function (t) { - if (e(t)) - throw new a("The method doesn't accept regular expressions"); - return t; - }; - }, - 23944: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = e.isFinite; - L.exports = - Number.isFinite || - (function () { - function t(o) { - return typeof o == 'number' && a(o); - } - return t; - })(); - }, - 98973: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(13586), - t = n(72908), - o = n(8758), - m = n(47913).trim, - N = n(47410), - y = t(''.charAt), - S = e.parseFloat, - k = e.Symbol, - p = k && k.iterator, - l = - 1 / S(N + '-0') !== -1 / 0 || - (p && - !a(function () { - S(Object(p)); - })); - L.exports = l - ? (function () { - function c(f) { - var i = m(o(f)), - u = S(i); - return u === 0 && y(i, 0) === '-' ? -0 : u; - } - return c; - })() - : S; - }, - 41148: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(13586), - t = n(72908), - o = n(8758), - m = n(47913).trim, - N = n(47410), - y = e.parseInt, - S = e.Symbol, - k = S && S.iterator, - p = /^[+-]?0x/i, - l = t(p.exec), - c = - y(N + '08') !== 8 || - y(N + '0x16') !== 22 || - (k && - !a(function () { - y(Object(k)); - })); - L.exports = c - ? (function () { - function f(i, u) { - var s = m(o(i)); - return y(s, u >>> 0 || (l(p, s) ? 16 : 10)); - } - return f; - })() - : y; - }, - 23554: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(72908), - t = n(20276), - o = n(13586), - m = n(99869), - N = n(61791), - y = n(10409), - S = n(63549), - k = n(80689), - p = Object.assign, - l = Object.defineProperty, - c = a([].concat); - L.exports = - !p || - o(function () { - if ( - e && - p( - { b: 1 }, - p( - l({}, 'a', { - enumerable: !0, - get: (function () { - function d() { - l(this, 'b', { value: 3, enumerable: !1 }); - } - return d; - })(), - }), - { b: 2 } - ) - ).b !== 1 - ) - return !0; - var f = {}, - i = {}, - u = Symbol('assign detection'), - s = 'abcdefghijklmnopqrst'; - return ( - (f[u] = 7), - s.split('').forEach(function (d) { - i[d] = d; - }), - p({}, f)[u] !== 7 || m(p({}, i)).join('') !== s - ); - }) - ? (function () { - function f(i, u) { - for ( - var s = S(i), - d = arguments.length, - C = 1, - g = N.f, - v = y.f; - d > C; - - ) - for ( - var h = k(arguments[C++]), - V = g ? c(m(h), g(h)) : m(h), - b = V.length, - B = 0, - I; - b > B; - - ) - (I = V[B++]), (!e || t(v, h, I)) && (s[I] = h[I]); - return s; - } - return f; - })() - : p; - }, - 15439: function (L, r, n) { - 'use strict'; - var e = n(45418), - a = n(55119), - t = n(38139), - o = n(51653), - m = n(21474), - N = n(55642), - y = n(97223), - S = '>', - k = '<', - p = 'prototype', - l = 'script', - c = y('IE_PROTO'), - f = function () {}, - i = function (v) { - return k + l + S + v + k + '/' + l + S; - }, - u = function (v) { - v.write(i('')), v.close(); - var h = v.parentWindow.Object; - return (v = null), h; - }, - s = function () { - var v = N('iframe'), - h = 'java' + l + ':', - V; - return ( - (v.style.display = 'none'), - m.appendChild(v), - (v.src = String(h)), - (V = v.contentWindow.document), - V.open(), - V.write(i('document.F=Object')), - V.close(), - V.F - ); - }, - d, - C = function () { - try { - d = new ActiveXObject('htmlfile'); - } catch (h) {} - C = - typeof document != 'undefined' - ? document.domain && d - ? u(d) - : s() - : u(d); - for (var v = t.length; v--; ) delete C[p][t[v]]; - return C(); - }; - (o[c] = !0), - (L.exports = - Object.create || - (function () { - function g(v, h) { - var V; - return ( - v !== null - ? ((f[p] = e(v)), - (V = new f()), - (f[p] = null), - (V[c] = v)) - : (V = C()), - h === void 0 ? V : a.f(V, h) - ); - } - return g; - })()); - }, - 55119: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(87168), - t = n(8165), - o = n(45418), - m = n(54292), - N = n(99869); - r.f = - e && !a - ? Object.defineProperties - : (function () { - function y(S, k) { - o(S); - for ( - var p = m(k), l = N(k), c = l.length, f = 0, i; - c > f; - - ) - t.f(S, (i = l[f++]), p[i]); - return S; - } - return y; - })(); - }, - 8165: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(16109), - t = n(87168), - o = n(45418), - m = n(72445), - N = TypeError, - y = Object.defineProperty, - S = Object.getOwnPropertyDescriptor, - k = 'enumerable', - p = 'configurable', - l = 'writable'; - r.f = e - ? t - ? (function () { - function c(f, i, u) { - if ( - (o(f), - (i = m(i)), - o(u), - typeof f == 'function' && - i === 'prototype' && - 'value' in u && - l in u && - !u[l]) - ) { - var s = S(f, i); - s && - s[l] && - ((f[i] = u.value), - (u = { - configurable: p in u ? u[p] : s[p], - enumerable: k in u ? u[k] : s[k], - writable: !1, - })); - } - return y(f, i, u); - } - return c; - })() - : y - : (function () { - function c(f, i, u) { - if ((o(f), (i = m(i)), o(u), a)) - try { - return y(f, i, u); - } catch (s) {} - if ('get' in u || 'set' in u) - throw new N('Accessors not supported'); - return 'value' in u && (f[i] = u.value), f; - } - return c; - })(); - }, - 19765: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(20276), - t = n(10409), - o = n(73970), - m = n(54292), - N = n(72445), - y = n(3302), - S = n(16109), - k = Object.getOwnPropertyDescriptor; - r.f = e - ? k - : (function () { - function p(l, c) { - if (((l = m(l)), (c = N(c)), S)) - try { - return k(l, c); - } catch (f) {} - if (y(l, c)) return o(!a(t.f, l, c), l[c]); - } - return p; - })(); - }, - 31024: function (L, r, n) { - 'use strict'; - var e = n(8649), - a = n(54292), - t = n(60097).f, - o = n(31170), - m = - typeof window == 'object' && window && Object.getOwnPropertyNames - ? Object.getOwnPropertyNames(window) - : [], - N = function (S) { - try { - return t(S); - } catch (k) { - return o(m); - } - }; - L.exports.f = (function () { - function y(S) { - return m && e(S) === 'Window' ? N(S) : t(a(S)); - } - return y; - })(); - }, - 60097: function (L, r, n) { - 'use strict'; - var e = n(49871), - a = n(38139), - t = a.concat('length', 'prototype'); - r.f = - Object.getOwnPropertyNames || - (function () { - function o(m) { - return e(m, t); - } - return o; - })(); - }, - 61791: function (L, r) { - 'use strict'; - r.f = Object.getOwnPropertySymbols; - }, - 56379: function (L, r, n) { - 'use strict'; - var e = n(3302), - a = n(53664), - t = n(63549), - o = n(97223), - m = n(62297), - N = o('IE_PROTO'), - y = Object, - S = y.prototype; - L.exports = m - ? y.getPrototypeOf - : function (k) { - var p = t(k); - if (e(p, N)) return p[N]; - var l = p.constructor; - return a(l) && p instanceof l - ? l.prototype - : p instanceof y - ? S - : null; - }; - }, - 58221: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(66379), - t = n(8649), - o = n(8685), - m = Object.isExtensible, - N = e(function () { - m(1); - }); - L.exports = - N || o - ? (function () { - function y(S) { - return !a(S) || (o && t(S) === 'ArrayBuffer') - ? !1 - : m - ? m(S) - : !0; - } - return y; - })() - : m; - }, - 54341: function (L, r, n) { - 'use strict'; - var e = n(72908); - L.exports = e({}.isPrototypeOf); - }, - 49871: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(3302), - t = n(54292), - o = n(33483).indexOf, - m = n(51653), - N = e([].push); - L.exports = function (y, S) { - var k = t(y), - p = 0, - l = [], - c; - for (c in k) !a(m, c) && a(k, c) && N(l, c); - for (; S.length > p; ) a(k, (c = S[p++])) && (~o(l, c) || N(l, c)); - return l; - }; - }, - 99869: function (L, r, n) { - 'use strict'; - var e = n(49871), - a = n(38139); - L.exports = - Object.keys || - (function () { - function t(o) { - return e(o, a); - } - return t; - })(); - }, - 10409: function (L, r) { - 'use strict'; - var n = {}.propertyIsEnumerable, - e = Object.getOwnPropertyDescriptor, - a = e && !n.call({ 1: 2 }, 1); - r.f = a - ? (function () { - function t(o) { - var m = e(this, o); - return !!m && m.enumerable; - } - return t; - })() - : n; - }, - 6205: function (L, r, n) { - 'use strict'; - var e = n(90139), - a = n(26856), - t = n(13586), - o = n(27204); - L.exports = - e || - !t(function () { - if (!(o && o < 535)) { - var m = Math.random(); - __defineSetter__.call(null, m, function () {}), delete a[m]; - } - }); - }, - 91420: function (L, r, n) { - 'use strict'; - var e = n(53715), - a = n(45418), - t = n(30907); - L.exports = - Object.setPrototypeOf || - ('__proto__' in {} - ? (function () { - var o = !1, - m = {}, - N; - try { - (N = e(Object.prototype, '__proto__', 'set')), - N(m, []), - (o = m instanceof Array); - } catch (y) {} - return (function () { - function y(S, k) { - return a(S), t(k), o ? N(S, k) : (S.__proto__ = k), S; - } - return y; - })(); - })() - : void 0); - }, - 64266: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(13586), - t = n(72908), - o = n(56379), - m = n(99869), - N = n(54292), - y = n(10409).f, - S = t(y), - k = t([].push), - p = - e && - a(function () { - var c = Object.create(null); - return (c[2] = 2), !S(c, 2); - }), - l = function (f) { - return function (i) { - for ( - var u = N(i), - s = m(u), - d = p && o(u) === null, - C = s.length, - g = 0, - v = [], - h; - C > g; - - ) - (h = s[g++]), - (!e || (d ? h in u : S(u, h))) && - k(v, f ? [h, u[h]] : u[h]); - return v; - }; - }; - L.exports = { entries: l(!0), values: l(!1) }; - }, - 6625: function (L, r, n) { - 'use strict'; - var e = n(41936), - a = n(48615); - L.exports = e - ? {}.toString - : (function () { - function t() { - return '[object ' + a(this) + ']'; - } - return t; - })(); - }, - 56109: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(53664), - t = n(66379), - o = TypeError; - L.exports = function (m, N) { - var y, S; - if ( - (N === 'string' && a((y = m.toString)) && !t((S = e(y, m)))) || - (a((y = m.valueOf)) && !t((S = e(y, m)))) || - (N !== 'string' && a((y = m.toString)) && !t((S = e(y, m)))) - ) - return S; - throw new o("Can't convert object to primitive value"); - }; - }, - 53988: function (L, r, n) { - 'use strict'; - var e = n(22070), - a = n(72908), - t = n(60097), - o = n(61791), - m = n(45418), - N = a([].concat); - L.exports = - e('Reflect', 'ownKeys') || - (function () { - function y(S) { - var k = t.f(m(S)), - p = o.f; - return p ? N(k, p(S)) : k; - } - return y; - })(); - }, - 55601: function (L, r, n) { - 'use strict'; - var e = n(26856); - L.exports = e; - }, - 73034: function (L) { - 'use strict'; - L.exports = function (r) { - try { - return { error: !1, value: r() }; - } catch (n) { - return { error: !0, value: n }; - } - }; - }, - 14657: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(3e3), - t = n(53664), - o = n(23620), - m = n(92004), - N = n(95558), - y = n(52460), - S = n(53437), - k = n(90139), - p = n(43541), - l = a && a.prototype, - c = N('species'), - f = !1, - i = t(e.PromiseRejectionEvent), - u = o('Promise', function () { - var s = m(a), - d = s !== String(a); - if ((!d && p === 66) || (k && !(l.catch && l.finally))) return !0; - if (!p || p < 51 || !/native code/.test(s)) { - var C = new a(function (h) { - h(1); - }), - g = function (V) { - V( - function () {}, - function () {} - ); - }, - v = (C.constructor = {}); - if (((v[c] = g), (f = C.then(function () {}) instanceof g), !f)) - return !0; - } - return !d && (y || S) && !i; - }); - L.exports = { CONSTRUCTOR: u, REJECTION_EVENT: i, SUBCLASSING: f }; - }, - 3e3: function (L, r, n) { - 'use strict'; - var e = n(26856); - L.exports = e.Promise; - }, - 61988: function (L, r, n) { - 'use strict'; - var e = n(45418), - a = n(66379), - t = n(14187); - L.exports = function (o, m) { - if ((e(o), a(m) && m.constructor === o)) return m; - var N = t.f(o), - y = N.resolve; - return y(m), N.promise; - }; - }, - 18182: function (L, r, n) { - 'use strict'; - var e = n(3e3), - a = n(1608), - t = n(14657).CONSTRUCTOR; - L.exports = - t || - !a(function (o) { - e.all(o).then(void 0, function () {}); - }); - }, - 69713: function (L, r, n) { - 'use strict'; - var e = n(8165).f; - L.exports = function (a, t, o) { - o in a || - e(a, o, { - configurable: !0, - get: (function () { - function m() { - return t[o]; - } - return m; - })(), - set: (function () { - function m(N) { - t[o] = N; - } - return m; - })(), - }); - }; - }, - 8274: function (L) { - '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; - })(), - }), - (L.exports = r); - }, - 59833: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(45418), - t = n(53664), - o = n(8649), - m = n(59049), - N = TypeError; - L.exports = function (y, S) { - var k = y.exec; - if (t(k)) { - var p = e(k, y, S); - return p !== null && a(p), p; - } - if (o(y) === 'RegExp') return e(m, y, S); - throw new N('RegExp#exec called on incompatible receiver'); - }; - }, - 59049: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(72908), - t = n(8758), - o = n(41913), - m = n(96472), - N = n(7624), - y = n(15439), - S = n(4471).get, - k = n(18095), - p = n(17329), - l = N('native-string-replace', String.prototype.replace), - c = RegExp.prototype.exec, - f = c, - i = a(''.charAt), - u = a(''.indexOf), - s = a(''.replace), - d = a(''.slice), - C = (function () { - var V = /a/, - b = /b*/g; - return ( - e(c, V, 'a'), - e(c, b, 'a'), - V.lastIndex !== 0 || b.lastIndex !== 0 - ); - })(), - g = m.BROKEN_CARET, - v = /()??/.exec('')[1] !== void 0, - h = C || v || g || k || p; - h && - (f = (function () { - function V(b) { - var B = this, - I = S(B), - w = t(b), - T = I.raw, - A, - x, - E, - P, - D, - M, - O; - if (T) - return ( - (T.lastIndex = B.lastIndex), - (A = e(f, T, w)), - (B.lastIndex = T.lastIndex), - A - ); - var j = I.groups, - F = g && B.sticky, - U = e(o, B), - _ = B.source, - z = 0, - H = w; - if ( - (F && - ((U = s(U, 'y', '')), - u(U, 'g') === -1 && (U += 'g'), - (H = d(w, B.lastIndex)), - B.lastIndex > 0 && - (!B.multiline || - (B.multiline && i(w, B.lastIndex - 1) !== '\n')) && - ((_ = '(?: ' + _ + ')'), (H = ' ' + H), z++), - (x = new RegExp('^(?:' + _ + ')', U))), - v && (x = new RegExp('^' + _ + '$(?!\\s)', U)), - C && (E = B.lastIndex), - (P = e(c, F ? x : B, H)), - F - ? P - ? ((P.input = d(P.input, z)), - (P[0] = d(P[0], z)), - (P.index = B.lastIndex), - (B.lastIndex += P[0].length)) - : (B.lastIndex = 0) - : C && - P && - (B.lastIndex = B.global ? P.index + P[0].length : E), - v && - P && - P.length > 1 && - e(l, P[0], x, function () { - for (D = 1; D < arguments.length - 2; D++) - arguments[D] === void 0 && (P[D] = void 0); - }), - P && j) - ) - for (P.groups = M = y(null), D = 0; D < j.length; D++) - (O = j[D]), (M[O[0]] = P[O[1]]); - return P; - } - return V; - })()), - (L.exports = f); - }, - 41913: function (L, r, n) { - 'use strict'; - var e = n(45418); - L.exports = function () { - var a = e(this), - t = ''; - return ( - a.hasIndices && (t += 'd'), - a.global && (t += 'g'), - a.ignoreCase && (t += 'i'), - a.multiline && (t += 'm'), - a.dotAll && (t += 's'), - a.unicode && (t += 'u'), - a.unicodeSets && (t += 'v'), - a.sticky && (t += 'y'), - t - ); - }; - }, - 13980: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(3302), - t = n(54341), - o = n(41913), - m = RegExp.prototype; - L.exports = function (N) { - var y = N.flags; - return y === void 0 && !('flags' in m) && !a(N, 'flags') && t(m, N) - ? e(o, N) - : y; - }; - }, - 96472: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(26856), - t = a.RegExp, - o = e(function () { - var y = t('a', 'y'); - return (y.lastIndex = 2), y.exec('abcd') !== null; - }), - m = - o || - e(function () { - return !t('a', 'y').sticky; - }), - N = - o || - e(function () { - var y = t('^r', 'gy'); - return (y.lastIndex = 2), y.exec('str') !== null; - }); - L.exports = { BROKEN_CARET: N, MISSED_STICKY: m, UNSUPPORTED_Y: o }; - }, - 18095: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(26856), - t = a.RegExp; - L.exports = e(function () { - var o = t('.', 's'); - return !(o.dotAll && o.test('\n') && o.flags === 's'); - }); - }, - 17329: function (L, r, n) { - 'use strict'; - var e = n(13586), - a = n(26856), - t = a.RegExp; - L.exports = e(function () { - var o = t('(?b)', 'g'); - return ( - o.exec('b').groups.a !== 'b' || 'b'.replace(o, '$c') !== 'bc' - ); - }); - }, - 305: function (L, r, n) { - 'use strict'; - var e = n(62695), - a = TypeError; - L.exports = function (t) { - if (e(t)) throw new a("Can't call method on " + t); - return t; - }; - }, - 8975: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(16361), - t = Object.getOwnPropertyDescriptor; - L.exports = function (o) { - if (!a) return e[o]; - var m = t(e, o); - return m && m.value; - }; - }, - 91935: function (L) { - 'use strict'; - L.exports = - Object.is || - (function () { - function r(n, e) { - return n === e - ? n !== 0 || 1 / n === 1 / e - : n !== n && e !== e; - } - return r; - })(); - }, - 17459: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(47244), - t = n(53664), - o = n(68261), - m = n(74247), - N = n(31170), - y = n(92827), - S = e.Function, - k = - /MSIE .\./.test(m) || - (o && - (function () { - var p = e.Bun.version.split('.'); - return ( - p.length < 3 || - (p[0] === '0' && - (p[1] < 3 || (p[1] === '3' && p[2] === '0'))) - ); - })()); - L.exports = function (p, l) { - var c = l ? 2 : 1; - return k - ? function (f, i) { - var u = y(arguments.length, 1) > c, - s = t(f) ? f : S(f), - d = u ? N(arguments, c) : [], - C = u - ? function () { - a(s, this, d); - } - : s; - return l ? p(C, i) : p(C); - } - : p; - }; - }, - 92468: function (L, r, n) { - 'use strict'; - var e = n(22070), - a = n(57301), - t = n(95558), - o = n(16361), - m = t('species'); - L.exports = function (N) { - var y = e(N); - o && - y && - !y[m] && - a(y, m, { - configurable: !0, - get: (function () { - function S() { - return this; - } - return S; - })(), - }); - }; - }, - 15676: function (L, r, n) { - 'use strict'; - var e = n(8165).f, - a = n(3302), - t = n(95558), - o = t('toStringTag'); - L.exports = function (m, N, y) { - m && !y && (m = m.prototype), - m && !a(m, o) && e(m, o, { configurable: !0, value: N }); - }; - }, - 97223: function (L, r, n) { - 'use strict'; - var e = n(7624), - a = n(76246), - t = e('keys'); - L.exports = function (o) { - return t[o] || (t[o] = a(o)); - }; - }, - 70192: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(17553), - t = '__core-js_shared__', - o = e[t] || a(t, {}); - L.exports = o; - }, - 7624: function (L, r, n) { - 'use strict'; - var e = n(90139), - a = n(70192); - (L.exports = function (t, o) { - return a[t] || (a[t] = o !== void 0 ? o : {}); - })('versions', []).push({ - version: '3.35.0', - mode: e ? 'pure' : 'global', - copyright: '\xA9 2014-2023 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE', - source: 'https://github.com/zloirock/core-js', - }); - }, - 83604: function (L, r, n) { - 'use strict'; - var e = n(45418), - a = n(48218), - t = n(62695), - o = n(95558), - m = o('species'); - L.exports = function (N, y) { - var S = e(N).constructor, - k; - return S === void 0 || t((k = e(S)[m])) ? y : a(k); - }; - }, - 81626: function (L, r, n) { - 'use strict'; - var e = n(13586); - L.exports = function (a) { - return e(function () { - var t = ''[a]('"'); - return t !== t.toLowerCase() || t.split('"').length > 3; - }); - }; - }, - 13300: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(84501), - t = n(8758), - o = n(305), - m = e(''.charAt), - N = e(''.charCodeAt), - y = e(''.slice), - S = function (p) { - return function (l, c) { - var f = t(o(l)), - i = a(c), - u = f.length, - s, - d; - return i < 0 || i >= u - ? p - ? '' - : void 0 - : ((s = N(f, i)), - s < 55296 || - s > 56319 || - i + 1 === u || - (d = N(f, i + 1)) < 56320 || - d > 57343 - ? p - ? m(f, i) - : s - : p - ? y(f, i, i + 2) - : ((s - 55296) << 10) + (d - 56320) + 65536); - }; - }; - L.exports = { codeAt: S(!1), charAt: S(!0) }; - }, - 51468: function (L, r, n) { - 'use strict'; - var e = n(74247); - L.exports = - /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test( - e - ); - }, - 81290: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(74369), - t = n(8758), - o = n(75463), - m = n(305), - N = e(o), - y = e(''.slice), - S = Math.ceil, - k = function (l) { - return function (c, f, i) { - var u = t(m(c)), - s = a(f), - d = u.length, - C = i === void 0 ? ' ' : t(i), - g, - v; - return s <= d || C === '' - ? u - : ((g = s - d), - (v = N(C, S(g / C.length))), - v.length > g && (v = y(v, 0, g)), - l ? u + v : v + u); - }; - }; - L.exports = { start: k(!1), end: k(!0) }; - }, - 75463: function (L, r, n) { - 'use strict'; - var e = n(84501), - a = n(8758), - t = n(305), - o = RangeError; - L.exports = (function () { - function m(N) { - var y = a(t(this)), - S = '', - k = e(N); - if (k < 0 || k === 1 / 0) - throw new o('Wrong number of repetitions'); - for (; k > 0; (k >>>= 1) && (y += y)) k & 1 && (S += y); - return S; - } - return m; - })(); - }, - 45745: function (L, r, n) { - 'use strict'; - var e = n(47913).end, - a = n(15677); - L.exports = a('trimEnd') - ? (function () { - function t() { - return e(this); - } - return t; - })() - : ''.trimEnd; - }, - 15677: function (L, r, n) { - 'use strict'; - var e = n(15340).PROPER, - a = n(13586), - t = n(47410), - o = '\u200B\x85\u180E'; - L.exports = function (m) { - return a(function () { - return !!t[m]() || o[m]() !== o || (e && t[m].name !== m); - }); - }; - }, - 35634: function (L, r, n) { - 'use strict'; - var e = n(47913).start, - a = n(15677); - L.exports = a('trimStart') - ? (function () { - function t() { - return e(this); - } - return t; - })() - : ''.trimStart; - }, - 47913: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(305), - t = n(8758), - o = n(47410), - m = e(''.replace), - N = RegExp('^[' + o + ']+'), - y = RegExp('(^|[^' + o + '])[' + o + ']+$'), - S = function (p) { - return function (l) { - var c = t(a(l)); - return ( - p & 1 && (c = m(c, N, '')), p & 2 && (c = m(c, y, '$1')), c - ); - }; - }; - L.exports = { start: S(1), end: S(2), trim: S(3) }; - }, - 61855: function (L, r, n) { - 'use strict'; - var e = n(43541), - a = n(13586), - t = n(26856), - o = t.String; - L.exports = - !!Object.getOwnPropertySymbols && - !a(function () { - var m = Symbol('symbol detection'); - return ( - !o(m) || - !(Object(m) instanceof Symbol) || - (!Symbol.sham && e && e < 41) - ); - }); - }, - 28952: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(22070), - t = n(95558), - o = n(60855); - L.exports = function () { - var m = a('Symbol'), - N = m && m.prototype, - y = N && N.valueOf, - S = t('toPrimitive'); - N && - !N[S] && - o( - N, - S, - function (k) { - return e(y, this); - }, - { arity: 1 } - ); - }; - }, - 16010: function (L, r, n) { - 'use strict'; - var e = n(61855); - L.exports = e && !!Symbol.for && !!Symbol.keyFor; - }, - 87073: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(47244), - t = n(8942), - o = n(53664), - m = n(3302), - N = n(13586), - y = n(21474), - S = n(31170), - k = n(55642), - p = n(92827), - l = n(25184), - c = n(86727), - f = e.setImmediate, - i = e.clearImmediate, - u = e.process, - s = e.Dispatch, - d = e.Function, - C = e.MessageChannel, - g = e.String, - v = 0, - h = {}, - V = 'onreadystatechange', - b, - B, - I, - w; - N(function () { - b = e.location; - }); - var T = function (D) { - if (m(h, D)) { - var M = h[D]; - delete h[D], M(); - } - }, - A = function (D) { - return function () { - T(D); - }; - }, - x = function (D) { - T(D.data); - }, - E = function (D) { - e.postMessage(g(D), b.protocol + '//' + b.host); - }; - (!f || !i) && - ((f = (function () { - function P(D) { - p(arguments.length, 1); - var M = o(D) ? D : d(D), - O = S(arguments, 1); - return ( - (h[++v] = function () { - a(M, void 0, O); - }), - B(v), - v - ); - } - return P; - })()), - (i = (function () { - function P(D) { - delete h[D]; - } - return P; - })()), - c - ? (B = function (D) { - u.nextTick(A(D)); - }) - : s && s.now - ? (B = function (D) { - s.now(A(D)); - }) - : C && !l - ? ((I = new C()), - (w = I.port2), - (I.port1.onmessage = x), - (B = t(w.postMessage, w))) - : e.addEventListener && - o(e.postMessage) && - !e.importScripts && - b && - b.protocol !== 'file:' && - !N(E) - ? ((B = E), e.addEventListener('message', x, !1)) - : V in k('script') - ? (B = function (D) { - y.appendChild(k('script'))[V] = function () { - y.removeChild(this), T(D); - }; - }) - : (B = function (D) { - setTimeout(A(D), 0); - })), - (L.exports = { set: f, clear: i }); - }, - 7950: function (L, r, n) { - 'use strict'; - var e = n(72908); - L.exports = e((1).valueOf); - }, - 39531: function (L, r, n) { - 'use strict'; - var e = n(84501), - a = Math.max, - t = Math.min; - L.exports = function (o, m) { - var N = e(o); - return N < 0 ? a(N + m, 0) : t(N, m); - }; - }, - 73873: function (L, r, n) { - 'use strict'; - var e = n(9560), - a = TypeError; - L.exports = function (t) { - var o = e(t, 'number'); - if (typeof o == 'number') - throw new a("Can't convert number to bigint"); - return BigInt(o); - }; - }, - 28968: function (L, r, n) { - 'use strict'; - var e = n(84501), - a = n(74369), - t = RangeError; - L.exports = function (o) { - if (o === void 0) return 0; - var m = e(o), - N = a(m); - if (m !== N) throw new t('Wrong length or index'); - return N; - }; - }, - 54292: function (L, r, n) { - 'use strict'; - var e = n(80689), - a = n(305); - L.exports = function (t) { - return e(a(t)); - }; - }, - 84501: function (L, r, n) { - 'use strict'; - var e = n(54037); - L.exports = function (a) { - var t = +a; - return t !== t || t === 0 ? 0 : e(t); - }; - }, - 74369: function (L, r, n) { - 'use strict'; - var e = n(84501), - a = Math.min; - L.exports = function (t) { - return t > 0 ? a(e(t), 9007199254740991) : 0; - }; - }, - 63549: function (L, r, n) { - 'use strict'; - var e = n(305), - a = Object; - L.exports = function (t) { - return a(e(t)); - }; - }, - 45476: function (L, r, n) { - 'use strict'; - var e = n(70685), - a = RangeError; - L.exports = function (t, o) { - var m = e(t); - if (m % o) throw new a('Wrong offset'); - return m; - }; - }, - 70685: function (L, r, n) { - 'use strict'; - var e = n(84501), - a = RangeError; - L.exports = function (t) { - var o = e(t); - if (o < 0) throw new a("The argument can't be less than 0"); - return o; - }; - }, - 9560: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(66379), - t = n(43474), - o = n(76540), - m = n(56109), - N = n(95558), - y = TypeError, - S = N('toPrimitive'); - L.exports = function (k, p) { - if (!a(k) || t(k)) return k; - var l = o(k, S), - c; - if (l) { - if ( - (p === void 0 && (p = 'default'), - (c = e(l, k, p)), - !a(c) || t(c)) - ) - return c; - throw new y("Can't convert object to primitive value"); - } - return p === void 0 && (p = 'number'), m(k, p); - }; - }, - 72445: function (L, r, n) { - 'use strict'; - var e = n(9560), - a = n(43474); - L.exports = function (t) { - var o = e(t, 'string'); - return a(o) ? o : o + ''; - }; - }, - 41936: function (L, r, n) { - 'use strict'; - var e = n(95558), - a = e('toStringTag'), - t = {}; - (t[a] = 'z'), (L.exports = String(t) === '[object z]'); - }, - 8758: function (L, r, n) { - 'use strict'; - var e = n(48615), - a = String; - L.exports = function (t) { - if (e(t) === 'Symbol') - throw new TypeError('Cannot convert a Symbol value to a string'); - return a(t); - }; - }, - 52834: function (L) { - 'use strict'; - var r = Math.round; - L.exports = function (n) { - var e = r(n); - return e < 0 ? 0 : e > 255 ? 255 : e & 255; - }; - }, - 36787: function (L) { - 'use strict'; - var r = String; - L.exports = function (n) { - try { - return r(n); - } catch (e) { - return 'Object'; - } - }; - }, - 43186: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(20276), - o = n(16361), - m = n(45410), - N = n(30432), - y = n(31284), - S = n(14434), - k = n(73970), - p = n(21650), - l = n(76117), - c = n(74369), - f = n(28968), - i = n(45476), - u = n(52834), - s = n(72445), - d = n(3302), - C = n(48615), - g = n(66379), - v = n(43474), - h = n(15439), - V = n(54341), - b = n(91420), - B = n(60097).f, - I = n(12778), - w = n(18539).forEach, - T = n(92468), - A = n(57301), - x = n(8165), - E = n(19765), - P = n(21465), - D = n(4471), - M = n(43405), - O = D.get, - j = D.set, - F = D.enforce, - U = x.f, - _ = E.f, - z = a.RangeError, - H = y.ArrayBuffer, - $ = H.prototype, - Y = y.DataView, - X = N.NATIVE_ARRAY_BUFFER_VIEWS, - re = N.TYPED_ARRAY_TAG, - ae = N.TypedArray, - se = N.TypedArrayPrototype, - pe = N.isTypedArray, - ye = 'BYTES_PER_ELEMENT', - Be = 'Wrong length', - he = function (ne, be) { - A(ne, be, { - configurable: !0, - get: (function () { - function fe() { - return O(this)[be]; - } - return fe; - })(), - }); - }, - oe = function (ne) { - var be; - return ( - V($, ne) || - (be = C(ne)) === 'ArrayBuffer' || - be === 'SharedArrayBuffer' - ); - }, - Z = function (ne, be) { - return pe(ne) && !v(be) && be in ne && l(+be) && be >= 0; - }, - q = (function () { - function me(ne, be) { - return (be = s(be)), Z(ne, be) ? k(2, ne[be]) : _(ne, be); - } - return me; - })(), - ue = (function () { - function me(ne, be, fe) { - return ( - (be = s(be)), - Z(ne, be) && - g(fe) && - d(fe, 'value') && - !d(fe, 'get') && - !d(fe, 'set') && - !fe.configurable && - (!d(fe, 'writable') || fe.writable) && - (!d(fe, 'enumerable') || fe.enumerable) - ? ((ne[be] = fe.value), ne) - : U(ne, be, fe) - ); - } - return me; - })(); - o - ? (X || - ((E.f = q), - (x.f = ue), - he(se, 'buffer'), - he(se, 'byteOffset'), - he(se, 'byteLength'), - he(se, 'length')), - e( - { target: 'Object', stat: !0, forced: !X }, - { getOwnPropertyDescriptor: q, defineProperty: ue } - ), - (L.exports = function (me, ne, be) { - var fe = me.match(/\d+/)[0] / 8, - ge = me + (be ? 'Clamped' : '') + 'Array', - ke = 'get' + me, - ve = 'set' + me, - Se = a[ge], - we = Se, - xe = we && we.prototype, - Oe = {}, - We = function (de, Ne) { - var Ae = O(de); - return Ae.view[ke](Ne * fe + Ae.byteOffset, !0); - }, - Ve = function (de, Ne, Ae) { - var De = O(de); - De.view[ve](Ne * fe + De.byteOffset, be ? u(Ae) : Ae, !0); - }, - ce = function (de, Ne) { - U(de, Ne, { - get: (function () { - function Ae() { - return We(this, Ne); - } - return Ae; - })(), - set: (function () { - function Ae(De) { - return Ve(this, Ne, De); - } - return Ae; - })(), - enumerable: !0, - }); - }; - X - ? m && - ((we = ne(function (Ce, de, Ne, Ae) { - return ( - S(Ce, xe), - M( - (function () { - return g(de) - ? oe(de) - ? Ae !== void 0 - ? new Se(de, i(Ne, fe), Ae) - : Ne !== void 0 - ? new Se(de, i(Ne, fe)) - : new Se(de) - : pe(de) - ? P(we, de) - : t(I, we, de) - : new Se(f(de)); - })(), - Ce, - we - ) - ); - })), - b && b(we, ae), - w(B(Se), function (Ce) { - Ce in we || p(we, Ce, Se[Ce]); - }), - (we.prototype = xe)) - : ((we = ne(function (Ce, de, Ne, Ae) { - S(Ce, xe); - var De = 0, - je = 0, - _e, - Ue, - Ke; - if (!g(de)) - (Ke = f(de)), (Ue = Ke * fe), (_e = new H(Ue)); - else if (oe(de)) { - (_e = de), (je = i(Ne, fe)); - var Ge = de.byteLength; - if (Ae === void 0) { - if (Ge % fe) throw new z(Be); - if (((Ue = Ge - je), Ue < 0)) throw new z(Be); - } else if (((Ue = c(Ae) * fe), Ue + je > Ge)) - throw new z(Be); - Ke = Ue / fe; - } else return pe(de) ? P(we, de) : t(I, we, de); - for ( - j(Ce, { - buffer: _e, - byteOffset: je, - byteLength: Ue, - length: Ke, - view: new Y(_e), - }); - De < Ke; - - ) - ce(Ce, De++); - })), - b && b(we, ae), - (xe = we.prototype = h(se))), - xe.constructor !== we && p(xe, 'constructor', we), - (F(xe).TypedArrayConstructor = we), - re && p(xe, re, ge); - var le = we !== Se; - (Oe[ge] = we), - e({ global: !0, constructor: !0, forced: le, sham: !X }, Oe), - ye in we || p(we, ye, fe), - ye in xe || p(xe, ye, fe), - T(ge); - })) - : (L.exports = function () {}); - }, - 45410: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(13586), - t = n(1608), - o = n(30432).NATIVE_ARRAY_BUFFER_VIEWS, - m = e.ArrayBuffer, - N = e.Int8Array; - L.exports = - !o || - !a(function () { - N(1); - }) || - !a(function () { - new N(-1); - }) || - !t(function (y) { - new N(), new N(null), new N(1.5), new N(y); - }, !0) || - a(function () { - return new N(new m(2), 1, void 0).length !== 1; - }); - }, - 85710: function (L, r, n) { - 'use strict'; - var e = n(21465), - a = n(9230); - L.exports = function (t, o) { - return e(a(t), o); - }; - }, - 12778: function (L, r, n) { - 'use strict'; - var e = n(8942), - a = n(20276), - t = n(48218), - o = n(63549), - m = n(83207), - N = n(45731), - y = n(52984), - S = n(48594), - k = n(76567), - p = n(30432).aTypedArrayConstructor, - l = n(73873); - L.exports = (function () { - function c(f) { - var i = t(this), - u = o(f), - s = arguments.length, - d = s > 1 ? arguments[1] : void 0, - C = d !== void 0, - g = y(u), - v, - h, - V, - b, - B, - I, - w, - T; - if (g && !S(g)) - for (w = N(u, g), T = w.next, u = []; !(I = a(T, w)).done; ) - u.push(I.value); - for ( - C && s > 2 && (d = e(d, arguments[2])), - h = m(u), - V = new (p(i))(h), - b = k(V), - v = 0; - h > v; - v++ - ) - (B = C ? d(u[v], v) : u[v]), (V[v] = b ? l(B) : +B); - return V; - } - return c; - })(); - }, - 9230: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(83604), - t = e.aTypedArrayConstructor, - o = e.getTypedArrayConstructor; - L.exports = function (m) { - return t(a(m, o(m))); - }; - }, - 76246: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = 0, - t = Math.random(), - o = e((1).toString); - L.exports = function (m) { - return 'Symbol(' + (m === void 0 ? '' : m) + ')_' + o(++a + t, 36); - }; - }, - 95343: function (L, r, n) { - 'use strict'; - var e = n(61855); - L.exports = e && !Symbol.sham && typeof Symbol.iterator == 'symbol'; - }, - 87168: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(13586); - L.exports = - e && - a(function () { - return ( - Object.defineProperty(function () {}, 'prototype', { - value: 42, - writable: !1, - }).prototype !== 42 - ); - }); - }, - 92827: function (L) { - 'use strict'; - var r = TypeError; - L.exports = function (n, e) { - if (n < e) throw new r('Not enough arguments'); - return n; - }; - }, - 73844: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(53664), - t = e.WeakMap; - L.exports = a(t) && /native code/.test(String(t)); - }, - 20614: function (L, r, n) { - 'use strict'; - var e = n(55601), - a = n(3302), - t = n(15355), - o = n(8165).f; - L.exports = function (m) { - var N = e.Symbol || (e.Symbol = {}); - a(N, m) || o(N, m, { value: t.f(m) }); - }; - }, - 15355: function (L, r, n) { - 'use strict'; - var e = n(95558); - r.f = e; - }, - 95558: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(7624), - t = n(3302), - o = n(76246), - m = n(61855), - N = n(95343), - y = e.Symbol, - S = a('wks'), - k = N ? y.for || y : (y && y.withoutSetter) || o; - L.exports = function (p) { - return ( - t(S, p) || (S[p] = m && t(y, p) ? y[p] : k('Symbol.' + p)), S[p] - ); - }; - }, - 47410: function (L) { - 'use strict'; - L.exports = - ' \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - }, - 41365: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(31284), - o = n(92468), - m = 'ArrayBuffer', - N = t[m], - y = a[m]; - e( - { global: !0, constructor: !0, forced: y !== N }, - { ArrayBuffer: N } - ), - o(m); - }, - 58874: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(30432), - t = a.NATIVE_ARRAY_BUFFER_VIEWS; - e( - { target: 'ArrayBuffer', stat: !0, forced: !t }, - { isView: a.isView } - ); - }, - 85806: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(69935), - t = n(13586), - o = n(31284), - m = n(45418), - N = n(39531), - y = n(74369), - S = n(83604), - k = o.ArrayBuffer, - p = o.DataView, - l = p.prototype, - c = a(k.prototype.slice), - f = a(l.getUint8), - i = a(l.setUint8), - u = t(function () { - return !new k(2).slice(1, void 0).byteLength; - }); - e( - { target: 'ArrayBuffer', proto: !0, unsafe: !0, forced: u }, - { - slice: (function () { - function s(d, C) { - if (c && C === void 0) return c(m(this), d); - for ( - var g = m(this).byteLength, - v = N(d, g), - h = N(C === void 0 ? g : C, g), - V = new (S(this, k))(y(h - v)), - b = new p(this), - B = new p(V), - I = 0; - v < h; - - ) - i(B, I++, f(b, v++)); - return V; - } - return s; - })(), - } - ); - }, - 75836: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(59882), - o = n(66379), - m = n(63549), - N = n(83207), - y = n(54579), - S = n(80750), - k = n(51582), - p = n(34924), - l = n(95558), - c = n(43541), - f = l('isConcatSpreadable'), - i = - c >= 51 || - !a(function () { - var d = []; - return (d[f] = !1), d.concat()[0] !== d; - }), - u = function (C) { - if (!o(C)) return !1; - var g = C[f]; - return g !== void 0 ? !!g : t(C); - }, - s = !i || !p('concat'); - e( - { target: 'Array', proto: !0, arity: 1, forced: s }, - { - concat: (function () { - function d(C) { - var g = m(this), - v = k(g, 0), - h = 0, - V, - b, - B, - I, - w; - for (V = -1, B = arguments.length; V < B; V++) - if (((w = V === -1 ? g : arguments[V]), u(w))) - for (I = N(w), y(h + I), b = 0; b < I; b++, h++) - b in w && S(v, h, w[b]); - else y(h + 1), S(v, h++, w); - return (v.length = h), v; - } - return d; - })(), - } - ); - }, - 33901: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(28332), - t = n(98759); - e({ target: 'Array', proto: !0 }, { copyWithin: a }), t('copyWithin'); - }, - 85803: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).every, - t = n(56127), - o = t('every'); - e( - { target: 'Array', proto: !0, forced: !o }, - { - every: (function () { - function m(N) { - return a( - this, - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })(), - } - ); - }, - 7216: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(39948), - t = n(98759); - e({ target: 'Array', proto: !0 }, { fill: a }), t('fill'); - }, - 50584: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).filter, - t = n(34924), - o = t('filter'); - e( - { target: 'Array', proto: !0, forced: !o }, - { - filter: (function () { - function m(N) { - return a( - this, - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })(), - } - ); - }, - 25972: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).findIndex, - t = n(98759), - o = 'findIndex', - m = !0; - o in [] && - Array(1)[o](function () { - m = !1; - }), - e( - { target: 'Array', proto: !0, forced: m }, - { - findIndex: (function () { - function N(y) { - return a( - this, - y, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return N; - })(), - } - ), - t(o); - }, - 26632: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).find, - t = n(98759), - o = 'find', - m = !0; - o in [] && - Array(1)[o](function () { - m = !1; - }), - e( - { target: 'Array', proto: !0, forced: m }, - { - find: (function () { - function N(y) { - return a( - this, - y, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return N; - })(), - } - ), - t(o); - }, - 14064: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(73132), - t = n(79474), - o = n(63549), - m = n(83207), - N = n(51582); - e( - { target: 'Array', proto: !0 }, - { - flatMap: (function () { - function y(S) { - var k = o(this), - p = m(k), - l; - return ( - t(S), - (l = N(k, 0)), - (l.length = a( - l, - k, - k, - p, - 0, - 1, - S, - arguments.length > 1 ? arguments[1] : void 0 - )), - l - ); - } - return y; - })(), - } - ); - }, - 55222: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(73132), - t = n(63549), - o = n(83207), - m = n(84501), - N = n(51582); - e( - { target: 'Array', proto: !0 }, - { - flat: (function () { - function y() { - var S = arguments.length ? arguments[0] : void 0, - k = t(this), - p = o(k), - l = N(k, 0); - return ( - (l.length = a(l, k, k, p, 0, S === void 0 ? 1 : m(S))), l - ); - } - return y; - })(), - } - ); - }, - 68616: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16856); - e( - { target: 'Array', proto: !0, forced: [].forEach !== a }, - { forEach: a } - ); - }, - 45168: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45056), - t = n(1608), - o = !t(function (m) { - Array.from(m); - }); - e({ target: 'Array', stat: !0, forced: o }, { from: a }); - }, - 26088: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(33483).includes, - t = n(13586), - o = n(98759), - m = t(function () { - return !Array(1).includes(); - }); - e( - { target: 'Array', proto: !0, forced: m }, - { - includes: (function () { - function N(y) { - return a( - this, - y, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return N; - })(), - } - ), - o('includes'); - }, - 92654: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(69935), - t = n(33483).indexOf, - o = n(56127), - m = a([].indexOf), - N = !!m && 1 / m([1], 1, -0) < 0, - y = N || !o('indexOf'); - e( - { target: 'Array', proto: !0, forced: y }, - { - indexOf: (function () { - function S(k) { - var p = arguments.length > 1 ? arguments[1] : void 0; - return N ? m(this, k, p) || 0 : t(this, k, p); - } - return S; - })(), - } - ); - }, - 58423: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(59882); - e({ target: 'Array', stat: !0 }, { isArray: a }); - }, - 26017: function (L, r, n) { - 'use strict'; - var e = n(54292), - a = n(98759), - t = n(47730), - o = n(4471), - m = n(8165).f, - N = n(21436), - y = n(32214), - S = n(90139), - k = n(16361), - p = 'Array Iterator', - l = o.set, - c = o.getterFor(p); - L.exports = N( - Array, - 'Array', - function (i, u) { - l(this, { type: p, target: e(i), index: 0, kind: u }); - }, - function () { - var i = c(this), - u = i.target, - s = i.index++; - if (!u || s >= u.length) - return (i.target = void 0), y(void 0, !0); - switch (i.kind) { - case 'keys': - return y(s, !1); - case 'values': - return y(u[s], !1); - } - return y([s, u[s]], !1); - }, - 'values' - ); - var f = (t.Arguments = t.Array); - if ( - (a('keys'), - a('values'), - a('entries'), - !S && k && f.name !== 'values') - ) - try { - m(f, 'name', { value: 'values' }); - } catch (i) {} - }, - 37808: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(80689), - o = n(54292), - m = n(56127), - N = a([].join), - y = t !== Object, - S = y || !m('join', ','); - e( - { target: 'Array', proto: !0, forced: S }, - { - join: (function () { - function k(p) { - return N(o(this), p === void 0 ? ',' : p); - } - return k; - })(), - } - ); - }, - 2509: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16400); - e( - { target: 'Array', proto: !0, forced: a !== [].lastIndexOf }, - { lastIndexOf: a } - ); - }, - 2124: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).map, - t = n(34924), - o = t('map'); - e( - { target: 'Array', proto: !0, forced: !o }, - { - map: (function () { - function m(N) { - return a( - this, - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })(), - } - ); - }, - 38196: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(49632), - o = n(80750), - m = Array, - N = a(function () { - function y() {} - return !(m.of.call(y) instanceof y); - }); - e( - { target: 'Array', stat: !0, forced: N }, - { - of: (function () { - function y() { - for ( - var S = 0, - k = arguments.length, - p = new (t(this) ? this : m)(k); - k > S; - - ) - o(p, S, arguments[S++]); - return (p.length = k), p; - } - return y; - })(), - } - ); - }, - 56913: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(58394).right, - t = n(56127), - o = n(43541), - m = n(86727), - N = !m && o > 79 && o < 83, - y = N || !t('reduceRight'); - e( - { target: 'Array', proto: !0, forced: y }, - { - reduceRight: (function () { - function S(k) { - return a( - this, - k, - arguments.length, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return S; - })(), - } - ); - }, - 7731: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(58394).left, - t = n(56127), - o = n(43541), - m = n(86727), - N = !m && o > 79 && o < 83, - y = N || !t('reduce'); - e( - { target: 'Array', proto: !0, forced: y }, - { - reduce: (function () { - function S(k) { - var p = arguments.length; - return a(this, k, p, p > 1 ? arguments[1] : void 0); - } - return S; - })(), - } - ); - }, - 48704: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(59882), - o = a([].reverse), - m = [1, 2]; - e( - { - target: 'Array', - proto: !0, - forced: String(m) === String(m.reverse()), - }, - { - reverse: (function () { - function N() { - return t(this) && (this.length = this.length), o(this); - } - return N; - })(), - } - ); - }, - 24077: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(59882), - t = n(49632), - o = n(66379), - m = n(39531), - N = n(83207), - y = n(54292), - S = n(80750), - k = n(95558), - p = n(34924), - l = n(31170), - c = p('slice'), - f = k('species'), - i = Array, - u = Math.max; - e( - { target: 'Array', proto: !0, forced: !c }, - { - slice: (function () { - function s(d, C) { - var g = y(this), - v = N(g), - h = m(d, v), - V = m(C === void 0 ? v : C, v), - b, - B, - I; - if ( - a(g) && - ((b = g.constructor), - t(b) && (b === i || a(b.prototype)) - ? (b = void 0) - : o(b) && ((b = b[f]), b === null && (b = void 0)), - b === i || b === void 0) - ) - return l(g, h, V); - for ( - B = new (b === void 0 ? i : b)(u(V - h, 0)), I = 0; - h < V; - h++, I++ - ) - h in g && S(B, I, g[h]); - return (B.length = I), B; - } - return s; - })(), - } - ); - }, - 60230: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(18539).some, - t = n(56127), - o = t('some'); - e( - { target: 'Array', proto: !0, forced: !o }, - { - some: (function () { - function m(N) { - return a( - this, - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })(), - } - ); - }, - 43430: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(79474), - o = n(63549), - m = n(83207), - N = n(81245), - y = n(8758), - S = n(13586), - k = n(91183), - p = n(56127), - l = n(31574), - c = n(88836), - f = n(43541), - i = n(27204), - u = [], - s = a(u.sort), - d = a(u.push), - C = S(function () { - u.sort(void 0); - }), - g = S(function () { - u.sort(null); - }), - v = p('sort'), - h = !S(function () { - if (f) return f < 70; - if (!(l && l > 3)) { - if (c) return !0; - if (i) return i < 603; - var B = '', - I, - w, - T, - A; - for (I = 65; I < 76; I++) { - switch (((w = String.fromCharCode(I)), I)) { - case 66: - case 69: - case 70: - case 72: - T = 3; - break; - case 68: - case 71: - T = 4; - break; - default: - T = 2; - } - for (A = 0; A < 47; A++) u.push({ k: w + A, v: T }); - } - for ( - u.sort(function (x, E) { - return E.v - x.v; - }), - A = 0; - A < u.length; - A++ - ) - (w = u[A].k.charAt(0)), - B.charAt(B.length - 1) !== w && (B += w); - return B !== 'DGBEFHACIJK'; - } - }), - V = C || !g || !v || !h, - b = function (I) { - return function (w, T) { - return T === void 0 - ? -1 - : w === void 0 - ? 1 - : I !== void 0 - ? +I(w, T) || 0 - : y(w) > y(T) - ? 1 - : -1; - }; - }; - e( - { target: 'Array', proto: !0, forced: V }, - { - sort: (function () { - function B(I) { - I !== void 0 && t(I); - var w = o(this); - if (h) return I === void 0 ? s(w) : s(w, I); - var T = [], - A = m(w), - x, - E; - for (E = 0; E < A; E++) E in w && d(T, w[E]); - for (k(T, b(I)), x = m(T), E = 0; E < x; ) w[E] = T[E++]; - for (; E < A; ) N(w, E++); - return w; - } - return B; - })(), - } - ); - }, - 53407: function (L, r, n) { - 'use strict'; - var e = n(92468); - e('Array'); - }, - 69220: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(63549), - t = n(39531), - o = n(84501), - m = n(83207), - N = n(10779), - y = n(54579), - S = n(51582), - k = n(80750), - p = n(81245), - l = n(34924), - c = l('splice'), - f = Math.max, - i = Math.min; - e( - { target: 'Array', proto: !0, forced: !c }, - { - splice: (function () { - function u(s, d) { - var C = a(this), - g = m(C), - v = t(s, g), - h = arguments.length, - V, - b, - B, - I, - w, - T; - for ( - h === 0 - ? (V = b = 0) - : h === 1 - ? ((V = 0), (b = g - v)) - : ((V = h - 2), (b = i(f(o(d), 0), g - v))), - y(g + V - b), - B = S(C, b), - I = 0; - I < b; - I++ - ) - (w = v + I), w in C && k(B, I, C[w]); - if (((B.length = b), V < b)) { - for (I = v; I < g - b; I++) - (w = I + b), - (T = I + V), - w in C ? (C[T] = C[w]) : p(C, T); - for (I = g; I > g - b + V; I--) p(C, I - 1); - } else if (V > b) - for (I = g - b; I > v; I--) - (w = I + b - 1), - (T = I + V - 1), - w in C ? (C[T] = C[w]) : p(C, T); - for (I = 0; I < V; I++) C[I + v] = arguments[I + 2]; - return N(C, g - b + V), B; - } - return u; - })(), - } - ); - }, - 55784: function (L, r, n) { - 'use strict'; - var e = n(98759); - e('flatMap'); - }, - 72978: function (L, r, n) { - 'use strict'; - var e = n(98759); - e('flat'); - }, - 42860: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(31284), - t = n(11559); - e( - { global: !0, constructor: !0, forced: !t }, - { DataView: a.DataView } - ); - }, - 3521: function (L, r, n) { - 'use strict'; - n(42860); - }, - 94961: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = Date, - o = a(t.prototype.getTime); - e( - { target: 'Date', stat: !0 }, - { - now: (function () { - function m() { - return o(new t()); - } - return m; - })(), - } - ); - }, - 91777: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20228); - e( - { - target: 'Date', - proto: !0, - forced: Date.prototype.toISOString !== a, - }, - { toISOString: a } - ); - }, - 49615: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(63549), - o = n(9560), - m = a(function () { - return ( - new Date(NaN).toJSON() !== null || - Date.prototype.toJSON.call({ - toISOString: (function () { - function N() { - return 1; - } - return N; - })(), - }) !== 1 - ); - }); - e( - { target: 'Date', proto: !0, arity: 1, forced: m }, - { - toJSON: (function () { - function N(y) { - var S = t(this), - k = o(S, 'number'); - return typeof k == 'number' && !isFinite(k) - ? null - : S.toISOString(); - } - return N; - })(), - } - ); - }, - 70700: function (L, r, n) { - 'use strict'; - var e = n(3302), - a = n(60855), - t = n(81603), - o = n(95558), - m = o('toPrimitive'), - N = Date.prototype; - e(N, m) || a(N, m, t); - }, - 31032: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(60855), - t = Date.prototype, - o = 'Invalid Date', - m = 'toString', - N = e(t[m]), - y = e(t.getTime); - String(new Date(NaN)) !== o && - a( - t, - m, - (function () { - function S() { - var k = y(this); - return k === k ? N(this) : o; - } - return S; - })() - ); - }, - 83329: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(82060); - e( - { target: 'Function', proto: !0, forced: Function.bind !== a }, - { bind: a } - ); - }, - 15700: function (L, r, n) { - 'use strict'; - var e = n(53664), - a = n(66379), - t = n(8165), - o = n(54341), - m = n(95558), - N = n(40773), - y = m('hasInstance'), - S = Function.prototype; - y in S || - t.f(S, y, { - value: N(function (k) { - if (!e(this) || !a(k)) return !1; - var p = this.prototype; - return a(p) ? o(p, k) : k instanceof this; - }, y), - }); - }, - 85783: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(15340).EXISTS, - t = n(72908), - o = n(57301), - m = Function.prototype, - N = t(m.toString), - y = - /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/, - S = t(y.exec), - k = 'name'; - e && - !a && - o(m, k, { - configurable: !0, - get: (function () { - function p() { - try { - return S(y, N(this))[1]; - } catch (l) { - return ''; - } - } - return p; - })(), - }); - }, - 34233: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(22070), - t = n(47244), - o = n(20276), - m = n(72908), - N = n(13586), - y = n(53664), - S = n(43474), - k = n(31170), - p = n(58226), - l = n(61855), - c = String, - f = a('JSON', 'stringify'), - i = m(/./.exec), - u = m(''.charAt), - s = m(''.charCodeAt), - d = m(''.replace), - C = m((1).toString), - g = /[\uD800-\uDFFF]/g, - v = /^[\uD800-\uDBFF]$/, - h = /^[\uDC00-\uDFFF]$/, - V = - !l || - N(function () { - var w = a('Symbol')('stringify detection'); - return ( - f([w]) !== '[null]' || - f({ a: w }) !== '{}' || - f(Object(w)) !== '{}' - ); - }), - b = N(function () { - return ( - f('\uDF06\uD834') !== '"\\udf06\\ud834"' || - f('\uDEAD') !== '"\\udead"' - ); - }), - B = function (T, A) { - var x = k(arguments), - E = p(A); - if (!(!y(E) && (T === void 0 || S(T)))) - return ( - (x[1] = function (P, D) { - if ((y(E) && (D = o(E, this, c(P), D)), !S(D))) return D; - }), - t(f, null, x) - ); - }, - I = function (T, A, x) { - var E = u(x, A - 1), - P = u(x, A + 1); - return (i(v, T) && !i(h, P)) || (i(h, T) && !i(v, E)) - ? '\\u' + C(s(T, 0), 16) - : T; - }; - f && - e( - { target: 'JSON', stat: !0, arity: 3, forced: V || b }, - { - stringify: (function () { - function w(T, A, x) { - var E = k(arguments), - P = t(V ? B : f, null, E); - return b && typeof P == 'string' ? d(P, g, I) : P; - } - return w; - })(), - } - ); - }, - 51430: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(15676); - a(e.JSON, 'JSON', !0); - }, - 88826: function (L, r, n) { - 'use strict'; - var e = n(10609), - a = n(42384); - e( - 'Map', - function (t) { - return (function () { - function o() { - return t(this, arguments.length ? arguments[0] : void 0); - } - return o; - })(); - }, - a - ); - }, - 10944: function (L, r, n) { - 'use strict'; - n(88826); - }, - 36418: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(50169), - t = Math.acosh, - o = Math.log, - m = Math.sqrt, - N = Math.LN2, - y = - !t || - Math.floor(t(Number.MAX_VALUE)) !== 710 || - t(1 / 0) !== 1 / 0; - e( - { target: 'Math', stat: !0, forced: y }, - { - acosh: (function () { - function S(k) { - var p = +k; - return p < 1 - ? NaN - : p > 9490626562425156e-8 - ? o(p) + N - : a(p - 1 + m(p - 1) * m(p + 1)); - } - return S; - })(), - } - ); - }, - 68872: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = Math.asinh, - t = Math.log, - o = Math.sqrt; - function m(y) { - var S = +y; - return !isFinite(S) || S === 0 - ? S - : S < 0 - ? -m(-S) - : t(S + o(S * S + 1)); - } - var N = !(a && 1 / a(0) > 0); - e({ target: 'Math', stat: !0, forced: N }, { asinh: m }); - }, - 93105: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = Math.atanh, - t = Math.log, - o = !(a && 1 / a(-0) < 0); - e( - { target: 'Math', stat: !0, forced: o }, - { - atanh: (function () { - function m(N) { - var y = +N; - return y === 0 ? y : t((1 + y) / (1 - y)) / 2; - } - return m; - })(), - } - ); - }, - 1795: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(30585), - t = Math.abs, - o = Math.pow; - e( - { target: 'Math', stat: !0 }, - { - cbrt: (function () { - function m(N) { - var y = +N; - return a(y) * o(t(y), 0.3333333333333333); - } - return m; - })(), - } - ); - }, - 11121: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = Math.floor, - t = Math.log, - o = Math.LOG2E; - e( - { target: 'Math', stat: !0 }, - { - clz32: (function () { - function m(N) { - var y = N >>> 0; - return y ? 31 - a(t(y + 0.5) * o) : 32; - } - return m; - })(), - } - ); - }, - 18730: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(80563), - t = Math.cosh, - o = Math.abs, - m = Math.E, - N = !t || t(710) === 1 / 0; - e( - { target: 'Math', stat: !0, forced: N }, - { - cosh: (function () { - function y(S) { - var k = a(o(S) - 1) + 1; - return (k + 1 / (k * m * m)) * (m / 2); - } - return y; - })(), - } - ); - }, - 11624: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(80563); - e( - { target: 'Math', stat: !0, forced: a !== Math.expm1 }, - { expm1: a } - ); - }, - 89004: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(48705); - e({ target: 'Math', stat: !0 }, { fround: a }); - }, - 72680: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = Math.hypot, - t = Math.abs, - o = Math.sqrt, - m = !!a && a(1 / 0, NaN) !== 1 / 0; - e( - { target: 'Math', stat: !0, arity: 2, forced: m }, - { - hypot: (function () { - function N(y, S) { - for ( - var k = 0, p = 0, l = arguments.length, c = 0, f, i; - p < l; - - ) - (f = t(arguments[p++])), - c < f - ? ((i = c / f), (k = k * i * i + 1), (c = f)) - : f > 0 - ? ((i = f / c), (k += i * i)) - : (k += f); - return c === 1 / 0 ? 1 / 0 : c * o(k); - } - return N; - })(), - } - ); - }, - 75213: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = Math.imul, - o = a(function () { - return t(4294967295, 5) !== -5 || t.length !== 2; - }); - e( - { target: 'Math', stat: !0, forced: o }, - { - imul: (function () { - function m(N, y) { - var S = 65535, - k = +N, - p = +y, - l = S & k, - c = S & p; - return ( - 0 | - (l * c + - ((((S & (k >>> 16)) * c + l * (S & (p >>> 16))) << 16) >>> - 0)) - ); - } - return m; - })(), - } - ); - }, - 4347: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(74347); - e({ target: 'Math', stat: !0 }, { log10: a }); - }, - 86433: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(50169); - e({ target: 'Math', stat: !0 }, { log1p: a }); - }, - 21401: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = Math.log, - t = Math.LN2; - e( - { target: 'Math', stat: !0 }, - { - log2: (function () { - function o(m) { - return a(m) / t; - } - return o; - })(), - } - ); - }, - 54468: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(30585); - e({ target: 'Math', stat: !0 }, { sign: a }); - }, - 36183: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(80563), - o = Math.abs, - m = Math.exp, - N = Math.E, - y = a(function () { - return Math.sinh(-2e-17) !== -2e-17; - }); - e( - { target: 'Math', stat: !0, forced: y }, - { - sinh: (function () { - function S(k) { - var p = +k; - return o(p) < 1 - ? (t(p) - t(-p)) / 2 - : (m(p - 1) - m(-p - 1)) * (N / 2); - } - return S; - })(), - } - ); - }, - 95499: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(80563), - t = Math.exp; - e( - { target: 'Math', stat: !0 }, - { - tanh: (function () { - function o(m) { - var N = +m, - y = a(N), - S = a(-N); - return y === 1 / 0 - ? 1 - : S === 1 / 0 - ? -1 - : (y - S) / (t(N) + t(-N)); - } - return o; - })(), - } - ); - }, - 50929: function (L, r, n) { - 'use strict'; - var e = n(15676); - e(Math, 'Math', !0); - }, - 91447: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(54037); - e({ target: 'Math', stat: !0 }, { trunc: a }); - }, - 84314: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(90139), - t = n(16361), - o = n(26856), - m = n(55601), - N = n(72908), - y = n(23620), - S = n(3302), - k = n(43405), - p = n(54341), - l = n(43474), - c = n(9560), - f = n(13586), - i = n(60097).f, - u = n(19765).f, - s = n(8165).f, - d = n(7950), - C = n(47913).trim, - g = 'Number', - v = o[g], - h = m[g], - V = v.prototype, - b = o.TypeError, - B = N(''.slice), - I = N(''.charCodeAt), - w = function (M) { - var O = c(M, 'number'); - return typeof O == 'bigint' ? O : T(O); - }, - T = function (M) { - var O = c(M, 'number'), - j, - F, - U, - _, - z, - H, - $, - Y; - if (l(O)) - throw new b('Cannot convert a Symbol value to a number'); - if (typeof O == 'string' && O.length > 2) { - if (((O = C(O)), (j = I(O, 0)), j === 43 || j === 45)) { - if (((F = I(O, 2)), F === 88 || F === 120)) return NaN; - } else if (j === 48) { - switch (I(O, 1)) { - case 66: - case 98: - (U = 2), (_ = 49); - break; - case 79: - case 111: - (U = 8), (_ = 55); - break; - default: - return +O; - } - for (z = B(O, 2), H = z.length, $ = 0; $ < H; $++) - if (((Y = I(z, $)), Y < 48 || Y > _)) return NaN; - return parseInt(z, U); - } - } - return +O; - }, - A = y(g, !v(' 0o1') || !v('0b1') || v('+0x1')), - x = function (M) { - return ( - p(V, M) && - f(function () { - d(M); - }) - ); - }, - E = (function () { - function D(M) { - var O = arguments.length < 1 ? 0 : v(w(M)); - return x(this) ? k(Object(O), this, E) : O; - } - return D; - })(); - (E.prototype = V), - A && !a && (V.constructor = E), - e( - { global: !0, constructor: !0, wrap: !0, forced: A }, - { Number: E } - ); - var P = function (M, O) { - for ( - var j = t - ? i(O) - : '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( - ',' - ), - F = 0, - U; - j.length > F; - F++ - ) - S(O, (U = j[F])) && !S(M, U) && s(M, U, u(O, U)); - }; - a && h && P(m[g], h), (A || a) && P(m[g], v); - }, - 48211: function (L, r, n) { - 'use strict'; - var e = n(3116); - e( - { - target: 'Number', - stat: !0, - nonConfigurable: !0, - nonWritable: !0, - }, - { EPSILON: Math.pow(2, -52) } - ); - }, - 52237: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(23944); - e({ target: 'Number', stat: !0 }, { isFinite: a }); - }, - 306: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(76117); - e({ target: 'Number', stat: !0 }, { isInteger: a }); - }, - 22509: function (L, r, n) { - 'use strict'; - var e = n(3116); - e( - { target: 'Number', stat: !0 }, - { - isNaN: (function () { - function a(t) { - return t !== t; - } - return a; - })(), - } - ); - }, - 84660: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(76117), - t = Math.abs; - e( - { target: 'Number', stat: !0 }, - { - isSafeInteger: (function () { - function o(m) { - return a(m) && t(m) <= 9007199254740991; - } - return o; - })(), - } - ); - }, - 82678: function (L, r, n) { - 'use strict'; - var e = n(3116); - e( - { - target: 'Number', - stat: !0, - nonConfigurable: !0, - nonWritable: !0, - }, - { MAX_SAFE_INTEGER: 9007199254740991 } - ); - }, - 76585: function (L, r, n) { - 'use strict'; - var e = n(3116); - e( - { - target: 'Number', - stat: !0, - nonConfigurable: !0, - nonWritable: !0, - }, - { MIN_SAFE_INTEGER: -9007199254740991 } - ); - }, - 21733: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(98973); - e( - { target: 'Number', stat: !0, forced: Number.parseFloat !== a }, - { parseFloat: a } - ); - }, - 21210: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(41148); - e( - { target: 'Number', stat: !0, forced: Number.parseInt !== a }, - { parseInt: a } - ); - }, - 10272: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(84501), - o = n(7950), - m = n(75463), - N = n(13586), - y = RangeError, - S = String, - k = Math.floor, - p = a(m), - l = a(''.slice), - c = a((1).toFixed), - f = function g(v, h, V) { - return h === 0 - ? V - : h % 2 === 1 - ? g(v, h - 1, V * v) - : g(v * v, h / 2, V); - }, - i = function (v) { - for (var h = 0, V = v; V >= 4096; ) (h += 12), (V /= 4096); - for (; V >= 2; ) (h += 1), (V /= 2); - return h; - }, - u = function (v, h, V) { - for (var b = -1, B = V; ++b < 6; ) - (B += h * v[b]), (v[b] = B % 1e7), (B = k(B / 1e7)); - }, - s = function (v, h) { - for (var V = 6, b = 0; --V >= 0; ) - (b += v[V]), (v[V] = k(b / h)), (b = (b % h) * 1e7); - }, - d = function (v) { - for (var h = 6, V = ''; --h >= 0; ) - if (V !== '' || h === 0 || v[h] !== 0) { - var b = S(v[h]); - V = V === '' ? b : V + p('0', 7 - b.length) + b; - } - return V; - }, - C = - N(function () { - return ( - c(8e-5, 3) !== '0.000' || - c(0.9, 0) !== '1' || - c(1.255, 2) !== '1.25' || - c(0xde0b6b3a7640080, 0) !== '1000000000000000128' - ); - }) || - !N(function () { - c({}); - }); - e( - { target: 'Number', proto: !0, forced: C }, - { - toFixed: (function () { - function g(v) { - var h = o(this), - V = t(v), - b = [0, 0, 0, 0, 0, 0], - B = '', - I = '0', - w, - T, - A, - x; - if (V < 0 || V > 20) throw new y('Incorrect fraction digits'); - if (h !== h) return 'NaN'; - if (h <= -1e21 || h >= 1e21) return S(h); - if ((h < 0 && ((B = '-'), (h = -h)), h > 1e-21)) - if ( - ((w = i(h * f(2, 69, 1)) - 69), - (T = w < 0 ? h * f(2, -w, 1) : h / f(2, w, 1)), - (T *= 4503599627370496), - (w = 52 - w), - w > 0) - ) { - for (u(b, 0, T), A = V; A >= 7; ) u(b, 1e7, 0), (A -= 7); - for (u(b, f(10, A, 1), 0), A = w - 1; A >= 23; ) - s(b, 8388608), (A -= 23); - s(b, 1 << A), u(b, 1, 1), s(b, 2), (I = d(b)); - } else u(b, 0, T), u(b, 1 << -w, 0), (I = d(b) + p('0', V)); - return ( - V > 0 - ? ((x = I.length), - (I = - B + - (x <= V - ? '0.' + p('0', V - x) + I - : l(I, 0, x - V) + '.' + l(I, x - V)))) - : (I = B + I), - I - ); - } - return g; - })(), - } - ); - }, - 83403: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(13586), - o = n(7950), - m = a((1).toPrecision), - N = - t(function () { - return m(1, void 0) !== '1'; - }) || - !t(function () { - m({}); - }); - e( - { target: 'Number', proto: !0, forced: N }, - { - toPrecision: (function () { - function y(S) { - return S === void 0 ? m(o(this)) : m(o(this), S); - } - return y; - })(), - } - ); - }, - 4229: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(23554); - e( - { - target: 'Object', - stat: !0, - arity: 2, - forced: Object.assign !== a, - }, - { assign: a } - ); - }, - 53388: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(15439); - e({ target: 'Object', stat: !0, sham: !a }, { create: t }); - }, - 53121: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(6205), - o = n(79474), - m = n(63549), - N = n(8165); - a && - e( - { target: 'Object', proto: !0, forced: t }, - { - __defineGetter__: (function () { - function y(S, k) { - N.f(m(this), S, { - get: o(k), - enumerable: !0, - configurable: !0, - }); - } - return y; - })(), - } - ); - }, - 53822: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(55119).f; - e( - { - target: 'Object', - stat: !0, - forced: Object.defineProperties !== t, - sham: !a, - }, - { defineProperties: t } - ); - }, - 2514: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(8165).f; - e( - { - target: 'Object', - stat: !0, - forced: Object.defineProperty !== t, - sham: !a, - }, - { defineProperty: t } - ); - }, - 2218: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(6205), - o = n(79474), - m = n(63549), - N = n(8165); - a && - e( - { target: 'Object', proto: !0, forced: t }, - { - __defineSetter__: (function () { - function y(S, k) { - N.f(m(this), S, { - set: o(k), - enumerable: !0, - configurable: !0, - }); - } - return y; - })(), - } - ); - }, - 14955: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(64266).entries; - e( - { target: 'Object', stat: !0 }, - { - entries: (function () { - function t(o) { - return a(o); - } - return t; - })(), - } - ); - }, - 79220: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(58199), - t = n(13586), - o = n(66379), - m = n(66526).onFreeze, - N = Object.freeze, - y = t(function () { - N(1); - }); - e( - { target: 'Object', stat: !0, forced: y, sham: !a }, - { - freeze: (function () { - function S(k) { - return N && o(k) ? N(m(k)) : k; - } - return S; - })(), - } - ); - }, - 81941: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20453), - t = n(80750); - e( - { target: 'Object', stat: !0 }, - { - fromEntries: (function () { - function o(m) { - var N = {}; - return ( - a( - m, - function (y, S) { - t(N, y, S); - }, - { AS_ENTRIES: !0 } - ), - N - ); - } - return o; - })(), - } - ); - }, - 37245: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(54292), - o = n(19765).f, - m = n(16361), - N = - !m || - a(function () { - o(1); - }); - e( - { target: 'Object', stat: !0, forced: N, sham: !m }, - { - getOwnPropertyDescriptor: (function () { - function y(S, k) { - return o(t(S), k); - } - return y; - })(), - } - ); - }, - 8373: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(53988), - o = n(54292), - m = n(19765), - N = n(80750); - e( - { target: 'Object', stat: !0, sham: !a }, - { - getOwnPropertyDescriptors: (function () { - function y(S) { - for ( - var k = o(S), p = m.f, l = t(k), c = {}, f = 0, i, u; - l.length > f; - - ) - (u = p(k, (i = l[f++]))), u !== void 0 && N(c, i, u); - return c; - } - return y; - })(), - } - ); - }, - 81212: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(31024).f, - o = a(function () { - return !Object.getOwnPropertyNames(1); - }); - e( - { target: 'Object', stat: !0, forced: o }, - { getOwnPropertyNames: t } - ); - }, - 56896: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(61855), - t = n(13586), - o = n(61791), - m = n(63549), - N = - !a || - t(function () { - o.f(1); - }); - e( - { target: 'Object', stat: !0, forced: N }, - { - getOwnPropertySymbols: (function () { - function y(S) { - var k = o.f; - return k ? k(m(S)) : []; - } - return y; - })(), - } - ); - }, - 26054: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(63549), - o = n(56379), - m = n(62297), - N = a(function () { - o(1); - }); - e( - { target: 'Object', stat: !0, forced: N, sham: !m }, - { - getPrototypeOf: (function () { - function y(S) { - return o(t(S)); - } - return y; - })(), - } - ); - }, - 49611: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(58221); - e( - { target: 'Object', stat: !0, forced: Object.isExtensible !== a }, - { isExtensible: a } - ); - }, - 98344: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(66379), - o = n(8649), - m = n(8685), - N = Object.isFrozen, - y = - m || - a(function () { - N(1); - }); - e( - { target: 'Object', stat: !0, forced: y }, - { - isFrozen: (function () { - function S(k) { - return !t(k) || (m && o(k) === 'ArrayBuffer') - ? !0 - : N - ? N(k) - : !1; - } - return S; - })(), - } - ); - }, - 55750: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13586), - t = n(66379), - o = n(8649), - m = n(8685), - N = Object.isSealed, - y = - m || - a(function () { - N(1); - }); - e( - { target: 'Object', stat: !0, forced: y }, - { - isSealed: (function () { - function S(k) { - return !t(k) || (m && o(k) === 'ArrayBuffer') - ? !0 - : N - ? N(k) - : !1; - } - return S; - })(), - } - ); - }, - 57745: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(91935); - e({ target: 'Object', stat: !0 }, { is: a }); - }, - 7340: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(63549), - t = n(99869), - o = n(13586), - m = o(function () { - t(1); - }); - e( - { target: 'Object', stat: !0, forced: m }, - { - keys: (function () { - function N(y) { - return t(a(y)); - } - return N; - })(), - } - ); - }, - 63429: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(6205), - o = n(63549), - m = n(72445), - N = n(56379), - y = n(19765).f; - a && - e( - { target: 'Object', proto: !0, forced: t }, - { - __lookupGetter__: (function () { - function S(k) { - var p = o(this), - l = m(k), - c; - do if ((c = y(p, l))) return c.get; - while ((p = N(p))); - } - return S; - })(), - } - ); - }, - 9558: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(6205), - o = n(63549), - m = n(72445), - N = n(56379), - y = n(19765).f; - a && - e( - { target: 'Object', proto: !0, forced: t }, - { - __lookupSetter__: (function () { - function S(k) { - var p = o(this), - l = m(k), - c; - do if ((c = y(p, l))) return c.set; - while ((p = N(p))); - } - return S; - })(), - } - ); - }, - 2420: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(66379), - t = n(66526).onFreeze, - o = n(58199), - m = n(13586), - N = Object.preventExtensions, - y = m(function () { - N(1); - }); - e( - { target: 'Object', stat: !0, forced: y, sham: !o }, - { - preventExtensions: (function () { - function S(k) { - return N && a(k) ? N(t(k)) : k; - } - return S; - })(), - } - ); - }, - 19015: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(66379), - t = n(66526).onFreeze, - o = n(58199), - m = n(13586), - N = Object.seal, - y = m(function () { - N(1); - }); - e( - { target: 'Object', stat: !0, forced: y, sham: !o }, - { - seal: (function () { - function S(k) { - return N && a(k) ? N(t(k)) : k; - } - return S; - })(), - } - ); - }, - 34137: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(91420); - e({ target: 'Object', stat: !0 }, { setPrototypeOf: a }); - }, - 24705: function (L, r, n) { - 'use strict'; - var e = n(41936), - a = n(60855), - t = n(6625); - e || a(Object.prototype, 'toString', t, { unsafe: !0 }); - }, - 55318: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(64266).values; - e( - { target: 'Object', stat: !0 }, - { - values: (function () { - function t(o) { - return a(o); - } - return t; - })(), - } - ); - }, - 49456: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(98973); - e({ global: !0, forced: parseFloat !== a }, { parseFloat: a }); - }, - 12217: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(41148); - e({ global: !0, forced: parseInt !== a }, { parseInt: a }); - }, - 70479: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20276), - t = n(79474), - o = n(14187), - m = n(73034), - N = n(20453), - y = n(18182); - e( - { target: 'Promise', stat: !0, forced: y }, - { - all: (function () { - function S(k) { - var p = this, - l = o.f(p), - c = l.resolve, - f = l.reject, - i = m(function () { - var u = t(p.resolve), - s = [], - d = 0, - C = 1; - N(k, function (g) { - var v = d++, - h = !1; - C++, - a(u, p, g).then(function (V) { - h || ((h = !0), (s[v] = V), --C || c(s)); - }, f); - }), - --C || c(s); - }); - return i.error && f(i.value), l.promise; - } - return S; - })(), - } - ); - }, - 72188: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(90139), - t = n(14657).CONSTRUCTOR, - o = n(3e3), - m = n(22070), - N = n(53664), - y = n(60855), - S = o && o.prototype; - if ( - (e( - { target: 'Promise', proto: !0, forced: t, real: !0 }, - { - catch: (function () { - function p(l) { - return this.then(void 0, l); - } - return p; - })(), - } - ), - !a && N(o)) - ) { - var k = m('Promise').prototype.catch; - S.catch !== k && y(S, 'catch', k, { unsafe: !0 }); - } - }, - 13779: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(90139), - t = n(86727), - o = n(26856), - m = n(20276), - N = n(60855), - y = n(91420), - S = n(15676), - k = n(92468), - p = n(79474), - l = n(53664), - c = n(66379), - f = n(14434), - i = n(83604), - u = n(87073).set, - s = n(60816), - d = n(66481), - C = n(73034), - g = n(8274), - v = n(4471), - h = n(3e3), - V = n(14657), - b = n(14187), - B = 'Promise', - I = V.CONSTRUCTOR, - w = V.REJECTION_EVENT, - T = V.SUBCLASSING, - A = v.getterFor(B), - x = v.set, - E = h && h.prototype, - P = h, - D = E, - M = o.TypeError, - O = o.document, - j = o.process, - F = b.f, - U = F, - _ = !!(O && O.createEvent && o.dispatchEvent), - z = 'unhandledrejection', - H = 'rejectionhandled', - $ = 0, - Y = 1, - X = 2, - re = 1, - ae = 2, - se, - pe, - ye, - Be, - he = function (ve) { - var Se; - return c(ve) && l((Se = ve.then)) ? Se : !1; - }, - oe = function (ve, Se) { - var we = Se.value, - xe = Se.state === Y, - Oe = xe ? ve.ok : ve.fail, - We = ve.resolve, - Ve = ve.reject, - ce = ve.domain, - le, - Ce, - de; - try { - Oe - ? (xe || (Se.rejection === ae && ne(Se), (Se.rejection = re)), - Oe === !0 - ? (le = we) - : (ce && ce.enter(), - (le = Oe(we)), - ce && (ce.exit(), (de = !0))), - le === ve.promise - ? Ve(new M('Promise-chain cycle')) - : (Ce = he(le)) - ? m(Ce, le, We, Ve) - : We(le)) - : Ve(we); - } catch (Ne) { - ce && !de && ce.exit(), Ve(Ne); - } - }, - Z = function (ve, Se) { - ve.notified || - ((ve.notified = !0), - s(function () { - for (var we = ve.reactions, xe; (xe = we.get()); ) oe(xe, ve); - (ve.notified = !1), Se && !ve.rejection && ue(ve); - })); - }, - q = function (ve, Se, we) { - var xe, Oe; - _ - ? ((xe = O.createEvent('Event')), - (xe.promise = Se), - (xe.reason = we), - xe.initEvent(ve, !1, !0), - o.dispatchEvent(xe)) - : (xe = { promise: Se, reason: we }), - !w && (Oe = o['on' + ve]) - ? Oe(xe) - : ve === z && d('Unhandled promise rejection', we); - }, - ue = function (ve) { - m(u, o, function () { - var Se = ve.facade, - we = ve.value, - xe = me(ve), - Oe; - if ( - xe && - ((Oe = C(function () { - t ? j.emit('unhandledRejection', we, Se) : q(z, Se, we); - })), - (ve.rejection = t || me(ve) ? ae : re), - Oe.error) - ) - throw Oe.value; - }); - }, - me = function (ve) { - return ve.rejection !== re && !ve.parent; - }, - ne = function (ve) { - m(u, o, function () { - var Se = ve.facade; - t ? j.emit('rejectionHandled', Se) : q(H, Se, ve.value); - }); - }, - be = function (ve, Se, we) { - return function (xe) { - ve(Se, xe, we); - }; - }, - fe = function (ve, Se, we) { - ve.done || - ((ve.done = !0), - we && (ve = we), - (ve.value = Se), - (ve.state = X), - Z(ve, !0)); - }, - ge = function ke(ve, Se, we) { - if (!ve.done) { - (ve.done = !0), we && (ve = we); - try { - if (ve.facade === Se) - throw new M("Promise can't be resolved itself"); - var xe = he(Se); - xe - ? s(function () { - var Oe = { done: !1 }; - try { - m(xe, Se, be(ke, Oe, ve), be(fe, Oe, ve)); - } catch (We) { - fe(Oe, We, ve); - } - }) - : ((ve.value = Se), (ve.state = Y), Z(ve, !1)); - } catch (Oe) { - fe({ done: !1 }, Oe, ve); - } - } - }; - if ( - I && - ((P = (function () { - function ke(ve) { - f(this, D), p(ve), m(se, this); - var Se = A(this); - try { - ve(be(ge, Se), be(fe, Se)); - } catch (we) { - fe(Se, we); - } - } - return ke; - })()), - (D = P.prototype), - (se = (function () { - function ke(ve) { - x(this, { - type: B, - done: !1, - notified: !1, - parent: !1, - reactions: new g(), - rejection: !1, - state: $, - value: void 0, - }); - } - return ke; - })()), - (se.prototype = N( - D, - 'then', - (function () { - function ke(ve, Se) { - var we = A(this), - xe = F(i(this, P)); - return ( - (we.parent = !0), - (xe.ok = l(ve) ? ve : !0), - (xe.fail = l(Se) && Se), - (xe.domain = t ? j.domain : void 0), - we.state === $ - ? we.reactions.add(xe) - : s(function () { - oe(xe, we); - }), - xe.promise - ); - } - return ke; - })() - )), - (pe = function () { - var ve = new se(), - Se = A(ve); - (this.promise = ve), - (this.resolve = be(ge, Se)), - (this.reject = be(fe, Se)); - }), - (b.f = F = - function (ve) { - return ve === P || ve === ye ? new pe(ve) : U(ve); - }), - !a && l(h) && E !== Object.prototype) - ) { - (Be = E.then), - T || - N( - E, - 'then', - (function () { - function ke(ve, Se) { - var we = this; - return new P(function (xe, Oe) { - m(Be, we, xe, Oe); - }).then(ve, Se); - } - return ke; - })(), - { unsafe: !0 } - ); - try { - delete E.constructor; - } catch (ke) {} - y && y(E, D); - } - e( - { global: !0, constructor: !0, wrap: !0, forced: I }, - { Promise: P } - ), - S(P, B, !1, !0), - k(B); - }, - 79063: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(90139), - t = n(3e3), - o = n(13586), - m = n(22070), - N = n(53664), - y = n(83604), - S = n(61988), - k = n(60855), - p = t && t.prototype, - l = - !!t && - o(function () { - p.finally.call( - { - then: (function () { - function f() {} - return f; - })(), - }, - function () {} - ); - }); - if ( - (e( - { target: 'Promise', proto: !0, real: !0, forced: l }, - { - finally: (function () { - function f(i) { - var u = y(this, m('Promise')), - s = N(i); - return this.then( - s - ? function (d) { - return S(u, i()).then(function () { - return d; - }); - } - : i, - s - ? function (d) { - return S(u, i()).then(function () { - throw d; - }); - } - : i - ); - } - return f; - })(), - } - ), - !a && N(t)) - ) { - var c = m('Promise').prototype.finally; - p.finally !== c && k(p, 'finally', c, { unsafe: !0 }); - } - }, - 75795: function (L, r, n) { - 'use strict'; - n(13779), n(70479), n(72188), n(18199), n(75955), n(39996); - }, - 18199: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20276), - t = n(79474), - o = n(14187), - m = n(73034), - N = n(20453), - y = n(18182); - e( - { target: 'Promise', stat: !0, forced: y }, - { - race: (function () { - function S(k) { - var p = this, - l = o.f(p), - c = l.reject, - f = m(function () { - var i = t(p.resolve); - N(k, function (u) { - a(i, p, u).then(l.resolve, c); - }); - }); - return f.error && c(f.value), l.promise; - } - return S; - })(), - } - ); - }, - 75955: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(14187), - t = n(14657).CONSTRUCTOR; - e( - { target: 'Promise', stat: !0, forced: t }, - { - reject: (function () { - function o(m) { - var N = a.f(this), - y = N.reject; - return y(m), N.promise; - } - return o; - })(), - } - ); - }, - 39996: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(22070), - t = n(90139), - o = n(3e3), - m = n(14657).CONSTRUCTOR, - N = n(61988), - y = a('Promise'), - S = t && !m; - e( - { target: 'Promise', stat: !0, forced: t || m }, - { - resolve: (function () { - function k(p) { - return N(S && this === y ? o : this, p); - } - return k; - })(), - } - ); - }, - 1210: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(47244), - t = n(79474), - o = n(45418), - m = n(13586), - N = !m(function () { - Reflect.apply(function () {}); - }); - e( - { target: 'Reflect', stat: !0, forced: N }, - { - apply: (function () { - function y(S, k, p) { - return a(t(S), k, o(p)); - } - return y; - })(), - } - ); - }, - 91370: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(22070), - t = n(47244), - o = n(82060), - m = n(48218), - N = n(45418), - y = n(66379), - S = n(15439), - k = n(13586), - p = a('Reflect', 'construct'), - l = Object.prototype, - c = [].push, - f = k(function () { - function s() {} - return !(p(function () {}, [], s) instanceof s); - }), - i = !k(function () { - p(function () {}); - }), - u = f || i; - e( - { target: 'Reflect', stat: !0, forced: u, sham: u }, - { - construct: (function () { - function s(d, C) { - m(d), N(C); - var g = arguments.length < 3 ? d : m(arguments[2]); - if (i && !f) return p(d, C, g); - if (d === g) { - switch (C.length) { - case 0: - return new d(); - case 1: - return new d(C[0]); - case 2: - return new d(C[0], C[1]); - case 3: - return new d(C[0], C[1], C[2]); - case 4: - return new d(C[0], C[1], C[2], C[3]); - } - var v = [null]; - return t(c, v, C), new (t(o, d, v))(); - } - var h = g.prototype, - V = S(y(h) ? h : l), - b = t(d, V, C); - return y(b) ? b : V; - } - return s; - })(), - } - ); - }, - 17327: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(45418), - o = n(72445), - m = n(8165), - N = n(13586), - y = N(function () { - Reflect.defineProperty(m.f({}, 1, { value: 1 }), 1, { value: 2 }); - }); - e( - { target: 'Reflect', stat: !0, forced: y, sham: !a }, - { - defineProperty: (function () { - function S(k, p, l) { - t(k); - var c = o(p); - t(l); - try { - return m.f(k, c, l), !0; - } catch (f) { - return !1; - } - } - return S; - })(), - } - ); - }, - 2679: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45418), - t = n(19765).f; - e( - { target: 'Reflect', stat: !0 }, - { - deleteProperty: (function () { - function o(m, N) { - var y = t(a(m), N); - return y && !y.configurable ? !1 : delete m[N]; - } - return o; - })(), - } - ); - }, - 27262: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(45418), - o = n(19765); - e( - { target: 'Reflect', stat: !0, sham: !a }, - { - getOwnPropertyDescriptor: (function () { - function m(N, y) { - return o.f(t(N), y); - } - return m; - })(), - } - ); - }, - 47278: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45418), - t = n(56379), - o = n(62297); - e( - { target: 'Reflect', stat: !0, sham: !o }, - { - getPrototypeOf: (function () { - function m(N) { - return t(a(N)); - } - return m; - })(), - } - ); - }, - 60733: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20276), - t = n(66379), - o = n(45418), - m = n(75129), - N = n(19765), - y = n(56379); - function S(k, p) { - var l = arguments.length < 3 ? k : arguments[2], - c, - f; - if (o(k) === l) return k[p]; - if (((c = N.f(k, p)), c)) - return m(c) ? c.value : c.get === void 0 ? void 0 : a(c.get, l); - if (t((f = y(k)))) return S(f, p, l); - } - e({ target: 'Reflect', stat: !0 }, { get: S }); - }, - 22547: function (L, r, n) { - 'use strict'; - var e = n(3116); - e( - { target: 'Reflect', stat: !0 }, - { - has: (function () { - function a(t, o) { - return o in t; - } - return a; - })(), - } - ); - }, - 92992: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45418), - t = n(58221); - e( - { target: 'Reflect', stat: !0 }, - { - isExtensible: (function () { - function o(m) { - return a(m), t(m); - } - return o; - })(), - } - ); - }, - 64650: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(53988); - e({ target: 'Reflect', stat: !0 }, { ownKeys: a }); - }, - 71255: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(22070), - t = n(45418), - o = n(58199); - e( - { target: 'Reflect', stat: !0, sham: !o }, - { - preventExtensions: (function () { - function m(N) { - t(N); - try { - var y = a('Object', 'preventExtensions'); - return y && y(N), !0; - } catch (S) { - return !1; - } - } - return m; - })(), - } - ); - }, - 65558: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45418), - t = n(30907), - o = n(91420); - o && - e( - { target: 'Reflect', stat: !0 }, - { - setPrototypeOf: (function () { - function m(N, y) { - a(N), t(y); - try { - return o(N, y), !0; - } catch (S) { - return !1; - } - } - return m; - })(), - } - ); - }, - 97836: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(20276), - t = n(45418), - o = n(66379), - m = n(75129), - N = n(13586), - y = n(8165), - S = n(19765), - k = n(56379), - p = n(73970); - function l(f, i, u) { - var s = arguments.length < 4 ? f : arguments[3], - d = S.f(t(f), i), - C, - g, - v; - if (!d) { - if (o((g = k(f)))) return l(g, i, u, s); - d = p(0); - } - if (m(d)) { - if (d.writable === !1 || !o(s)) return !1; - if ((C = S.f(s, i))) { - if (C.get || C.set || C.writable === !1) return !1; - (C.value = u), y.f(s, i, C); - } else y.f(s, i, p(0, u)); - } else { - if (((v = d.set), v === void 0)) return !1; - a(v, s, u); - } - return !0; - } - var c = N(function () { - var f = function () {}, - i = y.f(new f(), 'a', { configurable: !0 }); - return Reflect.set(f.prototype, 'a', 1, i) !== !1; - }); - e({ target: 'Reflect', stat: !0, forced: c }, { set: l }); - }, - 83932: function (L, r, n) { - 'use strict'; - var e = n(16361), - a = n(26856), - t = n(72908), - o = n(23620), - m = n(43405), - N = n(21650), - y = n(15439), - S = n(60097).f, - k = n(54341), - p = n(28774), - l = n(8758), - c = n(13980), - f = n(96472), - i = n(69713), - u = n(60855), - s = n(13586), - d = n(3302), - C = n(4471).enforce, - g = n(92468), - v = n(95558), - h = n(18095), - V = n(17329), - b = v('match'), - B = a.RegExp, - I = B.prototype, - w = a.SyntaxError, - T = t(I.exec), - A = t(''.charAt), - x = t(''.replace), - E = t(''.indexOf), - P = t(''.slice), - D = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, - M = /a/g, - O = /a/g, - j = new B(M) !== M, - F = f.MISSED_STICKY, - U = f.UNSUPPORTED_Y, - _ = - e && - (!j || - F || - h || - V || - s(function () { - return ( - (O[b] = !1), - B(M) !== M || B(O) === O || String(B(M, 'i')) !== '/a/i' - ); - })), - z = function (ae) { - for ( - var se = ae.length, pe = 0, ye = '', Be = !1, he; - pe <= se; - pe++ - ) { - if (((he = A(ae, pe)), he === '\\')) { - ye += he + A(ae, ++pe); - continue; - } - !Be && he === '.' - ? (ye += '[\\s\\S]') - : (he === '[' ? (Be = !0) : he === ']' && (Be = !1), - (ye += he)); - } - return ye; - }, - H = function (ae) { - for ( - var se = ae.length, - pe = 0, - ye = '', - Be = [], - he = y(null), - oe = !1, - Z = !1, - q = 0, - ue = '', - me; - pe <= se; - pe++ - ) { - if (((me = A(ae, pe)), me === '\\')) me += A(ae, ++pe); - else if (me === ']') oe = !1; - else if (!oe) - switch (!0) { - case me === '[': - oe = !0; - break; - case me === '(': - T(D, P(ae, pe + 1)) && ((pe += 2), (Z = !0)), - (ye += me), - q++; - continue; - case me === '>' && Z: - if (ue === '' || d(he, ue)) - throw new w('Invalid capture group name'); - (he[ue] = !0), - (Be[Be.length] = [ue, q]), - (Z = !1), - (ue = ''); - continue; - } - Z ? (ue += me) : (ye += me); - } - return [ye, Be]; - }; - if (o('RegExp', _)) { - for ( - var $ = (function () { - function re(ae, se) { - var pe = k(I, this), - ye = p(ae), - Be = se === void 0, - he = [], - oe = ae, - Z, - q, - ue, - me, - ne, - be; - if (!pe && ye && Be && ae.constructor === $) return ae; - if ( - ((ye || k(I, ae)) && - ((ae = ae.source), Be && (se = c(oe))), - (ae = ae === void 0 ? '' : l(ae)), - (se = se === void 0 ? '' : l(se)), - (oe = ae), - h && - ('dotAll' in M) && - ((q = !!se && E(se, 's') > -1), - q && (se = x(se, /s/g, ''))), - (Z = se), - F && - ('sticky' in M) && - ((ue = !!se && E(se, 'y') > -1), - ue && U && (se = x(se, /y/g, ''))), - V && ((me = H(ae)), (ae = me[0]), (he = me[1])), - (ne = m(B(ae, se), pe ? this : I, $)), - (q || ue || he.length) && - ((be = C(ne)), - q && ((be.dotAll = !0), (be.raw = $(z(ae), Z))), - ue && (be.sticky = !0), - he.length && (be.groups = he)), - ae !== oe) - ) - try { - N(ne, 'source', oe === '' ? '(?:)' : oe); - } catch (fe) {} - return ne; - } - return re; - })(), - Y = S(B), - X = 0; - Y.length > X; - - ) - i($, B, Y[X++]); - (I.constructor = $), - ($.prototype = I), - u(a, 'RegExp', $, { constructor: !0 }); - } - g('RegExp'); - }, - 72941: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(59049); - e( - { target: 'RegExp', proto: !0, forced: /./.exec !== a }, - { exec: a } - ); - }, - 57918: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(16361), - t = n(57301), - o = n(41913), - m = n(13586), - N = e.RegExp, - y = N.prototype, - S = - a && - m(function () { - var k = !0; - try { - N('.', 'd'); - } catch (d) { - k = !1; - } - var p = {}, - l = '', - c = k ? 'dgimsy' : 'gimsy', - f = function (C, g) { - Object.defineProperty(p, C, { - get: (function () { - function v() { - return (l += g), !0; - } - return v; - })(), - }); - }, - i = { - dotAll: 's', - global: 'g', - ignoreCase: 'i', - multiline: 'm', - sticky: 'y', - }; - k && (i.hasIndices = 'd'); - for (var u in i) f(u, i[u]); - var s = Object.getOwnPropertyDescriptor(y, 'flags').get.call(p); - return s !== c || l !== c; - }); - S && t(y, 'flags', { configurable: !0, get: o }); - }, - 2394: function (L, r, n) { - 'use strict'; - var e = n(15340).PROPER, - a = n(60855), - t = n(45418), - o = n(8758), - m = n(13586), - N = n(13980), - y = 'toString', - S = RegExp.prototype, - k = S[y], - p = m(function () { - return k.call({ source: 'a', flags: 'b' }) !== '/a/b'; - }), - l = e && k.name !== y; - (p || l) && - a( - S, - y, - (function () { - function c() { - var f = t(this), - i = o(f.source), - u = o(N(f)); - return '/' + i + '/' + u; - } - return c; - })(), - { unsafe: !0 } - ); - }, - 98480: function (L, r, n) { - 'use strict'; - var e = n(10609), - a = n(42384); - e( - 'Set', - function (t) { - return (function () { - function o() { - return t(this, arguments.length ? arguments[0] : void 0); - } - return o; - })(); - }, - a - ); - }, - 37517: function (L, r, n) { - 'use strict'; - n(98480); - }, - 25492: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('anchor') }, - { - anchor: (function () { - function o(m) { - return a(this, 'a', 'name', m); - } - return o; - })(), - } - ); - }, - 13684: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('big') }, - { - big: (function () { - function o() { - return a(this, 'big', '', ''); - } - return o; - })(), - } - ); - }, - 79646: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('blink') }, - { - blink: (function () { - function o() { - return a(this, 'blink', '', ''); - } - return o; - })(), - } - ); - }, - 98511: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('bold') }, - { - bold: (function () { - function o() { - return a(this, 'b', '', ''); - } - return o; - })(), - } - ); - }, - 65699: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(13300).codeAt; - e( - { target: 'String', proto: !0 }, - { - codePointAt: (function () { - function t(o) { - return a(this, o); - } - return t; - })(), - } - ); - }, - 11360: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(69935), - t = n(19765).f, - o = n(74369), - m = n(8758), - N = n(75816), - y = n(305), - S = n(46339), - k = n(90139), - p = a(''.slice), - l = Math.min, - c = S('endsWith'), - f = - !k && - !c && - !!(function () { - var i = t(String.prototype, 'endsWith'); - return i && !i.writable; - })(); - e( - { target: 'String', proto: !0, forced: !f && !c }, - { - endsWith: (function () { - function i(u) { - var s = m(y(this)); - N(u); - var d = arguments.length > 1 ? arguments[1] : void 0, - C = s.length, - g = d === void 0 ? C : l(o(d), C), - v = m(u); - return p(s, g - v.length, g) === v; - } - return i; - })(), - } - ); - }, - 30733: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('fixed') }, - { - fixed: (function () { - function o() { - return a(this, 'tt', '', ''); - } - return o; - })(), - } - ); - }, - 58683: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('fontcolor') }, - { - fontcolor: (function () { - function o(m) { - return a(this, 'font', 'color', m); - } - return o; - })(), - } - ); - }, - 70277: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('fontsize') }, - { - fontsize: (function () { - function o(m) { - return a(this, 'font', 'size', m); - } - return o; - })(), - } - ); - }, - 33683: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(39531), - o = RangeError, - m = String.fromCharCode, - N = String.fromCodePoint, - y = a([].join), - S = !!N && N.length !== 1; - e( - { target: 'String', stat: !0, arity: 1, forced: S }, - { - fromCodePoint: (function () { - function k(p) { - for (var l = [], c = arguments.length, f = 0, i; c > f; ) { - if (((i = +arguments[f++]), t(i, 1114111) !== i)) - throw new o(i + ' is not a valid code point'); - l[f] = - i < 65536 - ? m(i) - : m(((i -= 65536) >> 10) + 55296, (i % 1024) + 56320); - } - return y(l, ''); - } - return k; - })(), - } - ); - }, - 16792: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(75816), - o = n(305), - m = n(8758), - N = n(46339), - y = a(''.indexOf); - e( - { target: 'String', proto: !0, forced: !N('includes') }, - { - includes: (function () { - function S(k) { - return !!~y( - m(o(this)), - m(t(k)), - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return S; - })(), - } - ); - }, - 36865: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('italics') }, - { - italics: (function () { - function o() { - return a(this, 'i', '', ''); - } - return o; - })(), - } - ); - }, - 8: function (L, r, n) { - 'use strict'; - var e = n(13300).charAt, - a = n(8758), - t = n(4471), - o = n(21436), - m = n(32214), - N = 'String Iterator', - y = t.set, - S = t.getterFor(N); - o( - String, - 'String', - function (k) { - y(this, { type: N, string: a(k), index: 0 }); - }, - (function () { - function k() { - var p = S(this), - l = p.string, - c = p.index, - f; - return c >= l.length - ? m(void 0, !0) - : ((f = e(l, c)), (p.index += f.length), m(f, !1)); - } - return k; - })() - ); - }, - 13763: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('link') }, - { - link: (function () { - function o(m) { - return a(this, 'a', 'href', m); - } - return o; - })(), - } - ); - }, - 76015: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(18690), - t = n(45418), - o = n(62695), - m = n(74369), - N = n(8758), - y = n(305), - S = n(76540), - k = n(47158), - p = n(59833); - a('match', function (l, c, f) { - return [ - (function () { - function i(u) { - var s = y(this), - d = o(u) ? void 0 : S(u, l); - return d ? e(d, u, s) : new RegExp(u)[l](N(s)); - } - return i; - })(), - function (i) { - var u = t(this), - s = N(i), - d = f(c, u, s); - if (d.done) return d.value; - if (!u.global) return p(u, s); - var C = u.unicode; - u.lastIndex = 0; - for (var g = [], v = 0, h; (h = p(u, s)) !== null; ) { - var V = N(h[0]); - (g[v] = V), - V === '' && (u.lastIndex = k(s, m(u.lastIndex), C)), - v++; - } - return v === 0 ? null : g; - }, - ]; - }); - }, - 57318: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(81290).end, - t = n(51468); - e( - { target: 'String', proto: !0, forced: t }, - { - padEnd: (function () { - function o(m) { - return a( - this, - m, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return o; - })(), - } - ); - }, - 33177: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(81290).start, - t = n(51468); - e( - { target: 'String', proto: !0, forced: t }, - { - padStart: (function () { - function o(m) { - return a( - this, - m, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return o; - })(), - } - ); - }, - 1429: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(72908), - t = n(54292), - o = n(63549), - m = n(8758), - N = n(83207), - y = a([].push), - S = a([].join); - e( - { target: 'String', stat: !0 }, - { - raw: (function () { - function k(p) { - var l = t(o(p).raw), - c = N(l); - if (!c) return ''; - for (var f = arguments.length, i = [], u = 0; ; ) { - if ((y(i, m(l[u++])), u === c)) return S(i, ''); - u < f && y(i, m(arguments[u])); - } - } - return k; - })(), - } - ); - }, - 56515: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(75463); - e({ target: 'String', proto: !0 }, { repeat: a }); - }, - 30343: function (L, r, n) { - 'use strict'; - var e = n(47244), - a = n(20276), - t = n(72908), - o = n(18690), - m = n(13586), - N = n(45418), - y = n(53664), - S = n(62695), - k = n(84501), - p = n(74369), - l = n(8758), - c = n(305), - f = n(47158), - i = n(76540), - u = n(56802), - s = n(59833), - d = n(95558), - C = d('replace'), - g = Math.max, - v = Math.min, - h = t([].concat), - V = t([].push), - b = t(''.indexOf), - B = t(''.slice), - I = function (E) { - return E === void 0 ? E : String(E); - }, - w = (function () { - return 'a'.replace(/./, '$0') === '$0'; - })(), - T = (function () { - return /./[C] ? /./[C]('a', '$0') === '' : !1; - })(), - A = !m(function () { - var x = /./; - return ( - (x.exec = function () { - var E = []; - return (E.groups = { a: '7' }), E; - }), - ''.replace(x, '$') !== '7' - ); - }); - o( - 'replace', - function (x, E, P) { - var D = T ? '$' : '$0'; - return [ - (function () { - function M(O, j) { - var F = c(this), - U = S(O) ? void 0 : i(O, C); - return U ? a(U, O, F, j) : a(E, l(F), O, j); - } - return M; - })(), - function (M, O) { - var j = N(this), - F = l(M); - if ( - typeof O == 'string' && - b(O, D) === -1 && - b(O, '$<') === -1 - ) { - var U = P(E, j, F, O); - if (U.done) return U.value; - } - var _ = y(O); - _ || (O = l(O)); - var z = j.global, - H; - z && ((H = j.unicode), (j.lastIndex = 0)); - for ( - var $ = [], Y; - (Y = s(j, F)), !(Y === null || (V($, Y), !z)); - - ) { - var X = l(Y[0]); - X === '' && (j.lastIndex = f(F, p(j.lastIndex), H)); - } - for (var re = '', ae = 0, se = 0; se < $.length; se++) { - Y = $[se]; - for ( - var pe = l(Y[0]), - ye = g(v(k(Y.index), F.length), 0), - Be = [], - he, - oe = 1; - oe < Y.length; - oe++ - ) - V(Be, I(Y[oe])); - var Z = Y.groups; - if (_) { - var q = h([pe], Be, ye, F); - Z !== void 0 && V(q, Z), (he = l(e(O, void 0, q))); - } else he = u(pe, F, ye, Be, Z, O); - ye >= ae && - ((re += B(F, ae, ye) + he), (ae = ye + pe.length)); - } - return re + B(F, ae); - }, - ]; - }, - !A || !w || T - ); - }, - 60981: function (L, r, n) { - 'use strict'; - var e = n(20276), - a = n(18690), - t = n(45418), - o = n(62695), - m = n(305), - N = n(91935), - y = n(8758), - S = n(76540), - k = n(59833); - a('search', function (p, l, c) { - return [ - (function () { - function f(i) { - var u = m(this), - s = o(i) ? void 0 : S(i, p); - return s ? e(s, i, u) : new RegExp(i)[p](y(u)); - } - return f; - })(), - function (f) { - var i = t(this), - u = y(f), - s = c(l, i, u); - if (s.done) return s.value; - var d = i.lastIndex; - N(d, 0) || (i.lastIndex = 0); - var C = k(i, u); - return ( - N(i.lastIndex, d) || (i.lastIndex = d), - C === null ? -1 : C.index - ); - }, - ]; - }); - }, - 56001: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('small') }, - { - small: (function () { - function o() { - return a(this, 'small', '', ''); - } - return o; - })(), - } - ); - }, - 96578: function (L, r, n) { - 'use strict'; - var e = n(47244), - a = n(20276), - t = n(72908), - o = n(18690), - m = n(45418), - N = n(62695), - y = n(28774), - S = n(305), - k = n(83604), - p = n(47158), - l = n(74369), - c = n(8758), - f = n(76540), - i = n(31170), - u = n(59833), - s = n(59049), - d = n(96472), - C = n(13586), - g = d.UNSUPPORTED_Y, - v = 4294967295, - h = Math.min, - V = [].push, - b = t(/./.exec), - B = t(V), - I = t(''.slice), - w = !C(function () { - var T = /(?:)/, - A = T.exec; - T.exec = function () { - return A.apply(this, arguments); - }; - var x = 'ab'.split(T); - return x.length !== 2 || x[0] !== 'a' || x[1] !== 'b'; - }); - o( - 'split', - function (T, A, x) { - var E; - return ( - 'abbc'.split(/(b)*/)[1] === 'c' || - 'test'.split(/(?:)/, -1).length !== 4 || - 'ab'.split(/(?:ab)*/).length !== 2 || - '.'.split(/(.?)(.?)/).length !== 4 || - '.'.split(/()()/).length > 1 || - ''.split(/.?/).length - ? (E = function (D, M) { - var O = c(S(this)), - j = M === void 0 ? v : M >>> 0; - if (j === 0) return []; - if (D === void 0) return [O]; - if (!y(D)) return a(A, O, D, j); - for ( - var F = [], - U = - (D.ignoreCase ? 'i' : '') + - (D.multiline ? 'm' : '') + - (D.unicode ? 'u' : '') + - (D.sticky ? 'y' : ''), - _ = 0, - z = new RegExp(D.source, U + 'g'), - H, - $, - Y; - (H = a(s, z, O)) && - (($ = z.lastIndex), - !( - $ > _ && - (B(F, I(O, _, H.index)), - H.length > 1 && - H.index < O.length && - e(V, F, i(H, 1)), - (Y = H[0].length), - (_ = $), - F.length >= j) - )); - - ) - z.lastIndex === H.index && z.lastIndex++; - return ( - _ === O.length - ? (Y || !b(z, '')) && B(F, '') - : B(F, I(O, _)), - F.length > j ? i(F, 0, j) : F - ); - }) - : '0'.split(void 0, 0).length - ? (E = function (D, M) { - return D === void 0 && M === 0 ? [] : a(A, this, D, M); - }) - : (E = A), - [ - (function () { - function P(D, M) { - var O = S(this), - j = N(D) ? void 0 : f(D, T); - return j ? a(j, D, O, M) : a(E, c(O), D, M); - } - return P; - })(), - function (P, D) { - var M = m(this), - O = c(P), - j = x(E, M, O, D, E !== A); - if (j.done) return j.value; - var F = k(M, RegExp), - U = M.unicode, - _ = - (M.ignoreCase ? 'i' : '') + - (M.multiline ? 'm' : '') + - (M.unicode ? 'u' : '') + - (g ? 'g' : 'y'), - z = new F(g ? '^(?:' + M.source + ')' : M, _), - H = D === void 0 ? v : D >>> 0; - if (H === 0) return []; - if (O.length === 0) return u(z, O) === null ? [O] : []; - for (var $ = 0, Y = 0, X = []; Y < O.length; ) { - z.lastIndex = g ? 0 : Y; - var re = u(z, g ? I(O, Y) : O), - ae; - if ( - re === null || - (ae = h(l(z.lastIndex + (g ? Y : 0)), O.length)) === $ - ) - Y = p(O, Y, U); - else { - if ((B(X, I(O, $, Y)), X.length === H)) return X; - for (var se = 1; se <= re.length - 1; se++) - if ((B(X, re[se]), X.length === H)) return X; - Y = $ = ae; - } - } - return B(X, I(O, $)), X; - }, - ] - ); - }, - !w, - g - ); - }, - 59592: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(69935), - t = n(19765).f, - o = n(74369), - m = n(8758), - N = n(75816), - y = n(305), - S = n(46339), - k = n(90139), - p = a(''.slice), - l = Math.min, - c = S('startsWith'), - f = - !k && - !c && - !!(function () { - var i = t(String.prototype, 'startsWith'); - return i && !i.writable; - })(); - e( - { target: 'String', proto: !0, forced: !f && !c }, - { - startsWith: (function () { - function i(u) { - var s = m(y(this)); - N(u); - var d = o( - l(arguments.length > 1 ? arguments[1] : void 0, s.length) - ), - C = m(u); - return p(s, d, d + C.length) === C; - } - return i; - })(), - } - ); - }, - 58713: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('strike') }, - { - strike: (function () { - function o() { - return a(this, 'strike', '', ''); - } - return o; - })(), - } - ); - }, - 41960: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('sub') }, - { - sub: (function () { - function o() { - return a(this, 'sub', '', ''); - } - return o; - })(), - } - ); - }, - 31772: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(38017), - t = n(81626); - e( - { target: 'String', proto: !0, forced: t('sup') }, - { - sup: (function () { - function o() { - return a(this, 'sup', '', ''); - } - return o; - })(), - } - ); - }, - 84368: function (L, r, n) { - 'use strict'; - n(12333); - var e = n(3116), - a = n(45745); - e( - { - target: 'String', - proto: !0, - name: 'trimEnd', - forced: ''.trimEnd !== a, - }, - { trimEnd: a } - ); - }, - 81464: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(35634); - e( - { - target: 'String', - proto: !0, - name: 'trimStart', - forced: ''.trimLeft !== a, - }, - { trimLeft: a } - ); - }, - 12333: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(45745); - e( - { - target: 'String', - proto: !0, - name: 'trimEnd', - forced: ''.trimRight !== a, - }, - { trimRight: a } - ); - }, - 76980: function (L, r, n) { - 'use strict'; - n(81464); - var e = n(3116), - a = n(35634); - e( - { - target: 'String', - proto: !0, - name: 'trimStart', - forced: ''.trimStart !== a, - }, - { trimStart: a } - ); - }, - 54511: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(47913).trim, - t = n(15677); - e( - { target: 'String', proto: !0, forced: t('trim') }, - { - trim: (function () { - function o() { - return a(this); - } - return o; - })(), - } - ); - }, - 65884: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('asyncIterator'); - }, - 28579: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(20276), - o = n(72908), - m = n(90139), - N = n(16361), - y = n(61855), - S = n(13586), - k = n(3302), - p = n(54341), - l = n(45418), - c = n(54292), - f = n(72445), - i = n(8758), - u = n(73970), - s = n(15439), - d = n(99869), - C = n(60097), - g = n(31024), - v = n(61791), - h = n(19765), - V = n(8165), - b = n(55119), - B = n(10409), - I = n(60855), - w = n(57301), - T = n(7624), - A = n(97223), - x = n(51653), - E = n(76246), - P = n(95558), - D = n(15355), - M = n(20614), - O = n(28952), - j = n(15676), - F = n(4471), - U = n(18539).forEach, - _ = A('hidden'), - z = 'Symbol', - H = 'prototype', - $ = F.set, - Y = F.getterFor(z), - X = Object[H], - re = a.Symbol, - ae = re && re[H], - se = a.RangeError, - pe = a.TypeError, - ye = a.QObject, - Be = h.f, - he = V.f, - oe = g.f, - Z = B.f, - q = o([].push), - ue = T('symbols'), - me = T('op-symbols'), - ne = T('wks'), - be = !ye || !ye[H] || !ye[H].findChild, - fe = function (le, Ce, de) { - var Ne = Be(X, Ce); - Ne && delete X[Ce], - he(le, Ce, de), - Ne && le !== X && he(X, Ce, Ne); - }, - ge = - N && - S(function () { - return ( - s( - he({}, 'a', { - get: (function () { - function ce() { - return he(this, 'a', { value: 7 }).a; - } - return ce; - })(), - }) - ).a !== 7 - ); - }) - ? fe - : he, - ke = function (le, Ce) { - var de = (ue[le] = s(ae)); - return ( - $(de, { type: z, tag: le, description: Ce }), - N || (de.description = Ce), - de - ); - }, - ve = (function () { - function ce(le, Ce, de) { - le === X && ve(me, Ce, de), l(le); - var Ne = f(Ce); - return ( - l(de), - k(ue, Ne) - ? (de.enumerable - ? (k(le, _) && le[_][Ne] && (le[_][Ne] = !1), - (de = s(de, { enumerable: u(0, !1) }))) - : (k(le, _) || he(le, _, u(1, s(null))), - (le[_][Ne] = !0)), - ge(le, Ne, de)) - : he(le, Ne, de) - ); - } - return ce; - })(), - Se = (function () { - function ce(le, Ce) { - l(le); - var de = c(Ce), - Ne = d(de).concat(Ve(de)); - return ( - U(Ne, function (Ae) { - (!N || t(xe, de, Ae)) && ve(le, Ae, de[Ae]); - }), - le - ); - } - return ce; - })(), - we = (function () { - function ce(le, Ce) { - return Ce === void 0 ? s(le) : Se(s(le), Ce); - } - return ce; - })(), - xe = (function () { - function ce(le) { - var Ce = f(le), - de = t(Z, this, Ce); - return this === X && k(ue, Ce) && !k(me, Ce) - ? !1 - : de || - !k(this, Ce) || - !k(ue, Ce) || - (k(this, _) && this[_][Ce]) - ? de - : !0; - } - return ce; - })(), - Oe = (function () { - function ce(le, Ce) { - var de = c(le), - Ne = f(Ce); - if (!(de === X && k(ue, Ne) && !k(me, Ne))) { - var Ae = Be(de, Ne); - return ( - Ae && - k(ue, Ne) && - !(k(de, _) && de[_][Ne]) && - (Ae.enumerable = !0), - Ae - ); - } - } - return ce; - })(), - We = (function () { - function ce(le) { - var Ce = oe(c(le)), - de = []; - return ( - U(Ce, function (Ne) { - !k(ue, Ne) && !k(x, Ne) && q(de, Ne); - }), - de - ); - } - return ce; - })(), - Ve = function (le) { - var Ce = le === X, - de = oe(Ce ? me : c(le)), - Ne = []; - return ( - U(de, function (Ae) { - k(ue, Ae) && (!Ce || k(X, Ae)) && q(Ne, ue[Ae]); - }), - Ne - ); - }; - y || - ((re = (function () { - function ce() { - if (p(ae, this)) throw new pe('Symbol is not a constructor'); - var le = - !arguments.length || arguments[0] === void 0 - ? void 0 - : i(arguments[0]), - Ce = E(le), - de = (function () { - function Ne(Ae) { - var De = this === void 0 ? a : this; - De === X && t(Ne, me, Ae), - k(De, _) && k(De[_], Ce) && (De[_][Ce] = !1); - var je = u(1, Ae); - try { - ge(De, Ce, je); - } catch (_e) { - if (!(_e instanceof se)) throw _e; - fe(De, Ce, je); - } - } - return Ne; - })(); - return ( - N && be && ge(X, Ce, { configurable: !0, set: de }), - ke(Ce, le) - ); - } - return ce; - })()), - (ae = re[H]), - I( - ae, - 'toString', - (function () { - function ce() { - return Y(this).tag; - } - return ce; - })() - ), - I(re, 'withoutSetter', function (ce) { - return ke(E(ce), ce); - }), - (B.f = xe), - (V.f = ve), - (b.f = Se), - (h.f = Oe), - (C.f = g.f = We), - (v.f = Ve), - (D.f = function (ce) { - return ke(P(ce), ce); - }), - N && - (w(ae, 'description', { - configurable: !0, - get: (function () { - function ce() { - return Y(this).description; - } - return ce; - })(), - }), - m || I(X, 'propertyIsEnumerable', xe, { unsafe: !0 }))), - e( - { global: !0, constructor: !0, wrap: !0, forced: !y, sham: !y }, - { Symbol: re } - ), - U(d(ne), function (ce) { - M(ce); - }), - e( - { target: z, stat: !0, forced: !y }, - { - useSetter: (function () { - function ce() { - be = !0; - } - return ce; - })(), - useSimple: (function () { - function ce() { - be = !1; - } - return ce; - })(), - } - ), - e( - { target: 'Object', stat: !0, forced: !y, sham: !N }, - { - create: we, - defineProperty: ve, - defineProperties: Se, - getOwnPropertyDescriptor: Oe, - } - ), - e( - { target: 'Object', stat: !0, forced: !y }, - { getOwnPropertyNames: We } - ), - O(), - j(re, z), - (x[_] = !0); - }, - 64777: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(16361), - t = n(26856), - o = n(72908), - m = n(3302), - N = n(53664), - y = n(54341), - S = n(8758), - k = n(57301), - p = n(83826), - l = t.Symbol, - c = l && l.prototype; - if ( - a && - N(l) && - (!('description' in c) || l().description !== void 0) - ) { - var f = {}, - i = (function () { - function h() { - var V = - arguments.length < 1 || arguments[0] === void 0 - ? void 0 - : S(arguments[0]), - b = y(c, this) ? new l(V) : V === void 0 ? l() : l(V); - return V === '' && (f[b] = !0), b; - } - return h; - })(); - p(i, l), (i.prototype = c), (c.constructor = i); - var u = - String(l('description detection')) === - 'Symbol(description detection)', - s = o(c.valueOf), - d = o(c.toString), - C = /^Symbol\((.*)\)[^)]+$/, - g = o(''.replace), - v = o(''.slice); - k(c, 'description', { - configurable: !0, - get: (function () { - function h() { - var V = s(this); - if (m(f, V)) return ''; - var b = d(V), - B = u ? v(b, 7, -1) : g(b, C, '$1'); - return B === '' ? void 0 : B; - } - return h; - })(), - }), - e({ global: !0, constructor: !0, forced: !0 }, { Symbol: i }); - } - }, - 99694: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(22070), - t = n(3302), - o = n(8758), - m = n(7624), - N = n(16010), - y = m('string-to-symbol-registry'), - S = m('symbol-to-string-registry'); - e( - { target: 'Symbol', stat: !0, forced: !N }, - { - for: (function () { - function k(p) { - var l = o(p); - if (t(y, l)) return y[l]; - var c = a('Symbol')(l); - return (y[l] = c), (S[c] = l), c; - } - return k; - })(), - } - ); - }, - 56564: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('hasInstance'); - }, - 68981: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('isConcatSpreadable'); - }, - 27699: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('iterator'); - }, - 32321: function (L, r, n) { - 'use strict'; - n(28579), n(99694), n(16184), n(34233), n(56896); - }, - 16184: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(3302), - t = n(43474), - o = n(36787), - m = n(7624), - N = n(16010), - y = m('symbol-to-string-registry'); - e( - { target: 'Symbol', stat: !0, forced: !N }, - { - keyFor: (function () { - function S(k) { - if (!t(k)) throw new TypeError(o(k) + ' is not a symbol'); - if (a(y, k)) return y[k]; - } - return S; - })(), - } - ); - }, - 22905: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('match'); - }, - 96311: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('replace'); - }, - 61292: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('search'); - }, - 75419: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('species'); - }, - 67638: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('split'); - }, - 7601: function (L, r, n) { - 'use strict'; - var e = n(20614), - a = n(28952); - e('toPrimitive'), a(); - }, - 89010: function (L, r, n) { - 'use strict'; - var e = n(22070), - a = n(20614), - t = n(15676); - a('toStringTag'), t(e('Symbol'), 'Symbol'); - }, - 5401: function (L, r, n) { - 'use strict'; - var e = n(20614); - e('unscopables'); - }, - 76464: function (L, r, n) { - 'use strict'; - var e = n(72908), - a = n(30432), - t = n(28332), - o = e(t), - m = a.aTypedArray, - N = a.exportTypedArrayMethod; - N( - 'copyWithin', - (function () { - function y(S, k) { - return o( - m(this), - S, - k, - arguments.length > 2 ? arguments[2] : void 0 - ); - } - return y; - })() - ); - }, - 58549: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).every, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'every', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 42774: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(39948), - t = n(73873), - o = n(48615), - m = n(20276), - N = n(72908), - y = n(13586), - S = e.aTypedArray, - k = e.exportTypedArrayMethod, - p = N(''.slice), - l = y(function () { - var c = 0; - return ( - new Int8Array(2).fill({ - valueOf: (function () { - function f() { - return c++; - } - return f; - })(), - }), - c !== 1 - ); - }); - k( - 'fill', - (function () { - function c(f) { - var i = arguments.length; - S(this); - var u = p(o(this), 0, 3) === 'Big' ? t(f) : +f; - return m( - a, - this, - u, - i > 1 ? arguments[1] : void 0, - i > 2 ? arguments[2] : void 0 - ); - } - return c; - })(), - l - ); - }, - 65446: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).filter, - t = n(85710), - o = e.aTypedArray, - m = e.exportTypedArrayMethod; - m( - 'filter', - (function () { - function N(y) { - var S = a( - o(this), - y, - arguments.length > 1 ? arguments[1] : void 0 - ); - return t(this, S); - } - return N; - })() - ); - }, - 62243: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).findIndex, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'findIndex', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 21066: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).find, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'find', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 43059: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Float32', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 97363: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Float64', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 35249: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).forEach, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'forEach', - (function () { - function m(N) { - a(t(this), N, arguments.length > 1 ? arguments[1] : void 0); - } - return m; - })() - ); - }, - 68739: function (L, r, n) { - 'use strict'; - var e = n(45410), - a = n(30432).exportTypedArrayStaticMethod, - t = n(12778); - a('from', t, e); - }, - 5723: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(33483).includes, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'includes', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 40353: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(33483).indexOf, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'indexOf', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 33278: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Int16', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 65331: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Int32', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 99755: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Int8', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 87975: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(13586), - t = n(72908), - o = n(30432), - m = n(26017), - N = n(95558), - y = N('iterator'), - S = e.Uint8Array, - k = t(m.values), - p = t(m.keys), - l = t(m.entries), - c = o.aTypedArray, - f = o.exportTypedArrayMethod, - i = S && S.prototype, - u = !a(function () { - i[y].call([1]); - }), - s = - !!i && - i.values && - i[y] === i.values && - i.values.name === 'values', - d = (function () { - function C() { - return k(c(this)); - } - return C; - })(); - f( - 'entries', - (function () { - function C() { - return l(c(this)); - } - return C; - })(), - u - ), - f( - 'keys', - (function () { - function C() { - return p(c(this)); - } - return C; - })(), - u - ), - f('values', d, u || !s, { name: 'values' }), - f(y, d, u || !s, { name: 'values' }); - }, - 20812: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(72908), - t = e.aTypedArray, - o = e.exportTypedArrayMethod, - m = a([].join); - o( - 'join', - (function () { - function N(y) { - return m(t(this), y); - } - return N; - })() - ); - }, - 5640: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(47244), - t = n(16400), - o = e.aTypedArray, - m = e.exportTypedArrayMethod; - m( - 'lastIndexOf', - (function () { - function N(y) { - var S = arguments.length; - return a(t, o(this), S > 1 ? [y, arguments[1]] : [y]); - } - return N; - })() - ); - }, - 47736: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).map, - t = n(9230), - o = e.aTypedArray, - m = e.exportTypedArrayMethod; - m( - 'map', - (function () { - function N(y) { - return a( - o(this), - y, - arguments.length > 1 ? arguments[1] : void 0, - function (S, k) { - return new (t(S))(k); - } - ); - } - return N; - })() - ); - }, - 81944: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(45410), - t = e.aTypedArrayConstructor, - o = e.exportTypedArrayStaticMethod; - o( - 'of', - (function () { - function m() { - for ( - var N = 0, y = arguments.length, S = new (t(this))(y); - y > N; - - ) - S[N] = arguments[N++]; - return S; - } - return m; - })(), - a - ); - }, - 72214: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(58394).right, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'reduceRight', - (function () { - function m(N) { - var y = arguments.length; - return a(t(this), N, y, y > 1 ? arguments[1] : void 0); - } - return m; - })() - ); - }, - 68685: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(58394).left, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'reduce', - (function () { - function m(N) { - var y = arguments.length; - return a(t(this), N, y, y > 1 ? arguments[1] : void 0); - } - return m; - })() - ); - }, - 48774: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = e.aTypedArray, - t = e.exportTypedArrayMethod, - o = Math.floor; - t( - 'reverse', - (function () { - function m() { - for ( - var N = this, y = a(N).length, S = o(y / 2), k = 0, p; - k < S; - - ) - (p = N[k]), (N[k++] = N[--y]), (N[y] = p); - return N; - } - return m; - })() - ); - }, - 2915: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(20276), - t = n(30432), - o = n(83207), - m = n(45476), - N = n(63549), - y = n(13586), - S = e.RangeError, - k = e.Int8Array, - p = k && k.prototype, - l = p && p.set, - c = t.aTypedArray, - f = t.exportTypedArrayMethod, - i = !y(function () { - var s = new Uint8ClampedArray(2); - return a(l, s, { length: 1, 0: 3 }, 1), s[1] !== 3; - }), - u = - i && - t.NATIVE_ARRAY_BUFFER_VIEWS && - y(function () { - var s = new k(2); - return s.set(1), s.set('2', 1), s[0] !== 0 || s[1] !== 2; - }); - f( - 'set', - (function () { - function s(d) { - c(this); - var C = m(arguments.length > 1 ? arguments[1] : void 0, 1), - g = N(d); - if (i) return a(l, this, g, C); - var v = this.length, - h = o(g), - V = 0; - if (h + C > v) throw new S('Wrong length'); - for (; V < h; ) this[C + V] = g[V++]; - } - return s; - })(), - !i || u - ); - }, - 17165: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(9230), - t = n(13586), - o = n(31170), - m = e.aTypedArray, - N = e.exportTypedArrayMethod, - y = t(function () { - new Int8Array(1).slice(); - }); - N( - 'slice', - (function () { - function S(k, p) { - for ( - var l = o(m(this), k, p), - c = a(this), - f = 0, - i = l.length, - u = new c(i); - i > f; - - ) - u[f] = l[f++]; - return u; - } - return S; - })(), - y - ); - }, - 10702: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(18539).some, - t = e.aTypedArray, - o = e.exportTypedArrayMethod; - o( - 'some', - (function () { - function m(N) { - return a( - t(this), - N, - arguments.length > 1 ? arguments[1] : void 0 - ); - } - return m; - })() - ); - }, - 76622: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(69935), - t = n(13586), - o = n(79474), - m = n(91183), - N = n(30432), - y = n(31574), - S = n(88836), - k = n(43541), - p = n(27204), - l = N.aTypedArray, - c = N.exportTypedArrayMethod, - f = e.Uint16Array, - i = f && a(f.prototype.sort), - u = - !!i && - !( - t(function () { - i(new f(2), null); - }) && - t(function () { - i(new f(2), {}); - }) - ), - s = - !!i && - !t(function () { - if (k) return k < 74; - if (y) return y < 67; - if (S) return !0; - if (p) return p < 602; - var C = new f(516), - g = Array(516), - v, - h; - for (v = 0; v < 516; v++) - (h = v % 4), (C[v] = 515 - v), (g[v] = v - 2 * h + 3); - for ( - i(C, function (V, b) { - return ((V / 4) | 0) - ((b / 4) | 0); - }), - v = 0; - v < 516; - v++ - ) - if (C[v] !== g[v]) return !0; - }), - d = function (g) { - return function (v, h) { - return g !== void 0 - ? +g(v, h) || 0 - : h !== h - ? -1 - : v !== v - ? 1 - : v === 0 && h === 0 - ? 1 / v > 0 && 1 / h < 0 - ? 1 - : -1 - : v > h; - }; - }; - c( - 'sort', - (function () { - function C(g) { - return g !== void 0 && o(g), s ? i(this, g) : m(l(this), d(g)); - } - return C; - })(), - !s || u - ); - }, - 64408: function (L, r, n) { - 'use strict'; - var e = n(30432), - a = n(74369), - t = n(39531), - o = n(9230), - m = e.aTypedArray, - N = e.exportTypedArrayMethod; - N( - 'subarray', - (function () { - function y(S, k) { - var p = m(this), - l = p.length, - c = t(S, l), - f = o(p); - return new f( - p.buffer, - p.byteOffset + c * p.BYTES_PER_ELEMENT, - a((k === void 0 ? l : t(k, l)) - c) - ); - } - return y; - })() - ); - }, - 22306: function (L, r, n) { - 'use strict'; - var e = n(26856), - a = n(47244), - t = n(30432), - o = n(13586), - m = n(31170), - N = e.Int8Array, - y = t.aTypedArray, - S = t.exportTypedArrayMethod, - k = [].toLocaleString, - p = - !!N && - o(function () { - k.call(new N(1)); - }), - l = - o(function () { - return ( - [1, 2].toLocaleString() !== new N([1, 2]).toLocaleString() - ); - }) || - !o(function () { - N.prototype.toLocaleString.call([1, 2]); - }); - S( - 'toLocaleString', - (function () { - function c() { - return a(k, p ? m(y(this)) : y(this), m(arguments)); - } - return c; - })(), - l - ); - }, - 90334: function (L, r, n) { - 'use strict'; - var e = n(30432).exportTypedArrayMethod, - a = n(13586), - t = n(26856), - o = n(72908), - m = t.Uint8Array, - N = (m && m.prototype) || {}, - y = [].toString, - S = o([].join); - a(function () { - y.call({}); - }) && - (y = (function () { - function p() { - return S(this); - } - return p; - })()); - var k = N.toString !== y; - e('toString', y, k); - }, - 70088: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Uint16', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 7284: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Uint32', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 25855: function (L, r, n) { - 'use strict'; - var e = n(43186); - e('Uint8', function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }); - }, - 97372: function (L, r, n) { - 'use strict'; - var e = n(43186); - e( - 'Uint8', - function (a) { - return (function () { - function t(o, m, N) { - return a(this, o, m, N); - } - return t; - })(); - }, - !0 - ); - }, - 84937: function (L, r, n) { - 'use strict'; - var e = n(58199), - a = n(26856), - t = n(72908), - o = n(26148), - m = n(66526), - N = n(10609), - y = n(19250), - S = n(66379), - k = n(4471).enforce, - p = n(13586), - l = n(73844), - c = Object, - f = Array.isArray, - i = c.isExtensible, - u = c.isFrozen, - s = c.isSealed, - d = c.freeze, - C = c.seal, - g = !a.ActiveXObject && 'ActiveXObject' in a, - v, - h = function (E) { - return (function () { - function P() { - return E(this, arguments.length ? arguments[0] : void 0); - } - return P; - })(); - }, - V = N('WeakMap', h, y), - b = V.prototype, - B = t(b.set), - I = function () { - return ( - e && - p(function () { - var E = d([]); - return B(new V(), E, 1), !u(E); - }) - ); - }; - if (l) - if (g) { - (v = y.getConstructor(h, 'WeakMap', !0)), m.enable(); - var w = t(b.delete), - T = t(b.has), - A = t(b.get); - o(b, { - delete: (function () { - function x(E) { - if (S(E) && !i(E)) { - var P = k(this); - return ( - P.frozen || (P.frozen = new v()), - w(this, E) || P.frozen.delete(E) - ); - } - return w(this, E); - } - return x; - })(), - has: (function () { - function x(E) { - if (S(E) && !i(E)) { - var P = k(this); - return ( - P.frozen || (P.frozen = new v()), - T(this, E) || P.frozen.has(E) - ); - } - return T(this, E); - } - return x; - })(), - get: (function () { - function x(E) { - if (S(E) && !i(E)) { - var P = k(this); - return ( - P.frozen || (P.frozen = new v()), - T(this, E) ? A(this, E) : P.frozen.get(E) - ); - } - return A(this, E); - } - return x; - })(), - set: (function () { - function x(E, P) { - if (S(E) && !i(E)) { - var D = k(this); - D.frozen || (D.frozen = new v()), - T(this, E) ? B(this, E, P) : D.frozen.set(E, P); - } else B(this, E, P); - return this; - } - return x; - })(), - }); - } else - I() && - o(b, { - set: (function () { - function x(E, P) { - var D; - return ( - f(E) && (u(E) ? (D = d) : s(E) && (D = C)), - B(this, E, P), - D && D(E), - this - ); - } - return x; - })(), - }); - }, - 69880: function (L, r, n) { - 'use strict'; - n(84937); - }, - 74764: function (L, r, n) { - 'use strict'; - var e = n(10609), - a = n(19250); - e( - 'WeakSet', - function (t) { - return (function () { - function o() { - return t(this, arguments.length ? arguments[0] : void 0); - } - return o; - })(); - }, - a - ); - }, - 37167: function (L, r, n) { - 'use strict'; - n(74764); - }, - 82818: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(87073).clear; - e( - { - global: !0, - bind: !0, - enumerable: !0, - forced: a.clearImmediate !== t, - }, - { clearImmediate: t } - ); - }, - 25109: function (L, r, n) { - 'use strict'; - n(82818), n(21813); - }, - 367: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(60816), - t = n(79474), - o = n(92827); - e( - { global: !0, enumerable: !0, dontCallGetSet: !0 }, - { - queueMicrotask: (function () { - function m(N) { - o(arguments.length, 1), a(t(N)); - } - return m; - })(), - } - ); - }, - 21813: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(87073).set, - o = n(17459), - m = a.setImmediate ? o(t, !1) : t; - e( - { - global: !0, - bind: !0, - enumerable: !0, - forced: a.setImmediate !== m, - }, - { setImmediate: m } - ); - }, - 50943: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(17459), - o = t(a.setInterval, !0); - e( - { global: !0, bind: !0, forced: a.setInterval !== o }, - { setInterval: o } - ); - }, - 91851: function (L, r, n) { - 'use strict'; - var e = n(3116), - a = n(26856), - t = n(17459), - o = t(a.setTimeout, !0); - e( - { global: !0, bind: !0, forced: a.setTimeout !== o }, - { setTimeout: o } - ); - }, - 8459: function (L, r, n) { - 'use strict'; - n(50943), n(91851); - }, - 87454: function (L) { - 'use strict'; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ var r, - n = [], - e = [], - a = function () { - if (0) var k; - window.onunload = function () { - return r && r.close(); - }; - }, - t = function (k) { - return e.push(k); - }, - o = function (k) { - var h = [], - l = function (u) { - return typeof u == 'number' && !Number.isFinite(u) - ? { __number__: String(u) } - : typeof u == 'undefined' - ? { __undefined__: !0 } - : u; - }, - c = function (u, s) { - if (typeof s == 'object') { - if (s === null) return s; - if (h.includes(s)) return '[circular ref]'; - h.push(s); - var d = - s instanceof Error || - (s.code && s.message && s.message.includes('Error')); - return d - ? { __error__: !0, string: String(s), stack: s.stack } - : Array.isArray(s) - ? s.map(l) - : s; - } - return l(s); - }, - f = JSON.stringify(k, c); - return (h = null), f; - }, - m = function (k) { - if (0) var h, l, c; - }, - N = function (k, h) { - if (0) var l, c, f; - }, - y = function () {}; - L.exports = { - subscribe: t, - sendMessage: m, - sendLogEntry: N, - setupHotReloading: y, - }; - }, - }, - bt = {}; - function J(L) { - var r = bt[L]; - if (r !== void 0) return r.exports; - var n = (bt[L] = { exports: {} }); - return $t[L](n, n.exports, J), n.exports; - } - (function () { - J.g = (function () { - if (typeof globalThis == 'object') return globalThis; - try { - return this || new Function('return this')(); - } catch (L) { - if (typeof window == 'object') return window; - } - })(); - })(), - (function () { - J.o = function (L, r) { - return Object.prototype.hasOwnProperty.call(L, r); - }; - })(); - var In = {}; - (function () { - 'use strict'; - J(32321), - J(64777), - J(65884), - J(56564), - J(68981), - J(27699), - J(22905), - J(96311), - J(61292), - J(75419), - J(67638), - J(7601), - J(89010), - J(5401), - J(75836), - J(33901), - J(85803), - J(7216), - J(50584), - J(26632), - J(25972), - J(55222), - J(14064), - J(68616), - J(45168), - J(26088), - J(92654), - J(58423), - J(26017), - J(37808), - J(2509), - J(2124), - J(38196), - J(7731), - J(56913), - J(48704), - J(24077), - J(60230), - J(43430), - J(53407), - J(69220), - J(72978), - J(55784), - J(41365), - J(58874), - J(85806), - J(3521), - J(94961), - J(91777), - J(49615), - J(70700), - J(31032), - J(83329), - J(15700), - J(85783), - J(51430), - J(10944), - J(36418), - J(68872), - J(93105), - J(1795), - J(11121), - J(18730), - J(11624), - J(89004), - J(72680), - J(75213), - J(4347), - J(86433), - J(21401), - J(54468), - J(36183), - J(95499), - J(50929), - J(91447), - J(84314), - J(48211), - J(52237), - J(306), - J(22509), - J(84660), - J(82678), - J(76585), - J(21733), - J(21210), - J(10272), - J(83403), - J(4229), - J(53388), - J(53121), - J(53822), - J(2514), - J(2218), - J(14955), - J(79220), - J(81941), - J(37245), - J(8373), - J(81212), - J(26054), - J(57745), - J(49611), - J(98344), - J(55750), - J(7340), - J(63429), - J(9558), - J(2420), - J(19015), - J(34137), - J(24705), - J(55318), - J(49456), - J(12217), - J(75795), - J(79063), - J(1210), - J(91370), - J(17327), - J(2679), - J(60733), - J(27262), - J(47278), - J(22547), - J(92992), - J(64650), - J(71255), - J(97836), - J(65558), - J(83932), - J(72941), - J(57918), - J(2394), - J(37517), - J(65699), - J(11360), - J(33683), - J(16792), - J(8), - J(76015), - J(57318), - J(33177), - J(1429), - J(56515), - J(30343), - J(60981), - J(96578), - J(59592), - J(54511), - J(84368), - J(76980), - J(25492), - J(13684), - J(79646), - J(98511), - J(30733), - J(58683), - J(70277), - J(36865), - J(13763), - J(56001), - J(58713), - J(41960), - J(31772), - J(43059), - J(97363), - J(99755), - J(33278), - J(65331), - J(25855), - J(97372), - J(70088), - J(7284), - J(76464), - J(58549), - J(42774), - J(65446), - J(21066), - J(62243), - J(35249), - J(68739), - J(5723), - J(40353), - J(87975), - J(20812), - J(5640), - J(47736), - J(81944), - J(68685), - J(72214), - J(48774), - J(2915), - J(17165), - J(10702), - J(76622), - J(64408), - J(22306), - J(90334), - J(69880), - J(37167), - J(25109), - J(367), - J(8459), - J(16970), - J(11386); - })(), - (function () { - 'use strict'; - var L = J(28823); - J(47468), - J(52355), - J(66309), - J(74395), - J(86879), - J(66782), - J(35116), - J(47968), - J(67041), - J(59719), - J(14045), - J(81912), - J(53152), - J(72694); - var r = J(60031), - n = J(87454), - e = J(39891), - a = J(85955), - t = J(64960), - o = J(79143), - m = J(33053), - N; - /** - * @file - * @copyright 2020 Aleksej Komarov - * @license MIT - */ r.perf.mark( - 'inception', - (N = window.performance) == null || (N = N.timing) == null - ? void 0 - : N.navigationStart - ), - r.perf.mark('init'); - var y = (0, o.configureStore)(), - S = (0, t.createRenderer)(function () { - var h = J(76521), - l = h.getRoutedComponent, - c = l(y); - return (0, L.createComponentVNode)(2, o.StoreProvider, { - store: y, - children: (0, L.createComponentVNode)(2, c), - }); - }), - k = function h() { - if (document.readyState === 'loading') { - document.addEventListener('DOMContentLoaded', h); - return; - } - (0, m.setupGlobalEvents)(), - (0, e.setupHotKeys)(), - (0, a.captureExternalLinks)(), - y.subscribe(S), - Byond.subscribe(function (l, c) { - return y.dispatch({ type: l, payload: c }); - }); - }; - k(); - })(); - })(); -})(); +(function(){(function(){var $t={15113:function(L,r,n){"use strict";r.__esModule=!0,r.createPopper=void 0,r.popperGenerator=f;var e=p(n(28770)),a=p(n(12866)),t=p(n(88577)),o=p(n(29727)),m=p(n(13657)),N=p(n(97902)),y=p(n(57547)),S=p(n(4709));r.detectOverflow=S.default;var k=n(65601);function p(u){return u&&u.__esModule?u:{default:u}}var l={placement:"bottom",modifiers:[],strategy:"absolute"};function c(){for(var u=arguments.length,s=new Array(u),d=0;d0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var f=(0,e.isElement)(y)?(0,t.default)(y):window,i=f.visualViewport,u=!(0,o.default)()&&k,s=(p.left+(u&&i?i.offsetLeft:0))/l,d=(p.top+(u&&i?i.offsetTop:0))/c,C=p.width/l,g=p.height/c;return{width:C,height:g,top:d,right:s+C,bottom:d+g,left:s,x:s,y:d}}},98310:function(L,r,n){"use strict";r.__esModule=!0,r.default=g;var e=n(37802),a=u(n(63064)),t=u(n(16940)),o=u(n(88577)),m=u(n(29727)),N=u(n(9252)),y=u(n(75663)),S=n(65601),k=u(n(83199)),p=u(n(16292)),l=u(n(11848)),c=u(n(1707)),f=u(n(21194)),i=n(79257);function u(v){return v&&v.__esModule?v:{default:v}}function s(v,h){var V=(0,k.default)(v,!1,h==="fixed");return V.top=V.top+v.clientTop,V.left=V.left+v.clientLeft,V.bottom=V.top+v.clientHeight,V.right=V.left+v.clientWidth,V.width=v.clientWidth,V.height=v.clientHeight,V.x=V.left,V.y=V.top,V}function d(v,h,V){return h===e.viewport?(0,f.default)((0,a.default)(v,V)):(0,S.isElement)(h)?s(h,V):(0,f.default)((0,t.default)((0,N.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),V=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,b=V&&(0,S.isHTMLElement)(v)?(0,m.default)(v):v;return(0,S.isElement)(b)?h.filter(function(B){return(0,S.isElement)(B)&&(0,l.default)(B,b)&&(0,c.default)(B)!=="body"}):[]}function g(v,h,V,b){var B=h==="clippingParents"?C(v):[].concat(h),I=[].concat(B,[V]),w=I[0],T=I.reduce(function(A,x){var E=d(v,x,b);return A.top=(0,i.max)(E.top,A.top),A.right=(0,i.min)(E.right,A.right),A.bottom=(0,i.min)(E.bottom,A.bottom),A.left=(0,i.max)(E.left,A.left),A},d(v,w,b));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},28770:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=k(n(83199)),a=k(n(3107)),t=k(n(1707)),o=n(65601),m=k(n(94889)),N=k(n(9252)),y=k(n(27703)),S=n(79257);function k(c){return c&&c.__esModule?c:{default:c}}function p(c){var f=c.getBoundingClientRect(),i=(0,S.round)(f.width)/c.offsetWidth||1,u=(0,S.round)(f.height)/c.offsetHeight||1;return i!==1||u!==1}function l(c,f,i){i===void 0&&(i=!1);var u=(0,o.isHTMLElement)(f),s=(0,o.isHTMLElement)(f)&&p(f),d=(0,N.default)(f),C=(0,e.default)(c,s,i),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(u||!u&&!i)&&(((0,t.default)(f)!=="body"||(0,y.default)(d))&&(g=(0,a.default)(f)),(0,o.isHTMLElement)(f)?(v=(0,e.default)(f,!0),v.x+=f.clientLeft,v.y+=f.clientTop):d&&(v.x=(0,m.default)(d))),{x:C.left+g.scrollLeft-v.x,y:C.top+g.scrollTop-v.y,width:C.width,height:C.height}}},75663:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},9252:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(65601);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},16940:function(L,r,n){"use strict";r.__esModule=!0,r.default=y;var e=N(n(9252)),a=N(n(75663)),t=N(n(94889)),o=N(n(42532)),m=n(79257);function N(S){return S&&S.__esModule?S:{default:S}}function y(S){var k,p=(0,e.default)(S),l=(0,o.default)(S),c=(k=S.ownerDocument)==null?void 0:k.body,f=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),i=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),u=-l.scrollLeft+(0,t.default)(S),s=-l.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(u+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-f),{width:f,height:i,x:u,y:s}}},89741:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},12866:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(83199));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-N)<=1&&(N=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:N,height:y}}},1707:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},3107:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(42532)),a=m(n(44901)),t=n(65601),o=m(n(89741));function m(y){return y&&y.__esModule?y:{default:y}}function N(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},29727:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=S(n(44901)),a=S(n(1707)),t=S(n(75663)),o=n(65601),m=S(n(36875)),N=S(n(16292)),y=S(n(88492));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var f=/firefox/i.test((0,y.default)()),i=/Trident/i.test((0,y.default)());if(i&&(0,o.isHTMLElement)(c)){var u=(0,t.default)(c);if(u.position==="fixed")return null}var s=(0,N.default)(c);for((0,o.isShadowRoot)(s)&&(s=s.host);(0,o.isHTMLElement)(s)&&["html","body"].indexOf((0,a.default)(s))<0;){var d=(0,t.default)(s);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||f&&d.willChange==="filter"||f&&d.filter&&d.filter!=="none")return s;s=s.parentNode}return null}function l(c){for(var f=(0,e.default)(c),i=k(c);i&&(0,m.default)(i)&&(0,t.default)(i).position==="static";)i=k(i);return i&&((0,a.default)(i)==="html"||(0,a.default)(i)==="body"&&(0,t.default)(i).position==="static")?f:i||p(c)||f}},16292:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(1707)),a=o(n(9252)),t=n(65601);function o(N){return N&&N.__esModule?N:{default:N}}function m(N){return(0,e.default)(N)==="html"?N:N.assignedSlot||N.parentNode||((0,t.isShadowRoot)(N)?N.host:null)||(0,a.default)(N)}},87899:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(16292)),a=m(n(27703)),t=m(n(1707)),o=n(65601);function m(y){return y&&y.__esModule?y:{default:y}}function N(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:N((0,e.default)(y))}},63064:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(44901)),a=m(n(9252)),t=m(n(94889)),o=m(n(95294));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){var k=(0,e.default)(y),p=(0,a.default)(y),l=k.visualViewport,c=p.clientWidth,f=p.clientHeight,i=0,u=0;if(l){c=l.width,f=l.height;var s=(0,o.default)();(s||!s&&S==="fixed")&&(i=l.offsetLeft,u=l.offsetTop)}return{width:c,height:f,x:i+(0,t.default)(y),y:u}}},44901:function(L,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}},42532:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(44901));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:N,scrollTop:y}}},94889:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(83199)),a=o(n(9252)),t=o(n(42532));function o(N){return N&&N.__esModule?N:{default:N}}function m(N){return(0,e.default)((0,a.default)(N)).left+(0,t.default)(N).scrollLeft}},65601:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}function t(N){var y=(0,e.default)(N).Element;return N instanceof y||N instanceof Element}function o(N){var y=(0,e.default)(N).HTMLElement;return N instanceof y||N instanceof HTMLElement}function m(N){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(N).ShadowRoot;return N instanceof y||N instanceof ShadowRoot}},95294:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(88492));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},27703:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(75663));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),N=m.overflow,y=m.overflowX,S=m.overflowY;return/auto|scroll|overlay|hidden/.test(N+S+y)}},36875:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(1707));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},88577:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(87899)),a=m(n(16292)),t=m(n(44901)),o=m(n(27703));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){var k;S===void 0&&(S=[]);var p=(0,e.default)(y),l=p===((k=y.ownerDocument)==null?void 0:k.body),c=(0,t.default)(p),f=l?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,i=S.concat(f);return l?i:i.concat(N((0,a.default)(f)))}},37802:function(L,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],N=r.start="start",y=r.end="end",S=r.clippingParents="clippingParents",k=r.viewport="viewport",p=r.popper="popper",l=r.reference="reference",c=r.variationPlacements=m.reduce(function(B,I){return B.concat([I+"-"+N,I+"-"+y])},[]),f=r.placements=[].concat(m,[o]).reduce(function(B,I){return B.concat([I,I+"-"+N,I+"-"+y])},[]),i=r.beforeRead="beforeRead",u=r.read="read",s=r.afterRead="afterRead",d=r.beforeMain="beforeMain",C=r.main="main",g=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",V=r.afterWrite="afterWrite",b=r.modifierPhases=[i,u,s,d,C,g,v,h,V]},60028:function(L,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(37802);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(16055);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(15113);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(98420);r.createPopper=m.createPopper;var N=n(22008);r.createPopperLite=N.createPopper},20637:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(1707)),a=n(65601);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var S=y.state;Object.keys(S.elements).forEach(function(k){var p=S.styles[k]||{},l=S.attributes[k]||{},c=S.elements[k];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(l).forEach(function(f){var i=l[f];i===!1?c.removeAttribute(f):c.setAttribute(f,i===!0?"":i)}))})}function m(y){var S=y.state,k={popper:{position:S.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(S.elements.popper.style,k.popper),S.styles=k,S.elements.arrow&&Object.assign(S.elements.arrow.style,k.arrow),function(){Object.keys(S.elements).forEach(function(p){var l=S.elements[p],c=S.attributes[p]||{},f=Object.keys(S.styles.hasOwnProperty(p)?S.styles[p]:k[p]),i=f.reduce(function(u,s){return u[s]="",u},{});!(0,a.isHTMLElement)(l)||!(0,e.default)(l)||(Object.assign(l.style,i),Object.keys(c).forEach(function(u){l.removeAttribute(u)}))})}}var N=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},11106:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(16275)),a=p(n(12866)),t=p(n(11848)),o=p(n(29727)),m=p(n(26608)),N=n(87415),y=p(n(41e3)),S=p(n(62605)),k=n(37802);function p(u){return u&&u.__esModule?u:{default:u}}var l=function(){function u(s,d){return s=typeof s=="function"?s(Object.assign({},d.rects,{placement:d.placement})):s,(0,y.default)(typeof s!="number"?s:(0,S.default)(s,k.basePlacements))}return u}();function c(u){var s,d=u.state,C=u.name,g=u.options,v=d.elements.arrow,h=d.modifiersData.popperOffsets,V=(0,e.default)(d.placement),b=(0,m.default)(V),B=[k.left,k.right].indexOf(V)>=0,I=B?"height":"width";if(!(!v||!h)){var w=l(g.padding,d),T=(0,a.default)(v),A=b==="y"?k.top:k.left,x=b==="y"?k.bottom:k.right,E=d.rects.reference[I]+d.rects.reference[b]-h[b]-d.rects.popper[I],P=h[b]-d.rects.reference[b],j=(0,o.default)(v),M=j?b==="y"?j.clientHeight||0:j.clientWidth||0:0,O=E/2-P/2,D=w[A],F=M-T[I]-w[x],U=M/2-T[I]/2+O,_=(0,N.within)(D,U,F),z=b;d.modifiersData[C]=(s={},s[z]=_,s.centerOffset=_-U,s)}}function f(u){var s=u.state,d=u.options,C=d.element,g=C===void 0?"[data-popper-arrow]":C;g!=null&&(typeof g=="string"&&(g=s.elements.popper.querySelector(g),!g)||(0,t.default)(s.elements.popper,g)&&(s.elements.arrow=g))}var i=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},85445:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(37802),a=k(n(29727)),t=k(n(44901)),o=k(n(9252)),m=k(n(75663)),N=k(n(16275)),y=k(n(56918)),S=n(79257);function k(u){return u&&u.__esModule?u:{default:u}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function l(u,s){var d=u.x,C=u.y,g=s.devicePixelRatio||1;return{x:(0,S.round)(d*g)/g||0,y:(0,S.round)(C*g)/g||0}}function c(u){var s,d=u.popper,C=u.popperRect,g=u.placement,v=u.variation,h=u.offsets,V=u.position,b=u.gpuAcceleration,B=u.adaptive,I=u.roundOffsets,w=u.isFixed,T=h.x,A=T===void 0?0:T,x=h.y,E=x===void 0?0:x,P=typeof I=="function"?I({x:A,y:E}):{x:A,y:E};A=P.x,E=P.y;var j=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),O=e.left,D=e.top,F=window;if(B){var U=(0,a.default)(d),_="clientHeight",z="clientWidth";if(U===(0,t.default)(d)&&(U=(0,o.default)(d),(0,m.default)(U).position!=="static"&&V==="absolute"&&(_="scrollHeight",z="scrollWidth")),U=U,g===e.top||(g===e.left||g===e.right)&&v===e.end){D=e.bottom;var H=w&&U===F&&F.visualViewport?F.visualViewport.height:U[_];E-=H-C.height,E*=b?1:-1}if(g===e.left||(g===e.top||g===e.bottom)&&v===e.end){O=e.right;var $=w&&U===F&&F.visualViewport?F.visualViewport.width:U[z];A-=$-C.width,A*=b?1:-1}}var G=Object.assign({position:V},B&&p),X=I===!0?l({x:A,y:E},(0,t.default)(d)):{x:A,y:E};if(A=X.x,E=X.y,b){var oe;return Object.assign({},G,(oe={},oe[D]=M?"0":"",oe[O]=j?"0":"",oe.transform=(F.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",oe))}return Object.assign({},G,(s={},s[D]=M?E+"px":"",s[O]=j?A+"px":"",s.transform="",s))}function f(u){var s=u.state,d=u.options,C=d.gpuAcceleration,g=C===void 0?!0:C,v=d.adaptive,h=v===void 0?!0:v,V=d.roundOffsets,b=V===void 0?!0:V,B={placement:(0,N.default)(s.placement),variation:(0,y.default)(s.placement),popper:s.elements.popper,popperRect:s.rects.popper,gpuAcceleration:g,isFixed:s.options.strategy==="fixed"};s.modifiersData.popperOffsets!=null&&(s.styles.popper=Object.assign({},s.styles.popper,c(Object.assign({},B,{offsets:s.modifiersData.popperOffsets,position:s.options.strategy,adaptive:h,roundOffsets:b})))),s.modifiersData.arrow!=null&&(s.styles.arrow=Object.assign({},s.styles.arrow,c(Object.assign({},B,{offsets:s.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),s.attributes.popper=Object.assign({},s.attributes.popper,{"data-popper-placement":s.placement})}var i=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f,data:{}}},21068:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(44901));function a(N){return N&&N.__esModule?N:{default:N}}var t={passive:!0};function o(N){var y=N.state,S=N.instance,k=N.options,p=k.scroll,l=p===void 0?!0:p,c=k.resize,f=c===void 0?!0:c,i=(0,e.default)(y.elements.popper),u=[].concat(y.scrollParents.reference,y.scrollParents.popper);return l&&u.forEach(function(s){s.addEventListener("scroll",S.update,t)}),f&&i.addEventListener("resize",S.update,t),function(){l&&u.forEach(function(s){s.removeEventListener("scroll",S.update,t)}),f&&i.removeEventListener("resize",S.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function N(){}return N}(),effect:o,data:{}}},51825:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=S(n(96346)),a=S(n(16275)),t=S(n(15022)),o=S(n(4709)),m=S(n(36705)),N=n(37802),y=S(n(56918));function S(c){return c&&c.__esModule?c:{default:c}}function k(c){if((0,a.default)(c)===N.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,i=c.options,u=c.name;if(!f.modifiersData[u]._skip){for(var s=i.mainAxis,d=s===void 0?!0:s,C=i.altAxis,g=C===void 0?!0:C,v=i.fallbackPlacements,h=i.padding,V=i.boundary,b=i.rootBoundary,B=i.altBoundary,I=i.flipVariations,w=I===void 0?!0:I,T=i.allowedAutoPlacements,A=f.options.placement,x=(0,a.default)(A),E=x===A,P=v||(E||!w?[(0,e.default)(A)]:k(A)),j=[A].concat(P).reduce(function(Z,q){return Z.concat((0,a.default)(q)===N.auto?(0,m.default)(f,{placement:q,boundary:V,rootBoundary:b,padding:h,flipVariations:w,allowedAutoPlacements:T}):q)},[]),M=f.rects.reference,O=f.rects.popper,D=new Map,F=!0,U=j[0],_=0;_=0,X=G?"width":"height",oe=(0,o.default)(f,{placement:z,boundary:V,rootBoundary:b,altBoundary:B,padding:h}),re=G?$?N.right:N.left:$?N.bottom:N.top;M[X]>O[X]&&(re=(0,e.default)(re));var se=(0,e.default)(re),he=[];if(d&&he.push(oe[H]<=0),g&&he.push(oe[re]<=0,oe[se]<=0),he.every(function(Z){return Z})){U=z,F=!1;break}D.set(z,he)}if(F)for(var ye=w?3:1,Be=function(){function Z(q){var ue=j.find(function(fe){var ae=D.get(fe);if(ae)return ae.slice(0,q).every(function(be){return be})});if(ue)return U=ue,"break"}return Z}(),me=ye;me>0;me--){var te=Be(me);if(te==="break")break}f.placement!==U&&(f.modifiersData[u]._skip=!0,f.placement=U,f.reset=!0)}}var l=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},44677:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=t(n(4709));function t(S){return S&&S.__esModule?S:{default:S}}function o(S,k,p){return p===void 0&&(p={x:0,y:0}),{top:S.top-k.height-p.y,right:S.right-k.width+p.x,bottom:S.bottom-k.height+p.y,left:S.left-k.width-p.x}}function m(S){return[e.top,e.right,e.bottom,e.left].some(function(k){return S[k]>=0})}function N(S){var k=S.state,p=S.name,l=k.rects.reference,c=k.rects.popper,f=k.modifiersData.preventOverflow,i=(0,a.default)(k,{elementContext:"reference"}),u=(0,a.default)(k,{altBoundary:!0}),s=o(i,l),d=o(u,c,f),C=m(s),g=m(d);k.modifiersData[p]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:C,hasPopperEscaped:g},k.attributes.popper=Object.assign({},k.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":g})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N}},16055:function(L,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(20637));r.applyStyles=e.default;var a=p(n(11106));r.arrow=a.default;var t=p(n(85445));r.computeStyles=t.default;var o=p(n(21068));r.eventListeners=o.default;var m=p(n(51825));r.flip=m.default;var N=p(n(44677));r.hide=N.default;var y=p(n(34331));r.offset=y.default;var S=p(n(56154));r.popperOffsets=S.default;var k=p(n(69770));r.preventOverflow=k.default;function p(l){return l&&l.__esModule?l:{default:l}}},34331:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(16275)),a=n(37802);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,S,k){var p=(0,e.default)(y),l=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof k=="function"?k(Object.assign({},S,{placement:y})):k,f=c[0],i=c[1];return f=f||0,i=(i||0)*l,[a.left,a.right].indexOf(p)>=0?{x:i,y:f}:{x:f,y:i}}function m(y){var S=y.state,k=y.options,p=y.name,l=k.offset,c=l===void 0?[0,0]:l,f=a.placements.reduce(function(d,C){return d[C]=o(C,S.rects,c),d},{}),i=f[S.placement],u=i.x,s=i.y;S.modifiersData.popperOffsets!=null&&(S.modifiersData.popperOffsets.x+=u,S.modifiersData.popperOffsets.y+=s),S.modifiersData[p]=f}var N=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},56154:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(49306));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var N=m.state,y=m.name;N.modifiersData[y]=(0,e.default)({reference:N.rects.reference,element:N.rects.popper,strategy:"absolute",placement:N.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},69770:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(37802),a=c(n(16275)),t=c(n(26608)),o=c(n(49903)),m=n(87415),N=c(n(12866)),y=c(n(29727)),S=c(n(4709)),k=c(n(56918)),p=c(n(26143)),l=n(79257);function c(u){return u&&u.__esModule?u:{default:u}}function f(u){var s=u.state,d=u.options,C=u.name,g=d.mainAxis,v=g===void 0?!0:g,h=d.altAxis,V=h===void 0?!1:h,b=d.boundary,B=d.rootBoundary,I=d.altBoundary,w=d.padding,T=d.tether,A=T===void 0?!0:T,x=d.tetherOffset,E=x===void 0?0:x,P=(0,S.default)(s,{boundary:b,rootBoundary:B,padding:w,altBoundary:I}),j=(0,a.default)(s.placement),M=(0,k.default)(s.placement),O=!M,D=(0,t.default)(j),F=(0,o.default)(D),U=s.modifiersData.popperOffsets,_=s.rects.reference,z=s.rects.popper,H=typeof E=="function"?E(Object.assign({},s.rects,{placement:s.placement})):E,$=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),G=s.modifiersData.offset?s.modifiersData.offset[s.placement]:null,X={x:0,y:0};if(U){if(v){var oe,re=D==="y"?e.top:e.left,se=D==="y"?e.bottom:e.right,he=D==="y"?"height":"width",ye=U[D],Be=ye+P[re],me=ye-P[se],te=A?-z[he]/2:0,Z=M===e.start?_[he]:z[he],q=M===e.start?-z[he]:-_[he],ue=s.elements.arrow,fe=A&&ue?(0,N.default)(ue):{width:0,height:0},ae=s.modifiersData["arrow#persistent"]?s.modifiersData["arrow#persistent"].padding:(0,p.default)(),be=ae[re],pe=ae[se],ge=(0,m.within)(0,_[he],fe[he]),ke=O?_[he]/2-te-ge-be-$.mainAxis:Z-ge-be-$.mainAxis,ve=O?-_[he]/2+te+ge+pe+$.mainAxis:q+ge+pe+$.mainAxis,Se=s.elements.arrow&&(0,y.default)(s.elements.arrow),we=Se?D==="y"?Se.clientTop||0:Se.clientLeft||0:0,xe=(oe=G==null?void 0:G[D])!=null?oe:0,Oe=ye+ke-xe-we,We=ye+ve-xe,Ve=(0,m.within)(A?(0,l.min)(Be,Oe):Be,ye,A?(0,l.max)(me,We):me);U[D]=Ve,X[D]=Ve-ye}if(V){var ce,le=D==="x"?e.top:e.left,Ce=D==="x"?e.bottom:e.right,de=U[F],Ne=F==="y"?"height":"width",Ae=de+P[le],De=de-P[Ce],je=[e.top,e.left].indexOf(j)!==-1,_e=(ce=G==null?void 0:G[F])!=null?ce:0,Ue=je?Ae:de-_[Ne]-z[Ne]-_e+$.altAxis,Ke=je?de+_[Ne]+z[Ne]-_e-$.altAxis:De,Ge=A&&je?(0,m.withinMaxClamp)(Ue,de,Ke):(0,m.within)(A?Ue:Ae,de,A?Ke:De);U[F]=Ge,X[F]=Ge-de}s.modifiersData[C]=X}}var i=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:f,requiresIfExists:["offset"]}},22008:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(15113);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=N(n(21068)),t=N(n(56154)),o=N(n(85445)),m=N(n(20637));function N(k){return k&&k.__esModule?k:{default:k}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],S=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},98420:function(L,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(15113);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=i(n(21068)),o=i(n(56154)),m=i(n(85445)),N=i(n(20637)),y=i(n(34331)),S=i(n(51825)),k=i(n(69770)),p=i(n(11106)),l=i(n(44677)),c=n(22008);r.createPopperLite=c.createPopper;var f=n(16055);Object.keys(f).forEach(function(d){d==="default"||d==="__esModule"||Object.prototype.hasOwnProperty.call(e,d)||d in r&&r[d]===f[d]||(r[d]=f[d])});function i(d){return d&&d.__esModule?d:{default:d}}var u=r.defaultModifiers=[t.default,o.default,m.default,N.default,y.default,S.default,k.default,p.default,l.default],s=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:u})},36705:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(56918)),a=n(37802),t=m(n(4709)),o=m(n(16275));function m(y){return y&&y.__esModule?y:{default:y}}function N(y,S){S===void 0&&(S={});var k=S,p=k.placement,l=k.boundary,c=k.rootBoundary,f=k.padding,i=k.flipVariations,u=k.allowedAutoPlacements,s=u===void 0?a.placements:u,d=(0,e.default)(p),C=d?i?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===d}):a.basePlacements,g=C.filter(function(h){return s.indexOf(h)>=0});g.length===0&&(g=C);var v=g.reduce(function(h,V){return h[V]=(0,t.default)(y,{placement:V,boundary:l,rootBoundary:c,padding:f})[(0,o.default)(V)],h},{});return Object.keys(v).sort(function(h,V){return v[h]-v[V]})}},49306:function(L,r,n){"use strict";r.__esModule=!0,r.default=N;var e=m(n(16275)),a=m(n(56918)),t=m(n(26608)),o=n(37802);function m(y){return y&&y.__esModule?y:{default:y}}function N(y){var S=y.reference,k=y.element,p=y.placement,l=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,f=S.x+S.width/2-k.width/2,i=S.y+S.height/2-k.height/2,u;switch(l){case o.top:u={x:f,y:S.y-k.height};break;case o.bottom:u={x:f,y:S.y+S.height};break;case o.right:u={x:S.x+S.width,y:i};break;case o.left:u={x:S.x-k.width,y:i};break;default:u={x:S.x,y:S.y}}var s=l?(0,t.default)(l):null;if(s!=null){var d=s==="y"?"height":"width";switch(c){case o.start:u[s]=u[s]-(S[d]/2-k[d]/2);break;case o.end:u[s]=u[s]+(S[d]/2-k[d]/2);break;default:}}return u}},97902:function(L,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}}},4709:function(L,r,n){"use strict";r.__esModule=!0,r.default=l;var e=p(n(98310)),a=p(n(9252)),t=p(n(83199)),o=p(n(49306)),m=p(n(21194)),N=n(37802),y=n(65601),S=p(n(41e3)),k=p(n(62605));function p(c){return c&&c.__esModule?c:{default:c}}function l(c,f){f===void 0&&(f={});var i=f,u=i.placement,s=u===void 0?c.placement:u,d=i.strategy,C=d===void 0?c.strategy:d,g=i.boundary,v=g===void 0?N.clippingParents:g,h=i.rootBoundary,V=h===void 0?N.viewport:h,b=i.elementContext,B=b===void 0?N.popper:b,I=i.altBoundary,w=I===void 0?!1:I,T=i.padding,A=T===void 0?0:T,x=(0,S.default)(typeof A!="number"?A:(0,k.default)(A,N.basePlacements)),E=B===N.popper?N.reference:N.popper,P=c.rects.popper,j=c.elements[w?E:B],M=(0,e.default)((0,y.isElement)(j)?j:j.contextElement||(0,a.default)(c.elements.popper),v,V,C),O=(0,t.default)(c.elements.reference),D=(0,o.default)({reference:O,element:P,strategy:"absolute",placement:s}),F=(0,m.default)(Object.assign({},P,D)),U=B===N.popper?F:O,_={top:M.top-U.top+x.top,bottom:U.bottom-M.bottom+x.bottom,left:M.left-U.left+x.left,right:U.right-M.right+x.right},z=c.modifiersData.offset;if(B===N.popper&&z){var H=z[s];Object.keys(_).forEach(function($){var G=[N.right,N.bottom].indexOf($)>=0?1:-1,X=[N.top,N.bottom].indexOf($)>=0?"y":"x";_[$]+=H[X]*G})}return _}},62605:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},49903:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},16275:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(37802);function a(t){return t.split("-")[0]}},26143:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},26608:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},96346:function(L,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]})}},15022:function(L,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]})}},56918:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},79257:function(L,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},57547:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},41e3:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(26143));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},13657:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(37802);function a(o){var m=new Map,N=new Set,y=[];o.forEach(function(k){m.set(k.name,k)});function S(k){N.add(k.name);var p=[].concat(k.requires||[],k.requiresIfExists||[]);p.forEach(function(l){if(!N.has(l)){var c=m.get(l);c&&S(c)}}),y.push(k)}return o.forEach(function(k){N.has(k.name)||S(k)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(N,y){return N.concat(m.filter(function(S){return S.phase===y}))},[])}},21194:function(L,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})}},88492:function(L,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}},87415:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(79257);function a(o,m,N){return(0,e.max)(o,(0,e.min)(m,N))}function t(o,m,N){var y=a(o,m,N);return y>N?N:y}},60208:function(L,r){"use strict";r.__esModule=!0,r.Fragment=r.EMPTY_OBJ=r.Component=void 0,r._CI=Et,r._HI=Be,r._M=ze,r._MCCC=Ot,r._ME=Pt,r._MFCC=Rt,r._MP=xt,r._MR=ot,r._RFC=Ct,r.__render=Ft,r.createComponentVNode=_,r.createFragment=H,r.createPortal=re,r.createRef=Yt,r.createRenderer=kn,r.createTextVNode=z,r.createVNode=O,r.directClone=X,r.findDOMfromVNode=V,r.forwardRef=Xt,r.getFlagsForElementVnode=he,r.linkEvent=p,r.normalizeProps=$,r.options=void 0,r.render=Wt,r.rerender=_t,r.version=void 0;var n=Array.isArray;function e(R){var W=typeof R;return W==="string"||W==="number"}function a(R){return R==null}function t(R){return R===null||R===!1||R===!0||R===void 0}function o(R){return typeof R=="function"}function m(R){return typeof R=="string"}function N(R){return typeof R=="number"}function y(R){return R===null}function S(R){return R===void 0}function k(R,W){var K={};if(R)for(var Y in R)K[Y]=R[Y];if(W)for(var Q in W)K[Q]=W[Q];return K}function p(R,W){return o(W)?{data:R,event:W}:null}function l(R){return!y(R)&&typeof R=="object"}var c=r.EMPTY_OBJ={},f=r.Fragment="$F";function i(R){return R.substr(2).toLowerCase()}function u(R,W){R.appendChild(W)}function s(R,W,K){y(K)?u(R,W):R.insertBefore(W,K)}function d(R,W){return W?document.createElementNS("http://www.w3.org/2000/svg",R):document.createElement(R)}function C(R,W,K){R.replaceChild(W,K)}function g(R,W){R.removeChild(W)}function v(R){for(var W=0;W0,Ie=y(ie),Le=m(ie)&&ie[0]===j;Te||Ie||Le?(K=K||W.slice(0,ee),(Te||Le)&&(ne=X(ne)),(Ie||Le)&&(ne.key=j+ee),K.push(ne)):K&&K.push(ne),ne.flags|=65536}}K=K||W,K.length===0?Y=1:Y=8}else K=W,K.flags|=65536,W.flags&81920&&(K=X(W)),Y=2;return R.children=K,R.childFlags=Y,R}function Be(R){return t(R)||e(R)?z(R,null):n(R)?H(R,0,null):R.flags&16384?X(R):R}var me="http://www.w3.org/1999/xlink",te="http://www.w3.org/XML/1998/namespace",Z={"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 q(R){return{onClick:R,onDblClick:R,onFocusIn:R,onFocusOut:R,onKeyDown:R,onKeyPress:R,onKeyUp:R,onMouseDown:R,onMouseMove:R,onMouseUp:R,onTouchEnd:R,onTouchMove:R,onTouchStart:R}}var ue=q(0),fe=q(null),ae=q(!0);function be(R,W){var K=W.$EV;return K||(K=W.$EV=q(null)),K[R]||++ue[R]===1&&(fe[R]=ce(R)),K}function pe(R,W){var K=W.$EV;K&&K[R]&&(--ue[R]===0&&(document.removeEventListener(i(R),fe[R]),fe[R]=null),K[R]=null)}function ge(R,W,K,Y){if(o(K))be(R,Y)[R]=K;else if(l(K)){if(x(W,K))return;be(R,Y)[R]=K}else pe(R,Y)}function ke(R){return o(R.composedPath)?R.composedPath()[0]:R.target}function ve(R,W,K,Y){var Q=ke(R);do{if(W&&Q.disabled)return;var ee=Q.$EV;if(ee){var ne=ee[K];if(ne&&(Y.dom=Q,ne.event?ne.event(ne.data,R):ne(R),R.cancelBubble))return}Q=Q.parentNode}while(!y(Q))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function we(){return this.defaultPrevented}function xe(){return this.cancelBubble}function Oe(R){var W={dom:document};return R.isDefaultPrevented=we,R.isPropagationStopped=xe,R.stopPropagation=Se,Object.defineProperty(R,"currentTarget",{configurable:!0,get:function(){function K(){return W.dom}return K}()}),W}function We(R){return function(W){if(W.button!==0){W.stopPropagation();return}ve(W,!0,R,Oe(W))}}function Ve(R){return function(W){ve(W,!1,R,Oe(W))}}function ce(R){var W=R==="onClick"||R==="onDblClick"?We(R):Ve(R);return document.addEventListener(i(R),W),W}function le(R,W){var K=document.createElement("i");return K.innerHTML=W,K.innerHTML===R.innerHTML}function Ce(R,W,K){if(R[W]){var Y=R[W];Y.event?Y.event(Y.data,K):Y(K)}else{var Q=W.toLowerCase();R[Q]&&R[Q](K)}}function de(R,W){var K=function(Q){var ee=this.$V;if(ee){var ne=ee.props||c,ie=ee.dom;if(m(R))Ce(ne,R,Q);else for(var Te=0;Te-1&&W.options[ee]&&(ie=W.options[ee].value),K&&a(ie)&&(ie=R.defaultValue),Ge(Y,ie)}}var Bt=de("onInput",pt),It=de("onChange");function Lt(R,W){Ne(R,"input",Bt),W.onChange&&Ne(R,"change",It)}function pt(R,W,K){var Y=R.value,Q=W.value;if(a(Y)){if(K){var ee=R.defaultValue;!a(ee)&&ee!==Q&&(W.defaultValue=ee,W.value=ee)}}else Q!==Y&&(W.defaultValue=Y,W.value=Y)}function wt(R,W,K,Y,Q,ee){R&64?Ke(Y,K):R&256?ft(Y,K,Q,W):R&128&&pt(Y,K,Q),ee&&(K.$V=W)}function Gt(R,W,K){R&64?Ue(W,K):R&256?St(W):R&128&&Lt(W,K)}function Tt(R){return R.type&&Ae(R.type)?!a(R.checked):!a(R.value)}function Yt(){return{current:null}}function Xt(R){return{render:R}}function lt(R){R&&!P(R,null)&&R.current&&(R.current=null)}function ot(R,W,K){R&&(o(R)||R.current!==void 0)&&K.push(function(){!P(R,W)&&R.current!==void 0&&(R.current=W)})}function Xe(R,W){Qe(R),b(R,W)}function Qe(R){var W=R.flags,K=R.children,Y;if(W&481){Y=R.ref;var Q=R.props;lt(Y);var ee=R.childFlags;if(!y(Q))for(var ne=Object.keys(Q),ie=0,Te=ne.length;ie0;ne&&(ee=Tt(K),ee&&Gt(W,Y,K));for(var ie in K)ht(ie,null,K[ie],Y,Q,ee,null);ne&&wt(W,R,Y,K,!0,ee)}function At(R,W,K){var Y=Be(R.render(W,R.state,K)),Q=K;return o(R.getChildContext)&&(Q=k(K,R.getChildContext())),R.$CX=Q,Y}function Et(R,W,K,Y,Q,ee){var ne=new W(K,Y),ie=ne.$N=!!(W.getDerivedStateFromProps||ne.getSnapshotBeforeUpdate);if(ne.$SVG=Q,ne.$L=ee,R.children=ne,ne.$BS=!1,ne.context=Y,ne.props===c&&(ne.props=K),ie)ne.state=I(ne,K,ne.state);else if(o(ne.componentWillMount)){ne.$BR=!0,ne.componentWillMount();var Te=ne.$PS;if(!y(Te)){var Ie=ne.state;if(y(Ie))ne.state=Te;else for(var Le in Te)Ie[Le]=Te[Le];ne.$PS=null}ne.$BR=!1}return ne.$LI=At(ne,K,Y),ne}function Ct(R,W){var K=R.props||c;return R.flags&32768?R.type.render(K,R.ref,W):R.type(K,W)}function ze(R,W,K,Y,Q,ee){var ne=R.flags|=16384;ne&481?Pt(R,W,K,Y,Q,ee):ne&4?nn(R,W,K,Y,Q,ee):ne&8?(on(R,W,K,Y,Q,ee),Rt(R,ee)):ne&512||ne&16?Mt(R,W,Q):ne&8192?tn(R,K,W,Y,Q,ee):ne&1024&&en(R,K,W,Q,ee)}function en(R,W,K,Y,Q){ze(R.children,R.ref,W,!1,null,Q);var ee=oe();Mt(ee,K,Y),R.dom=ee.dom}function tn(R,W,K,Y,Q,ee){var ne=R.children,ie=R.childFlags;ie&12&&ne.length===0&&(ie=R.childFlags=2,ne=R.children=oe()),ie===2?ze(ne,K,W,Y,Q,ee):nt(ne,K,W,Y,Q,ee)}function Mt(R,W,K){var Y=R.dom=document.createTextNode(R.children);y(W)||s(W,Y,K)}function Pt(R,W,K,Y,Q,ee){var ne=R.flags,ie=R.props,Te=R.className,Ie=R.childFlags,Le=R.dom=d(R.type,Y=Y||(ne&32)>0),Ee=R.children;if(!a(Te)&&Te!==""&&(Y?Le.setAttribute("class",Te):Le.className=Te),Ie===16)A(Le,Ee);else if(Ie!==1){var Pe=Y&&R.type!=="foreignObject";Ie===2?(Ee.flags&16384&&(R.children=Ee=X(Ee)),ze(Ee,Le,K,Pe,null,ee)):(Ie===8||Ie===4)&&nt(Ee,Le,K,Pe,null,ee)}y(W)||s(W,Le,Q),y(ie)||xt(R,ne,ie,Le,Y),ot(R.ref,Le,ee)}function nt(R,W,K,Y,Q,ee){for(var ne=0;nePe)&&(Le=V(ne[Pe-1],!1).nextSibling)}vt(Te,Ie,ne,ie,K,Y,Q,Le,R,ee)}function sn(R,W,K,Y){var Q=R.ref,ee=W.ref,ne=W.children;if(vt(R.childFlags,W.childFlags,R.children,ne,Q,K,!1,null,R,Y),W.dom=R.dom,Q!==ee&&!t(ne)){var ie=ne.dom;g(Q,ie),u(ee,ie)}}function mn(R,W,K,Y,Q,ee){var ne=W.dom=R.dom,ie=R.props,Te=W.props,Ie=!1,Le=!1,Ee;if(Y=Y||(Q&32)>0,ie!==Te){var Pe=ie||c;if(Ee=Te||c,Ee!==c){Ie=(Q&448)>0,Ie&&(Le=Tt(Ee));for(var Fe in Ee){var Me=Pe[Fe],He=Ee[Fe];Me!==He&&ht(Fe,Me,He,ne,Y,Le,R)}}if(Pe!==c)for(var Re in Pe)a(Ee[Re])&&!a(Pe[Re])&&ht(Re,Pe[Re],null,ne,Y,Le,R)}var et=W.children,Ye=W.className;R.className!==Ye&&(a(Ye)?ne.removeAttribute("class"):Y?ne.setAttribute("class",Ye):ne.className=Ye),Q&4096?un(ne,et):vt(R.childFlags,W.childFlags,R.children,et,ne,K,Y&&W.type!=="foreignObject",null,R,ee),Ie&&wt(Q,W,ne,Ee,!1,Le);var at=W.ref,Je=R.ref;Je!==at&&(lt(Je),ot(at,ne,ee))}function fn(R,W,K,Y,Q,ee){Qe(R),nt(W,K,Y,Q,V(R,!0),ee),b(R,K)}function vt(R,W,K,Y,Q,ee,ne,ie,Te,Ie){switch(R){case 2:switch(W){case 2:Ze(K,Y,Q,ee,ne,ie,Ie);break;case 1:Xe(K,Q);break;case 16:Qe(K),A(Q,Y);break;default:fn(K,Y,Q,ee,ne,Ie);break}break;case 1:switch(W){case 2:ze(Y,Q,ee,ne,ie,Ie);break;case 1:break;case 16:A(Q,Y);break;default:nt(Y,Q,ee,ne,ie,Ie);break}break;case 16:switch(W){case 16:ln(K,Y,Q);break;case 2:ut(Q),ze(Y,Q,ee,ne,ie,Ie);break;case 1:ut(Q);break;default:ut(Q),nt(Y,Q,ee,ne,ie,Ie);break}break;default:switch(W){case 16:rt(K),A(Q,Y);break;case 2:dt(Q,Te,K),ze(Y,Q,ee,ne,ie,Ie);break;case 1:dt(Q,Te,K);break;default:var Le=K.length|0,Ee=Y.length|0;Le===0?Ee>0&&nt(Y,Q,ee,ne,ie,Ie):Ee===0?dt(Q,Te,K):W===8&&R===8?Nn(K,Y,Q,ee,ne,Le,Ee,ie,Te,Ie):gn(K,Y,Q,ee,ne,Le,Ee,ie,Ie);break}break}}function pn(R,W,K,Y,Q){Q.push(function(){R.componentDidUpdate(W,K,Y)})}function Dt(R,W,K,Y,Q,ee,ne,ie,Te){var Ie=R.state,Le=R.props,Ee=!!R.$N,Pe=o(R.shouldComponentUpdate);if(Ee&&(W=I(R,K,W!==Ie?k(Ie,W):W)),ne||!Pe||Pe&&R.shouldComponentUpdate(K,W,Q)){!Ee&&o(R.componentWillUpdate)&&R.componentWillUpdate(K,W,Q),R.props=K,R.state=W,R.context=Q;var Fe=null,Me=At(R,K,Q);Ee&&o(R.getSnapshotBeforeUpdate)&&(Fe=R.getSnapshotBeforeUpdate(Le,Ie)),Ze(R.$LI,Me,Y,R.$CX,ee,ie,Te),R.$LI=Me,o(R.componentDidUpdate)&&pn(R,Le,Ie,Fe,Te)}else R.props=K,R.state=W,R.context=Q}function hn(R,W,K,Y,Q,ee,ne){var ie=W.children=R.children;if(!y(ie)){ie.$L=ne;var Te=W.props||c,Ie=W.ref,Le=R.ref,Ee=ie.state;if(!ie.$N){if(o(ie.componentWillReceiveProps)){if(ie.$BR=!0,ie.componentWillReceiveProps(Te,Y),ie.$UN)return;ie.$BR=!1}y(ie.$PS)||(Ee=k(Ee,ie.$PS),ie.$PS=null)}Dt(ie,Ee,Te,K,Y,Q,!1,ee,ne),Le!==Ie&&(lt(Le),ot(Ie,ie,ne))}}function Cn(R,W,K,Y,Q,ee,ne){var ie=!0,Te=W.props||c,Ie=W.ref,Le=R.props,Ee=!a(Ie),Pe=R.children;if(Ee&&o(Ie.onComponentShouldUpdate)&&(ie=Ie.onComponentShouldUpdate(Le,Te)),ie!==!1){Ee&&o(Ie.onComponentWillUpdate)&&Ie.onComponentWillUpdate(Le,Te);var Fe=Be(Ct(W,Y));Ze(Pe,Fe,K,Y,Q,ee,ne),W.children=Fe,Ee&&o(Ie.onComponentDidUpdate)&&Ie.onComponentDidUpdate(Le,Te)}else W.children=Pe}function vn(R,W){var K=W.children,Y=W.dom=R.dom;K!==R.children&&(Y.nodeValue=K)}function gn(R,W,K,Y,Q,ee,ne,ie,Te){for(var Ie=ee>ne?ne:ee,Le=0,Ee,Pe;Lene)for(Le=Ie;LeLe||Pe>Ee)break e;Fe=R[Pe],Me=W[Pe]}for(Fe=R[Le],Me=W[Ee];Fe.key===Me.key;){if(Me.flags&16384&&(W[Ee]=Me=X(Me)),Ze(Fe,Me,K,Y,Q,ie,Ie),R[Le]=Me,Le--,Ee--,Pe>Le||Pe>Ee)break e;Fe=R[Le],Me=W[Ee]}}if(Pe>Le){if(Pe<=Ee)for(He=Ee+1,Re=HeEe)for(;Pe<=Le;)Xe(R[Pe++],K);else Vn(R,W,Y,ee,ne,Le,Ee,Pe,K,Q,ie,Te,Ie)}function Vn(R,W,K,Y,Q,ee,ne,ie,Te,Ie,Le,Ee,Pe){var Fe,Me,He,Re=0,et=ie,Ye=ie,at=ee-ie+1,Je=ne-ie+1,ct=new Int32Array(Je+1),tt=at===Y,Vt=!1,$e=0,it=0;if(Q<4||(at|Je)<32)for(Re=et;Re<=ee;++Re)if(Fe=R[Re],itie?Vt=!0:$e=ie,Me.flags&16384&&(W[ie]=Me=X(Me)),Ze(Fe,Me,Te,K,Ie,Le,Pe),++it;break}!tt&&ie>ne&&Xe(Fe,Te)}else tt||Xe(Fe,Te);else{var zt={};for(Re=Ye;Re<=ne;++Re)zt[W[Re].key]=Re;for(Re=et;Re<=ee;++Re)if(Fe=R[Re],itet;)Xe(R[et++],Te);ct[ie-Ye]=Re+1,$e>ie?Vt=!0:$e=ie,Me=W[ie],Me.flags&16384&&(W[ie]=Me=X(Me)),Ze(Fe,Me,Te,K,Ie,Le,Pe),++it}else tt||Xe(Fe,Te);else tt||Xe(Fe,Te)}if(tt)dt(Te,Ee,R),nt(W,Te,K,Ie,Le,Pe);else if(Vt){var Ht=bn(ct);for(ie=Ht.length-1,Re=Je-1;Re>=0;Re--)ct[Re]===0?($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=X(Me)),He=$e+1,ze(Me,Te,K,Ie,He=0;Re--)ct[Re]===0&&($e=Re+Ye,Me=W[$e],Me.flags&16384&&(W[$e]=Me=X(Me)),He=$e+1,ze(Me,Te,K,Ie,Hejt&&(jt=Te,qe=new Int32Array(Te),st=new Int32Array(Te));K>1,R[qe[ie]]0&&(st[K]=qe[ee-1]),qe[ee]=K)}ee=Q+1;var Ie=new Int32Array(ee);for(ne=qe[ee-1];ee-- >0;)Ie[ee]=ne,ne=st[ne],qe[ee]=0;return Ie}var yn=typeof document!="undefined";yn&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ft(R,W,K,Y){var Q=[],ee=W.$V;w.v=!0,a(ee)?a(R)||(R.flags&16384&&(R=X(R)),ze(R,W,Y,!1,null,Q),W.$V=R,ee=R):a(R)?(Xe(ee,W),W.$V=null):(R.flags&16384&&(R=X(R)),Ze(ee,R,W,Y,!1,null,Q),ee=W.$V=R),v(Q),w.v=!1,o(K)&&K(),o(T.renderComplete)&&T.renderComplete(ee,W)}function Wt(R,W,K,Y){K===void 0&&(K=null),Y===void 0&&(Y=c),Ft(R,W,K,Y)}function kn(R){return function(){function W(K,Y,Q,ee){R||(R=K),Wt(Y,R,Q,ee)}return W}()}var mt=[],Sn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(R){window.setTimeout(R,0)},gt=!1;function Ut(R,W,K,Y){var Q=R.$PS;if(o(W)&&(W=W(Q?k(R.state,Q):R.state,R.props,R.context)),a(Q))R.$PS=W;else for(var ee in W)Q[ee]=W[ee];if(R.$BR)o(K)&&R.$L.push(K.bind(R));else{if(!w.v&&mt.length===0){Kt(R,Y),o(K)&&K.call(R);return}if(mt.indexOf(R)===-1&&mt.push(R),Y&&(R.$F=!0),gt||(gt=!0,Sn(_t)),o(K)){var ne=R.$QU;ne||(ne=R.$QU=[]),ne.push(K)}}}function Bn(R){for(var W=R.$QU,K=0;K=0;--U){var _=this.tryEntries[U],z=_.completion;if(_.tryLoc==="root")return F("end");if(_.tryLoc<=this.prev){var H=a.call(_,"catchLoc"),$=a.call(_,"finallyLoc");if(H&&$){if(this.prev<_.catchLoc)return F(_.catchLoc,!0);if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else if(H){if(this.prev<_.catchLoc)return F(_.catchLoc,!0)}else if($){if(this.prev<_.finallyLoc)return F(_.finallyLoc)}else throw new Error("try statement without catch or finally")}}}return M}(),abrupt:function(){function M(O,D){for(var F=this.tryEntries.length-1;F>=0;--F){var U=this.tryEntries[F];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--D){var F=this.tryEntries[D];if(F.finallyLoc===O)return this.complete(F.completion,F.afterLoc),x(F),s}}return M}(),catch:function(){function M(O){for(var D=this.tryEntries.length-1;D>=0;--D){var F=this.tryEntries[D];if(F.tryLoc===O){var U=F.completion;if(U.type==="throw"){var _=U.arg;x(F)}return _}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(O,D,F){return this.delegate={iterator:P(O),resultName:D,nextLoc:F},this.method==="next"&&(this.arg=o),s}return M}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},11386:function(){"use strict";self.fetch||(self.fetch=function(L,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function S(){return Promise.resolve(a.responseText)}return S}(),json:function(){function S(){return Promise.resolve(a.responseText).then(JSON.parse)}return S}(),blob:function(){function S(){return Promise.resolve(new Blob([a.response]))}return S}(),clone:y,headers:{keys:function(){function S(){return t}return S}(),entries:function(){function S(){return t.map(function(k){return[k,a.getResponseHeader(k)]})}return S}(),get:function(){function S(k){return a.getResponseHeader(k)}return S}(),has:function(){function S(k){return a.getResponseHeader(k)!=null}return S}()}}}return y}();for(var N in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,S){o[S]||t.push(o[S]=S)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(N,r.headers[N]);a.send(r.body||null)})})},72026:function(L,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(d,C){var g=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(g)return(g=g.call(d)).next.bind(g);if(Array.isArray(d)||(g=e(d))||C&&d&&typeof d.length=="number"){g&&(d=g);var v=0;return function(){return v>=d.length?{done:!0}:{done:!1,value:d[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(d,C){if(d){if(typeof d=="string")return a(d,C);var g=Object.prototype.toString.call(d).slice(8,-1);if(g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set")return Array.from(d);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return a(d,C)}}function a(d,C){(C==null||C>d.length)&&(C=d.length);for(var g=0,v=new Array(C);gI)return 1}return 0},k=r.sortBy=function(){function d(){for(var C=arguments.length,g=new Array(C),v=0;v1?N-1:0),S=1;S1?S-1:0),p=1;p1?k-1:0),l=1;ll?l:k}return S}(),e=r.clamp01=function(){function S(k){return k<0?0:k>1?1:k}return S}(),a=r.scale=function(){function S(k,p,l){return(k-p)/(l-p)}return S}(),t=r.round=function(){function S(k,p){if(!k||isNaN(k))return k;var l,c,f,i;return p|=0,l=Math.pow(10,p),k*=l,i=+(k>0)|-(k<0),f=Math.abs(k%1)>=.4999999999854481,c=Math.floor(k),f&&(k=c+(i>0)),(f?k:Math.round(k))/l}return S}(),o=r.toFixed=function(){function S(k,p){return p===void 0&&(p=0),Number(k).toFixed(Math.max(p,0))}return S}(),m=r.inRange=function(){function S(k,p){return p&&k>=p[0]&&k<=p[1]}return S}(),N=r.keyOfMatchingRange=function(){function S(k,p){for(var l=0,c=Object.keys(p);l1?i-1:0),s=1;s1?b-1:0),I=1;I=0;--fe){var ae=this.tryEntries[fe],be=ae.completion;if(ae.tryLoc==="root")return ue("end");if(ae.tryLoc<=this.prev){var pe=V.call(ae,"catchLoc"),ge=V.call(ae,"finallyLoc");if(pe&&ge){if(this.prev=0;--ue){var fe=this.tryEntries[ue];if(fe.tryLoc<=this.prev&&V.call(fe,"finallyLoc")&&this.prev=0;--q){var ue=this.tryEntries[q];if(ue.finallyLoc===Z)return this.complete(ue.completion,ue.afterLoc),ye(ue),D}}return te}(),catch:function(){function te(Z){for(var q=this.tryEntries.length-1;q>=0;--q){var ue=this.tryEntries[q];if(ue.tryLoc===Z){var fe=ue.completion;if(fe.type==="throw"){var ae=fe.arg;ye(ue)}return ae}}throw new Error("illegal catch attempt")}return te}(),delegateYield:function(){function te(Z,q,ue){return this.delegate={iterator:me(Z),resultName:q,nextLoc:ue},this.method==="next"&&(this.arg=g),D}return te}()},v}function e(g,v,h,V,b,B,I){try{var w=g[B](I),T=w.value}catch(A){h(A);return}w.done?v(T):Promise.resolve(T).then(V,b)}function a(g){return function(){var v=this,h=arguments;return new Promise(function(V,b){var B=g.apply(v,h);function I(T){e(B,V,b,I,w,"next",T)}function w(T){e(B,V,b,I,w,"throw",T)}I(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_LOCAL_STORAGE=1,m=r.IMPL_INDEXED_DB=2,N=1,y="para-tgui",S="storage-v1",k="readonly",p="readwrite",l=function(v){return function(){try{return!!v()}catch(h){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),f=l(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),i=function(){function g(){this.impl=t,this.store={}}var v=g.prototype;return v.get=function(){function h(V){return this.store[V]}return h}(),v.set=function(){function h(V,b){this.store[V]=b}return h}(),v.remove=function(){function h(V){this.store[V]=void 0}return h}(),v.clear=function(){function h(){this.store={}}return h}(),g}(),u=function(){function g(){this.impl=o}var v=g.prototype;return v.get=function(){function h(V){var b=localStorage.getItem(V);if(typeof b=="string")return JSON.parse(b)}return h}(),v.set=function(){function h(V,b){localStorage.setItem(V,JSON.stringify(b))}return h}(),v.remove=function(){function h(V){localStorage.removeItem(V)}return h}(),v.clear=function(){function h(){localStorage.clear()}return h}(),g}(),s=function(){function g(){this.impl=m,this.dbPromise=new Promise(function(h,V){var b=window.indexedDB||window.msIndexedDB,B=b.open(y,N);B.onupgradeneeded=function(){try{B.result.createObjectStore(S)}catch(I){V(new Error("Failed to upgrade IDB: "+B.error))}},B.onsuccess=function(){return h(B.result)},B.onerror=function(){V(new Error("Failed to open IDB: "+B.error))}})}var v=g.prototype;return v.getStore=function(){function h(V){return this.dbPromise.then(function(b){return b.transaction(S,V).objectStore(S)})}return h}(),v.get=function(){var h=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(k);case 2:return I=T.sent,T.abrupt("return",new Promise(function(A,x){var E=I.get(B);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return x(E.error)}}));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.set=function(){var h=a(n().mark(function(){function b(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return I===null&&(I=void 0),A.next=3,this.getStore(p);case 3:w=A.sent,w.put(I,B);case 5:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return h.apply(this,arguments)}return V}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:I=T.sent,I.delete(B);case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function I(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,this.getStore(p);case 2:B=w.sent,B.clear();case 4:case"end":return w.stop()}}return I}(),b,this)}return b}()));function V(){return h.apply(this,arguments)}return V}(),g}(),d=function(){function g(){this.backendPromise=a(n().mark(function(){function h(){var V;return n().wrap(function(){function b(B){for(;;)switch(B.prev=B.next){case 0:if(!f()){B.next=10;break}return B.prev=1,V=new s,B.next=5,V.dbPromise;case 5:return B.abrupt("return",V);case 8:B.prev=8,B.t0=B.catch(1);case 10:if(!c()){B.next=12;break}return B.abrupt("return",new u);case 12:return B.abrupt("return",new i);case 13:case"end":return B.stop()}}return b}(),h,null,[[1,8]])}return h}()))()}var v=g.prototype;return v.get=function(){var h=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.get(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.set=function(){var h=a(n().mark(function(){function b(B,I){var w;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return w=A.sent,A.abrupt("return",w.set(B,I));case 4:case"end":return A.stop()}}return T}(),b,this)}return b}()));function V(b,B){return h.apply(this,arguments)}return V}(),v.remove=function(){var h=a(n().mark(function(){function b(B){var I;return n().wrap(function(){function w(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return I=T.sent,T.abrupt("return",I.remove(B));case 4:case"end":return T.stop()}}return w}(),b,this)}return b}()));function V(b){return h.apply(this,arguments)}return V}(),v.clear=function(){var h=a(n().mark(function(){function b(){var B;return n().wrap(function(){function I(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.clear());case 4:case"end":return w.stop()}}return I}(),b,this)}return b}()));function V(){return h.apply(this,arguments)}return V}(),g}(),C=r.storage=new d},37843:function(L,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,l){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))||l&&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,l){if(p){if(typeof p=="string")return a(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return a(p,l)}}function a(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,f=new Array(l);c",apos:"'"};return l.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(i,u){return f[u]}).replace(/&#?([0-9]+);/gi,function(i,u){var s=parseInt(u,10);return String.fromCharCode(s)}).replace(/&#x?([0-9a-f]+);/gi,function(i,u){var s=parseInt(u,16);return String.fromCharCode(s)})}return p}(),k=r.buildQueryString=function(){function p(l){return Object.keys(l).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(l[c])}).join("&")}return p}()},32742:function(L,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,m,N){N===void 0&&(N=!1);var y;return function(){for(var S=arguments.length,k=new Array(S),p=0;p=m)o.apply(null,p),N=c;else{var f;y=setTimeout(function(){return S.apply(void 0,p)},m-(c-((f=N)!=null?f:0)))}}return S}()}return t}()},41202:function(L,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(72026);/** + * N-dimensional vector manipulation functions. + * + * Vectors are plain number arrays, i.e. [x, y, z]. + * + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var a=function(u,s){return u+s},t=function(u,s){return u-s},o=function(u,s){return u*s},m=function(u,s){return u/s},N=r.vecAdd=function(){function i(){for(var u=arguments.length,s=new Array(u),d=0;d=0)&&(k[l]=y[l]);return k}var N=r.BlockQuote=function(){function y(S){var k=S.className,p=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["BlockQuote",k])},p)))}return y}()},93843:function(L,r,n){"use strict";r.__esModule=!0,r.unit=r.halfUnit=r.computeBoxProps=r.computeBoxClassName=r.Box=void 0;var e=n(66586),a=n(28823),t=n(32883),o=n(30381),m=["as","className","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function N(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var y=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")&&!Byond.IS_LTE_IE8?parseFloat(h)/12+"rem":h;if(typeof h=="number")return Byond.IS_LTE_IE8?h*12+"px":h+"rem"}return v}(),S=r.halfUnit=function(){function v(h){if(typeof h=="string")return y(h);if(typeof h=="number")return y(h*.5)}return v}(),k=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},l=function(h){return function(V,b){(typeof b=="number"||typeof b=="string")&&(V[h]=b)}},c=function(h,V){return function(b,B){(typeof B=="number"||typeof B=="string")&&(b[h]=V(B))}},f=function(h,V){return function(b,B){B&&(b[h]=V)}},i=function(h,V,b){return function(B,I){if(typeof I=="number"||typeof I=="string")for(var w=0;w0&&(V.style=x),V}return v}(),C=r.computeBoxClassName=function(){function v(h){var V=h.textColor||h.color,b=h.backgroundColor;return(0,e.classes)([p(V)&&"color-"+V,p(b)&&"color-bg-"+b])}return v}(),g=r.Box=function(){function v(h){var V=h.as,b=V===void 0?"div":V,B=h.className,I=h.children,w=N(h,m);if(typeof I=="function")return I(d(h));var T=typeof B=="string"?B+" "+C(w):C(w),A=d(w);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,b,T,I,t.ChildFlags.UnknownChildren,A)}return v}();g.defaultHooks=e.pureComponentHooks},16699:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(28823),a=n(66586),t=n(31068),o=n(50175),m=n(93843),N=n(69433),y=n(30341),S=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],k=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],l=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,f(v,h)}function f(v,h){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function V(b,B){return b.__proto__=B,b}return V}(),f(v,h)}function i(v,h){if(v==null)return{};var V={},b=Object.keys(v),B,I;for(I=0;I=0)&&(V[B]=v[B]);return V}var u=(0,o.createLogger)("Button"),s=r.Button=function(){function v(h){var V=h.className,b=h.fluid,B=h.icon,I=h.iconRotation,w=h.iconSpin,T=h.color,A=h.textColor,x=h.disabled,E=h.selected,P=h.tooltip,j=h.tooltipPosition,M=h.ellipsis,O=h.compact,D=h.circular,F=h.content,U=h.iconColor,_=h.iconRight,z=h.iconStyle,H=h.children,$=h.onclick,G=h.onClick,X=h.multiLine,oe=i(h,S),re=!!(F||H);$&&u.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"),oe.onClick=function(he){!x&&G&&G(he)},Byond.IS_LTE_IE8&&(oe.unselectable=!0);var se=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",b&&"Button--fluid",x&&"Button--disabled",E&&"Button--selected",re&&"Button--hasContent",M&&"Button--ellipsis",D&&"Button--circular",O&&"Button--compact",_&&"Button--iconRight",X&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",V]),tabIndex:!x&&"0",color:A,onKeyDown:function(){function he(ye){var Be=window.event?ye.which:ye.keyCode;if(Be===t.KEY_SPACE||Be===t.KEY_ENTER){ye.preventDefault(),!x&&G&&G(ye);return}if(Be===t.KEY_ESCAPE){ye.preventDefault();return}}return he}()},oe,{children:[B&&!_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:z}),F,H,B&&_&&(0,e.createComponentVNode)(2,N.Icon,{name:B,color:U,rotation:I,spin:w,style:z})]})));return P&&(se=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:j,children:se})),se}return v}();s.defaultHooks=a.pureComponentHooks;var d=r.ButtonCheckbox=function(){function v(h){var V=h.checked,b=i(h,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({color:"transparent",icon:V?"check-square-o":"square-o",selected:V},b)))}return v}();s.Checkbox=d;var C=r.ButtonConfirm=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.state={clickedOnce:!1},b.handleClick=function(){b.state.clickedOnce&&b.setClickedOnce(!1)},b}var V=h.prototype;return V.setClickedOnce=function(){function b(B){var I=this;this.setState({clickedOnce:B}),B?setTimeout(function(){return window.addEventListener("click",I.handleClick)}):window.removeEventListener("click",this.handleClick)}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.confirmContent,T=w===void 0?"Confirm?":w,A=I.confirmColor,x=A===void 0?"bad":A,E=I.confirmIcon,P=I.icon,j=I.color,M=I.content,O=I.onClick,D=i(I,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:P,color:this.state.clickedOnce?x:j,onClick:function(){function F(){return B.state.clickedOnce?O():B.setClickedOnce(!0)}return F}()},D)))}return b}(),h}(e.Component);s.Confirm=C;var g=r.ButtonInput=function(v){c(h,v);function h(){var b;return b=v.call(this)||this,b.inputRef=(0,e.createRef)(),b.state={inInput:!1},b}var V=h.prototype;return V.setInInput=function(){function b(B){var I=this.props.disabled;if(!I&&(this.setState({inInput:B}),this.inputRef)){var w=this.inputRef.current;if(B){w.value=this.props.currentValue||"";try{w.focus(),w.select()}catch(T){}}}}return b}(),V.commitResult=function(){function b(B){if(this.inputRef){var I=this.inputRef.current,w=I.value!=="";if(w){this.props.onCommit(B,I.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(B,this.props.defaultValue)}}}return b}(),V.render=function(){function b(){var B=this,I=this.props,w=I.fluid,T=I.content,A=I.icon,x=I.iconRotation,E=I.iconSpin,P=I.tooltip,j=I.tooltipPosition,M=I.color,O=M===void 0?"default":M,D=I.disabled,F=I.placeholder,U=I.maxLength,_=I.multiLine,z=i(I,l),H=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",w&&"Button--fluid",D&&"Button--disabled","Button--color--"+O,_+"Button--multiLine"])},z,{onClick:function(){function $(){return B.setInInput(!0)}return $}(),children:[A&&(0,e.createComponentVNode)(2,N.Icon,{name:A,rotation:x,spin:E}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function $(G){B.state.inInput&&(B.setInInput(!1),B.commitResult(G))}return $}(),onKeyDown:function(){function $(G){if(G.keyCode===t.KEY_ENTER){B.setInInput(!1),B.commitResult(G);return}G.keyCode===t.KEY_ESCAPE&&B.setInInput(!1)}return $}()},null,this.inputRef)]})));return P&&(H=(0,e.createComponentVNode)(2,y.Tooltip,{content:P,position:j,children:H})),H}return b}(),h}(e.Component);s.Input=g},75614:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(28823),a=n(66586),t=n(32742),o=n(50175),m=n(93843),N=["params"],y=["params"],S=["parent","params"];function k(C,g){if(C==null)return{};var v={},h=Object.keys(C),V,b;for(b=0;b=0)&&(v[V]=C[V]);return v}function p(C,g){C.prototype=Object.create(g.prototype),C.prototype.constructor=C,l(C,g)}function l(C,g){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function v(h,V){return h.__proto__=V,h}return v}(),l(C,g)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var c=(0,o.createLogger)("ByondUi"),f=[],i=function(g){var v=f.length;f.push(null);var h=g||"byondui_"+v;return c.log("allocated '"+h+"'"),{render:function(){function V(b){c.log("rendering '"+h+"'"),f[v]=h,Byond.winset(h,b)}return V}(),unmount:function(){function V(){c.log("unmounting '"+h+"'"),f[v]=null,Byond.winset(h,{parent:""})}return V}()}};window.addEventListener("beforeunload",function(){for(var C=0;C=0)&&(s[C]=i[C]);return s}function y(i,u){i.prototype=Object.create(u.prototype),i.prototype.constructor=i,S(i,u)}function S(i,u){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function s(d,C){return d.__proto__=C,d}return s}(),S(i,u)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var k=function(u,s,d,C){if(u.length===0)return[];var g=(0,a.zipWith)(Math.min).apply(void 0,u),v=(0,a.zipWith)(Math.max).apply(void 0,u);d!==void 0&&(g[0]=d[0],v[0]=d[1]),C!==void 0&&(g[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(V){return(0,a.zipWith)(function(b,B,I,w){return(b-B)/(I-B)*w})(V,g,v,s)})(u);return h},p=function(u){for(var s="",d=0;d0){var M=j[0],O=j[j.length-1];j.push([P[0]+x,O[1]]),j.push([P[0]+x,-x]),j.push([-x,-x]),j.push([-x,M[1]])}var D=p(j);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function F(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+P[1]+")",fill:I,stroke:T,"stroke-width":x,points:D}),2,{viewBox:"0 0 "+P[0]+" "+P[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return F}()})))}return d}(),u}(e.Component);l.defaultHooks=t.pureComponentHooks;var c=function(u){return null},f=r.Chart={Line:Byond.IS_LTE_IE8?c:l}},52760:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(28823),a=n(93843),t=n(16699),o=["children","color","title","buttons"];function m(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,i;for(i=0;i=0)&&(l[f]=k[f]);return l}function N(k,p){k.prototype=Object.create(p.prototype),k.prototype.constructor=k,y(k,p)}function y(k,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),y(k,p)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var S=r.Collapsible=function(k){N(p,k);function p(c){var f;f=k.call(this,c)||this;var i=c.open;return f.state={open:i||!1},f}var l=p.prototype;return l.render=function(){function c(){var f=this,i=this.props,u=this.state.open,s=i.children,d=i.color,C=d===void 0?"default":d,g=i.title,v=i.buttons,h=m(i,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:u?"chevron-down":"chevron-right",onClick:function(){function V(){return f.setState({open:!u})}return V}()},h,{children:g}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),u&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:s})]})}return c}(),p}(e.Component)},25762:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["content","children","className","color","backgroundColor"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.ColorBox=function(){function y(S){var k=S.content,p=S.children,l=S.className,c=S.color,f=S.backgroundColor,i=m(S,o);return i.color=k?null:"transparent",i.backgroundColor=c||f,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",l,(0,t.computeBoxClassName)(i)]),k||".",0,Object.assign({},(0,t.computeBoxProps)(i))))}return y}();N.defaultHooks=a.pureComponentHooks},73712:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(28823),a=n(93843),t=["format"];function o(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}function m(S,k){S.prototype=Object.create(k.prototype),S.prototype.constructor=S,N(S,k)}function N(S,k){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function p(l,c){return l.__proto__=c,l}return p}(),N(S,k)}var y=r.Countdown=function(S){m(k,S);function k(l){var c;return c=S.call(this,l)||this,c.timer=null,c.state={value:Math.max(l.timeLeft*100,0)},c}var p=k.prototype;return p.tick=function(){function l(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(f){return{value:c}})}return l}(),p.componentDidMount=function(){function l(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return l}(),p.componentWillUnmount=function(){function l(){clearInterval(this.timer)}return l}(),p.componentDidUpdate=function(){function l(c){var f=this;this.props.current!==c.current&&this.setState(function(i){return{value:Math.max(f.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return l}(),p.render=function(){function l(){var c=this.props,f=c.format,i=o(c,t),u=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},i,{children:f?f(this.state.value,u):u})))}return l}(),k}(e.Component);y.defaultProps={rate:1e3}},15148:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.Dimmer=function(){function y(S){var k=S.className,p=S.children,l=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(k))},l,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return y}()},81878:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(28823),a=n(66586);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var t=r.Divider=function(){function o(m){var N=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",N?"Divider--vertical":"Divider--horizontal"]))}return o}()},41584:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281);function m(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,N(p,l)}function N(p,l){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,i){return f.__proto__=i,f}return c}(),N(p,l)}var y=400,S=function(l,c){return l.screenX*c[0]+l.screenY*c[1]},k=r.DraggableControl=function(p){m(l,p);function l(f){var i;return i=p.call(this,f)||this,i.inputRef=(0,e.createRef)(),i.state={originalValue:f.value,value:f.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var u=i.props.suppressFlicker;u>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},u))},i.handleDragStart=function(u){var s=i.props,d=s.value,C=s.dragMatrix,g=s.disabled,v=i.state.editing;v||g||(document.body.style["pointer-events"]="none",i.ref=u.currentTarget,i.setState({originalValue:d,dragging:!1,value:d,origin:S(u,C)}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var h=i.state,V=h.dragging,b=h.value,B=i.props.onDrag;V&&B&&B(u,b)},i.props.updateRate||y),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(u){var s,d=i.props,C=d.minValue,g=d.maxValue,v=d.step,h=d.dragMatrix,V=d.disabled;if(!V){var b=i.ref.offsetWidth/((g-C)/v),B=(s=i.props.stepPixelSize)!=null?s:b;typeof B=="function"&&(B=B(b)),i.setState(function(I){var w=Object.assign({},I),T=I.origin,A=S(u,h)-T;if(I.dragging){var x=Math.trunc(A/B);w.value=(0,a.clamp)(Math.floor(w.originalValue/v)*v+x*v,C,g)}else Math.abs(A)>4&&(w.dragging=!0);return w})}},i.handleDragEnd=function(u){var s=i.props,d=s.onChange,C=s.onDrag,g=i.state,v=g.dragging,h=g.value;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),v)i.suppressFlicker(),d&&d(u,h),C&&C(u,h);else if(i.inputRef){var V=i.inputRef.current;V.value=h;try{V.focus(),V.select()}catch(b){}}},i}var c=l.prototype;return c.render=function(){function f(){var i=this,u=this.state,s=u.dragging,d=u.editing,C=u.value,g=u.suppressingFlicker,v=this.props,h=v.animated,V=v.value,b=v.unit,B=v.minValue,I=v.maxValue,w=v.format,T=v.onChange,A=v.onDrag,x=v.children,E=v.height,P=v.lineHeight,j=v.fontSize,M=v.disabled,O=V;(s||g)&&(O=C);var D=function(){function _(z){return z+(b?" "+b:"")}return _}(),F=h&&!s&&!g&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:O,format:w,children:D})||D(w?w(O):O),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!d||M?"none":void 0,height:E,"line-height":P,"font-size":j},onBlur:function(){function _(z){if(d){var H=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),A&&A(z,H)}}return _}(),onKeyDown:function(){function _(z){if(z.keyCode===13){var H=(0,a.clamp)(parseFloat(z.target.value),B,I);if(Number.isNaN(H)){i.setState({editing:!1});return}i.setState({editing:!1,value:H}),i.suppressFlicker(),T&&T(z,H),A&&A(z,H);return}if(z.keyCode===27){i.setState({editing:!1});return}}return _}(),disabled:M},null,this.inputRef);return x({dragging:s,editing:d,value:V,displayValue:O,displayElement:F,inputElement:U,handleDragStart:this.handleDragStart})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},99936:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(28823),a=n(60028),t=n(66586),o=n(93843),m=n(69433),N=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],S;function k(d,C){if(d==null)return{};var g={},v=Object.keys(d),h,V;for(V=0;V=0)&&(g[h]=d[h]);return g}function p(d,C){d.prototype=Object.create(C.prototype),d.prototype.constructor=d,l(d,C)}function l(d,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),l(d,C)}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 d(){return null}return d}()},i="Layout Dropdown__menu",u="Layout Dropdown__menu-scroll",s=r.Dropdown=function(d){p(C,d);function C(v){var h;return h=d.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}var g=C.prototype;return g.getDOMNode=function(){function v(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return v}(),g.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),g.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=i,document.body.appendChild(h),C.renderedMenu=h);var V=this.getDOMNode();C.currentOpenMenu=V,h.scrollTop=0,h.style.width=this.props.menuWidth||V.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var b;(b=C.renderedMenu)==null||b.focus()},400),this.renderMenuContent()}return v}(),g.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),g.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),g.renderMenuContent=function(){function v(){var h=this,V=C.renderedMenu;if(V){V.offsetHeight>200?V.className=u:V.className=i;var b=this.props.options,B=b===void 0?[]:b,I=B.map(function(T){var A,x;return typeof T=="string"?(x=T,A=T):T!==null&&(x=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),x,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),w=I.length?I:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,w,0),V,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,V,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),g.setOpen=function(){function v(h){var V=this;this.setState(function(b){return Object.assign({},b,{open:h})}),h?setTimeout(function(){V.openMenu(),window.addEventListener("click",V.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),g.setSelected=function(){function v(h){this.setState(function(V){return Object.assign({},V,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),g.render=function(){function v(){var h=this,V=this.props,b=V.icon,B=V.iconRotation,I=V.iconSpin,w=V.clipSelectedText,T=w===void 0?!0:w,A=V.color,x=A===void 0?"default":A,E=V.dropdownStyle,P=V.over,j=V.nochevron,M=V.width,O=V.onClick,D=V.onSelected,F=V.selected,U=V.disabled,_=V.displayText,z=k(V,N),H=z.className,$=k(z,y),G=P?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:M,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+x,U&&"Button--disabled",H]),onClick:function(){function X(oe){U&&!h.state.open||(h.setOpen(!h.state.open),O&&O(oe))}return X}()},$,{children:[b&&(0,e.createComponentVNode)(2,m.Icon,{name:b,rotation:B,spin:I,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",_||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),j||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:G?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);S=s,s.renderedMenu=void 0,s.singletonPopper=void 0,s.currentOpenMenu=void 0,s.virtualElement={getBoundingClientRect:function(){function d(){var C,g;return(C=(g=S.currentOpenMenu)==null?void 0:g.getBoundingClientRect())!=null?C:f}return d}()}},92462:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","direction","wrap","align","justify","inline"],m=["className"],N=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function S(u,s){if(u==null)return{};var d={},C=Object.keys(u),g,v;for(v=0;v=0)&&(d[g]=u[g]);return d}var k=r.computeFlexClassName=function(){function u(s){return(0,a.classes)(["Flex",s.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&s.direction==="column"&&"Flex--iefix--column",(0,t.computeBoxClassName)(s)])}return u}(),p=r.computeFlexProps=function(){function u(s){var d=s.className,C=s.direction,g=s.wrap,v=s.align,h=s.justify,V=s.inline,b=S(s,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},b.style,{"flex-direction":C,"flex-wrap":g===!0?"wrap":g,"align-items":v,"justify-content":h})},b))}return u}(),l=r.Flex=function(){function u(s){var d=s.className,C=S(s,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,k(C)]),null,1,Object.assign({},p(C))))}return u}();l.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function u(s){return(0,a.classes)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,t.computeBoxClassName)(s)])}return u}(),f=r.computeFlexItemProps=function(){function u(s){var d=s.className,C=s.style,g=s.grow,v=s.order,h=s.shrink,V=s.basis,b=V===void 0?s.width:V,B=s.align,I=S(s,N);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":g!==void 0&&Number(g),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(b),order:v,"align-self":B})},I))}return u}(),i=function(s){var d=s.className,C=S(s,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([d,c(s)]),null,1,Object.assign({},f(C))))};i.defaultHooks=a.pureComponentHooks,l.Item=i},81753:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(28823),a=n(99753),t=n(66586),o=["children"],m=["size","style"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function N(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,i;for(i=0;i=0)&&(l[f]=k[f]);return l}var y=r.Grid=function(){function k(p){var l=p.children,c=N(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:l})})))}return k}();y.defaultHooks=t.pureComponentHooks;var S=r.GridColumn=function(){function k(p){var l=p.size,c=l===void 0?1:l,f=p.style,i=N(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},f)},i)))}return k}();y.defaultHooks=t.pureComponentHooks,y.Column=S},69433:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function N(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var y=/-o$/,S=r.Icon=function(){function p(l){var c=l.name,f=l.size,i=l.spin,u=l.className,s=l.style,d=s===void 0?{}:s,C=l.rotation,g=l.inverse,v=N(l,o);f&&(d["font-size"]=f*100+"%"),typeof C=="number"&&(d.transform="rotate("+C+"deg)");var h=y.test(c),V=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",u,h?"far":"fas","fa-"+V,i&&"fa-spin"]),style:d},v)))}return p}();S.defaultHooks=a.pureComponentHooks;var k=r.IconStack=function(){function p(l){var c=l.className,f=l.style,i=f===void 0?{}:f,u=l.children,s=N(l,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:i},s,{children:u})))}return p}();S.Stack=k},51190:function(L,r,n){"use strict";r.__esModule=!0,r.toInputValue=r.Input=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(31068),m=["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder","autofocus","disabled","multiline","cols","rows"],N=["className","fluid","monospace"];function y(c,f){if(c==null)return{};var i={},u=Object.keys(c),s,d;for(d=0;d=0)&&(i[s]=c[s]);return i}function S(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,k(c,f)}function k(c,f){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(u,s){return u.__proto__=s,u}return i}(),k(c,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}(),l=r.Input=function(c){S(f,c);function f(){var u;return u=c.call(this)||this,u.inputRef=(0,e.createRef)(),u.state={editing:!1},u.handleInput=function(s){var d=u.state.editing,C=u.props.onInput;d||u.setEditing(!0),C&&C(s,s.target.value)},u.handleFocus=function(s){var d=u.state.editing;d||u.setEditing(!0)},u.handleBlur=function(s){var d=u.state.editing,C=u.props.onChange;d&&(u.setEditing(!1),C&&C(s,s.target.value))},u.handleKeyDown=function(s){var d=u.props,C=d.onInput,g=d.onChange,v=d.onEnter;if(s.keyCode===o.KEY_ENTER){u.setEditing(!1),g&&g(s,s.target.value),C&&C(s,s.target.value),v&&v(s,s.target.value),u.props.selfClear?s.target.value="":s.target.blur();return}if(s.keyCode===o.KEY_ESCAPE){u.setEditing(!1),s.target.value=p(u.props.value),s.target.blur();return}},u}var i=f.prototype;return i.componentDidMount=function(){function u(){var s=this,d=this.props.value,C=this.inputRef.current;C&&(C.value=p(d),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),s.props.autoSelect&&C.select()},1)}return u}(),i.componentDidUpdate=function(){function u(s,d){var C=this.state.editing,g=s.value,v=this.props.value,h=this.inputRef.current;h&&!C&&g!==v&&(h.value=p(v))}return u}(),i.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),i.render=function(){function u(){var s=this.props,d=s.selfClear,C=s.onInput,g=s.onChange,v=s.onEnter,h=s.value,V=s.maxLength,b=s.placeholder,B=s.autofocus,I=s.disabled,w=s.multiline,T=s.cols,A=T===void 0?32:T,x=s.rows,E=x===void 0?4:x,P=y(s,m),j=P.className,M=P.fluid,O=P.monospace,D=y(P,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",M&&"Input--fluid",O&&"Input--monospace",I&&"Input--disabled",j])},D,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),w?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:V,cols:A,rows:E,disabled:I},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:b,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:V,disabled:I},null,this.inputRef)]})))}return u}(),f}(e.Component)},35095:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),m=n(41584),N=n(43023),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function S(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var k=r.Knob=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},l)));var c=l.animated,f=l.format,i=l.maxValue,u=l.minValue,s=l.onChange,d=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,V=l.value,b=l.className,B=l.style,I=l.fillValue,w=l.color,T=l.ranges,A=T===void 0?{}:T,x=l.size,E=x===void 0?1:x,P=l.bipolar,j=l.children,M=l.popUpPosition,O=S(l,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:f,maxValue:i,minValue:u,onChange:s,onDrag:d,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V},{children:function(){function D(F){var U=F.dragging,_=F.editing,z=F.value,H=F.displayValue,$=F.displayElement,G=F.inputElement,X=F.handleDragStart,oe=(0,a.scale)(I!=null?I:H,u,i),re=(0,a.scale)(H,u,i),se=w||(0,a.keyOfMatchingRange)(I!=null?I:z,A)||"default",he=(re-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+se,P&&"Knob--bipolar",b,(0,o.computeBoxClassName)(O)]),[(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("+he+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),$,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":((P?2.75:2)-oe*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),G],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},B)},O)),{onMouseDown:X})))}return D}()})))}return p}()},36563:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(28823),a=n(92462),t=["children"],o=["label","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function m(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}var N=r.LabeledControls=function(){function S(k){var p=k.children,l=m(k,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},l,{children:p})))}return S}(),y=function(k){var p=k.label,l=k.children,c=m(k,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:l}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};N.Item=y},88488:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(81878),m=n(30341);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var N=r.LabeledList=function(){function k(p){var l=p.children;return(0,e.createVNode)(1,"table","LabeledList",l,0)}return k}();N.defaultHooks=a.pureComponentHooks;var y=function(p){var l=p.className,c=p.label,f=p.labelColor,i=f===void 0?"label":f,u=p.color,s=p.textAlign,d=p.buttons,C=p.tooltip,g=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",l]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:i,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:u,textAlign:s,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:d?void 0:2,children:[g,v]}),d&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",d,0)],0);return C&&(h=(0,e.createComponentVNode)(2,m.Tooltip,{content:C,children:h})),h};y.defaultHooks=a.pureComponentHooks;var S=function(p){var l=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":l,"padding-bottom":l}}),2)};S.defaultHooks=a.pureComponentHooks,N.Item=y,N.Divider=S},59743:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(15148),m=["className","children","onEnter"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function N(S,k){if(S==null)return{};var p={},l=Object.keys(S),c,f;for(f=0;f=0)&&(p[c]=S[c]);return p}var y=r.Modal=function(){function S(k){var p=k.className,l=k.children,c=k.onEnter,f=N(k,m),i;return c&&(i=function(){function u(s){s.keyCode===13&&c(s)}return u}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:i,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(f)]),l,0,Object.assign({},(0,t.computeBoxProps)(f))))})}return S}()},94405:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(28823),a=n(2971),t=n(91819),o=n(88488),m=n(83611),N=n(96820);function y(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function S(s,d){s.prototype=Object.create(d.prototype),s.prototype.constructor=s,k(s,d)}function k(s,d){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function C(g,v){return g.__proto__=v,g}return C}(),k(s,d)}var p=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},l=r.NanoMap=function(s){S(d,s);function d(g){var v;v=s.call(this,g)||this;var h=window.innerWidth/2-256,V=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(b){v.ref=b.target,v.setState({dragging:!1,originX:b.screenX,originY:b.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),p(b)},v.handleDragMove=function(b){v.setState(function(B){var I=Object.assign({},B),w=b.screenX-I.originX,T=b.screenY-I.originY;return B.dragging?(I.offsetX+=w,I.offsetY+=T,I.originX=b.screenX,I.originY=b.screenY):I.dragging=!0,I}),p(b)},v.handleDragEnd=function(b){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),p(b)},v.handleZoom=function(b,B){v.setState(function(I){var w=Math.min(Math.max(B,1),8),T=(w-I.zoom)*1.5;return I.zoom=w,I.offsetX=I.offsetX-262*T,I.offsetY=I.offsetY-256*T,g.onZoom&&g.onZoom(I.zoom),I})},v}var C=d.prototype;return C.render=function(){function g(){var v=(0,t.useBackend)(this.context),h=v.config,V=this.state,b=V.dragging,B=V.offsetX,I=V.offsetY,w=V.zoom,T=w===void 0?1:w,A=this.props.children,x=h.map+"_nanomap_z1.png",E=510*T+"px",P={width:E,height:E,"margin-top":I+"px","margin-left":B+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:b?"move":"auto"},j={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:P,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,N.resolveAsset)(x),style:j}),(0,e.createComponentVNode)(2,a.Box,{children:A})]}),(0,e.createComponentVNode)(2,f,{zoom:T,onZoom:this.handleZoom})]})}return g}(),d}(e.Component),c=function(d,C){var g=d.x,v=d.y,h=d.zoom,V=h===void 0?1:h,b=d.icon,B=d.tooltip,I=d.color,w=g*2*V-V-3,T=v*2*V-V-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:B,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:T+"px",left:w+"px",children:(0,e.createComponentVNode)(2,a.Icon,{name:b,color:I,fontSize:"6px"})})}),2)};l.Marker=c;var f=function(d,C){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function g(v){return v+"x"}return g}(),value:d.zoom,onDrag:function(){function g(v,h){return d.onZoom(v,h)}return g}()})})})})};l.Zoomer=f;var i,u=function(s){S(d,s);function d(g){var v;v=s.call(this,g)||this;var h=(0,t.useBackend)(v.props.context),V=h.act;return v.state={color:v.props.color},v.handleClick=function(b){i!==void 0&&i.setState({color:"blue"}),V("switch_camera",{name:v.props.name}),i=y(v),v.setState({color:"green"})},v}var C=d.prototype;return C.render=function(){function g(){var v=this.props.x*2*this.props.zoom-this.props.zoom-3,h=this.props.y*2*this.props.zoom-this.props.zoom-3;return(0,e.createComponentVNode)(2,a.Button,{onClick:this.handleClick,position:"absolute",className:"NanoMap__button",lineHeight:"0",color:this.props.status?this.state.color:"red",bottom:h+"px",left:v+"px",children:(0,e.createComponentVNode)(2,a.Tooltip,{content:this.props.tooltip})},this.props.key)}return g}(),d}(e.Component);l.NanoButton=u},19153:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","color","info","warning","success","danger"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function m(y,S){if(y==null)return{};var k={},p=Object.keys(y),l,c;for(c=0;c=0)&&(k[l]=y[l]);return k}var N=r.NoticeBox=function(){function y(S){var k=S.className,p=S.color,l=S.info,c=S.warning,f=S.success,i=S.danger,u=m(S,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,l&&"NoticeBox--type--info",f&&"NoticeBox--type--success",i&&"NoticeBox--type--danger",k])},u)))}return y}();N.defaultHooks=a.pureComponentHooks},43023:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),m=n(93843);function N(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,y(p,l)}function y(p,l){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,i){return f.__proto__=i,f}return c}(),y(p,l)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var S=400,k=r.NumberInput=function(p){N(l,p);function l(f){var i;i=p.call(this,f)||this;var u=f.value;return i.inputRef=(0,e.createRef)(),i.state={value:u,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},i.flickerTimer=null,i.suppressFlicker=function(){var s=i.props.suppressFlicker;s>0&&(i.setState({suppressingFlicker:!0}),clearTimeout(i.flickerTimer),i.flickerTimer=setTimeout(function(){return i.setState({suppressingFlicker:!1})},s))},i.handleDragStart=function(s){var d=i.props.value,C=i.state.editing;C||(document.body.style["pointer-events"]="none",i.ref=s.target,i.setState({dragging:!1,origin:s.screenY,value:d,internalValue:d}),i.timer=setTimeout(function(){i.setState({dragging:!0})},250),i.dragInterval=setInterval(function(){var g=i.state,v=g.dragging,h=g.value,V=i.props.onDrag;v&&V&&V(s,h)},i.props.updateRate||S),document.addEventListener("mousemove",i.handleDragMove),document.addEventListener("mouseup",i.handleDragEnd))},i.handleDragMove=function(s){var d=i.props,C=d.minValue,g=d.maxValue,v=d.step,h=d.stepPixelSize;i.setState(function(V){var b=Object.assign({},V),B=b.origin-s.screenY;if(V.dragging){var I=Number.isFinite(C)?C%v:0;b.internalValue=(0,a.clamp)(b.internalValue+B*v/h,C-v,g+v),b.value=(0,a.clamp)(b.internalValue-b.internalValue%v+I,C,g),b.origin=s.screenY}else Math.abs(B)>4&&(b.dragging=!0);return b})},i.handleDragEnd=function(s){var d=i.props,C=d.onChange,g=d.onDrag,v=i.state,h=v.dragging,V=v.value,b=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(i.timer),clearInterval(i.dragInterval),i.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",i.handleDragMove),document.removeEventListener("mouseup",i.handleDragEnd),h)i.suppressFlicker(),C&&C(s,V),g&&g(s,V);else if(i.inputRef){var B=i.inputRef.current;B.value=b;try{B.focus(),B.select()}catch(I){}}},i}var c=l.prototype;return c.render=function(){function f(){var i=this,u=this.state,s=u.dragging,d=u.editing,C=u.value,g=u.suppressingFlicker,v=this.props,h=v.className,V=v.fluid,b=v.animated,B=v.value,I=v.unit,w=v.minValue,T=v.maxValue,A=v.height,x=v.width,E=v.lineHeight,P=v.fontSize,j=v.format,M=v.onChange,O=v.onDrag,D=B;(s||g)&&(D=C);var F=(0,e.createVNode)(1,"div","NumberInput__content",[b&&!s&&!g?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:D,format:j}):j?j(D):D,I?" "+I:""],0,{unselectable:Byond.IS_LTE_IE8});return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",V&&"NumberInput--fluid",h]),minWidth:x,minHeight:A,lineHeight:E,fontSize:P,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)((D-w)/(T-w)*100,0,100)+"%"}}),2),F,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:d?void 0:"none",height:A,"line-height":E,"font-size":P},onBlur:function(){function U(_){if(d){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),M&&M(_,z),O&&O(_,z)}}return U}(),onKeyDown:function(){function U(_){if(_.keyCode===13){var z=(0,a.clamp)(parseFloat(_.target.value),w,T);if(Number.isNaN(z)){i.setState({editing:!1});return}i.setState({editing:!1,value:z}),i.suppressFlicker(),M&&M(_,z),O&&O(_,z);return}if(_.keyCode===27){i.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return f}(),l}(e.Component);k.defaultHooks=t.pureComponentHooks,k.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},21624:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(60028),a=n(28823);function t(N,y){N.prototype=Object.create(y.prototype),N.prototype.constructor=N,o(N,y)}function o(N,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function S(k,p){return k.__proto__=p,k}return S}(),o(N,y)}var m=r.Popper=function(N){t(y,N);function y(){var k;return k=N.call(this)||this,k.renderedContent=void 0,k.popperInstance=void 0,y.id+=1,k}var S=y.prototype;return S.componentDidMount=function(){function k(){var p=this,l=this.props,c=l.additionalStyles,f=l.options;if(this.renderedContent=document.createElement("div"),c)for(var i=0,u=Object.entries(c);i=0)&&(i[s]=c[s]);return i}var p=r.ProgressBar=function(){function c(f){var i=f.className,u=f.value,s=f.minValue,d=s===void 0?0:s,C=f.maxValue,g=C===void 0?1:C,v=f.color,h=f.ranges,V=h===void 0?{}:h,b=f.children,B=f.fractionDigits,I=B===void 0?0:B,w=k(f,m),T=(0,a.scale)(u,d,g),A=b!==void 0,x=v||(0,a.keyOfMatchingRange)(u,V)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar","ProgressBar--color--"+x,i,(0,o.computeBoxClassName)(w)]),[(0,e.createVNode)(1,"div","ProgressBar__fill ProgressBar__fill--animated",null,1,{style:{width:(0,a.clamp01)(T)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",A?b:(0,a.toFixed)(T*100,I)+"%",0)],4,Object.assign({},(0,o.computeBoxProps)(w))))}return c}();p.defaultHooks=t.pureComponentHooks;var l=r.ProgressBarCountdown=function(c){y(f,c);function f(u){var s;return s=c.call(this,u)||this,s.timer=null,s.state={value:Math.max(u.current*100,0)},s}var i=f.prototype;return i.tick=function(){function u(){var s=Math.max(this.state.value+this.props.rate,0);s<=0&&clearInterval(this.timer),this.setState(function(d){return{value:s}})}return u}(),i.componentDidMount=function(){function u(){var s=this;this.timer=setInterval(function(){return s.tick()},this.props.rate)}return u}(),i.componentWillUnmount=function(){function u(){clearInterval(this.timer)}return u}(),i.render=function(){function u(){var s=this.props,d=s.start,C=s.current,g=s.end,v=k(s,N),h=(this.state.value/100-d)/(g-d);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p,Object.assign({value:h},v)))}return u}(),f}(e.Component);l.defaultProps={rate:1e3},p.Countdown=l},49421:function(L,r,n){"use strict";r.__esModule=!0,r.RestrictedInput=void 0;var e=n(28823),a=n(66586),t=n(58331),o=n(93843),m=n(31068),N=["onChange","onEnter","onInput","value"],y=["className","fluid","monospace"];function S(u,s){if(u==null)return{};var d={},C=Object.keys(u),g,v;for(v=0;v=0)&&(d[g]=u[g]);return d}function k(u,s){u.prototype=Object.create(s.prototype),u.prototype.constructor=u,p(u,s)}function p(u,s){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function d(C,g){return C.__proto__=g,C}return d}(),p(u,s)}var l=0,c=1e4,f=function(s,d,C,g){var v=d||l,h=C||C===0?C:c;if(!s||!s.length)return String(v);var V=g?parseFloat(s.replace(/[^\-\d.]/g,"")):parseInt(s.replace(/[^\-\d]/g,""),10);return isNaN(V)?String(v):String((0,t.clamp)(V,v,h))},i=r.RestrictedInput=function(u){k(s,u);function s(){var C;return C=u.call(this)||this,C.inputRef=(0,e.createRef)(),C.state={editing:!1},C.handleBlur=function(g){var v=C.state.editing;v&&C.setEditing(!1)},C.handleChange=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.allowFloats;g.target.value=f(g.target.value,V,h,B),b&&b(g,+g.target.value)},C.handleFocus=function(g){var v=C.state.editing;v||C.setEditing(!0)},C.handleInput=function(g){var v=C.state.editing,h=C.props.onInput;v||C.setEditing(!0),h&&h(g,+g.target.value)},C.handleKeyDown=function(g){var v=C.props,h=v.maxValue,V=v.minValue,b=v.onChange,B=v.onEnter,I=v.allowFloats;if(g.keyCode===m.KEY_ENTER){var w=f(g.target.value,V,h,I);C.setEditing(!1),b&&b(g,+w),B&&B(g,+w),g.target.blur();return}if(g.keyCode===m.KEY_ESCAPE){if(C.props.onEscape){C.props.onEscape(g);return}C.setEditing(!1),g.target.value=C.props.value,g.target.blur();return}},C}var d=s.prototype;return d.componentDidMount=function(){function C(){var g,v=this,h=this.props,V=h.maxValue,b=h.minValue,B=h.allowFloats,I=(g=this.props.value)==null?void 0:g.toString(),w=this.inputRef.current;w&&(w.value=f(I,b,V,B)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){w.focus(),v.props.autoSelect&&w.select()},1)}return C}(),d.componentDidUpdate=function(){function C(g,v){var h,V,b=this.props,B=b.maxValue,I=b.minValue,w=b.allowFloats,T=this.state.editing,A=(h=g.value)==null?void 0:h.toString(),x=(V=this.props.value)==null?void 0:V.toString(),E=this.inputRef.current;E&&!T&&x!==A&&x!==E.value&&(E.value=f(x,I,B,w))}return C}(),d.setEditing=function(){function C(g){this.setState({editing:g})}return C}(),d.render=function(){function C(){var g=this.props,v=g.onChange,h=g.onEnter,V=g.onInput,b=g.value,B=S(g,N),I=B.className,w=B.fluid,T=B.monospace,A=S(B,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Input",w&&"Input--fluid",T&&"Input--monospace",I])},A,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,type:"number"},null,this.inputRef)]})))}return C}(),s}(e.Component)},37479:function(L,r,n){"use strict";r.__esModule=!0,r.RoundGauge=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(15281),m=n(93843),N=["value","minValue","maxValue","ranges","alertAfter","format","size","className","style"];/** + * @file + * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) + * @license MIT + */function y(k,p){if(k==null)return{};var l={},c=Object.keys(k),f,i;for(i=0;i=0)&&(l[f]=k[f]);return l}var S=r.RoundGauge=function(){function k(p){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.AnimatedNumber,Object.assign({},p)));var l=p.value,c=p.minValue,f=c===void 0?1:c,i=p.maxValue,u=i===void 0?1:i,s=p.ranges,d=p.alertAfter,C=p.format,g=p.size,v=g===void 0?1:g,h=p.className,V=p.style,b=y(p,N),B=(0,a.scale)(l,f,u),I=(0,a.clamp01)(B),w=s?{}:{primary:[0,1]};s&&Object.keys(s).forEach(function(A){var x=s[A];w[A]=[(0,a.scale)(x[0],f,u),(0,a.scale)(x[1],f,u)]});var T=null;return d=0)&&(c[i]=p[i]);return c}function y(p,l){p.prototype=Object.create(l.prototype),p.prototype.constructor=p,S(p,l)}function S(p,l){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function c(f,i){return f.__proto__=i,f}return c}(),S(p,l)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var k=r.Section=function(p){y(l,p);function l(f){var i;return i=p.call(this,f)||this,i.scrollableRef=void 0,i.scrollable=void 0,i.scrollableRef=(0,e.createRef)(),i.scrollable=f.scrollable,i}var c=l.prototype;return c.componentDidMount=function(){function f(){this.scrollable&&(0,t.addScrollableNode)(this.scrollableRef.current)}return f}(),c.componentWillUnmount=function(){function f(){this.scrollable&&(0,t.removeScrollableNode)(this.scrollableRef.current)}return f}(),c.render=function(){function f(){var i=this.props,u=i.className,s=i.title,d=i.buttons,C=i.fill,g=i.fitted,v=i.scrollable,h=i.children,V=N(i,m),b=(0,a.canRender)(s)||(0,a.canRender)(d);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Section",Byond.IS_LTE_IE8&&"Section--iefix",C&&"Section--fill",g&&"Section--fitted",v&&"Section--scrollable",u,(0,o.computeBoxClassName)(V)]),[b&&(0,e.createVNode)(1,"div","Section__title",[(0,e.createVNode)(1,"span","Section__titleText",s,0),(0,e.createVNode)(1,"div","Section__buttons",d,0)],4),(0,e.createVNode)(1,"div","Section__rest",(0,e.createVNode)(1,"div","Section__content",h,0,null,null,this.scrollableRef),2)],0,Object.assign({},(0,o.computeBoxProps)(V))))}return f}(),l}(e.Component)},83611:function(L,r,n){"use strict";r.__esModule=!0,r.Slider=void 0;var e=n(28823),a=n(58331),t=n(66586),o=n(93843),m=n(41584),N=n(43023),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children","disabled"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function S(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var k=r.Slider=function(){function p(l){if(Byond.IS_LTE_IE8)return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.NumberInput,Object.assign({},l)));var c=l.animated,f=l.format,i=l.maxValue,u=l.minValue,s=l.onChange,d=l.onDrag,C=l.step,g=l.stepPixelSize,v=l.suppressFlicker,h=l.unit,V=l.value,b=l.className,B=l.fillValue,I=l.color,w=l.ranges,T=w===void 0?{}:w,A=l.children,x=l.disabled,E=S(l,y),P=A!==void 0;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[1,0]},{animated:c,format:f,maxValue:i,minValue:u,onChange:s,onDrag:d,step:C,stepPixelSize:g,suppressFlicker:v,unit:h,value:V,disabled:x},{children:function(){function j(M){var O=M.dragging,D=M.editing,F=M.value,U=M.displayValue,_=M.displayElement,z=M.inputElement,H=M.handleDragStart,$=B!=null,G=(0,a.scale)(F,u,i),X=(0,a.scale)(B!=null?B:U,u,i),oe=(0,a.scale)(U,u,i),re=I||(0,a.keyOfMatchingRange)(B!=null?B:F,T)||"default";return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Slider",x&&"Slider__disabled","ProgressBar",x?"ProgressBar--color--disabled":"ProgressBar--color--"+re,b,(0,o.computeBoxClassName)(E)]),[(0,e.createVNode)(1,"div",(0,t.classes)(["ProgressBar__fill",$&&"ProgressBar__fill--animated"]),null,1,{style:{width:(0,a.clamp01)(X)*100+"%",opacity:.4}}),(0,e.createVNode)(1,"div","ProgressBar__fill",null,1,{style:{width:(0,a.clamp01)(Math.min(X,oe))*100+"%"}}),(0,e.createVNode)(1,"div","Slider__cursorOffset",[(0,e.createVNode)(1,"div","Slider__cursor"),(0,e.createVNode)(1,"div","Slider__pointer"),O&&(0,e.createVNode)(1,"div","Slider__popupValue",_,0)],0,{style:{width:(0,a.clamp01)(oe)*100+"%"}}),(0,e.createVNode)(1,"div","ProgressBar__content",P?A:_,0),z],0,Object.assign({disabled:x},(0,o.computeBoxProps)(E),{onMouseDown:H})))}return j}()})))}return p}()},78581:function(L,r,n){"use strict";r.__esModule=!0,r.Stack=void 0;var e=n(28823),a=n(66586),t=n(92462),o=["className","vertical","fill"],m=["className","innerRef"],N=["className","hidden"];/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */function y(l,c){if(l==null)return{};var f={},i=Object.keys(l),u,s;for(s=0;s=0)&&(f[u]=l[u]);return f}var S=r.Stack=function(){function l(c){var f=c.className,i=c.vertical,u=c.fill,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack",u&&"Stack--fill",i?"Stack--vertical":"Stack--horizontal",f,(0,t.computeFlexClassName)(c)]),null,1,Object.assign({},(0,t.computeFlexProps)(Object.assign({direction:i?"column":"row"},s)))))}return l}(),k=function(c){var f=c.className,i=c.innerRef,u=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item",f,(0,t.computeFlexItemClassName)(u)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(u)),null,i))};S.Item=k;var p=function(c){var f=c.className,i=c.hidden,u=y(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Stack__item","Stack__divider",i&&"Stack__divider--hidden",f,(0,t.computeFlexItemClassName)(u)]),null,1,Object.assign({},(0,t.computeFlexItemProps)(u))))};S.Divider=p},99753:function(L,r,n){"use strict";r.__esModule=!0,r.TableRow=r.TableCell=r.Table=void 0;var e=n(28823),a=n(66586),t=n(93843),o=["className","collapsing","children"],m=["className","header"],N=["className","collapsing","header"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function y(l,c){if(l==null)return{};var f={},i=Object.keys(l),u,s;for(s=0;s=0)&&(f[u]=l[u]);return f}var S=r.Table=function(){function l(c){var f=c.className,i=c.collapsing,u=c.children,s=y(c,o);return(0,e.normalizeProps)((0,e.createVNode)(1,"table",(0,a.classes)(["Table",i&&"Table--collapsing",f,(0,t.computeBoxClassName)(s)]),(0,e.createVNode)(1,"tbody",null,u,0),2,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();S.defaultHooks=a.pureComponentHooks;var k=r.TableRow=function(){function l(c){var f=c.className,i=c.header,u=y(c,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"tr",(0,a.classes)(["Table__row",i&&"Table__row--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(u))))}return l}();k.defaultHooks=a.pureComponentHooks;var p=r.TableCell=function(){function l(c){var f=c.className,i=c.collapsing,u=c.header,s=y(c,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"td",(0,a.classes)(["Table__cell",i&&"Table__cell--collapsing",u&&"Table__cell--header",f,(0,t.computeBoxClassName)(c)]),null,1,Object.assign({},(0,t.computeBoxProps)(s))))}return l}();p.defaultHooks=a.pureComponentHooks,S.Row=k,S.Cell=p},96517:function(L,r,n){"use strict";r.__esModule=!0,r.Tabs=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(69433),m=["className","vertical","fill","fluid","children"],N=["className","selected","color","icon","leftSlot","rightSlot","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function y(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var S=r.Tabs=function(){function p(l){var c=l.className,f=l.vertical,i=l.fill,u=l.fluid,s=l.children,d=y(l,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tabs",f?"Tabs--vertical":"Tabs--horizontal",i&&"Tabs--fill",u&&"Tabs--fluid",c,(0,t.computeBoxClassName)(d)]),s,0,Object.assign({},(0,t.computeBoxProps)(d))))}return p}(),k=function(l){var c=l.className,f=l.selected,i=l.color,u=l.icon,s=l.leftSlot,d=l.rightSlot,C=l.children,g=y(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Tab","Tabs__Tab","Tab--color--"+i,f&&"Tab--selected",c,(0,t.computeBoxClassName)(g)]),[(0,a.canRender)(s)&&(0,e.createVNode)(1,"div","Tab__left",s,0)||!!u&&(0,e.createVNode)(1,"div","Tab__left",(0,e.createComponentVNode)(2,o.Icon,{name:u}),2),(0,e.createVNode)(1,"div","Tab__text",C,0),(0,a.canRender)(d)&&(0,e.createVNode)(1,"div","Tab__right",d,0)],0,Object.assign({},(0,t.computeBoxProps)(g))))};S.Tab=k},12764:function(L,r,n){"use strict";r.__esModule=!0,r.TextArea=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(51190),m=n(31068),N=["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder"],y=["className","fluid"];function S(c,f){if(c==null)return{};var i={},u=Object.keys(c),s,d;for(d=0;d=0)&&(i[s]=c[s]);return i}function k(c,f){c.prototype=Object.create(f.prototype),c.prototype.constructor=c,p(c,f)}function p(c,f){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function i(u,s){return u.__proto__=s,u}return i}(),p(c,f)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @author Warlockd +* @license MIT +*/var l=r.TextArea=function(c){k(f,c);function f(u,s){var d;d=c.call(this,u,s)||this,d.textareaRef=u.innerRef||(0,e.createRef)(),d.fillerRef=(0,e.createRef)(),d.state={editing:!1};var C=u.dontUseTabForIndent,g=C===void 0?!1:C;return d.handleOnInput=function(v){var h=d.state.editing,V=d.props.onInput;h||d.setEditing(!0),V&&V(v,v.target.value)},d.handleOnChange=function(v){var h=d.state.editing,V=d.props.onChange;h&&d.setEditing(!1),V&&V(v,v.target.value)},d.handleKeyPress=function(v){var h=d.state.editing,V=d.props.onKeyPress;h||d.setEditing(!0),V&&V(v,v.target.value)},d.handleKeyDown=function(v){var h=d.state.editing,V=d.props,b=V.onChange,B=V.onInput,I=V.onEnter,w=V.onKeyDown;if(v.keyCode===m.KEY_ENTER){d.setEditing(!1),b&&b(v,v.target.value),B&&B(v,v.target.value),I&&I(v,v.target.value),d.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===m.KEY_ESCAPE){d.props.onEscape&&d.props.onEscape(v),d.setEditing(!1),d.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(d.props.value),v.target.blur());return}if(h||d.setEditing(!0),w&&w(v,v.target.value),!g){var T=v.keyCode||v.which;if(T===m.KEY_TAB){v.preventDefault();var A=v.target,x=A.value,E=A.selectionStart,P=A.selectionEnd;v.target.value=x.substring(0,E)+" "+x.substring(P),v.target.selectionEnd=E+1}}},d.handleFocus=function(v){var h=d.state.editing;h||d.setEditing(!0)},d.handleBlur=function(v){var h=d.state.editing,V=d.props.onChange;h&&(d.setEditing(!1),V&&V(v,v.target.value))},d}var i=f.prototype;return i.componentDidMount=function(){function u(){var s=this,d=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(d)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),s.props.autoSelect&&C.select()},1)}return u}(),i.componentDidUpdate=function(){function u(s,d){var C=s.value,g=this.props.value,v=this.textareaRef.current;v&&typeof g=="string"&&C!==g&&(v.value=(0,o.toInputValue)(g))}return u}(),i.setEditing=function(){function u(s){this.setState({editing:s})}return u}(),i.getValue=function(){function u(){return this.textareaRef.current&&this.textareaRef.current.value}return u}(),i.render=function(){function u(){var s=this.props,d=s.onChange,C=s.onKeyDown,g=s.onKeyPress,v=s.onInput,h=s.onFocus,V=s.onBlur,b=s.onEnter,B=s.value,I=s.maxLength,w=s.placeholder,T=S(s,N),A=T.className,x=T.fluid,E=S(T,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",x&&"TextArea--fluid",A])},E,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:w,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:I},null,this.textareaRef)})))}return u}(),f}(e.Component)},71218:function(L,r){"use strict";r.__esModule=!0,r.TimeDisplay=void 0;var n=function(t){(!t||t<0)&&(t=0);var o=Math.floor(t/60).toString(10),m=(Math.floor(t)%60).toString(10);return[o,m].map(function(N){return N.length<2?"0"+N:N}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,m=o===void 0?0:o;return n(m)}return a}()},30341:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(28823),a=n(60028),t;function o(k,p){k.prototype=Object.create(p.prototype),k.prototype.constructor=k,m(k,p)}function m(k,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function l(c,f){return c.__proto__=f,c}return l}(),m(k,p)}var N={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function k(){return null}return k}()},S=r.Tooltip=function(k){o(p,k);function p(){return k.apply(this,arguments)||this}var l=p.prototype;return l.getDOMNode=function(){function c(){return(0,e.findDOMfromVNode)(this.$LI,!0)}return c}(),l.componentDidMount=function(){function c(){var f=this,i=this.getDOMNode();i&&(i.addEventListener("mouseenter",function(){var u=p.renderedTooltip;u===void 0&&(u=document.createElement("div"),u.className="Tooltip",document.body.appendChild(u),p.renderedTooltip=u),p.currentHoveredElement=i,u.style.opacity="1",f.renderPopperContent()}),i.addEventListener("mouseleave",function(){f.fadeOut()}))}return c}(),l.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),l.renderPopperContent=function(){function c(){var f=this,i=p.renderedTooltip;i&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),i,function(){var u=p.singletonPopper;u===void 0?(u=(0,a.createPopper)(p.virtualElement,i,Object.assign({},N,{placement:f.props.position||"auto"})),p.singletonPopper=u):(u.setOptions(Object.assign({},N,{placement:f.props.position||"auto"})),u.update())},this.context)}return c}(),l.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),l.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),l.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=S,S.renderedTooltip=void 0,S.singletonPopper=void 0,S.currentHoveredElement=void 0,S.virtualElement={getBoundingClientRect:function(){function k(){var p,l;return(p=(l=t.currentHoveredElement)==null?void 0:l.getBoundingClientRect())!=null?p:y}return k}()}},2971:function(L,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.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(15281);r.AnimatedNumber=e.AnimatedNumber;var a=n(81789);r.Autofocus=a.Autofocus;var t=n(11316);r.Blink=t.Blink;var o=n(26558);r.BlockQuote=o.BlockQuote;var m=n(93843);r.Box=m.Box;var N=n(16699);r.Button=N.Button;var y=n(75614);r.ByondUi=y.ByondUi;var S=n(2909);r.Chart=S.Chart;var k=n(52760);r.Collapsible=k.Collapsible;var p=n(25762);r.ColorBox=p.ColorBox;var l=n(73712);r.Countdown=l.Countdown;var c=n(15148);r.Dimmer=c.Dimmer;var f=n(81878);r.Divider=f.Divider;var i=n(41584);r.DraggableControl=i.DraggableControl;var u=n(99936);r.Dropdown=u.Dropdown;var s=n(92462);r.Flex=s.Flex;var d=n(81753);r.Grid=d.Grid;var C=n(69433);r.Icon=C.Icon;var g=n(51190);r.Input=g.Input;var v=n(35095);r.Knob=v.Knob;var h=n(36563);r.LabeledControls=h.LabeledControls;var V=n(88488);r.LabeledList=V.LabeledList;var b=n(59743);r.Modal=b.Modal;var B=n(94405);r.NanoMap=B.NanoMap;var I=n(19153);r.NoticeBox=I.NoticeBox;var w=n(43023);r.NumberInput=w.NumberInput;var T=n(21624);r.Popper=T.Popper;var A=n(24273);r.ProgressBar=A.ProgressBar;var x=n(49421);r.RestrictedInput=x.RestrictedInput;var E=n(37479);r.RoundGauge=E.RoundGauge;var P=n(43308);r.Section=P.Section;var j=n(83611);r.Slider=j.Slider;var M=n(78581);r.Stack=M.Stack;var O=n(99753);r.Table=O.Table;var D=n(96517);r.Tabs=D.Tabs;var F=n(12764);r.TextArea=F.TextArea;var U=n(71218);r.TimeDisplay=U.TimeDisplay;var _=n(30341);r.Tooltip=_.Tooltip},30381:function(L,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",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},m=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],N=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"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],S=r.getGasLabel=function(){function l(c,f){var i=String(c).toLowerCase(),u=y.find(function(s){return s.id===i||s.name.toLowerCase()===i});return u&&u.label||f||c}return l}(),k=r.getGasColor=function(){function l(c){var f=String(c).toLowerCase(),i=y.find(function(u){return u.id===f||u.name.toLowerCase()===f});return i&&i.color}return l}(),p=r.timeAgo=function(){function l(c,f){if(c>f)return"in the future";c=c/10,f=f/10;var i=f-c;if(i>3600){var u=Math.round(i/3600);return u+" hour"+(u===1?"":"s")+" ago"}else if(i>60){var s=Math.round(i/60);return s+" minute"+(s===1?"":"s")+" ago"}else{var d=Math.round(i);return d+" second"+(d===1?"":"s")+" ago"}return"just now"}return l}()},28766:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var m=n(69321),N=function(){return m.keys().map(function(k){return m(k)})},y=r.KitchenSink=function(){function S(k,p){var l=k.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),f=c[0],i=(0,a.useLocalState)(p,"pageIndex",0),u=i[0],s=i[1],d=N(),C=d[u],g=l?o.Pane:o.Window;return(0,e.createComponentVNode)(2,g,{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:d.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===u,onClick:function(){function V(){return s(h)}return V}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,g.Content,{scrollable:!0,children:C.meta.render()})})]})})}return S}()},20697:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(90816);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var a=r.toggleKitchenSink=(0,e.createAction)("debug/toggleKitchenSink"),t=r.toggleDebugLayout=(0,e.createAction)("debug/toggleDebugLayout"),o=r.openExternalBrowser=(0,e.createAction)("debug/openExternalBrowser")},72315:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(90816),a=n(94505);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},39241:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(72315);r.useDebug=e.useDebug;var a=n(28766);r.KitchenSink=a.KitchenSink;var t=n(57860);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(42702);r.debugReducer=o.debugReducer},57860:function(L,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(31068),a=n(33053),t=n(39891),o=n(20697);/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var m=["backend/update","chat/message"],N=r.debugMiddleware=function(){function S(k){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&k.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&k.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(l){return p(l)}}}return S}(),y=r.relayMiddleware=function(){function S(k){var p=n(87454),l=location.search==="?external";return l?p.subscribe(function(c){var f=c.type,i=c.payload;f==="relay"&&i.windowId===Byond.windowId&&k.dispatch(Object.assign({},i.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&k.dispatch((0,o.openExternalBrowser)())})),function(c){return function(f){var i=f.type,u=f.payload,s=f.relayed;if(i===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(i)&&!s&&!l&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:f}}),c(f)}}}return S}()},42702:function(L,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,m=t.payload;return o==="debug/toggleKitchenSink"?Object.assign({},a,{kitchenSink:!a.kitchenSink}):o==="debug/toggleDebugLayout"?Object.assign({},a,{debugLayout:!a.debugLayout}):a}return e}()},94505:function(L,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}()},45360:function(L,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(96417),a=n(41202),t=n(50175);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 F};var D,F={},U=Object.prototype,_=U.hasOwnProperty,z=Object.defineProperty||function(Ve,ce,le){Ve[ce]=le.value},H=typeof Symbol=="function"?Symbol:{},$=H.iterator||"@@iterator",G=H.asyncIterator||"@@asyncIterator",X=H.toStringTag||"@@toStringTag";function oe(Ve,ce,le){return Object.defineProperty(Ve,ce,{value:le,enumerable:!0,configurable:!0,writable:!0}),Ve[ce]}try{oe({},"")}catch(Ve){oe=function(le,Ce,de){return le[Ce]=de}}function re(Ve,ce,le,Ce){var de=ce&&ce.prototype instanceof Z?ce:Z,Ne=Object.create(de.prototype),Ae=new Oe(Ce||[]);return z(Ne,"_invoke",{value:ve(Ve,le,Ae)}),Ne}function se(Ve,ce,le){try{return{type:"normal",arg:Ve.call(ce,le)}}catch(Ce){return{type:"throw",arg:Ce}}}F.wrap=re;var he="suspendedStart",ye="suspendedYield",Be="executing",me="completed",te={};function Z(){}function q(){}function ue(){}var fe={};oe(fe,$,function(){return this});var ae=Object.getPrototypeOf,be=ae&&ae(ae(We([])));be&&be!==U&&_.call(be,$)&&(fe=be);var pe=ue.prototype=Z.prototype=Object.create(fe);function ge(Ve){["next","throw","return"].forEach(function(ce){oe(Ve,ce,function(le){return this._invoke(ce,le)})})}function ke(Ve,ce){function le(de,Ne,Ae,De){var je=se(Ve[de],Ve,Ne);if(je.type!=="throw"){var _e=je.arg,Ue=_e.value;return Ue&&typeof Ue=="object"&&_.call(Ue,"__await")?ce.resolve(Ue.__await).then(function(Ke){le("next",Ke,Ae,De)},function(Ke){le("throw",Ke,Ae,De)}):ce.resolve(Ue).then(function(Ke){_e.value=Ke,Ae(_e)},function(Ke){return le("throw",Ke,Ae,De)})}De(je.arg)}var Ce;z(this,"_invoke",{value:function(){function de(Ne,Ae){function De(){return new ce(function(je,_e){le(Ne,Ae,je,_e)})}return Ce=Ce?Ce.then(De,De):De()}return de}()})}function ve(Ve,ce,le){var Ce=he;return function(de,Ne){if(Ce===Be)throw new Error("Generator is already running");if(Ce===me){if(de==="throw")throw Ne;return{value:D,done:!0}}for(le.method=de,le.arg=Ne;;){var Ae=le.delegate;if(Ae){var De=Se(Ae,le);if(De){if(De===te)continue;return De}}if(le.method==="next")le.sent=le._sent=le.arg;else if(le.method==="throw"){if(Ce===he)throw Ce=me,le.arg;le.dispatchException(le.arg)}else le.method==="return"&&le.abrupt("return",le.arg);Ce=Be;var je=se(Ve,ce,le);if(je.type==="normal"){if(Ce=le.done?me:ye,je.arg===te)continue;return{value:je.arg,done:le.done}}je.type==="throw"&&(Ce=me,le.method="throw",le.arg=je.arg)}}}function Se(Ve,ce){var le=ce.method,Ce=Ve.iterator[le];if(Ce===D)return ce.delegate=null,le==="throw"&&Ve.iterator.return&&(ce.method="return",ce.arg=D,Se(Ve,ce),ce.method==="throw")||le!=="return"&&(ce.method="throw",ce.arg=new TypeError("The iterator does not provide a '"+le+"' method")),te;var de=se(Ce,Ve.iterator,ce.arg);if(de.type==="throw")return ce.method="throw",ce.arg=de.arg,ce.delegate=null,te;var Ne=de.arg;return Ne?Ne.done?(ce[Ve.resultName]=Ne.value,ce.next=Ve.nextLoc,ce.method!=="return"&&(ce.method="next",ce.arg=D),ce.delegate=null,te):Ne:(ce.method="throw",ce.arg=new TypeError("iterator result is not an object"),ce.delegate=null,te)}function we(Ve){var ce={tryLoc:Ve[0]};1 in Ve&&(ce.catchLoc=Ve[1]),2 in Ve&&(ce.finallyLoc=Ve[2],ce.afterLoc=Ve[3]),this.tryEntries.push(ce)}function xe(Ve){var ce=Ve.completion||{};ce.type="normal",delete ce.arg,Ve.completion=ce}function Oe(Ve){this.tryEntries=[{tryLoc:"root"}],Ve.forEach(we,this),this.reset(!0)}function We(Ve){if(Ve||Ve===""){var ce=Ve[$];if(ce)return ce.call(Ve);if(typeof Ve.next=="function")return Ve;if(!isNaN(Ve.length)){var le=-1,Ce=function(){function de(){for(;++le=0;--de){var Ne=this.tryEntries[de],Ae=Ne.completion;if(Ne.tryLoc==="root")return Ce("end");if(Ne.tryLoc<=this.prev){var De=_.call(Ne,"catchLoc"),je=_.call(Ne,"finallyLoc");if(De&&je){if(this.prev=0;--Ce){var de=this.tryEntries[Ce];if(de.tryLoc<=this.prev&&_.call(de,"finallyLoc")&&this.prev=0;--le){var Ce=this.tryEntries[le];if(Ce.finallyLoc===ce)return this.complete(Ce.completion,Ce.afterLoc),xe(Ce),te}}return Ve}(),catch:function(){function Ve(ce){for(var le=this.tryEntries.length-1;le>=0;--le){var Ce=this.tryEntries[le];if(Ce.tryLoc===ce){var de=Ce.completion;if(de.type==="throw"){var Ne=de.arg;xe(Ce)}return Ne}}throw new Error("illegal catch attempt")}return Ve}(),delegateYield:function(){function Ve(ce,le,Ce){return this.delegate={iterator:We(ce),resultName:le,nextLoc:Ce},this.method==="next"&&(this.arg=D),te}return Ve}()},F}function m(D,F,U,_,z,H,$){try{var G=D[H]($),X=G.value}catch(oe){U(oe);return}G.done?F(X):Promise.resolve(X).then(_,z)}function N(D){return function(){var F=this,U=arguments;return new Promise(function(_,z){var H=D.apply(F,U);function $(X){m(H,_,z,$,G,"next",X)}function G(X){m(H,_,z,$,G,"throw",X)}$(void 0)})}}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var y=(0,t.createLogger)("drag"),S=Byond.windowId,k=!1,p=!1,l=[0,0],c,f,i,u,s,d=r.setWindowKey=function(){function D(F){S=F}return D}(),C=r.getWindowPosition=function(){function D(){return[window.screenLeft,window.screenTop]}return D}(),g=r.getWindowSize=function(){function D(){return[window.innerWidth,window.innerHeight]}return D}(),v=r.setWindowPosition=function(){function D(F){var U=(0,a.vecAdd)(F,l);return Byond.winset(Byond.windowId,{pos:U[0]+","+U[1]})}return D}(),h=r.setWindowSize=function(){function D(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})}return D}(),V=r.getScreenPosition=function(){function D(){return[0-l[0],0-l[1]]}return D}(),b=r.getScreenSize=function(){function D(){return[window.screen.availWidth,window.screen.availHeight]}return D}(),B=function(F,U,_){_===void 0&&(_=50);for(var z=[U],H,$=0;$oe&&(H[G]=oe-U[G],$=!0)}return[$,H]},x=r.dragStartHandler=function(){function D(F){y.log("drag start"),k=!0,f=[window.screenLeft-F.screenX,window.screenTop-F.screenY],document.addEventListener("mousemove",P),document.addEventListener("mouseup",E),P(F)}return D}(),E=function D(F){y.log("drag end"),P(F),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",D),k=!1,I()},P=function(F){k&&(F.preventDefault(),v((0,a.vecAdd)([F.screenX,F.screenY],f)))},j=r.resizeStartHandler=function(){function D(F,U){return function(_){i=[F,U],y.log("resize start",i),p=!0,f=[window.screenLeft-_.screenX,window.screenTop-_.screenY],u=[window.innerWidth,window.innerHeight],document.addEventListener("mousemove",O),document.addEventListener("mouseup",M),O(_)}}return D}(),M=function D(F){y.log("resize end",s),O(F),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",D),p=!1,I()},O=function(F){p&&(F.preventDefault(),s=(0,a.vecAdd)(u,(0,a.vecMultiply)(i,(0,a.vecAdd)([F.screenX,F.screenY],(0,a.vecInverse)([window.screenLeft,window.screenTop]),f,[1,1]))),s[0]=Math.max(s[0],150),s[1]=Math.max(s[1],50),h(s))}},33053:function(L,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(70654),a=n(31068);/** + * Normalized browser focus events and BYOND-specific focus helpers. + * + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function h(V){V===void 0&&(V={}),o=!!V.ignoreWindowFocus}return h}(),N,y=!0,S=function h(V,b){if(o){y=!0;return}if(N&&(clearTimeout(N),N=null),b){N=setTimeout(function(){return h(V)});return}y!==V&&(y=V,t.emit(V?"window-focus":"window-blur"),t.emit("window-focus-change",V))},k=null,p=r.canStealFocus=function(){function h(V){var b=String(V.tagName).toLowerCase();return b==="input"||b==="textarea"}return h}(),l=function(V){c(),k=V,k.addEventListener("blur",c)},c=function h(){k&&(k.removeEventListener("blur",h),k=null)},f=null,i=null,u=[],s=r.addScrollableNode=function(){function h(V){u.push(V)}return h}(),d=r.removeScrollableNode=function(){function h(V){var b=u.indexOf(V);b>=0&&u.splice(b,1)}return h}(),C=function(V){if(!(k||!y))for(var b=document.body;V&&V!==b;){if(u.includes(V)){if(V.contains(f))return;f=V,V.focus();return}V=V.parentNode}};window.addEventListener("mousemove",function(h){var V=h.target;V!==i&&(i=V,C(V))}),window.addEventListener("focusin",function(h){if(i=null,f=h.target,S(!0),p(h.target)){l(h.target);return}}),window.addEventListener("focusout",function(h){i=null,S(!1,!0)}),window.addEventListener("blur",function(h){i=null,S(!1,!0)}),window.addEventListener("beforeunload",function(h){S(!1)});var g={},v=r.KeyEvent=function(){function h(b,B,I){this.event=b,this.type=B,this.code=window.event?b.which:b.keyCode,this.ctrl=b.ctrlKey,this.shift=b.shiftKey,this.alt=b.altKey,this.repeat=!!I}var V=h.prototype;return V.hasModifierKeys=function(){function b(){return this.ctrl||this.alt||this.shift}return b}(),V.isModifierKey=function(){function b(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return b}(),V.isDown=function(){function b(){return this.type==="keydown"}return b}(),V.isUp=function(){function b(){return this.type==="keyup"}return b}(),V.toString=function(){function b(){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 b}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keydown",g[V]);t.emit("keydown",b),t.emit("key",b),g[V]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var V=h.keyCode,b=new v(h,"keyup");t.emit("keyup",b),t.emit("key",b),g[V]=!1}})},16671:function(L,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + * Various focus helpers. + * + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var n=r.focusMap=function(){function a(){Byond.winset("paramapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},48300:function(L,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(58331);/** + * @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 S(k,p,l){if(p===void 0&&(p=-t),l===void 0&&(l=""),typeof k!="number"||!Number.isFinite(k))return k;var c=Math.floor(Math.log10(k)),f=Math.floor(Math.max(p*3,c)),i=Math.floor(c/3),u=Math.floor(f/3),s=(0,e.clamp)(t+u,0,a.length),d=a[s],C=k/Math.pow(1e3,u),g=i>p?2+u*3-f:0,v=(0,e.toFixed)(C,g)+" "+d+l;return v.trim()}return S}(),m=r.formatPower=function(){function S(k,p){return p===void 0&&(p=0),o(k,p,"W")}return S}(),N=r.formatMoney=function(){function S(k,p){if(p===void 0&&(p=0),!Number.isFinite(k))return k;var l=(0,e.round)(k,p);p>0&&(l=(0,e.toFixed)(k,p)),l=String(l);var c=l.length,f=l.indexOf(".");f===-1&&(f=c);for(var i="",u=0;u0&&u=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),l+c+" dB"}return S}()},39891:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(31068)),a=n(33053),t=n(50175);function o(s){if(typeof WeakMap!="function")return null;var d=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:d})(s)}function m(s,d){if(!d&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var C=o(d);if(C&&C.has(s))return C.get(s);var g={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&Object.prototype.hasOwnProperty.call(s,h)){var V=v?Object.getOwnPropertyDescriptor(s,h):null;V&&(V.get||V.set)?Object.defineProperty(g,h,V):g[h]=s[h]}return g.default=s,C&&C.set(s,g),g}/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var N=(0,t.createLogger)("hotkeys"),y={},S=[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],k={},p=function(d){if(d===16)return"Shift";if(d===17)return"Ctrl";if(d===18)return"Alt";if(d===33)return"Northeast";if(d===34)return"Southeast";if(d===35)return"Southwest";if(d===36)return"Northwest";if(d===37)return"West";if(d===38)return"North";if(d===39)return"East";if(d===40)return"South";if(d===45)return"Insert";if(d===46)return"Delete";if(d>=48&&d<=57||d>=65&&d<=90)return String.fromCharCode(d);if(d>=96&&d<=105)return"Numpad"+(d-96);if(d>=112&&d<=123)return"F"+(d-111);if(d===188)return",";if(d===189)return"-";if(d===190)return"."},l=function(d){var C=String(d);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(d.event.defaultPrevented||d.isModifierKey()||S.includes(d.code))){C==="F5"&&(d.event.preventDefault(),d.event.returnValue=!1);var g=p(d.code);if(g){var v=y[g];if(v)return N.debug("macro",v),Byond.command(v);if(d.isDown()&&!k[g]){k[g]=!0;var h='Key_Down "'+g+'"';return N.debug(h),Byond.command(h)}if(d.isUp()&&k[g]){k[g]=!1;var V='Key_Up "'+g+'"';return N.debug(V),Byond.command(V)}}}},c=r.acquireHotKey=function(){function s(d){S.push(d)}return s}(),f=r.releaseHotKey=function(){function s(d){var C=S.indexOf(d);C>=0&&S.splice(C,1)}return s}(),i=r.releaseHeldKeys=function(){function s(){for(var d=0,C=Object.keys(k);d=75?c="green":l.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:l.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:l.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(f,i){return(0,e.createComponentVNode)(2,t.Box,{children:f},i)})})||(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:l.wireless?"check":"times",content:l.wireless?"Enabled":"Disabled",color:l.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:l.radio?"check":"times",content:l.radio?"Enabled":"Disabled",color:l.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:l.flushing||l.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function f(){return p("wipe")}return f}()})})]})})})]})})})}return N}()},46817:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AIFixer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;if(l.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;(l.stat===2||l.stat===null)&&(c=!1);var f=null;l.integrity>=75?f="green":l.integrity>=25?f="yellow":f="red";var i=!0;return l.integrity>=100&&l.stat!==2&&(i=!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:l.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:l.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:!!l.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:l.laws.map(function(u,s){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u},s)})})||(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:l.wireless?"times":"check",content:l.wireless?"Disabled":"Enabled",color:l.wireless?"red":"green",onClick:function(){function u(){return p("wireless")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.radio?"times":"check",content:l.radio?"Disabled":"Enabled",color:l.radio?"red":"green",onClick:function(){function u(){return p("radio")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!i||l.active,content:!i||l.active?"Already Repaired":"Repair",onClick:function(){function u(){return p("fix")}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:l.active?"Reconstruction in progress.":""})]})})]})})})}return N}()},20420:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(29723),N=r.APC=function(){function p(l,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,k)})})}return p}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},S={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"}},k=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.locked&&!u.siliconUser,d=u.normallyLocked,C=y[u.externalPower]||y[0],g=y[u.chargingStatus]||y[0],v=u.powerChannels||[],h=S[u.malfStatus]||S[0],V=u.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.isOperating?"power-off":"times",content:u.isOperating?"On":"Off",selected:u.isOperating&&!s,color:u.isOperating?"":"bad",disabled:s,onClick:function(){function b(){return i("breaker")}return b}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:V})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:g.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u.chargeMode?"sync":"times",content:u.chargeMode?"Auto":"Off",selected:u.chargeMode,disabled:s,onClick:function(){function b(){return i("charge")}return b}()}),children:["[ ",g.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(b){var B=b.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:b.status>=2?"good":"bad",children:b.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!s&&(b.status===1||b.status===3),disabled:s,onClick:function(){function I(){return i("channel",B.auto)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!s&&b.status===2,disabled:s,onClick:function(){function I(){return i("channel",B.on)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!s&&b.status===0,disabled:s,onClick:function(){function I(){return i("channel",B.off)}return I}()})],4),children:[b.powerLoad," W"]},b.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[u.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!u.siliconUser&&(0,e.createFragment)([!!u.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function b(){return i(h.action)}return b}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function b(){return i("overload")}return b}()})],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:u.coverLocked?"lock":"unlock",content:u.coverLocked?"Engaged":"Disengaged",disabled:s,onClick:function(){function b(){return i("cover")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:u.emergencyLights?"Enabled":"Disabled",disabled:s,onClick:function(){function b(){return i("emergency_lighting")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:u.nightshiftLights?"Enabled":"Disabled",onClick:function(){function b(){return i("toggle_nightshift")}return b}()})})]})})],4)}},16822:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ATM=function(){function f(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.view_screen,v=C.authenticated_account,h=C.ticks_left_locked_down,V=C.linked_db,b;if(h>0)b=(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(!V)b=(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(v)switch(g){case 1:b=(0,e.createComponentVNode)(2,y);break;case 2:b=(0,e.createComponentVNode)(2,S);break;case 3:b=(0,e.createComponentVNode)(2,l);break;default:b=(0,e.createComponentVNode)(2,k)}else b=(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,N),(0,e.createComponentVNode)(2,t.Section,{children:b})]})})}return f}(),N=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.machine_id,v=C.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:v,icon:"eject",onClick:function(){function h(){return d("insert_card")}return h}()})})})]})},y=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.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 v(){return d("change_security_level",{new_security_level:1})}return v}()})}),(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===2,onClick:function(){function v(){return d("change_security_level",{new_security_level:2})}return v}()})}),(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,c)]})},S=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=(0,a.useLocalState)(u,"targetAccNumber",0),v=g[0],h=g[1],V=(0,a.useLocalState)(u,"fundsAmount",0),b=V[0],B=V[1],I=(0,a.useLocalState)(u,"purpose",0),w=I[0],T=I[1],A=C.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 x(E,P){return h(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function x(E,P){return B(P)}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function x(E,P){return T(P)}return x}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function x(){return d("transfer",{target_acc_number:v,funds_amount:b,purpose:w})}return x}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},k=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=(0,a.useLocalState)(u,"fundsAmount",0),v=g[0],h=g[1],V=C.owner_name,b=C.money;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function B(){return d("logout")}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",b]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function B(){return d("withdrawal",{funds_amount:v})}return B}()})})]})}),(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 B(){return d("view_screen",{view_screen:1})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function B(){return d("view_screen",{view_screen:2})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function B(){return d("view_screen",{view_screen:3})}return B}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function B(){return d("balance_statement")}return B}()})})]})],4)},p=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=(0,a.useLocalState)(u,"accountID",null),v=g[0],h=g[1],V=(0,a.useLocalState)(u,"accountPin",null),b=V[0],B=V[1],I=C.machine_id,w=C.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 T(A,x){return h(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function T(A,x){return B(x)}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function T(){return d("attempt_auth",{account_num:v,account_pin:b})}return T}()})})]})})},l=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.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(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:v.is_deposit?"green":"red",children:["$",v.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.target_name})]},v)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,c)]})},c=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function g(){return d("view_screen",{view_screen:0})}return g}()})}},90698:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(99753),N=n(84947),y=n(51185),S=n(69774),k=r.AccountsUplinkTerminal=function(){function C(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.loginState,I=b.currentPage,w;if(B.logged_in)I===1?w=(0,e.createComponentVNode)(2,l):I===2?w=(0,e.createComponentVNode)(2,s):I===3&&(w=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,S.LoginScreen)})})});return(0,e.createComponentVNode)(2,N.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:w})]})})})}return C}(),p=function(g,v){var h=(0,t.useBackend)(v),V=h.data,b=(0,t.useLocalState)(v,"tabIndex",0),B=b[0],I=b[1],w=V.login_state;return(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mb:1,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===0,onClick:function(){function T(){return I(0)}return T}(),children:"User Accounts"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:B===1,onClick:function(){function T(){return I(1)}return T}(),children:"Department Accounts"})]})})})},l=function(g,v){var h=(0,t.useLocalState)(v,"tabIndex",0),V=h[0];switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},c=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.accounts,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[1],A=(0,t.useLocalState)(v,"sortId","owner_name"),x=A[0],E=A[1],P=(0,t.useLocalState)(v,"sortOrder",!0),j=P[0],M=P[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,u),(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"})]}),B.filter((0,a.createSearch)(w,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,D){var F=j?1:-1;return O[x].localeCompare(D[x])*F}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function D(){return V("view_account_detail",{account_num:O.account_number})}return D}(),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)})]})})})]})},f=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.department_accounts;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{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,m.TableCell,{children:"Department Name"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Number"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Status"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Account Balance"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+I.suspended,onClick:function(){function w(){return V("view_account_detail",{account_num:I.account_number})}return w}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wallet"})," ",I.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",I.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.money})]},I.account_number)})]})})})})},i=function(g,v){var h=(0,t.useLocalState)(v,"sortId","name"),V=h[0],b=h[1],B=(0,t.useLocalState)(v,"sortOrder",!0),I=B[0],w=B[1],T=g.id,A=g.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==T&&"transparent",width:"100%",onClick:function(){function x(){V===T?w(!I):(b(T),w(!0))}return x}(),children:[A,V===T&&(0,e.createComponentVNode)(2,o.Icon,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})},u=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.is_printing,I=(0,t.useLocalState)(v,"searchText",""),w=I[0],T=I[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 A(){return V("create_new_account")}return A}()})}),(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 A(x,E){return T(E)}return A}()})})]})},s=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=b.account_number,I=b.owner_name,w=b.money,T=b.suspended,A=b.transactions,x=b.account_pin,E=b.is_department_account;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:"#"+B+" / "+I,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function P(){return V("back")}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",B]}),!!E&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin",children:x}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Pin Actions",children:(0,e.createComponentVNode)(2,o.Button,{ml:1,icon:"user-cog",content:"Set New Pin",disabled:!!E,onClick:function(){function P(){return V("set_account_pin",{account_number:B})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:I}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:w}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:T?"red":"green",children:[T?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:T?"Unsuspend":"Suspend",icon:T?"unlock":"lock",onClick:function(){function P(){return V("toggle_suspension")}return P}()})]})]})})}),(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"})]}),A.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:P.is_deposit?"green":"red",children:["$",P.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.target_name})]},P)})]})})})]})},d=function(g,v){var h=(0,t.useBackend)(v),V=h.act,b=h.data,B=(0,t.useLocalState)(v,"accName",""),I=B[0],w=B[1],T=(0,t.useLocalState)(v,"accDeposit",""),A=T[0],x=T[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 E(){return V("back")}return E}()}),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 E(P,j){return w(j)}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function E(P,j){return x(j)}return E}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function E(){return V("finalise_create_account",{holder_name:I,starting_funds:A})}return E}()})]})}},66895:function(L,r,n){"use strict";r.__esModule=!0,r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AgentCard=function(){function S(k,p){var l=(0,a.useLocalState)(p,"tabIndex",0),c=l[0],f=l[1],i=function(){function u(s){switch(s){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,y);default:return(0,e.createComponentVNode)(2,N)}}return u}();return(0,e.createComponentVNode)(2,o.Window,{width:425,height:500,theme:"syndicate",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,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===0,onClick:function(){function u(){return f(0)}return u}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:c===1,onClick:function(){function u(){return f(1)}return u}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card"})," Appearance"]},"Appearance")]})}),i(c)]})})})}return S}(),N=r.AgentCardInfo=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.registered_name,u=f.sex,s=f.age,d=f.assignment,C=f.associated_account_number,g=f.blood_type,v=f.dna_hash,h=f.fingerprint_hash,V=f.photo,b=f.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,t.Button,{content:i||"[UNSET]",onClick:function(){function B(){return c("change_name")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,t.Button,{iconRight:!1,content:u||"[UNSET]",onClick:function(){function B(){return c("change_sex")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"[UNSET]",onClick:function(){function B(){return c("change_age")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,t.Button,{content:d||"[UNSET]",onClick:function(){function B(){return c("change_occupation")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,t.Button,{content:h||"[UNSET]",onClick:function(){function B(){return c("change_fingerprints")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"[UNSET]",onClick:function(){function B(){return c("change_blood_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,t.Button,{content:v||"[UNSET]",onClick:function(){function B(){return c("change_dna_hash")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,t.Button,{content:C||"[UNSET]",onClick:function(){function B(){return c("change_money_account")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Update":"[UNSET]",onClick:function(){function B(){return c("change_photo")}return B}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Card Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,t.Button,{content:"Delete Card Info",onClick:function(){function B(){return c("delete_info")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,t.Button,{content:"Reset Access",onClick:function(){function B(){return c("clear_access")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Untrackable":"Trackable",onClick:function(){function B(){return c("change_ai_tracking")}return B}()})})]})})})],4)}return S}(),y=r.AgentCardAppearances=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=(0,a.useLocalState)(p,"selectedAppearance",null),u=i[0],s=i[1],d=f.appearances;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Card Appearance",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{compact:!0,m:.5,color:"translucent",selected:C===u,content:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jped;base64,"+C.image,style:{width:"64px","vertical-align":"middle","-ms-interpolation-mode":"nearest-neighbor"},onClick:function(){function g(){s(C),c("change_appearance",{new_appearance:C.name})}return g}()})},C.name)})})})}return S}()},26354:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},N=r.AiAirlock=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=m[c.power.main]||m[0],i=m[c.power.backup]||m[0],u=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:f.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function s(){return l("disrupt-main")}return s}()}),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:i.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function s(){return l("disrupt-backup")}return s}()}),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:u.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 s(){return l("shock-restore")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function s(){return l("shock-temp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function s(){return l("shock-perm")}return s}()})],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 s(){return l("idscan-toggle")}return s}()}),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 s(){return l("emergency-toggle")}return s}()})}),(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 s(){return l("bolt-toggle")}return s}()}),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 s(){return l("light-toggle")}return s}()}),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 s(){return l("safe-toggle")}return s}()}),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 s(){return l("speed-toggle")}return s}()}),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 s(){return l("open-close")}return s}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},26673:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(29723),N=r.AirAlarm=function(){function u(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,S),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)],4)]})})}return u}(),y=function(s){return s===0?"green":s===1?"orange":"red"},S=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.air,V=v.mode,b=v.atmos_alarm,B=v.locked,I=v.alarmActivated,w=v.rcon,T=v.target_temp,A;return h.danger.overall===0?b===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:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:V===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:V===3,icon:"exclamation-triangle",onClick:function(){function x(){return g("mode",{mode:V===3?1:3})}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function x(){return g("temperature")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function x(){return g("thermostat_state")}return x}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.overall),children:[A,!B&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:I?"Reset Alarm":"Activate Alarm",selected:I,onClick:function(){function x(){return g(I?"atmos_reset":"atmos_alarm")}return x}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:w===1,onClick:function(){function x(){return g("set_rcon",{rcon:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:w===2,onClick:function(){function x(){return g("set_rcon",{rcon:2})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:w===3,onClick:function(){function x(){return g("set_rcon",{rcon:3})}return x}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},k=function(s,d){var C=(0,a.useLocalState)(d,"tabIndex",0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:g===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(s,d){var C=(0,a.useLocalState)(d,"tabIndex",0),g=C[0],v=C[1];switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,i);default:return"WE SHOULDN'T BE HERE!"}},l=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.vents;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.direction?"Blowing":"Siphoning",icon:V.direction?"sign-out-alt":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"direction",val:!V.direction,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:V.checks===1,onClick:function(){function b(){return g("command",{cmd:"checks",val:1,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:V.checks===2,onClick:function(){function b(){return g("command",{cmd:"checks",val:2,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:V.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function b(){return g("command",{cmd:"set_external_pressure",val:101.325,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},c=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.scrubbers;return h.map(function(V){return(0,e.createComponentVNode)(2,t.Section,{title:V.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:V.power?"On":"Off",selected:V.power,icon:"power-off",onClick:function(){function b(){return g("command",{cmd:"power",val:!V.power,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V.scrubbing?"Scrubbing":"Siphoning",icon:V.scrubbing?"filter":"sign-in-alt",onClick:function(){function b(){return g("command",{cmd:"scrubbing",val:!V.scrubbing,id_tag:V.id_tag})}return b}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:V.widenet?"Extended":"Normal",selected:V.widenet,icon:"expand-arrows-alt",onClick:function(){function b(){return g("command",{cmd:"widenet",val:!V.widenet,id_tag:V.id_tag})}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:V.filter_co2,onClick:function(){function b(){return g("command",{cmd:"co2_scrub",val:!V.filter_co2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:V.filter_toxins,onClick:function(){function b(){return g("command",{cmd:"tox_scrub",val:!V.filter_toxins,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:V.filter_n2o,onClick:function(){function b(){return g("command",{cmd:"n2o_scrub",val:!V.filter_n2o,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:V.filter_o2,onClick:function(){function b(){return g("command",{cmd:"o2_scrub",val:!V.filter_o2,id_tag:V.id_tag})}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:V.filter_n2,onClick:function(){function b(){return g("command",{cmd:"n2_scrub",val:!V.filter_n2,id_tag:V.id_tag})}return b}()})]})]})},V.name)})},f=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.modes,V=v.presets,b=v.emagged,B=v.mode,I=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(w){return(!w.emagonly||w.emagonly&&!!b)&&(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:w.name,icon:"cog",selected:w.id===B,onClick:function(){function T(){return g("mode",{mode:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.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:V.map(function(w){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:w.name,icon:"cog",selected:w.id===I,onClick:function(){function T(){return g("preset",{preset:w.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.desc})]},w.name)})})]})],4)},i=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(V){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:V.name}),V.settings.map(function(b){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:b.selected===-1?"Off":b.selected,onClick:function(){function B(){return g("command",{cmd:"set_threshold",env:b.env,var:b.val})}return B}()})},b.val)})]},V.name)})]})})}},98565:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AirlockAccessController=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.exterior_status,f=l.interior_status,i=l.processing,u,s;return c==="open"?u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:i,onClick:function(){function d(){return p("force_ext")}return d}()}):u=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:i,onClick:function(){function d(){return p("cycle_ext_door")}return d}()}),f==="open"?s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:i,color:f==="open"?"red":i?"yellow":null,onClick:function(){function d(){return p("force_int")}return d}()}):s=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:i,onClick:function(){function d(){return p("cycle_int_door")}return d}()}),(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:[u,s]})})]})})}return N}()},76385:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(14635),N=1,y=2,S=4,k=8,p=r.AirlockElectronics=function(){function f(i,u){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,l),(0,e.createComponentVNode)(2,c)]})})})}return f}(),l=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:g&S?"selected":null,onClick:function(){function v(){return d("unrestricted_access",{unres_dir:S})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:g&y?"selected":null,onClick:function(){function v(){return d("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:g&k?"selected":null,onClick:function(){function v(){return d("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:g&N?"selected":null,onClick:function(){function v(){return d("unrestricted_access",{unres_dir:N})}return v}()})})]})]})})},c=function(i,u){var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function V(){return d("set_one_access",{access:"one"})}return V}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function V(){return d("set_one_access",{access:"all"})}return V}()})],4),accesses:h,selectedList:g,accessMod:function(){function V(b){return d("set",{access:b})}return V}(),grantAll:function(){function V(){return d("grant_all")}return V}(),denyAll:function(){function V(){return d("clear_all")}return V}(),grantDep:function(){function V(b){return d("grant_region",{region:b})}return V}(),denyDep:function(){function V(b){return d("deny_region",{region:b})}return V}()})}},55666:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(28823),a=n(2146),t=n(91819),o=n(31068),m=n(2971),N=n(84947),y=-1,S=1,k=r.AlertModal=function(){function c(f,i){var u=(0,t.useBackend)(i),s=u.act,d=u.data,C=d.autofocus,g=d.buttons,v=g===void 0?[]:g,h=d.large_buttons,V=d.message,b=V===void 0?"":V,B=d.timeout,I=d.title,w=(0,t.useLocalState)(i,"selected",0),T=w[0],A=w[1],x=110+(b.length>30?Math.ceil(b.length/4):0)+(b.length&&h?5:0),E=325+(v.length>2?100:0),P=function(){function j(M){T===0&&M===y?A(v.length-1):T===v.length-1&&M===S?A(0):A(T+M)}return j}();return(0,e.createComponentVNode)(2,N.Window,{title:I,height:x,width:E,children:[!!B&&(0,e.createComponentVNode)(2,a.Loader,{value:B}),(0,e.createComponentVNode)(2,N.Window.Content,{onKeyDown:function(){function j(M){var O=window.event?M.which:M.keyCode;O===o.KEY_SPACE||O===o.KEY_ENTER?s("choose",{choice:v[T]}):O===o.KEY_ESCAPE?s("cancel"):O===o.KEY_LEFT?(M.preventDefault(),P(y)):(O===o.KEY_TAB||O===o.KEY_RIGHT)&&(M.preventDefault(),P(S))}return j}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:b})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(f,i){var u=(0,t.useBackend)(i),s=u.data,d=s.buttons,C=d===void 0?[]:d,g=s.large_buttons,v=s.swapped_buttons,h=f.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(V,b){return g&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{button:V,id:b.toString(),selected:h===b})},b):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:g?1:0,children:(0,e.createComponentVNode)(2,l,{button:V,id:b.toString(),selected:h===b})},b)})})},l=function(f,i){var u=(0,t.useBackend)(i),s=u.act,d=u.data,C=d.large_buttons,g=f.button,v=f.selected,h=g.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:g,fluid:!!C,onClick:function(){function V(){return s("choose",{choice:g})}return V}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},16504:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AppearanceChanger=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.change_race,i=c.species,u=c.specimen,s=c.change_gender,d=c.gender,C=c.has_gender,g=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,V=c.change_head_accessory_color,b=c.change_hair_color,B=c.change_secondary_hair_color,I=c.change_facial_hair_color,w=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,x=c.change_tail_marking_color,E=c.change_head_accessory,P=c.head_accessory_styles,j=c.head_accessory_style,M=c.change_hair,O=c.hair_styles,D=c.hair_style,F=c.change_hair_gradient,U=c.change_facial_hair,_=c.facial_hair_styles,z=c.facial_hair_style,H=c.change_head_markings,$=c.head_marking_styles,G=c.head_marking_style,X=c.change_body_markings,oe=c.body_marking_styles,re=c.body_marking_style,se=c.change_tail_markings,he=c.tail_marking_styles,ye=c.tail_marking_style,Be=c.change_body_accessory,me=c.body_accessory_styles,te=c.body_accessory_style,Z=c.change_alt_head,q=c.alt_head_styles,ue=c.alt_head_style,fe=!1;return(g||v||h||V||b||B||I||w||T||A||x)&&(fe=!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:i.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.specimen,selected:ae.specimen===u,onClick:function(){function be(){return l("race",{race:ae.specimen})}return be}()},ae.specimen)})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:d==="male",onClick:function(){function ae(){return l("gender",{gender:"male"})}return ae}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:d==="female",onClick:function(){function ae(){return l("gender",{gender:"female"})}return ae}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:d==="plural",onClick:function(){function ae(){return l("gender",{gender:"plural"})}return ae}()})]}),!!fe&&(0,e.createComponentVNode)(2,N),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:P.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.headaccessorystyle,selected:ae.headaccessorystyle===j,onClick:function(){function be(){return l("head_accessory",{head_accessory:ae.headaccessorystyle})}return be}()},ae.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:O.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.hairstyle,selected:ae.hairstyle===D,onClick:function(){function be(){return l("hair",{hair:ae.hairstyle})}return be}()},ae.hairstyle)})}),!!F&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function ae(){return l("hair_gradient")}return ae}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function ae(){return l("hair_gradient_offset")}return ae}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function ae(){return l("hair_gradient_colour")}return ae}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function ae(){return l("hair_gradient_alpha")}return ae}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:_.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.facialhairstyle,selected:ae.facialhairstyle===z,onClick:function(){function be(){return l("facial_hair",{facial_hair:ae.facialhairstyle})}return be}()},ae.facialhairstyle)})}),!!H&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:$.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.headmarkingstyle,selected:ae.headmarkingstyle===G,onClick:function(){function be(){return l("head_marking",{head_marking:ae.headmarkingstyle})}return be}()},ae.headmarkingstyle)})}),!!X&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:oe.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.bodymarkingstyle,selected:ae.bodymarkingstyle===re,onClick:function(){function be(){return l("body_marking",{body_marking:ae.bodymarkingstyle})}return be}()},ae.bodymarkingstyle)})}),!!se&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:he.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.tailmarkingstyle,selected:ae.tailmarkingstyle===ye,onClick:function(){function be(){return l("tail_marking",{tail_marking:ae.tailmarkingstyle})}return be}()},ae.tailmarkingstyle)})}),!!Be&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:me.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.bodyaccessorystyle,selected:ae.bodyaccessorystyle===te,onClick:function(){function be(){return l("body_accessory",{body_accessory:ae.bodyaccessorystyle})}return be}()},ae.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:q.map(function(ae){return(0,e.createComponentVNode)(2,t.Button,{content:ae.altheadstyle,selected:ae.altheadstyle===ue,onClick:function(){function be(){return l("alt_head",{alt_head:ae.altheadstyle})}return be}()},ae.altheadstyle)})})]})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=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(i){return!!c[i.key]&&(0,e.createComponentVNode)(2,t.Button,{content:i.text,onClick:function(){function u(){return l(i.action)}return u}()},i.key)})})}},77280:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AtmosAlertConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.priority||[],f=l.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(i){return(0,e.createVNode)(1,"li","color-bad",i,0,null,i)}),f.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),f.map(function(i){return(0,e.createVNode)(1,"li","color-average",i,0,null,i)})],0)})})})}return N}()},66274:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(99753),m=n(84947),N=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},S=r.AtmosControl=function(){function l(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=(0,a.useLocalState)(f,"tabIndex",0),C=d[0],g=d[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return l}(),k=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.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"})]}),d.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:N(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function g(){return u("open_alarm",{aref:C.ref})}return g}()})})]},C.name)})]})})},p=function(c,f){var i=(0,a.useBackend)(f),u=i.data,s=(0,a.useLocalState)(f,"zoom",1),d=s[0],C=s[1],g=u.alarms;return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function v(h){return C(h)}return v}(),children:g.filter(function(v){return v.z===3}).map(function(v){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:v.x,y:v.y,zoom:d,icon:"circle",tooltip:v.name,color:y(v.danger)},v.ref)})})})}},90588:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AtmosFilter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.on,f=l.pressure,i=l.max_pressure,u=l.filter_type,s=l.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 d(){return p("power")}return d}()})}),(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 d(){return p("min_pressure")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:i,value:f,onDrag:function(){function d(C,g){return p("custom_pressure",{pressure:g})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===i,width:2.2,onClick:function(){function d(){return p("max_pressure")}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Button,{selected:d.gas_type===u,content:d.label,onClick:function(){function C(){return p("set_filter",{filter:d.gas_type})}return C}()},d.label)})})]})})})})}return N}()},82657:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosGraphMonitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(58331),N=n(72026),y=n(66586),S=["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"];function k(d,C){if(d==null)return{};var g={},v=Object.keys(d),h,V;for(V=0;V=0)&&(g[h]=d[h]);return g}function p(d,C){d.prototype=Object.create(C.prototype),d.prototype.constructor=d,l(d,C)}function l(d,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function g(v,h){return v.__proto__=h,v}return g}(),l(d,C)}var c=r.AtmosGraphMonitor=function(){function d(C,g){var v=(0,a.useBackend)(g),h=v.data,V=(0,a.useLocalState)(g,"tabIndex",0),b=V[0],B=V[1],I=function(){function A(x){switch(x){case 0:return(0,e.createComponentVNode)(2,f,{data:h,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 60 \u0441. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 3\u0441.",pressureListName:"pressure_history",temperatureListName:"temperature_history"});case 1:return(0,e.createComponentVNode)(2,f,{data:h,info:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u0437\u0430\u043F\u0438\u0441\u0438 T = 10 \u041C\u0438\u043D. | \u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043C\u0435\u0436\u0434\u0443 \u0437\u0430\u043F\u0438\u0441\u044F\u043C\u0438 t = 30\u0441.",pressureListName:"long_pressure_history",temperatureListName:"long_temperature_history"});default:return"WE SHOULDN'T BE HERE!"}}return A}(),w=900,T=Math.min(w,Object.keys(h.sensors).length*220+150);return(0,e.createComponentVNode)(2,o.Window,{width:700,height:T,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:b===0,onClick:function(){function A(){return B(0)}return A}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"area-chart"})," \u0422\u0435\u043A\u0443\u0449\u0438\u0435"]},"View"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function A(){return B(1)}return A}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"bar-chart"})," \u0418\u0441\u0442\u043E\u0440\u0438\u044F"]},"History")]}),I(b),Object.keys(h.sensors).length===0&&(0,e.createComponentVNode)(2,t.Box,{pt:2,textAlign:"center",textColor:"gray",bold:!0,fontSize:1.3,children:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435 gas sensor \u0438\u043B\u0438 meter \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E multitool"})]})})})}return d}(),f=function(C){var g=C.data,v=C.info,h=C.pressureListName,V=C.temperatureListName,b=g.sensors||{},B=function(x,E){return b[x][E].slice(-1)[0]},I=function(x,E){return Math.min.apply(Math,b[x][E])},w=function(x,E){return Math.max.apply(Math,b[x][E])},T=function(x,E){return b[x][E].map(function(P,j){return[j,P]})};return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{color:"gray",children:v}),Object.keys(b).map(function(A){return(0,e.createComponentVNode)(2,t.Section,{title:A,children:(0,e.createComponentVNode)(2,t.Section,{px:2,children:[V in b[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430: "+(0,m.toFixed)(B(A,V),0)+"\u041A (MIN: "+(0,m.toFixed)(I(A,V),0)+"\u041A; MAX: "+(0,m.toFixed)(w(A,V),0)+"\u041A)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:T(A,V),rangeX:[0,T(A,V).length-1],rangeY:[0,w(A,V)+5],strokeColor:"rgba(219, 40, 40, 1)",fillColor:"rgba(219, 40, 40, 0.1)"})})]}),h in b[A]&&(0,e.createComponentVNode)(2,t.Box,{mb:-1,children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435: "+(0,m.toFixed)(B(A,h),0)+"\u043A\u041F\u0430 (MIN: "+(0,m.toFixed)(I(A,h),0)+"\u043A\u041F\u0430; MAX: "+(0,m.toFixed)(w(A,h),0)+"\u043A\u041F\u0430)"}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:5,mt:1,children:(0,e.createComponentVNode)(2,s,{fillPositionedParent:!0,data:T(A,h),rangeX:[0,T(A,h).length-1],rangeY:[0,w(A,h)+5],strokeColor:"rgba(40, 219, 40, 1)",fillColor:"rgba(40, 219, 40, 0.1)"})})]})]})},A)})]})},i=function(C,g,v,h){if(C.length===0)return[];var V=(0,N.zipWith)(Math.min).apply(void 0,C),b=(0,N.zipWith)(Math.max).apply(void 0,C);v!==void 0&&(V[0]=v[0],b[0]=v[1]),h!==void 0&&(V[1]=h[0],b[1]=h[1]);var B=function(A,x,E,P){return(A-x)/(E-x)*P},I=(0,N.zipWith)(B),w=(0,N.map)(function(T){return I(T,V,b,g)});return w(C)},u=function(C){for(var g="",v=0;v0){var F=D[0],U=D[D.length-1];D.push([O[0]+j,U[1]]),D.push([O[0]+j,-j]),D.push([-j,-j]),D.push([-j,F[1]])}var _=u(D),z=2,H=B.length-2,$="rgba(255, 255, 255, 0.1)",G=2,X="rgba(255, 255, 255, 0.8)",oe="0.8em",re=400,se=0,he=10;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({position:"relative"},M,{children:function(){function ye(Be){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,[Array.from({length:z}).map(function(me,te){return(0,e.createVNode)(32,"line",null,null,1,{x1:0,y1:(te+1)*(O[1]/(z+1)),x2:O[0],y2:(te+1)*(O[1]/(z+1)),stroke:$,"stroke-width":G},"horizontal-line-"+te)}),Array.from({length:H}).map(function(me,te){return(0,e.createVNode)(32,"line",null,null,1,{x1:(te+1)*(O[0]/(H+1)),y1:0,x2:(te+1)*(O[0]/(H+1)),y2:O[1],stroke:$,"stroke-width":G},"vertical-line-"+te)}),(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:A,points:_}),B.map(function(me,te){return te===0?null:(0,e.createVNode)(32,"line",null,null,1,{x1:D[te-1][0],y1:O[1]-D[te-1][1],x2:D[te][0],y2:O[1]-D[te][1],stroke:E,"stroke-width":j},"line-"+te)}),B.map(function(me,te){return(0,e.createVNode)(32,"circle",null,null,1,{cx:D[te][0],cy:O[1]-D[te][1],r:2,fill:"#ffffff",stroke:E,"stroke-width":1},"point-"+te)}),B.map(function(me,te){return O[0]>re&&te%2===1&&(0,e.createVNode)(32,"text",null,me[1]!==null?me[1].toFixed(0):"N/A",0,{x:D[te][0],y:O[1]-D[te][1],fill:X,"font-size":oe,dy:"1em",style:{"text-anchor":"end"}},"point-text-"+te)})],0,{viewBox:"0 0\n "+(O[0]+se)+"\n "+(O[1]+he),preserveAspectRatio:"none",style:{position:"absolute",overflow:"hidden"}}),2,Object.assign({},Be),null,h.ref))}return ye}()})))}return v}(),C}(e.Component);s.defaultHooks=void 0,s.defaultHooks=y.pureComponentHooks},87486:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AtmosMixer=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.on,i=c.pressure,u=c.max_pressure,s=c.node1_concentration,d=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 C(){return l("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:i===0,width:2.2,onClick:function(){function C(){return l("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:i,onDrag:function(){function C(g,v){return l("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:i===u,width:2.2,onClick:function(){function C(){return l("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,N,{node_name:"Node 1",node_ref:s}),(0,e.createComponentVNode)(2,N,{node_name:"Node 2",node_ref:d})]})})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.node_name,i=S.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:i===0,onClick:function(){function u(){return l("set_node",{node_name:f,concentration:(i-10)/100})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:i,onChange:function(){function u(s,d){return l("set_node",{node_name:f,concentration:d/100})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:i===100,onClick:function(){function u(){return l("set_node",{node_name:f,concentration:(i+10)/100})}return u}()})]})}},46714:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.AtmosPump=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.on,f=l.rate,i=l.max_rate,u=l.gas_unit,s=l.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 d(){return p("power")}return d}()})}),(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 d(){return p("min_rate")}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:u,width:6.1,lineHeight:1.5,step:s,minValue:0,maxValue:i,value:f,onDrag:function(){function d(C,g){return p("custom_rate",{rate:g})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:f===i,width:2.2,onClick:function(){function d(){return p("max_rate")}return d}()})]})]})})})})}return N}()},66032:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosTankControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(58331),m=n(30381),N=n(84947),y=r.AtmosTankControl=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.sensors||{};return(0,e.createComponentVNode)(2,N.Window,{width:400,height:400,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:[Object.keys(i).map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[Object.keys(i[u]).indexOf("pressure")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:[i[u].pressure," kpa"]}):"",Object.keys(i[u]).indexOf("temperature")>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[i[u].temperature," K"]}):"",["o2","n2","plasma","co2","n2o"].map(function(s){return Object.keys(i[u]).indexOf(s)>-1?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:(0,m.getGasLabel)(s),children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:(0,m.getGasColor)(s),value:i[u][s],minValue:0,maxValue:100,children:(0,o.toFixed)(i[u][s],2)+"%"})},(0,m.getGasLabel)(s)):""})]})},u)}),f.inlet&&Object.keys(f.inlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Inlet Control",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:(f.inlet.on,"power-off"),content:f.inlet.on?"On":"Off",color:f.inlet.on?null:"red",selected:f.inlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"inlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"L/s",width:6.1,lineHeight:1.5,step:1,minValue:0,maxValue:50,value:f.inlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"inlet",val:d})}return u}()})})]})}):"",f.outlet&&Object.keys(f.outlet).length>0?(0,e.createComponentVNode)(2,t.Section,{title:"Outlet Control",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:(f.outlet.on,"power-off"),content:f.outlet.on?"On":"Off",color:f.outlet.on?null:"red",selected:f.outlet.on,onClick:function(){function u(){return c("toggle_active",{dev:"outlet"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:5066,value:f.outlet.rate,onDrag:function(){function u(s,d){return c("set_pressure",{dev:"outlet",val:d})}return u}()})})]})}):""]})})}return S}()},62343:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),m=n(2971),N=n(84947),y=n(37843),S=function(l,c,f,i){return l.requirements===null?!0:!(l.requirements.metal*i>c||l.requirements.glass*i>f)},k=r.Autolathe=function(){function p(l,c){var f=(0,o.useBackend)(c),i=f.act,u=f.data,s=u.total_amount,d=u.max_amount,C=u.metal_amount,g=u.glass_amount,v=u.busyname,h=u.busyamt,V=u.showhacked,b=u.buildQueue,B=u.buildQueueLen,I=u.recipes,w=u.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],x=T[1];A===0&&(A="Tools");var E=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),j=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),O=M[0],D=M[1],F=(0,y.createSearch)(O,function(H){return H.name}),U="";B>0&&(U=b.map(function(H,$){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:b[$][0],onClick:function(){function G(){return i("remove_from_queue",{remove_from_queue:b.indexOf(H)+1})}return G}()},H)},$)}));var _=(0,a.flow)([(0,t.filter)(function(H){return(H.category.indexOf(A)>-1||O)&&(u.showhacked||!H.hacked)}),O&&(0,t.filter)(F),(0,t.sortBy)(function(H){return H.name.toLowerCase()})])(I),z="Build";return O?z="Results for: '"+O+"':":A&&(z="Build ("+A+")"),(0,e.createComponentVNode)(2,N.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:z,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:w,selected:A,onSelected:function(){function H($){return x($)}return H}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function H($,G){return D(G)}return H}(),mb:1}),_.map(function(H){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+H.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===1,disabled:!S(H,u.metal_amount,u.glass_amount,1),onClick:function(){function $(){return i("make",{make:H.uid,multiplier:1})}return $}(),children:(0,y.toTitleCase)(H.name)}),H.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===10,disabled:!S(H,u.metal_amount,u.glass_amount,10),onClick:function(){function $(){return i("make",{make:H.uid,multiplier:10})}return $}(),children:"10x"}),H.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===25,disabled:!S(H,u.metal_amount,u.glass_amount,25),onClick:function(){function $(){return i("make",{make:H.uid,multiplier:25})}return $}(),children:"25x"}),H.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:u.busyname===H.name&&u.busyamt===H.max_multiplier,disabled:!S(H,u.metal_amount,u.glass_amount,H.max_multiplier),onClick:function(){function $(){return i("make",{make:H.uid,multiplier:H.max_multiplier})}return $}(),children:[H.max_multiplier,"x"]}),H.requirements&&Object.keys(H.requirements).map(function($){return(0,y.toTitleCase)($)+": "+H.requirements[$]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},H.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:P}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:j}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[u.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!u.buildQueueLen,onClick:function(){function H(){return i("clear_queue")}return H}()})]})]})]})})})}return p}()},13940:function(L,r,n){"use strict";r.__esModule=!0,r.BioChipPad=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.BioChipPad=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.implant,f=l.contains_case;return(0,e.createComponentVNode)(2,o.Window,{width:410,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Bio-chip Mini-Computer",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})]})],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!"}),(0,e.createComponentVNode)(2,t.Button,{mt:2,content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function i(){return p("eject_case")}return i}()})]})})})}return N}()},55295:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(48154),N=r.Biogenerator=function(){function l(c,f){var i=(0,a.useBackend)(f),u=i.data,s=i.config,d=u.container,C=u.processing,g=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,m.Operating,{operating:C,name:g}),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),d?(0,e.createComponentVNode)(2,p):(0,e.createComponentVNode)(2,y)]})})})}return l}(),y=function(c,f){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,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:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The biogenerator is missing a container."]})})})},S=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.biomass,C=s.container,g=s.container_curr_reagents,v=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:d}),(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:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:g+" / "+v+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=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:!d,tooltip:d?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function g(){return u("activate")}return g}()})}),(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 g(){return u("detach_container")}return g}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!d,tooltip:d?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function g(){return u("eject_plants")}return g}()})})]})})},p=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.biomass,C=s.product_list,g=(0,a.useSharedState)(f,"vendAmount",1),v=g[0],h=g[1],V=Object.entries(C).map(function(b,B){var I=Object.entries(b[1]).map(function(w){return w[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:b[0],open:!0,children:I.map(function(w){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:w.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[w.cost*v,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:du&&"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"}),u>V&&(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:u}),(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:i===0,tooltip:"Set to 0",onClick:function(){function I(){return l("set",{set_level:0})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:i===0,onClick:function(){function I(){return l("set",{set_level:u})}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:i===0,tooltip:"Decrease one step",onClick:function(){function I(){return l("decrease")}return I}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:i,fillValue:u,minValue:0,color:B,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function I(w,T){return l("set",{set_level:T})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:i===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function I(){return l("increase")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function I(){return l("set",{set_level:v})}return I}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(b)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(g)})]})})}),(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:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:d})]})})}),(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(I){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:I.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:I.price>=s,onClick:function(){function w(){return l("vend",{target:I.key})}return w}(),content:I.price})},I.key)})})})})]})})]})})})}return y}()},31876:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(28823),a=n(58331),t=n(37843),o=n(91819),m=n(2971),N=n(84947),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],S=[["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],k=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Cellular","cloneLoss"],["Burn","fireLoss"],["Inebriation","drunkenness"]],p={average:[.25,.5],bad:[.5,1/0]},l=function(B,I){for(var w=[],T=0;T0?B.filter(function(I){return!!I}).reduce(function(I,w){return(0,e.createFragment)([I,(0,e.createComponentVNode)(2,m.Box,{children:w},w)],0)},null):null},f=function(B){if(B>100){if(B<300)return"mild infection";if(B<400)return"mild infection+";if(B<500)return"mild infection++";if(B<700)return"acute infection";if(B<800)return"acute infection+";if(B<900)return"acute infection++";if(B>=900)return"septic"}return""},i=r.BodyScanner=function(){function b(B,I){var w=(0,o.useBackend)(I),T=w.data,A=T.occupied,x=T.occupant,E=x===void 0?{}:x,P=A?(0,e.createComponentVNode)(2,u,{occupant:E}):(0,e.createComponentVNode)(2,V);return(0,e.createComponentVNode)(2,N.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:P})})}return b}(),u=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,s,{occupant:I}),(0,e.createComponentVNode)(2,d,{occupant:I}),(0,e.createComponentVNode)(2,C,{occupant:I}),(0,e.createComponentVNode)(2,v,{organs:I.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:I.intOrgan})]})},s=function(B,I){var w=(0,o.useBackend)(I),T=w.act,A=w.data,x=A.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("print_p")}return E}(),children:"Print Report"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"Eject"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:x.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[x.stat][0],children:y[x.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(x.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:x.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:x.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},d=function(B){var I=B.occupant;return I.hasBorer||I.blind||I.colourblind||I.nearsighted||I.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:S.map(function(w,T){if(I[w[0]])return(0,e.createComponentVNode)(2,m.Box,{color:w[1],bold:w[1]==="bad",children:w[2]},w[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(B){var I=B.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:l(k,function(w,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[w[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,g,{value:I[w[1]],marginBottom:A100)&&"average"||!!I.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:I.maxHealth,mt:w>0&&"0.5rem",value:I.totalLoss/I.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(I.totalLoss)]})}),!!I.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(I.bruteLoss)]})}),!!I.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(I.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!I.internalBleeding&&"Internal bleeding",!!I.burnWound&&"Critical tissue burns",!!I.lungRuptured&&"Ruptured lung",!!I.status.broken&&I.status.broken,f(I.germ_level),!!I.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!I.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!I.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!I.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(I.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},w)})]})})},h=function(B){return B.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),B.organs.map(function(I,w){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!I.dead&&"bad"||I.germ_level>100&&"average"||I.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(I.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:I.maxHealth,value:I.damage/I.maxHealth,mt:w>0&&"0.5rem",ranges:p,children:(0,a.round)(I.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:w>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([f(I.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([I.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),I.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!I.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},w)})]})})},V=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},73440:function(L,r,n){"use strict";r.__esModule=!0,r.BookBinder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=n(92462),y=r.BookBinder=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.selectedbook,u=f.book_categories,s=[];return u.map(function(d){return s[d.description]=d.category_id}),(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(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.Section,{fill:!0,title:"Book Binder",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",width:"auto",content:"Print Book",onClick:function(){function d(){return c("print_book")}return d}()}),children:[(0,e.createComponentVNode)(2,t.Box,{ml:10,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:"1rem"}),"Book Binder"]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.title,onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_title")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:"auto",content:i.author,onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_author")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"190px",options:u.map(function(d){return d.description}),onSelected:function(){function d(C){return c("toggle_binder_category",{category_id:s[C]})}return d}()})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",content:"Edit Summary",onClick:function(){function d(){return(0,m.modalOpen)(p,"edit_selected_summary")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:i.summary})]}),(0,e.createVNode)(1,"br"),u.filter(function(d){return i.categories.includes(d.category_id)}).map(function(d){return(0,e.createComponentVNode)(2,t.Button,{content:d.description,selected:!0,icon:"unlink",onClick:function(){function C(){return c("toggle_binder_category",{category_id:d.category_id})}return C}()},d.category_id)})]})})]})})})]})}return S}()},40730:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(86041),N=r.BotClean=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.locked,i=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.cleanblood,b=c.area;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Cleaning Settings",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:V,content:"Clean Blood",disabled:i,onClick:function(){function B(){return l("blood")}return B}()})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc Settings",children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:b?"Reset Area Selection":"Restrict to Current Area",onClick:function(){function B(){return l("area")}return B}()}),b!==null&&(0,e.createComponentVNode)(2,t.LabeledList,{mb:1,children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Locked Area",children:b})})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function B(){return l("ejectpai")}return B}()})})]})})}return y}()},36078:function(L,r,n){"use strict";r.__esModule=!0,r.BotFloor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(86041),N=r.BotFloor=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.noaccess,i=c.painame,u=c.hullplating,s=c.replace,d=c.eat,C=c.make,g=c.fixfloor,v=c.nag_empty,h=c.magnet,V=c.tiles_amount;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:510,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Floor Settings",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"5px",children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tiles Left",children:V})}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Add tiles to new hull plating",tooltip:"Fixing a plating requires the removal of floor tile. This will place it back after repairing. Same goes for hull breaches",disabled:f,onClick:function(){function b(){return l("autotile")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Add floor tiles on exposed hull plating",tooltip:"Example: It will add tiles to maintenance",disabled:f,onClick:function(){function b(){return l("replacetiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Repair damaged tiles and platings",disabled:f,onClick:function(){function b(){return l("fixfloors")}return b}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Miscellaneous",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Finds tiles",disabled:f,onClick:function(){function b(){return l("eattiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Make pieces of metal into tiles when empty",disabled:f,onClick:function(){function b(){return l("maketiles")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:v,content:"Transmit notice when empty",disabled:f,onClick:function(){function b(){return l("nagonempty")}return b}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"Traction Magnets",disabled:f,onClick:function(){function b(){return l("anchored")}return b}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,icon:"eject",content:i,disabled:f,onClick:function(){function b(){return l("ejectpai")}return b}()})})]})})}return y}()},89121:function(L,r,n){"use strict";r.__esModule=!0,r.BotHonk=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(86041),N=r.BotHonk=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:220,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.BotStatus)})})}return y}()},39805:function(L,r,n){"use strict";r.__esModule=!0,r.BotMed=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(86041),N=r.BotMed=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.locked,i=c.noaccess,u=c.maintpanel,s=c.on,d=c.autopatrol,C=c.canhack,g=c.emagged,v=c.remote_disabled,h=c.painame,V=c.shut_up,b=c.declare_crit,B=c.stationary_mode,I=c.heal_threshold,w=c.injection_amount,T=c.use_beaker,A=c.treat_virus,x=c.reagent_glass;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:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Communication Settings",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Speaker",checked:!V,disabled:i,onClick:function(){function E(){return l("toggle_speaker")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Critical Patient Alerts",checked:b,disabled:i,onClick:function(){function E(){return l("toggle_critical_alerts")}return E}()})]}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Treatment Settings",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Healing Threshold",children:(0,e.createComponentVNode)(2,t.Slider,{value:I.value,minValue:I.min,maxValue:I.max,step:5,disabled:i,onChange:function(){function E(P,j){return l("set_heal_threshold",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Injection Level",children:(0,e.createComponentVNode)(2,t.Slider,{value:w.value,minValue:w.min,maxValue:w.max,step:5,format:function(){function E(P){return P+"u"}return E}(),disabled:i,onChange:function(){function E(P,j){return l("set_injection_amount",{target:j})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagent Source",children:(0,e.createComponentVNode)(2,t.Button,{content:T?"Beaker":"Internal Synthesizer",icon:T?"flask":"cogs",disabled:i,onClick:function(){function E(){return l("toggle_use_beaker")}return E}()})}),x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x.amount,minValue:0,maxValue:x.max_amount,children:[x.amount," / ",x.max_amount]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{ml:1,children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",disabled:i,onClick:function(){function E(){return l("eject_reagent_glass")}return E}()})})]})})]}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{mt:1,fluid:!0,content:"Treat Viral Infections",checked:A,disabled:i,onClick:function(){function E(){return l("toggle_treat_viral")}return E}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Stationary Mode",checked:B,disabled:i,onClick:function(){function E(){return l("toggle_stationary_mode")}return E}()})]}),h&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:h,disabled:i,onClick:function(){function E(){return l("ejectpai")}return E}()})})]})})})}return y}()},35519:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(86041),N=r.BotSecurity=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.noaccess,i=c.painame,u=c.check_id,s=c.check_weapons,d=c.check_warrant,C=c.arrest_mode,g=c.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.BotStatus),(0,e.createComponentVNode)(2,t.Section,{title:"Who To Arrest",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Unidentifiable Persons",disabled:f,onClick:function(){function v(){return l("authid")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:s,content:"Unauthorized Weapons",disabled:f,onClick:function(){function v(){return l("authweapon")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:d,content:"Wanted Criminals",disabled:f,onClick:function(){function v(){return l("authwarrant")}return v}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Arrest Procedure",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:C,content:"Detain Targets Indefinitely",disabled:f,onClick:function(){function v(){return l("arrtype")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"Announce Arrests On Radio",disabled:f,onClick:function(){function v(){return l("arrdeclare")}return v}()})]}),i&&(0,e.createComponentVNode)(2,t.Section,{title:"pAI",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:i,disabled:f,onClick:function(){function v(){return l("ejectpai")}return v}()})})]})})}return y}()},71169:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(28823),a=n(84947),t=n(2971),o=n(91819),m=function(k,p){var l=k.cell,c=(0,o.useBackend)(p),f=c.act,i=l.cell_id,u=l.occupant,s=l.crimes,d=l.brigged_by,C=l.time_left_seconds,g=l.time_set_seconds,v=l.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var V=function(){f("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(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:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:g})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:V,children:"Release"})})]})},N=function(k){var p=k.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(l){return(0,e.createComponentVNode)(2,m,{cell:l},l.ref)})]})},y=r.BrigCells=function(){function S(k,p){var l=(0,o.useBackend)(p),c=l.act,f=l.data,i=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,N,{cells:i})})})})})}return S}()},19070:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.BrigTimer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;l.nameText=l.occupant,l.timing&&(l.prisoner_hasrec?l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:l.occupant}):l.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:l.occupant}));var c="pencil-alt";l.prisoner_name&&(l.prisoner_hasrec||(c="exclamation-triangle"));var f=[],i=0;for(i=0;if?this.substring(0,f)+"...":this};var k=function(i,u){var s,d;if(!u)return[];var C=i.findIndex(function(g){return g.name===u.name});return[(s=i[C-1])==null?void 0:s.name,(d=i[C+1])==null?void 0:d.name]},p=function(i,u){u===void 0&&(u="");var s=(0,m.createSearch)(u,function(d){return d.name});return(0,t.flow)([(0,a.filter)(function(d){return d==null?void 0:d.name}),u&&(0,a.filter)(s),(0,a.sortBy)(function(d){return d.name})])(i)},l=r.CameraConsole=function(){function f(i,u){var s=(0,N.useBackend)(u),d=s.act,C=s.data,g=s.config,v=C.mapRef,h=C.activeCamera,V=p(C.cameras),b=k(V,h),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,S.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,c)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),h&&h.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!B,onClick:function(){function w(){return d("switch_camera",{name:B})}return w}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function w(){return d("switch_camera",{name:I})}return w}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:v,type:"map"}})],4)]})}return f}(),c=r.CameraConsoleContent=function(){function f(i,u){var s=(0,N.useBackend)(u),d=s.act,C=s.data,g=(0,N.useLocalState)(u,"searchText",""),v=g[0],h=g[1],V=C.activeCamera,b=p(C.cameras,v);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function B(I,w){return h(w)}return B}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:b.map(function(B){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",V&&B.name===V.name&&"Button--selected"]),B.name.trimLongStr(23),0,{title:B.name,onClick:function(){function I(){return d("switch_camera",{name:B.name})}return I}()},B.name)})})})]})}return f}()},64487:function(L,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsole220=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(66586),m=n(37843),N=n(91819),y=n(2971),S=n(84947),k=function(u,s){var d,C;if(!s)return[];var g=u.findIndex(function(v){return v.name===s.name});return[(d=u[g-1])==null?void 0:d.name,(C=u[g+1])==null?void 0:C.name]},p=function(u,s){s===void 0&&(s="");var d=(0,m.createSearch)(s,function(C){return C.name});return(0,t.flow)([(0,a.filter)(function(C){return C==null?void 0:C.name}),s&&(0,a.filter)(d),(0,a.sortBy)(function(C){return C.name})])(u)},l=r.CameraConsole220=function(){function i(u,s){var d=(0,N.useLocalState)(s,"tabIndex",0),C=d[0],g=d[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,S.Window,{width:1170,height:755,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:C===1?"222px":"475px",textAlign:"center",children:(0,e.createComponentVNode)(2,y.Tabs,{fluid:!0,ml:C===1?1:0,mt:C===1?1:0,children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," \u041A\u0430\u0440\u0442\u0430"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," \u0421\u043F\u0438\u0441\u043E\u043A"]},"List")]})}),v(C)]})})})})}return i}(),c=r.CameraConsoleMapContent=function(){function i(u,s){var d=(0,N.useBackend)(s),C=d.act,g=d.data,v=d.config,h=p(g.cameras),V=(0,N.useLocalState)(s,"zoom",1),b=V[0],B=V[1],I=g.mapRef,w=g.activeCamera,T=g.stationLevel,A=k(h,w),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,style:{display:"flex"},children:[(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",style:{display:"flex",flex:"0 0 475px"},children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function P(j){return B(j)}return P}(),children:h.filter(function(P){return P.z===T}).map(function(P){return(0,e.createComponentVNode)(2,y.NanoMap.NanoButton,{activeCamera:w,x:P.x,y:P.y,context:s,zoom:b,icon:"circle",tooltip:P.name,name:P.name,color:"blue",status:P.status},P.ref)})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{height:"100%",resizable:!0,className:"CameraConsole__right_map",children:[(0,e.createVNode)(1,"div","CameraConsole__header",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),w&&w.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!x,onClick:function(){function P(){return C("switch_camera",{name:x})}return P}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!E,onClick:function(){function P(){return C("switch_camera",{name:E})}return P}()})],4)],4),(0,e.createComponentVNode)(2,y.ByondUi,{resizable:!0,className:"CameraConsole__map",overflow:"hidden",params:{id:I,type:"map"}})]})]})}return i}(),f=r.CameraConsoleOldContent=function(){function i(u,s){var d=(0,N.useBackend)(s),C=d.act,g=d.data,v=d.config,h=g.mapRef,V=g.activeCamera,b=(0,N.useLocalState)(s,"searchText",""),B=b[0],I=b[1],w=p(g.cameras,B),T=k(w,V),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,y.Stack.Item,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,S.Window.Content,{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.Input,{width:"215px",placeholder:"\u041D\u0430\u0439\u0442\u0438 \u043A\u0430\u043C\u0435\u0440\u0443",onInput:function(){function E(P,j){return I(j)}return E}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:w.map(function(E){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid",E.status?"Button--color--transparent":"Button--color--danger","Button--ellipsis",V&&E.name===V.name&&"Button--selected"]),E.name,0,{title:E.name,onClick:function(){function P(){return C("switch_camera",{name:E.name})}return P}()},E.name)})})})]})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043C\u0435\u0440\u0430: ",16),V&&V.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return C("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!x,onClick:function(){function E(){return C("switch_camera",{name:x})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:h,type:"map"}})],4)]})}return i}()},21348:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(48300),N=n(84947),y=r.Canister=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,i=f.portConnected,u=f.tankPressure,s=f.releasePressure,d=f.defaultReleasePressure,C=f.minReleasePressure,g=f.maxReleasePressure,v=f.valveOpen,h=f.name,V=f.canLabel,b=f.colorContainer,B=f.color_index,I=f.hasHoldingTank,w=f.holdingTank,T="";B.prim&&(T=b.prim.options[B.prim].name);var A="";B.sec&&(A=b.sec.options[B.sec].name);var x="";B.ter&&(x=b.ter.options[B.ter].name);var E="";B.quart&&(E=b.quart.options[B.quart].name);var P=[],j=[],M=[],O=[],D=0;for(D=0;Dh.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:d.cooldown_time||!h.can_close,onClick:function(){function V(){return s("make_job_unavailable",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:d.cooldown_time||!h.can_open,onClick:function(){function V(){return s("make_job_available",{job:h.title})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:d.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:d.cooldown_time||!h.can_prioritize,onClick:function(){function V(){return s("prioritize_job",{job:h.title})}return V}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,S);break;case 2:!d.authenticated||!d.scan_name?v=(0,e.createComponentVNode)(2,S):d.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:d.regions,selectedList:d.selectedAccess,accessMod:function(){function h(V){return s("set",{access:V})}return h}(),grantAll:function(){function h(){return s("grant_all")}return h}(),denyAll:function(){function h(){return s("clear_all")}return h}(),grantDep:function(){function h(V){return s("grant_region",{region:V})}return h}(),denyDep:function(){function h(V){return s("deny_region",{region:V})}return h}()}):v=(0,e.createComponentVNode)(2,k);break;case 3:d.authenticated?d.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!d.authenticated||d.records.length===0||d.target_dept,onClick:function(){function h(){return s("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"}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),d.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}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!d.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!d.authenticated||d.records.length===0,onClick:function(){function h(){return s("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,S);break;case 4:!d.authenticated||!d.scan_name?v=(0,e.createComponentVNode)(2,S):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),d.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 V(){return s("remote_demote",{remote_demote:h.name})}return V}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:g}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},62486:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(28823),a=n(90955),t=n(72026),o=n(91819),m=n(2971),N=n(84947),y=n(37843),S=r.CargoConsole=function(){function u(s,d){return(0,e.createComponentVNode)(2,N.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return u}(),k=function(s,d){var C=(0,o.useLocalState)(d,"contentsModal",null),g=C[0],v=C[1],h=(0,o.useLocalState)(d,"contentsModalTitle",null),V=h[0],b=h[1];if(g!==null&&V!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[V,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:g.map(function(B){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",B]},B)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function B(){v(null),b(null)}return B}()})})]})},p=function(s,d){var C=(0,o.useBackend)(d),g=C.act,v=C.data,h=v.is_public,V=v.timeleft,b=v.moving,B=v.at_station,I,w;return!b&&!B?(I="Docked off-station",w="Call Shuttle"):!b&&B?(I="Docked at the station",w="Return Shuttle"):b&&(w="In Transit...",V!==1?I="Shuttle is en route (ETA: "+V+" minutes)":I="Shuttle is en route (ETA: "+V+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:I}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:w,disabled:b,onClick:function(){function T(){return g("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return g("showMessages")}return T}()})]})]})})})},l=function(s,d){var C,g=(0,o.useBackend)(d),v=g.act,h=g.data,V=h.accounts,b=(0,o.useLocalState)(d,"selectedAccount"),B=b[0],I=b[1],w=[];return V.map(function(T){return w[T.name]=T.account_UID}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Payment",children:[(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(T){return T.name}),selected:(C=V.filter(function(T){return T.account_UID===B})[0])==null?void 0:C.name,onSelected:function(){function T(A){return I(w[A])}return T}()}),V.filter(function(T){return T.account_UID===B}).map(function(T){return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Account Name",children:(0,e.createComponentVNode)(2,m.Stack.Item,{mt:1,children:T.name})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Balance",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:T.balance})})]},T.account_UID)})]})})},c=function(s,d){var C=(0,o.useBackend)(d),g=C.act,v=C.data,h=v.requests,V=v.categories,b=v.supply_packs,B=(0,o.useSharedState)(d,"category","Emergency"),I=B[0],w=B[1],T=(0,o.useSharedState)(d,"search_text",""),A=T[0],x=T[1],E=(0,o.useLocalState)(d,"contentsModal",null),P=E[0],j=E[1],M=(0,o.useLocalState)(d,"contentsModalTitle",null),O=M[0],D=M[1],F=(0,y.createSearch)(A,function(G){return G.name}),U=(0,o.useLocalState)(d,"selectedAccount"),_=U[0],z=U[1],H=(0,a.flow)([(0,t.filter)(function(G){return G.cat===V.filter(function(X){return X.name===I})[0].category||A}),A&&(0,t.filter)(F),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(b),$="Crate Catalogue";return A?$="Results for '"+A+"':":I&&($="Browsing "+I),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(G){return G.name}),selected:I,onSelected:function(){function G(X){return w(X)}return G}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(X,oe){return x(oe)}return G}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:H.map(function(G){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[G.name," (",G.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",disabled:!_,onClick:function(){function X(){return g("order",{crate:G.ref,multiple:!1,account:_})}return X}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",disabled:!_||G.singleton,onClick:function(){function X(){return g("order",{crate:G.ref,multiple:!0,account:_})}return X}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function X(){j(G.contents),D(G.name)}return X}()})]})]},G.name)})})})]})})},f=function(s,d){var C=s.request,g,v;switch(C.department){case"Engineering":v="CE",g="orange";break;case"Medical":v="CMO",g="teal";break;case"Science":v="RD",g="purple";break;case"Supply":v="CT",g="brown";break;case"Service":v="HOP",g="olive";break;case"Security":v="HOS",g="red";break;case"Command":v="CAP",g="blue";break;case"Assistant":v="Any Head",g="grey";break}return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{mt:.5,children:"Approval Required:"}),!!C.req_cargo_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"brown",content:"QM",icon:"user-tie",tooltip:"This Order requires approval from the QM still"})}),!!C.req_head_approval&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:g,content:v,disabled:C.req_cargo_approval,icon:"user-tie",tooltip:C.req_cargo_approval?"This Order first requires approval from the QM before the "+v+" can approve it":"This Order requires approval from the "+v+" still"})})]})},i=function(s,d){var C=(0,o.useBackend)(d),g=C.act,v=C.data,h=v.requests,V=v.orders,b=v.shipments;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Orders",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{children:h.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{className:"Cargo_RequestList",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{mb:1,children:[(0,e.createComponentVNode)(2,m.Box,{children:["Order #",B.ordernum,": ",B.supply_type," (",B.cost," credits) for"," ",(0,e.createVNode)(1,"b",null,B.orderedby,0)," with"," ",B.department?"The "+B.department+" Department":"Their Personal"," ","Account"]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]}),(0,e.createComponentVNode)(2,f,{request:B})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!B.can_approve,onClick:function(){function I(){return g("approve",{ordernum:B.ordernum})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",disabled:!B.can_deny,onClick:function(){function I(){return g("deny",{ordernum:B.ordernum})}return I}()})]})]},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Orders Awaiting Delivery"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:V.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Order in Transit"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(B){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",B.ordernum,": ",B.supply_type," for ",(0,e.createVNode)(1,"b",null,B.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",B.comment]})]})},B.ordernum)})})]})}},86885:function(L,r,n){"use strict";r.__esModule=!0,r.ChangelogView=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ChangelogView=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=(0,a.useLocalState)(S,"onlyRecent",0),f=c[0],i=c[1],u=l.cl_data,s=l.last_cl,d={FIX:(0,e.createComponentVNode)(2,t.Icon,{name:"tools",title:"Fix"}),WIP:(0,e.createComponentVNode)(2,t.Icon,{name:"hard-hat",title:"WIP",color:"orange"}),TWEAK:(0,e.createComponentVNode)(2,t.Icon,{name:"sliders-h",title:"Tweak"}),SOUNDADD:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",title:"Sound Added",color:"green"}),SOUNDDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-mute",title:"Sound Removed",color:"red"}),CODEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",title:"Code Addition",color:"green"}),CODEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"minus",title:"Code Removal",color:"red"}),IMAGEADD:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-plus",title:"Sprite Addition",color:"green"}),IMAGEDEL:(0,e.createComponentVNode)(2,t.Icon,{name:"folder-minus",title:"Sprite Removal",color:"red"}),SPELLCHECK:(0,e.createComponentVNode)(2,t.Icon,{name:"font",title:"Spelling/Grammar Fix"}),EXPERIMENT:(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle",title:"Experimental",color:"orange"})},C=function(){function g(v){return v in d?d[v]:(0,e.createComponentVNode)(2,t.Icon,{name:"plus",color:"green"})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:750,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"ParadiseSS13 Changelog",mt:2,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f?"Showing all changes":"Showing changes since last connection",onClick:function(){function g(){return i(!f)}return g}()}),children:u.map(function(g){return!f&&g.merge_ts<=s||(0,e.createComponentVNode)(2,t.Section,{mb:2,title:g.author+" - Merged on "+g.merge_date,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"#"+g.num,onClick:function(){function v(){return p("open_pr",{pr_number:g.num})}return v}()}),children:g.entries.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:[C(v.etype)," ",v.etext]},v)})},g)})})})})}return N}()},56975:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(83326),m=n(84947),N=[1,5,10,20,30,50],y=[1,5,10],S=r.ChemDispenser=function(){function c(f,i){var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=d.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l)]})})})}return c}(),k=function(f,i){var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=d.amount,g=d.energy,v=d.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:g,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[g," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:N.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function b(){return s("amount",{amount:h})}return b}()})},V)})})})]})})})},p=function(f,i){for(var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=d.chemicals,g=C===void 0?[]:C,v=[],h=0;h<(g.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Dispenser":"Chemical Dispenser",children:[g.map(function(V,b){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:V.title,style:{"margin-left":"2px"},onClick:function(){function B(){return s("dispense",{reagent:V.id})}return B}()},b)}),v.map(function(V,b){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},b)})]})})},l=function(f,i){var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=d.isBeakerLoaded,g=d.beakerCurrentVolume,v=d.beakerMaxVolume,h=d.beakerContents,V=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:d.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[g," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function b(){return s("ejectBeaker")}return b}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:V,buttons:function(){function b(B){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:-1})}return I}()}),y.map(function(I,w){return(0,e.createComponentVNode)(2,t.Button,{content:I,onClick:function(){function T(){return s("remove",{reagent:B.id,amount:I})}return T}()},w)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function I(){return s("remove",{reagent:B.id,amount:B.volume})}return I}()})],0)}return b}()})})})}},48734:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(83326),N=n(84947),y=r.ChemHeater=function(){function p(l,c){return(0,e.createComponentVNode)(2,N.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return p}(),S=function(l,c){var f=(0,t.useBackend)(c),i=f.act,u=f.data,s=u.targetTemp,d=u.targetTempReached,C=u.autoEject,g=u.isActive,v=u.currentTemp,h=u.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function V(){return i("toggle_autoeject")}return V}()}),(0,e.createComponentVNode)(2,o.Button,{content:g?"On":"Off",icon:"power-off",selected:g,disabled:!h,onClick:function(){function V(){return i("toggle_on")}return V}()})],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)(s,0),minValue:0,maxValue:1e3,onDrag:function(){function V(b,B){return i("adjust_temperature",{target:B})}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:d?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function V(b){return(0,a.toFixed)(b)+" K"}return V}()})||"\u2014"})]})})})},k=function(l,c){var f=(0,t.useBackend)(c),i=f.act,u=f.data,s=u.isBeakerLoaded,d=u.beakerCurrentVolume,C=u.beakerMaxVolume,g=u.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:!!s&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[d," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return i("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:s,beakerContents:g})})})}},35918:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(83326),N=n(22677),y=n(66586),S=n(50175),k=["icon"];function p(x,E){if(x==null)return{};var P={},j=Object.keys(x),M,O;for(O=0;O=0)&&(P[M]=x[M]);return P}function l(x,E){x.prototype=Object.create(E.prototype),x.prototype.constructor=x,c(x,E)}function c(x,E){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function P(j,M){return j.__proto__=M,j}return P}(),c(x,E)}var f=(0,S.createLogger)("ChemMaster"),i=[1,5,10],u=function(E,P){var j=(0,a.useBackend)(P),M=j.act,O=j.data,D=E.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:O.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:D.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(D.desc||"").length>0?D.desc:"N/A"}),D.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:D.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:D.blood_dna})],4),!O.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:O.printing?"spinner":"print",disabled:O.printing,iconSpin:!!O.printing,ml:"0.5rem",content:"Print",onClick:function(){function F(){return M("print",{idx:D.idx,beaker:E.args.beaker})}return F}()})]})})})})},s=r.ChemMaster=function(){function x(E,P){var j=(0,a.useBackend)(P),M=j.data,O=M.condi,D=M.beaker,F=M.beaker_reagents,U=F===void 0?[]:F,_=M.buffer_reagents,z=_===void 0?[]:_,H=M.mode;return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,d,{beaker:D,beakerReagents:U,bufferNonEmpty:z.length>0}),(0,e.createComponentVNode)(2,C,{mode:H,bufferReagents:z}),(0,e.createComponentVNode)(2,g,{isCondiment:O,bufferNonEmpty:z.length>0}),(0,e.createComponentVNode)(2,A)]})})]})}return x}(),d=function(E,P){var j=(0,a.useBackend)(P),M=j.act,O=E.beaker,D=E.beakerReagents,F=E.bufferNonEmpty;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 U(){return M("eject")}return U}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function U(){return M("eject")}return U}()}),children:O?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:D,buttons:function(){function U(_,z){return(0,e.createComponentVNode)(2,t.Box,{mb:z0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:F,buttons:function(){function U(_,z){return(0,e.createComponentVNode)(2,t.Box,{mb:zh.biomass?"bad":null,children:["Biomass: ",w[0],"/",h.biomass,"/",h.biomass_storage_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[1],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[1]>h.sanguine_reagent?"bad":"good",children:["Sanguine: ",w[1],"/",h.sanguine_reagent,"/",h.max_reagent_capacity]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w[2],maxValue:h.max_reagent_capacity,ranges:{bad:[2*h.max_reagent_capacity/3,h.max_reagent_capacity],average:[h.max_reagent_capacity/3,2*h.max_reagent_capacity/3],good:[0,h.max_reagent_capacity/3]},color:w[2]>h.osseous_reagent?"bad":"good",children:["Osseous: ",w[2],"/",h.osseous_reagent,"/",h.max_reagent_capacity]})})]}),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i)]})]})})]})]})},f=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.patient_limb_data,V=v.limb_list,b=v.desired_limb_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Limbs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"15%",height:"20px",children:[h[B][4],":"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),h[B][3]===0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0]+b[B][1],maxValue:h[B][5],ranges:{good:[0,h[B][5]/3],average:[h[B][5]/3,2*h[B][5]/3],bad:[2*h[B][5]/3,h[B][5]]},children:["Post-Cloning Damage: ",(0,e.createComponentVNode)(2,t.Icon,{name:"bone"})," "+b[B][0]+" / ",(0,e.createComponentVNode)(2,t.Icon,{name:"fire"})," "+b[B][1]]})}),h[B][3]!==0&&(0,e.createComponentVNode)(2,t.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][4]," is missing!"]})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[!!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][3],onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"replace"})}return w}(),children:"Replace Limb"})}),!h[B][3]&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][0]||h[B][1]),checked:!(b[B][0]||b[B][1]),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"damage"})}return w}(),children:"Repair Damages"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&N),checked:!(b[B][2]&N),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"bone"})}return w}(),children:"Mend Bone"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&y),checked:!(b[B][2]&y),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"ib"})}return w}(),children:"Mend IB"}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!(h[B][2]&S),checked:!(b[B][2]&S),onClick:function(){function w(){return g("toggle_limb_repair",{limb:B,type:"critburn"})}return w}(),children:"Mend Critical Burn"})]})]})]},B)})})},i=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.patient_organ_data,V=v.organ_list,b=v.desired_organ_data;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Organs",children:V.map(function(B,I){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"baseline",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"20%",height:"20px",children:[h[B][3],":"," "]}),h[B][5]!=="heart"&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!b[B][2]&&!b[B][1],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"replace"})}return w}(),children:"Replace Organ"}),!h[B][2]&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{disabled:!h[B][0],checked:!b[B][0],onClick:function(){function w(){return g("toggle_organ_repair",{organ:B,type:"damage"})}return w}(),children:"Repair Damages"})})]})}),h[B][5]==="heart"&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Heart replacement is required for cloning."}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[!!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{color:"bad",value:0,children:["The patient's ",h[B][3]," is missing!"]}),!h[B][2]&&(0,e.createComponentVNode)(2,t.ProgressBar,{value:b[B][0],maxValue:h[B][4],ranges:{good:[0,h[B][4]/3],average:[h[B][4]/3,2*h[B][4]/3],bad:[2*h[B][4]/3,h[B][4]]},children:"Post-Cloning Damage: "+b[B][0]})]})]})},B)})})}},58378:function(L,r,n){"use strict";r.__esModule=!0,r.CloningPod=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.CloningPod=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.biomass,f=l.biomass_storage_capacity,i=l.sanguine_reagent,u=l.osseous_reagent,s=l.organs,d=l.currently_cloning;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.Section,{title:"Liquid Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Biomass:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c,ranges:{good:[2*f/3,f],average:[f/3,2*f/3],bad:[0,f/3]},minValue:0,maxValue:f})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Sanguine Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:i+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:i,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"sanguine_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"sanguine_reagent"})}return C}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"25px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{color:"label",width:"25%",children:["Osseous Reagent:"," "]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:u+" units"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:0,minValue:0,maxValue:u,step:1,unit:"units",onChange:function(){function C(g,v){return p("remove_reagent",{reagent:"osseous_reagent",amount:v})}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove All",onClick:function(){function C(){return p("purge_reagent",{reagent:"osseous_reagent"})}return C}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Organ Storage",children:[!d&&(0,e.createComponentVNode)(2,t.Box,{children:[!s&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Notice: No organs loaded."}),!!s&&s.map(function(C){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:C.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject",onClick:function(){function g(){return p("eject_organ",{organ_ref:C.ref})}return g}()})})]},C)})]}),!!d&&(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Unable to access organ storage while cloning."]})})]})]})})}return N}()},14283:function(L,r,n){"use strict";r.__esModule=!0,r.ColourMatrixTester=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ColourMatrixTester=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.colour_data,f=[[{name:"RR",idx:0},{name:"RG",idx:1},{name:"RB",idx:2},{name:"RA",idx:3}],[{name:"GR",idx:4},{name:"GG",idx:5},{name:"GB",idx:6},{name:"GA",idx:7}],[{name:"BR",idx:8},{name:"BG",idx:9},{name:"BB",idx:10},{name:"BA",idx:11}],[{name:"AR",idx:12},{name:"AG",idx:13},{name:"AB",idx:14},{name:"AA",idx:15}]];return(0,e.createComponentVNode)(2,o.Window,{width:360,height:190,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,{fill:!0,title:"Modify Matrix",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",textColor:"label",children:i.map(function(u){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:1,children:[u.name,":\xA0",(0,e.createComponentVNode)(2,t.NumberInput,{width:4,value:c[u.idx],step:.05,minValue:-5,maxValue:5,stepPixelSize:5,onChange:function(){function s(d,C){return p("setvalue",{idx:u.idx+1,value:C})}return s}()})]},u.name)})},i)})})})})})}return N}()},98577:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(s){switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,l);case 3:return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,c)})});case 4:return(0,e.createComponentVNode)(2,i);default:return"ERROR. Unknown menu_state. Please contact NT Technical Support."}},N=r.CommunicationsComputer=function(){function u(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.menu_state;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.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),m(h)]})})})}return u}(),y=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.authenticated,V=v.noauthbutton,b=v.esc_section,B=v.esc_callable,I=v.esc_recallable,w=v.esc_status,T=v.authhead,A=v.is_ai,x=v.lastCallLoc,E=!1,P;return h?h===1?P="Command":h===2?P="Captain":h===3?P="CentComm Officer":h===4?(P="CentComm Secure Connection",E=!0):P="ERROR: Report This Bug!":P="Not Logged In",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access",children:P})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:h?"sign-out-alt":"id-card",selected:h,disabled:V,content:h?"Log Out ("+P+")":"Log In",onClick:function(){function j(){return g("auth")}return j}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:w}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!T,onClick:function(){function j(){return g("callshuttle")}return j}()})}),!!I&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!T||A,onClick:function(){function j(){return g("cancelshuttle")}return j}()})}),!!x&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:x})]})})})],4)},S=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.is_admin;return h?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)},k=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.is_admin,V=v.gamma_armory_location,b=v.admin_levels,B=v.authenticated,I=v.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"CentComm Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:b,required_access:h,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"Make Central Announcement",disabled:!h,onClick:function(){function w(){return g("send_to_cc_announcement_page")}return w}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"Make Other Announcement",disabled:!h,onClick:function(){function w(){return g("make_other_announcement")}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Response Team",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Dispatch ERT",disabled:!h,onClick:function(){function w(){return g("dispatch_ert")}return w}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:I,content:I?"ERT calling enabled":"ERT calling disabled",tooltip:I?"Command can request an ERT":"ERTs cannot be requested",disabled:!h,onClick:function(){function w(){return g("toggle_ert_allowed")}return w}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Get Authentication Codes",disabled:!h,onClick:function(){function w(){return g("send_nuke_codes")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gamma Armory",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:V?"Send Gamma Armory":"Recall Gamma Armory",disabled:!h,onClick:function(){function w(){return g("move_gamma_armory")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"coins",content:"View Economy",disabled:!h,onClick:function(){function w(){return g("view_econ")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"Fax Manager",disabled:!h,onClick:function(){function w(){return g("view_fax")}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"View Command accessible controls",children:(0,e.createComponentVNode)(2,p)})]})},p=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.msg_cooldown,V=v.emagged,b=v.cc_cooldown,B=v.security_level_color,I=v.str_security_level,w=v.levels,T=v.authcapt,A=v.authhead,x=v.messages,E="Make Priority Announcement";h>0&&(E+=" ("+h+"s)");var P=V?"Message [UNKNOWN]":"Message CentComm",j="Request Authentication Codes";return b>0&&(P+=" ("+b+"s)",j+=" ("+b+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:B,children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:(0,e.createComponentVNode)(2,f,{levels:w,required_access:T})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:E,disabled:!T||h>0,onClick:function(){function M(){return g("announce")}return M}()})}),!!V&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageSyndicate")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!T,onClick:function(){function M(){return g("RestoreBackup")}return M}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:P,disabled:!T||b>0,onClick:function(){function M(){return g("MessageCentcomm")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:j,disabled:!T||b>0,onClick:function(){function M(){return g("nukerequest")}return M}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,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:!A,onClick:function(){function M(){return g("status")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"View ("+x.length+")",disabled:!A,onClick:function(){function M(){return g("messagelist")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Misc",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Restart Nano-Mob Hunter GO! Server",disabled:!A,onClick:function(){function M(){return g("RestartNanoMob")}return M}()})})]})})})],4)},l=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.stat_display,V=v.authhead,b=v.current_message_title,B=h.presets.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.name===h.type,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:w.name})}return T}()},w.name)}),I=h.alerts.map(function(w){return(0,e.createComponentVNode)(2,t.Button,{content:w.label,selected:w.alert===h.icon,disabled:!V,onClick:function(){function T(){return g("setstat",{statdisp:3,alert:w.alert})}return T}()},w.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function w(){return g("main")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:I}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_1,disabled:!V,onClick:function(){function w(){return g("setmsg1")}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:h.line_2,disabled:!V,onClick:function(){function w(){return g("setmsg2")}return w}()})})]})})})},c=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.authhead,V=v.current_message_title,b=v.current_message,B=v.messages,I=v.security_level,w;if(V)w=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!h,onClick:function(){function A(){return g("messagelist")}return A}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:b})})});else{var T=B.map(function(A){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:A.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!h||V===A.title,onClick:function(){function x(){return g("messagelist",{msgid:A.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"Delete",disabled:!h,onClick:function(){function x(){return g("delmessage",{msgid:A.id})}return x}()})]},A.id)});w=(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 A(){return g("main")}return A}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:T})})}return(0,e.createComponentVNode)(2,t.Box,{children:w})},f=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=s.levels,V=s.required_access,b=s.use_confirm,B=v.security_level;return b?h.map(function(I){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)}):h.map(function(I){return(0,e.createComponentVNode)(2,t.Button,{icon:I.icon,content:I.name,disabled:!V||I.id===B,tooltip:I.tooltip,onClick:function(){function w(){return g("newalertlevel",{level:I.id})}return w}()},I.name)})},i=function(s,d){var C=(0,a.useBackend)(d),g=C.act,v=C.data,h=v.is_admin,V=v.possible_cc_sounds;if(!h)return g("main");var b=(0,a.useLocalState)(d,"subtitle",""),B=b[0],I=b[1],w=(0,a.useLocalState)(d,"text",""),T=w[0],A=w[1],x=(0,a.useLocalState)(d,"classified",0),E=x[0],P=x[1],j=(0,a.useLocalState)(d,"beepsound","Beep"),M=j[0],O=j[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Central Command Report",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function D(){return g("main")}return D}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Subtitle here.",fluid:!0,value:B,onChange:function(){function D(F,U){return I(U)}return D}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter Announcement here,\nMultiline input is accepted.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function D(F,U){return A(U)}return D}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Send Announcement",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function D(){return g("make_cc_announcement",{subtitle:B,text:T,classified:E,beepsound:M})}return D}()}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"260px",height:"20px",options:V,selected:M,onSelected:function(){function D(F){return O(F)}return D}(),disabled:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"volume-up",mx:"5px",disabled:E,tooltip:"Test sound",onClick:function(){function D(){return g("test_sound",{sound:M})}return D}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:E,content:"Classified",fluid:!0,tooltip:E?"Sent to station communications consoles":"Publically announced",onClick:function(){function D(){return P(!E)}return D}()})})]})]})})}},70611:function(L,r,n){"use strict";r.__esModule=!0,r.CompostBin=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.CompostBin=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.biomass,f=l.compost,i=l.biomass_capacity,u=l.compost_capacity,s=(0,a.useSharedState)(S,"vendAmount",1),d=s[0],C=s[1];return(0,e.createComponentVNode)(2,o.Window,{width:300,height:175,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,{label:"Resources",children:[(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Biomass",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:1,width:17,value:c,minValue:0,maxValue:i,ranges:{good:[i*.5,1/0],average:[i*.25,i*.5],bad:[-1/0,i*.25]},children:[c," / ",i," Units"]})})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compost",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ml:.5,mt:1,width:17,value:f,minValue:0,maxValue:u,ranges:{good:[u*.5,1/0],average:[u*.25,u*.5],bad:[-1/0,u*.25]},children:[f," / ",u," Units"]})})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mr:"5px",color:"silver",children:"Soil clumps to make:"}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:d,width:"32px",minValue:1,maxValue:10,stepPixelSize:7,onChange:function(){function g(v,h){return C(h)}return g}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,align:"center",content:"Make Soil",disabled:f<25*d,icon:"arrow-circle-down",onClick:function(){function g(){return p("create",{amount:d})}return g}()})})})]})})})}return N}()},73744:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(73712),N=n(84947);function y(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,S(g,v)}function S(g,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function h(V,b){return V.__proto__=b,V}return h}(),S(g,v)}var k={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"],l=r.Contractor=function(){function g(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I;B.unauthorized?I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function x(){}return x}()})}):B.load_animation_completed?I=(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:B.page===1?(0,e.createComponentVNode)(2,i,{height:"100%"}):(0,e.createComponentVNode)(2,s,{height:"100%"})})],4):I=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,d,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function x(){return b("complete_load_animation")}return x}()})});var w=(0,t.useLocalState)(h,"viewingPhoto",""),T=w[0],A=w[1];return(0,e.createComponentVNode)(2,N.Window,{theme:"syndicate",width:500,height:600,children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,N.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:I})})]})}return g}(),c=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.tc_available,w=B.tc_paid_out,T=B.completed_contracts,A=B.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"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[I," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:I<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function x(){return b("claim")}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[w," 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",inline:!0,children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===1,onClick:function(){function w(){return b("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===2,onClick:function(){function w(){return b("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},i=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.contracts,w=B.contract_active,T=B.can_extract,A=!!w&&I.filter(function(M){return M.status===1})[0],x=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),P=E[0],j=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:!T||x,icon:"parachute-box",content:["Call Extraction",x&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A.time_left,format:function(){function M(O,D){return" ("+D.substr(3)+")"}return M}()})],onClick:function(){function M(){return b("extract")}return M}()})},v,{children:I.slice().sort(function(M,O){return M.status===1?-1:O.status===1?1:M.status-O.status}).map(function(M){var O;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:M.status===1&&"good",children:M.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:M.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function D(){return j("target_photo_"+M.uid+".png")}return D}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!k[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:k[M.status][1],inline:!0,mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:k[M.status][0]}),M.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function D(){return b("abort")}return D}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[M.fluff_message,!!M.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 ",M.completed_time]}),!!M.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."]}),!!M.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: ",M.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",u(M)]}),(O=M.difficulties)==null?void 0:O.map(function(D,F){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!w,content:D.name+" ("+D.reward+" TC)",onClick:function(){function U(){return b("activate",{uid:M.uid,difficulty:F+1})}return U}()},F)}),!!M.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[M.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(M.objective.rewards.tc||0)+" TC",",\xA0",(M.objective.rewards.credits||0)+" Credits",")"]})]})]})},M.uid)})})))},u=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,V=v.objective.locs.user_coords,b=v.objective.locs.target_area_id,B=v.objective.locs.target_coords,I=h===b;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:I?"dot-circle-o":"arrow-alt-circle-right-o",color:I?"green":"yellow",rotation:I?null:-(0,a.rad2deg)(Math.atan2(B[1]-V[1],B[0]-V[0])),lineHeight:I?null:"0.85",size:"1.5"})})}},s=function(v,h){var V=(0,t.useBackend)(h),b=V.act,B=V.data,I=B.rep,w=B.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:w.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:I-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},d=function(g){y(v,g);function v(V){var b;return b=g.call(this,V)||this,b.timer=null,b.state={currentIndex:0,currentDisplay:[]},b}var h=v.prototype;return h.tick=function(){function V(){var b=this.props,B=this.state;if(B.currentIndex<=b.allMessages.length){this.setState(function(w){return{currentIndex:w.currentIndex+1}});var I=B.currentDisplay;I.push(b.allMessages[B.currentIndex])}else clearTimeout(this.timer),setTimeout(b.onFinished,b.finishedTimeout)}return V}(),h.componentDidMount=function(){function V(){var b=this,B=this.props.linesPerSecond,I=B===void 0?2.5:B;this.timer=setInterval(function(){return b.tick()},1e3/I)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(b){return(0,e.createFragment)([b,(0,e.createVNode)(1,"br")],0,b)})})}return V}(),v}(e.Component),C=function(v,h){var V=(0,t.useLocalState)(h,"viewingPhoto",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:b}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function I(){return B("")}return I}()})]})}},57392:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ConveyorSwitch=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.slowFactor,f=l.oneWay,i=l.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:135,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:i>0?"forward":i<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!f,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:1,maxValue:50,step:1,format:function(){function u(s){return s+"x"}return u}(),onChange:function(){function u(s,d){return p("slowFactor",{value:d})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+5})}return u}()})," "]})]})})]})})})})}return N}()},91413:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(28823),a=n(72026),t=n(37843),o=n(91819),m=n(2971),N=n(99753),y=n(30381),S=n(84947),k=function(u,s){return u.dead?"Deceased":parseInt(u.health,10)<=s?"Critical":parseInt(u.stat,10)===1?"Unconscious":"Living"},p=function(u,s){return u.dead?"red":parseInt(u.health,10)<=s?"orange":parseInt(u.stat,10)===1?"blue":"green"},l=r.CrewMonitor=function(){function i(u,s){var d=(0,o.useBackend)(s),C=d.act,g=d.data,v=(0,o.useLocalState)(s,"tabIndex",0),h=v[0],V=v[1],b=function(){function B(I){switch(I){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return B}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"table",selected:h===0,onClick:function(){function B(){return V(0)}return B}(),children:"Data View"},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"map-marked-alt",selected:h===1,onClick:function(){function B(){return V(1)}return B}(),children:"Map View"},"MapView")]})}),b(h)]})})})}return i}(),c=function(u,s){var d=(0,o.useBackend)(s),C=d.act,g=d.data,v=(0,a.sortBy)(function(A){return A.name})(g.crewmembers||[]),h=g.possible_levels,V=g.viewing_current_z_level,b=g.is_advanced,B=(0,o.useLocalState)(s,"search",""),I=B[0],w=B[1],T=(0,t.createSearch)(I,function(A){return A.name+"|"+A.assignment+"|"+A.area});return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,backgroundColor:"transparent",children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function A(x,E){return w(E)}return A}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:b?(0,e.createComponentVNode)(2,m.Dropdown,{mr:"5px",width:"50px",options:h,selected:V,onSelected:function(){function A(x){return C("switch_level",{new_level:x})}return A}()}):null})]}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),v.filter(T).map(function(A){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!A.is_command,children:[(0,e.createComponentVNode)(2,N.TableCell,{children:[A.name," (",A.assignment,")"]}),(0,e.createComponentVNode)(2,N.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(A,g.critThreshold),children:k(A,g.critThreshold)}),A.sensor_type>=2||g.ignoreSensors?(0,e.createComponentVNode)(2,m.Box,{inline:!0,ml:1,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:A.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:A.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:A.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:A.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,N.TableCell,{children:A.sensor_type===3||g.ignoreSensors?g.isAI||g.isObserver?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){function x(){return C("track",{track:A.ref})}return x}()}):A.area+" ("+A.x+", "+A.y+")":(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:"grey",children:"Not Available"})})]},A.name)})]})]})},f=function(u,s){var d=(0,o.useBackend)(s),C=d.act,g=d.data,v=(0,o.useLocalState)(s,"zoom",1),h=v[0],V=v[1];return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function b(B){return V(B)}return b}(),children:g.crewmembers.filter(function(b){return b.sensor_type===3||g.ignoreSensors}).map(function(b){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:b.x,y:b.y,zoom:h,icon:"circle",tooltip:b.name+" ("+b.assignment+")",color:p(b,g.critThreshold),onClick:function(){function B(){return g.isObserver?C("track",{track:b.ref}):null}return B}()},b.ref)})})})}},55104:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=r.Cryo=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:520,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,S)})})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.isOperating,d=u.hasOccupant,C=u.occupant,g=C===void 0?[]:C,v=u.cellTemperature,h=u.cellTemperatureStatus,V=u.isBeakerLoaded,b=u.cooldownProgress,B=u.auto_eject_healthy,I=u.auto_eject_dead;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",onClick:function(){function w(){return i("ejectOccupant")}return w}(),disabled:!d,children:"Eject"}),children:d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:g.name||"Unknown"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:g.health,max:g.maxHealth,value:g.health/g.maxHealth,color:g.health>0?"good":"average",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.health)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),m.map(function(w){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:w.label,children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:g[w.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:Math.round(g[w.type])})})},w.id)})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"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 detected."]})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Cell",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",onClick:function(){function w(){return i("ejectBeaker")}return w}(),disabled:!V,children:"Eject Beaker"}),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",onClick:function(){function w(){return i(s?"switchOff":"switchOn")}return w}(),selected:s,children:s?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",color:h,children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:v})," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:(0,e.createComponentVNode)(2,k)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dosage interval",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{average:[-1/0,99],good:[99,1/0]},color:!V&&"average",value:b,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject healthy occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function w(){return i(B?"auto_eject_healthy_off":"auto_eject_healthy_on")}return w}(),children:B?"On":"Off"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto-eject dead occupants",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){function w(){return i(I?"auto_eject_dead_off":"auto_eject_dead_on")}return w}(),children:I?"On":"Off"})})]})})})],4)},k=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.isBeakerLoaded,d=u.beakerLabel,C=u.beakerVolume;return s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!d&&"average",children:[d||"No label",":"]}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:!C&&"bad",ml:1,children:C?(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:C,format:function(){function g(v){return Math.round(v)+" units remaining"}return g}()}):"Beaker is empty"})],4):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"bad",children:"No beaker loaded"})}},1763:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(37843),N=r.CryopodConsole=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.account_name,u=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{title:"Cryopod Console",width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(i||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!u&&(0,e.createComponentVNode)(2,S)]})})}return k}(),y=function(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:i.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(u,s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:u.rank},s)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.frozen_items,s=function(C){var g=C.toString();return g.startsWith("the ")&&(g=g.slice(4,g.length)),(0,m.toTitleCase)(g)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:u.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s(d.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return f("one_item",{item:d.uid})}return C}()})},d)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function d(){return f("all_items")}return d}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},69055:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],S=[5,10,20,30,50],k=r.DNAModifier=function(){function h(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.irradiating,A=w.dnaBlockSize,x=w.occupant;b.dnaBlockSize=A,b.isDNAInvalid=!x.isViableSubject||!x.uniqueIdentity||!x.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,g,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.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,l)})]})})]})}return h}(),p=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.locked,A=w.hasOccupant,x=w.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:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return I("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return I("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:x.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:x.minHealth,max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:N[x.stat][0],children:N[x.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),b.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:x.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:w.occupant.uniqueEnzymes?w.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."})})},l=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedMenuKey,A=w.hasOccupant,x=w.occupant;if(A){if(b.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 T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,u):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(P,j){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:P[2],selected:T===P[0],onClick:function(){function M(){return I("selectMenuKey",{key:P[0]})}return M}(),children:P[1]},j)})}),E]})},c=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedUIBlock,A=w.selectedUISubBlock,x=w.selectedUITarget,E=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:b.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:x,format:function(){function P(j){return j.toString(16).toUpperCase()}return P}(),ml:"0",onChange:function(){function P(j,M){return I("changeUITarget",{value:M})}return P}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function P(){return I("pulseUIRadiation")}return P}()})]})},f=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.selectedSEBlock,A=w.selectedSESubBlock,x=w.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:x.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:b.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return I("pulseSERadiation")}return E}()})]})},i=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.radiationIntensity,A=w.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function x(E,P){return I("radiationIntensity",{value:P})}return x}()})}),(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 x(E,P){return I("radiationDuration",{value:P})}return x}()})})]}),(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 x(){return I("pulseRadiation")}return x}()})]})},u=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.buffers,A=T.map(function(x,E){return(0,e.createComponentVNode)(2,s,{id:E+1,name:"Buffer "+(E+1),buffer:x},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,d)})]})},s=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.id,A=V.name,x=V.buffer,E=w.isInjectorReady,P=A+(x.data?" - "+x.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:P,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!x.data,icon:"trash",content:"Clear",onClick:function(){function j(){return I("bufferOption",{option:"clear",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data,icon:"pen",content:"Rename",onClick:function(){function j(){return I("bufferOption",{option:"changeLabel",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!x.data||!w.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function j(){return I("bufferOption",{option:"saveDisk",id:T})}return j}()})],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 j(){return I("bufferOption",{option:"saveUI",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveUIAndUE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"saveSE",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.hasDisk||!w.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"loadDisk",id:T})}return j}()})]}),!!x.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:x.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[x.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!x.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 j(){return I("bufferOption",{option:"createInjector",id:T})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"createInjector",id:T,block:1})}return j}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function j(){return I("bufferOption",{option:"transfer",id:T})}return j}()})]})],4)]}),!x.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},d=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.hasDisk,A=w.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function x(){return I("wipeDisk")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function x(){return I("ejectDisk")}return x}()})],4),children:T?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."]})})},C=function(V,b){var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=w.isBeakerLoaded,A=w.beakerVolume,x=w.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return I("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[S.map(function(E,P){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function j(){return I("injectRejuvenators",{amount:E})}return j}()},P)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return I("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:x||"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)]})})})},g=function(V,b){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 "),V.duration,(0,e.createTextVNode)(" second"),V.duration===1?"":"s"],0)})]})},v=function(V,b){for(var B=(0,a.useBackend)(b),I=B.act,w=B.data,T=V.dnaString,A=V.selectedBlock,x=V.selectedSubblock,E=V.blockSize,P=V.action,j=T.split(""),M=0,O=[],D=function(){for(var _=F/E+1,z=[],H=function(){var X=$+1;z.push((0,e.createComponentVNode)(2,t.Button,{selected:A===_&&x===X,content:j[F+$],mb:"0",onClick:function(){function oe(){return I(P,{block:_,subblock:X})}return oe}()}))},$=0;$d.spawnpoints?"red":"green",children:[d.total," total, versus ",d.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{width:10.5,textAlign:"center",icon:"ambulance",content:"Send ERT",onClick:function(){function V(){return s("dispatch_ert",{silent:v})}return V}()})})]})})})},p=function(f,i){var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=d.ert_request_messages;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:C&&C.length?C.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:g.sender_real_name,onClick:function(){function v(){return s("view_player_panel",{uid:g.sender_uid})}return v}(),tooltip:"View player panel"}),children:g.message},(0,m.decodeHtmlEntities)(g.time))}):(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:"broadcast-tower",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No ERT requests."]})})})})},l=function(f,i){var u=(0,a.useBackend)(i),s=u.act,d=u.data,C=(0,a.useLocalState)(i,"text",""),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"Enter ERT denial reason here,\nMultiline input is accepted.",rows:19,fluid:!0,multiline:1,value:g,onChange:function(){function h(V,b){return v(b)}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Deny ERT",fluid:!0,icon:"times",center:!0,mt:2,textAlign:"center",onClick:function(){function h(){return s("deny_ert",{reason:g})}return h}()})]})})}},77877:function(L,r,n){"use strict";r.__esModule=!0,r.EconomyManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=r.EconomyManager=function(){function S(k,p){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:350,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return S}(),y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.next_payroll_time;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"coins",verticalAlign:"middle",size:3,mr:"1rem"}),"Economy Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{label:"Pay Bonuses and Deductions",children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Global",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Global Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"global"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Account Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Department Members",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Department Members Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"department_members"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Single Accounts",children:(0,e.createComponentVNode)(2,t.Button,{icon:"dollar-sign",width:"auto",content:"Crew Member Payroll Modification",onClick:function(){function u(){return c("payroll_modification",{mod_type:"crew_member"})}return u}()})})]}),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Box,{mb:.5,children:["Next Payroll in: ",i," Minutes"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",width:"auto",color:"bad",content:"Delay Payroll",onClick:function(){function u(){return c("delay_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:"auto",content:"Set Payroll Time",onClick:function(){function u(){return c("set_payroll")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",width:"auto",color:"good",content:"Accelerate Payroll",onClick:function(){function u(){return c("accelerate_payroll")}return u}()})]}),(0,e.createComponentVNode)(2,t.NoticeBox,{children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," You take full responsibility for unbalancing the economy with these buttons"]})],4)}},10707:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=r.Electropack=function(){function y(S,k){var p=(0,t.useBackend)(k),l=p.act,c=p.data,f=c.power,i=c.code,u=c.frequency,s=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:135,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function C(){return l("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:s/10,maxValue:d/10,value:u/10,format:function(){function C(g){return(0,a.toFixed)(g,1)}return C}(),width:"80px",onChange:function(){function C(g,v){return l("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return l("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:i,width:"80px",onChange:function(){function C(g,v){return l("code",{code:v})}return C}()})})]})})})})}return y}()},85307:function(L,r,n){"use strict";r.__esModule=!0,r.EmotePanelContent=r.EmotePanel=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),m=n(37843),N=r.EmotePanel=function(){function S(k,p){return(0,e.createComponentVNode)(2,t.Window,{width:500,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,y)})})})}return S}(),y=r.EmotePanelContent=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.emotes,u=(0,a.useLocalState)(p,"searchText",""),s=u[0],d=u[1],C=(0,a.useLocalState)(p,"filterVisible",""),g=C[0],v=C[1],h=(0,a.useLocalState)(p,"filterAudible",""),V=h[0],b=h[1],B=(0,a.useLocalState)(p,"filterSound",""),I=B[0],w=B[1],T=(0,a.useLocalState)(p,"filterHands",""),A=T[0],x=T[1],E=(0,a.useLocalState)(p,"filterTargettable",""),P=E[0],j=E[1],M=(0,a.useLocalState)(p,"useTarget",""),O=M[0],D=M[1],F=(0,e.createComponentVNode)(2,o.Input,{placeholder:"\u0418\u0441\u043A\u0430\u0442\u044C \u044D\u043C\u043E\u0446\u0438\u044E...",fluid:!0,onInput:function(){function U(_,z){return d(z)}return U}()});return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"eye",align:"center",tooltip:"\u0412\u0438\u0434\u0438\u043C\u044B\u0439",selected:g,onClick:function(){function U(){return v(!g)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",align:"center",tooltip:"\u0421\u043B\u044B\u0448\u0438\u043C\u044B\u0439",selected:V,onClick:function(){function U(){return b(!V)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"volume-up",align:"center",tooltip:"\u0417\u0432\u0443\u043A",selected:I,onClick:function(){function U(){return w(!I)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"hand-paper",align:"center",tooltip:"\u0420\u0443\u043A\u0438",selected:A,onClick:function(){function U(){return x(!A)}return U}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",height:"100%",align:"center",tooltip:"\u0426\u0435\u043B\u044C",selected:P,onClick:function(){function U(){return j(!P)}return U}()})]}),children:F})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s.length>0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+s+'"':"\u0412\u0441\u0435 \u044D\u043C\u043E\u0446\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"crosshairs",selected:O,onClick:function(){function U(){return D(!O)}return U}(),children:"\u0412\u044B\u0431\u0438\u0440\u0430\u0442\u044C \u0446\u0435\u043B\u044C"}),children:(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:i.filter(function(U){return U.key&&(s.length>0?U.key.toLowerCase().includes(s.toLowerCase())||U.name.toLowerCase().includes(s.toLowerCase()):!0)&&(g?U.visible:!0)&&(V?U.audible:!0)&&(I?U.sound:!0)&&(A?U.hands:!0)&&(P?U.targettable:!0)}).map(function(U){return(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function _(){return c("play_emote",{emote_key:U.key,useTarget:O})}return _}(),children:[U.visible?(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}):"",U.audible?(0,e.createComponentVNode)(2,o.Icon,{name:"comment"}):"",U.sound?(0,e.createComponentVNode)(2,o.Icon,{name:"volume-up"}):"",U.hands?(0,e.createComponentVNode)(2,o.Icon,{name:"hand-paper"}):"",U.targettable?(0,e.createComponentVNode)(2,o.Icon,{name:"crosshairs"}):"",U.name]},U.name)})})})})})],4)}return S}()},52640:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(84947),N=n(90955),y=n(72026),S=r.EvolutionMenu=function(){function l(c,f){return(0,e.createComponentVNode)(2,m.Window,{width:480,height:580,theme:"changeling",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})})}return l}(),k=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.evo_points,C=s.can_respec;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:d}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{ml:2.5,disabled:!C,content:"Readapt",icon:"sync",onClick:function(){function g(){return u("readapt")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})})},p=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.evo_points,C=s.ability_tabs,g=s.purchased_abilities,v=s.view_mode,h=(0,t.useLocalState)(f,"selectedTab",C[0]),V=h[0],b=h[1],B=(0,t.useLocalState)(f,"searchText",""),I=B[0],w=B[1],T=(0,t.useLocalState)(f,"ability_tabs",C[0].abilities),A=T[0],x=T[1],E=function(O,D){if(D===void 0&&(D=""),!O||O.length===0)return[];var F=(0,a.createSearch)(D,function(U){return U.name+"|"+U.description});return(0,N.flow)([(0,y.filter)(function(U){return U==null?void 0:U.name}),(0,y.filter)(F),(0,y.sortBy)(function(U){return U==null?void 0:U.name})])(O)},P=function(O){if(w(O),O==="")return x(V.abilities);x(E(C.map(function(D){return D.abilities}).flat(),O))},j=function(O){b(O),x(O.abilities),w("")};return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Abilities",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Input,{width:"200px",placeholder:"Search Abilities",onInput:function(){function M(O,D){P(D)}return M}(),value:I}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"square-o":"check-square-o",selected:!v,content:"Compact",onClick:function(){function M(){return u("set_view_mode",{mode:0})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{icon:v?"check-square-o":"square-o",selected:v,content:"Expanded",onClick:function(){function M(){return u("set_view_mode",{mode:1})}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.Tabs,{children:C.map(function(M){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:I===""&&V===M,onClick:function(){function O(){j(M)}return O}(),children:M.category},M)})}),A.map(function(M,O){return(0,e.createComponentVNode)(2,o.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{ml:.5,color:"#dedede",children:M.name}),g.includes(M.power_path)&&(0,e.createComponentVNode)(2,o.Stack.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,o.Stack.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,o.Box,{as:"span",bold:!0,color:"#1b945c",children:M.cost})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,o.Button,{mr:.5,disabled:M.cost>d||g.includes(M.power_path),content:"Evolve",onClick:function(){function D(){return u("purchase",{power_path:M.power_path})}return D}()})})]}),!!v&&(0,e.createComponentVNode)(2,o.Stack,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:M.description+" "+M.helptext})]},O)})]})})}},70672:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(28823),a=n(66586),t=n(37843),o=n(91819),m=n(2971),N=n(73712),y=n(84947),S=["id","amount","lineDisplay","onClick"];function k(g,v){if(g==null)return{};var h={},V=Object.keys(g),b,B;for(B=0;B=0)&&(h[b]=g[b]);return h}var p=2e3,l={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function g(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)}),I&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,u)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)})]})})]})})})}return g}(),f=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.materials,w=B.capacity,T=Object.values(I).reduce(function(A,x){return A+x},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/w*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,d,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function x(){return b("withdraw",{id:A})}return x}()},A)})})},i=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.curCategory,w=B.categories,T=B.designs,A=B.syncing,x=(0,o.useLocalState)(h,"searchText",""),E=x[0],P=x[1],j=(0,t.createSearch)(E,function(O){return O.name}),M=T.filter(j);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:I,options:w,onSelected:function(){function O(D){return b("category",{cat:D})}return O}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function O(){return b("queueall")}return O}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function O(){return b("sync")}return O}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function O(D,F){return P(F)}return O}()}),M.map(function(O){return(0,e.createComponentVNode)(2,C,{design:O},O.id)}),M.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},u=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.building,w=B.buildStart,T=B.buildEnd,A=B.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:w,current:A,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",I,"\xA0(",(0,e.createComponentVNode)(2,N.Countdown,{current:A,timeLeft:T-A,format:function(){function x(E,P){return P.substr(3)}return x}()}),")"]})]})})})},s=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=B.queue,w=B.processingQueue,T=Object.entries(B.queueDeficit).filter(function(x){return x[1]<0}),A=I.reduce(function(x,E){return x+E.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:"Process",onClick:function(){function x(){return b("process")}return x}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:I.length===0,icon:"eraser",content:"Clear",onClick:function(){function x(){return b("unqueueall")}return x}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:I.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:I.map(function(x,E){return(0,e.createComponentVNode)(2,m.Box,{color:x.notEnough&&"bad",children:[E+1,". ",x.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function P(){return b("queueswap",{from:E+1,to:E})}return P}()}),E0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(x){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,d,{id:x[0],amount:-x[1],lineDisplay:!0})},x[0])})]})],0)})})},d=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.id,w=v.amount,T=v.lineDisplay,A=v.onClick,x=k(v,S),E=B.materials[I]||0,P=w||E;if(!(P<=0&&!(I==="metal"||I==="glass"))){var j=w&&w>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},x,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",I])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:j&&"bad",ml:0,mr:1,children:P.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",I])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:I}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[P.toLocaleString("en-US")," cm\xB3 (",Math.round(P/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var V=(0,o.useBackend)(h),b=V.act,B=V.data,I=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:I.notEnough||B.building,icon:"cog",content:I.name,onClick:function(){function w(){return b("build",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function w(){return b("queue",{id:I.id})}return w}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(I.cost).map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,d,{id:w[0],amount:w[1],lineDisplay:!0})},w[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),I.time>0?(0,e.createFragment)([I.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},25627:function(L,r,n){"use strict";r.__esModule=!0,r.ExperimentConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=new Map([[0,{text:"Conscious",color:"good"}],[1,{text:"Unconscious",color:"average"}],[2,{text:"Deceased",color:"bad"}]]),N=new Map([[0,{label:"Probe",icon:"thermometer"}],[1,{label:"Dissect",icon:"brain"}],[2,{label:"Analyze",icon:"search"}]]),y=r.ExperimentConsole=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.open,u=f.feedback,s=f.occupant,d=f.occupant_name,C=f.occupant_status,g=function(){function h(){if(!s)return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No specimen detected."});var V=function(){function B(){return m.get(C)}return B}(),b=V();return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:b.color,children:b.text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Experiments",children:[0,1,2].map(function(B){return(0,e.createComponentVNode)(2,t.Button,{icon:N.get(B).icon,content:N.get(B).label,onClick:function(){function I(){return c("experiment",{experiment_type:B})}return I}()},B)})})]})}return h}(),v=g();return(0,e.createComponentVNode)(2,o.Window,{theme:"abductor",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.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Scanner",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!i,onClick:function(){function h(){return c("door")}return h}()}),children:v})]})})}return S}()},14172:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=0,N=1013,y=function(p){var l="good",c=80,f=95,i=110,u=120;return pi?l="average":p>u&&(l="bad"),l},S=r.ExternalAirlockController=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.chamber_pressure,s=i.exterior_status,d=i.interior_status,C=i.processing;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:205,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(u),value:u,minValue:m,maxValue:N,children:[u," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function g(){return f("abort")}return g}()}),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function g(){return f("cycle_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function g(){return f("cycle_int")}return g}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Force Exterior Door",icon:"exclamation-triangle",color:d==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_ext")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Force Interior Door",icon:"exclamation-triangle",color:d==="open"?"red":C?"yellow":null,onClick:function(){function g(){return f("force_int")}return g}()})]})]})]})})}return k}()},61893:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.FaxMachine=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:295,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:l.scan_name?"eject":"id-card",selected:l.scan_name,content:l.scan_name?l.scan_name:"-----",tooltip:l.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:l.authenticated?"sign-out-alt":"id-card",selected:l.authenticated,disabled:l.nologin,content:l.realauth?"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:l.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l.paper?"eject":"paperclip",disabled:!l.authenticated&&!l.paper,content:l.paper?l.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!l.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:l.destination?l.destination:"-----",disabled:!l.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:l.sendError?l.sendError:"Send",disabled:!l.paper||!l.destination||!l.authenticated||l.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return N}()},80031:function(L,r,n){"use strict";r.__esModule=!0,r.FilingCabinet=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.FilingCabinet=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=k.config,f=l.contents,i=c.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,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,{fill:!0,scrollable:!0,title:"Contents",children:[!f&&(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:"folder-open",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"The ",i," is empty."]})}),!!f&&f.slice().map(function(u){return(0,e.createComponentVNode)(2,t.Stack,{mt:.5,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"80%",children:u.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Retrieve",onClick:function(){function s(){return p("retrieve",{index:u.index})}return s}()})})]},u)})]})})})})}return N}()},39552:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.image,i=S.isSelected,u=S.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"border-style":i&&"solid"||"none","border-width":"2px","border-color":"orange",padding:i&&"2px"||"4px"},onClick:u})},N=r.FloorPainter=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.availableStyles,i=c.selectedStyle,u=c.selectedDir,s=c.directionsPreview,d=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 C(){return l("cycle_style",{offset:-1})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:f,selected:i,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function C(g){return l("select_style",{style:g})}return C}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function C(){return l("cycle_style",{offset:1})}return C}()})})]}),(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(C){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:d[C],isSelected:i===C,onSelect:function(){function g(){return l("select_style",{style:C})}return g}()})},"{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(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[C+"west",C,C+"east"].map(function(g){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:g===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:s[g],isSelected:g===u,onSelect:function(){function v(){return l("select_direction",{direction:g})}return v}()})},g)})},C)})})})})]})})})}return y}()},5090:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=function(i){return i?"("+i.join(", ")+")":"ERROR"},y=function(i,u){if(!(!i||!u)){if(i[2]!==u[2])return null;var s=Math.atan2(u[1]-i[1],u[0]-i[0]),d=Math.sqrt(Math.pow(u[1]-i[1],2)+Math.pow(u[0]-i[0],2));return{angle:(0,a.rad2deg)(s),distance:d}}},S=r.GPS=function(){function f(i,u){var s=(0,t.useBackend)(u),d=s.data,C=d.emped,g=d.active,v=d.area,h=d.position,V=d.saved;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:C?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,k,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),g?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{area:v,position:h})}),V&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{title:"Saved Position",position:V})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,k)],0)})})})}return f}(),k=function(i,u){var s=i.emp;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",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:s?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),s?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(i,u){var s=(0,t.useBackend)(u),d=s.act,C=s.data,g=C.active,v=C.tag,h=C.same_z,V=(0,t.useLocalState)(u,"newTag",v),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:g,icon:g?"toggle-on":"toggle-off",content:g?"On":"Off",onClick:function(){function I(){return d("toggle")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function I(){return d("tag",{newtag:b})}return I}(),onInput:function(){function I(w,T){return B(T)}return I}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===b,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function I(){return d("tag",{newtag:b})}return I}(),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 I(){return d("same_z")}return I}()})})]})})},l=function(i,u){var s=i.title,d=i.area,C=i.position;return(0,e.createComponentVNode)(2,o.Section,{title:s||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[d&&(0,e.createFragment)([d,(0,e.createVNode)(1,"br")],0),N(C)]})})},c=function(i,u){var s=(0,t.useBackend)(u),d=s.data,C=d.position,g=d.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,title:"Signals"},i,{children:(0,e.createComponentVNode)(2,o.Table,{children:g.map(function(v){return Object.assign({},v,y(C,v.position))}).map(function(v,h){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:h%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:v.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:v.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:v.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(v.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:v.distance>0?"arrow-right":"circle",rotation:-v.angle}),"\xA0",Math.floor(v.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:N(v.position)})]},h)})})})))}},1055:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(22677),m=n(84947),N=r.GeneModder=function(){function i(u,s){var d=(0,a.useBackend)(s),C=d.data,g=C.has_seed;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),g===0?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})})}return i}(),y=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Insert Gene from Disk",disabled:!v||!v.can_insert||v.is_core,icon:"arrow-circle-down",onClick:function(){function h(){return C("insert")}return h}()}),children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})},S=function(u,s){return(0,e.createComponentVNode)(2,t.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,t.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},k=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.has_seed,h=g.seed,V=g.has_disk,b=g.disk,B,I;return v?B=(0,e.createComponentVNode)(2,t.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+h.image,style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,t.Button,{content:h.name,onClick:function(){function w(){return C("eject_seed")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function w(){return C("variant_name")}return w}()})]}):B=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:"None",onClick:function(){function w(){return C("eject_seed")}return w}()})}),V?I=b.name:I="None",(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:3.3,content:I,onClick:function(){function w(){return C("eject_disk")}return w}()})})})]})})},p=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.disk,h=g.core_genes;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core Genes",open:!0,children:h.map(function(V){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:V.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(v!=null&&v.can_extract),icon:"save",onClick:function(){function b(){return C("extract",{id:V.id})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Replace",disabled:!V.is_type||!v.can_insert,icon:"arrow-circle-down",onClick:function(){function b(){return C("replace",{id:V.id})}return b}()})})]},V)})},"Core Genes")},l=function(u,s){var d=(0,a.useBackend)(s),C=d.data,g=C.reagent_genes,v=C.has_reagent;return(0,e.createComponentVNode)(2,f,{title:"Reagent Genes",gene_set:g,do_we_show:v})},c=function(u,s){var d=(0,a.useBackend)(s),C=d.data,g=C.trait_genes,v=C.has_trait;return(0,e.createComponentVNode)(2,f,{title:"Trait Genes",gene_set:g,do_we_show:v})},f=function(u,s){var d=u.title,C=u.gene_set,g=u.do_we_show,v=(0,a.useBackend)(s),h=v.act,V=v.data,b=V.disk;return(0,e.createComponentVNode)(2,t.Collapsible,{title:d,open:!0,children:g?C.map(function(B){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Extract",disabled:!(b!=null&&b.can_extract),icon:"save",onClick:function(){function I(){return h("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return h("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"No Genes Detected"})},d)}},14232:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(28823),a=n(2971),t=n(84947),o=n(692),m=r.GenericCrewManifest=function(){function N(y,S){return(0,e.createComponentVNode)(2,t.Window,{theme:"nologo",width:588,height:510,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 N}()},86268:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.GhostHudPanel=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.security,f=l.medical,i=l.diagnostic,u=l.radioactivity,s=l.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,N,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,N,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,N,{label:"Diagnostic",type:"diagnostic",is_active:i}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Radioactivity",type:"radioactivity",is_active:u,act_on:"rads_on",act_off:"rads_off"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,N,{label:"Antag HUD",is_active:s,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=S.label,f=S.type,i=f===void 0?null:f,u=S.is_active,s=S.act_on,d=s===void 0?"hud_on":s,C=S.act_off,g=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:u?"On":"Off",icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){function v(){return l(u?g:d,{hud_type:i})}return v}()})})]})}},8977:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.GlandDispenser=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.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(i){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:i.color,content:i.amount||"0",disabled:!i.amount,onClick:function(){function u(){return p("dispense",{gland_id:i.id})}return u}()},i.id)})})})})}return N}()},70309:function(L,r,n){"use strict";r.__esModule=!0,r.GravityGen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.GravityGen=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.charging_state,f=l.charge_count,i=l.breaker,u=l.ext_power,s=function(){function C(g){return g>0?(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"average",children:["[ ",g===1?"Charging":"Discharging"," ]"]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:u?"good":"bad",children:["[ ",u?"Powered":"Unpowered"," ]"]})}return C}(),d=function(){function C(g){if(g>0)return(0,e.createComponentVNode)(2,t.NoticeBox,{danger:!0,p:1.5,children:[(0,e.createVNode)(1,"b",null,"WARNING:",16)," Radiation Detected!"]})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:350,height:170,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[d(c),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Generator Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"power-off":"times",content:i?"Online":"Offline",color:i?"green":"red",px:1.5,onClick:function(){function C(){return p("breaker")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Status",color:u?"good":"bad",children:s(c)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gravity Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:f/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})})]})})]})})})}return N}()},64769:function(L,r,n){"use strict";r.__esModule=!0,r.GuestPass=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(14635),N=r.GuestPass=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:690,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.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function f(){return l("mode",{mode:0})}return f}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function f(){return l("mode",{mode:1})}return f}(),children:["Records (",c.issue_log.length,")"]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{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:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function f(){return l("scan")}return f}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!c.showlogs&&(0,e.createComponentVNode)(2,t.Section,{title:"Issue Guest Pass",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("giv_name")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("reason")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function f(){return l("duration")}return f}()})})]})})}),!c.showlogs&&(c.scan_name?(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function f(){return l("issue")}return f}()}),grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function f(i){return l("access",{access:i})}return f}(),grantAll:function(){function f(){return l("grant_all")}return f}(),denyAll:function(){function f(){return l("clear_all")}return f}(),grantDep:function(){function f(i){return l("grant_region",{region:i})}return f}(),denyDep:function(){function f(i){return l("deny_region",{region:i})}return f}()})}):(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(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,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"id-card",size:5,color:"gray",mb:5}),(0,e.createVNode)(1,"br"),"Please, insert ID Card"]})})})})),!!c.showlogs&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Issuance Log",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function f(){return l("print")}return f}()}),children:!!c.issue_log.length&&(0,e.createComponentVNode)(2,t.LabeledList,{children:c.issue_log.map(function(f,i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:f},i)})})||(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,fontSize:1.5,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No logs"]})})})})]})})})}return y}()},12219:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=[1,5,10,20,30,50],N=null,y=r.HandheldChemDispenser=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:390,height:430,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),(0,e.createComponentVNode)(2,k)]})})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.amount,d=u.energy,C=u.maxEnergy,g=u.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:d,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[d," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:s===v,content:v,onClick:function(){function V(){return i("amount",{amount:v})}return V}()})},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:g==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:g==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return i("mode",{mode:"isolate"})}return v}()})]})})]})})})},k=function(l,c){for(var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.chemicals,d=s===void 0?[]:s,C=u.current_reagent,g=[],v=0;v<(d.length+1)%3;v++)g.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u.glass?"Drink Selector":"Chemical Selector",children:[d.map(function(h,V){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function b(){return i("dispense",{reagent:h.id})}return b}()},V)}),g.map(function(h,V){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},V)})]})})}},53917:function(L,r,n){"use strict";r.__esModule=!0,r.HealthSensor=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=r.HealthSensor=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,i=f.on,u=f.user_health,s=f.minHealth,d=f.maxHealth,C=f.alarm_health;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:125,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanning",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",content:i?"On":"Off",color:i?null:"red",selected:i,onClick:function(){function g(){return c("scan_toggle")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health activation",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:2,stepPixelSize:6,minValue:s,maxValue:d,value:C,format:function(){function g(v){return(0,a.toFixed)(v,1)}return g}(),width:"80px",onDrag:function(){function g(v,h){return c("alarm_health",{alarm_health:h})}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"User health",children:(0,e.createComponentVNode)(2,o.Box,{color:y(u),bold:u>=100,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:u})})})]})})})})}return S}(),y=function(k){return k>50?"green":k>0?"orange":"red"}},93116:function(L,r,n){"use strict";r.__esModule=!0,r.Holodeck=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Holodeck=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=(0,a.useLocalState)(k,"currentDeck",""),i=f[0],u=f[1],s=(0,a.useLocalState)(k,"showReload",!1),d=s[0],C=s[1],g=c.decks,v=c.ai_override,h=c.emagged,V=function(){function b(B){l("select_deck",{deck:B}),u(B),C(!0),setTimeout(function(){C(!1)},3e3)}return b}();return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:[d&&(0,e.createComponentVNode)(2,N),(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:"Holodeck Control System",children:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"b",null,"Currently Loaded Program:",16)," ",i]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Available Programs",children:[g.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{width:15.5,color:"transparent",content:b,selected:b===i,onClick:function(){function B(){return V(b)}return B}()},b)}),(0,e.createVNode)(1,"hr",null,null,1,{color:"gray"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!v&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Override Protocols",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"Turn On":"Turn Off",color:h?"good":"bad",onClick:function(){function b(){return l("ai_override")}return b}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety Protocols",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:[h?"Off":"On",!!h&&(0,e.createComponentVNode)(2,t.Button,{ml:9.5,width:15.5,color:"red",content:"Wildlife Simulation",onClick:function(){function b(){return l("wildlifecarp")}return b}()})]})})]})]})})]})})]})}return y}(),N=function(S,k){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.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"white",children:(0,e.createVNode)(1,"h1",null,"\xA0Recalibrating projection apparatus.\xA0",16)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,"Please, wait for 3 seconds.",16)})]})}},77209:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=r.Instrument=function(){function l(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,p)]})})]})}return l}(),y=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.help;if(d)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return u("help")}return C}()})]})})})},S=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.lines,C=s.playing,g=s.repeat,v=s.maxRepeats,h=s.tempo,V=s.minTempo,b=s.maxTempo,B=s.tickLag,I=s.volume,w=s.minVolume,T=s.maxVolume,A=s.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 x(){return u("help")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function x(){return u("newsong")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function x(){return u("import")}return x}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:d.length===0||g<0,icon:"play",content:"Play",onClick:function(){function x(){return u("play")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function x(){return u("stop")}return x}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:g,stepPixelSize:59,onChange:function(){function x(E,P){return u("repeat",{new:P})}return x}()})}),(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>=b,content:"-",as:"span",mr:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h+B})}return x}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=V,content:"+",as:"span",ml:"0.5rem",onClick:function(){function x(){return u("tempo",{new:h-B})}return x}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:w,maxValue:T,value:I,stepPixelSize:6,onDrag:function(){function x(E,P){return u("setvolume",{new:P})}return x}()})}),(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,k)]})},k=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.allowedInstrumentNames,C=s.instrumentLoaded,g=s.instrument,v=s.canNoteShift,h=s.noteShift,V=s.noteShiftMin,b=s.noteShiftMax,B=s.sustainMode,I=s.sustainLinearDuration,w=s.sustainExponentialDropoff,T=s.legacy,A=s.sustainDropoffVolume,x=s.sustainHeldNote,E,P;return B===1?(E="Linear",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:I,step:.5,stepPixelSize:85,format:function(){function j(M){return(0,a.round)(M*100)/100+" seconds"}return j}(),onChange:function(){function j(M,O){return u("setlinearfalloff",{new:O/10})}return j}()})):B===2&&(E="Exponential",P=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:w,step:.01,format:function(){function j(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return j}(),onChange:function(){function j(M,O){return u("setexpfalloff",{new:O})}return j}()})),d.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:d,selected:g,width:"50%",onSelected:function(){function j(M){return u("switchinstrument",{name:M})}return j}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:V,maxValue:b,value:h,stepPixelSize:2,format:function(){function j(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return j}(),onChange:function(){function j(M,O){return u("setnoteshift",{new:O})}return j}()})}),(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 j(M){return u("setsustainmode",{new:M})}return j}()}),P]}),(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 j(M,O){return u("setdropoffvolume",{new:O})}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:x,icon:x?"toggle-on":"toggle-off",content:x?"Yes":"No",onClick:function(){function j(){return u("togglesustainhold")}return j}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function j(){return u("reset")}return j}()})]})})})},p=function(c,f){var i=(0,t.useBackend)(f),u=i.act,s=i.data,d=s.playing,C=s.lines,g=s.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:!g||d,icon:"plus",content:"Add Line",onClick:function(){function v(){return u("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!g,icon:g?"chevron-up":"chevron-down",onClick:function(){function v(){return u("edit")}return v}()})],4),children:!!g&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"pen",onClick:function(){function V(){return u("modifyline",{line:h+1})}return V}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:d,icon:"trash",onClick:function(){function V(){return u("deleteline",{line:h+1})}return V}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},28847:function(L,r,n){"use strict";r.__esModule=!0,r.Jukebox=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(91819),m=n(2971),N=n(84947),y=r.Jukebox=function(){function p(l,c){var f=(0,o.useBackend)(c),i=f.act,u=f.data,s=u.active,d=u.looping,C=u.track_selected,g=u.volume,v=u.max_volume,h=u.songs,V=u.startTime,b=u.endTime,B=u.worldTime,I=u.need_coin,w=u.payment,T=u.advanced_admin,A=35,x=!w&&I&&!T,E=(0,t.flow)([(0,a.sortBy)(function(F){return F.name})])(h),P=h.find(function(F){return F.name===C}),j=E.length,M=P?E.findIndex(function(F){return F.name===P.name})+1:0,O=function(){function F(U){var _=Math.floor(U/60),z=U%60,H=String(_).padStart(2,"0")+":"+String(z).padStart(2,"0");return H}return F}(),D=(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[s?d?"\u221E":O(Math.round((B-V)/10)):d?"\u221E":O(P.length)," ","/ ",d?"\u221E":O(P.length)]});return(0,e.createComponentVNode)(2,N.Window,{width:350,height:435,title:"\u041C\u0443\u0437\u044B\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:[x?(0,e.createComponentVNode)(2,k):null,(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"\u041F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{bold:!0,maxWidth:"240px",children:P.name.length>A?(0,e.createVNode)(1,"marquee",null,P.name,0):P.name}),(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mt:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:s?"pause":"play",color:"transparent",content:s?"\u0421\u0442\u043E\u043F":"\u0421\u0442\u0430\u0440\u0442",selected:s,onClick:function(){function F(){return i("toggle")}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,basis:"0",children:(0,e.createComponentVNode)(2,m.Button.Checkbox,{fluid:!0,icon:"undo",content:"\u041F\u043E\u0432\u0442\u043E\u0440",disabled:s||I&&!T,tooltip:I&&!T?"\u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440 \u0437\u0430 \u043C\u043E\u043D\u0435\u0442\u043A\u0443":null,checked:d,onClick:function(){function F(){return i("loop",{looping:!d})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:V,current:d?b:B,end:b,children:D})})]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{children:[s?(0,e.createComponentVNode)(2,S):null,(0,e.createComponentVNode)(2,m.Stack,{fill:!0,mb:1.5,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-backward",onClick:function(){function F(){return i("set_volume",{volume:"min"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"undo",onClick:function(){function F(){return i("set_volume",{volume:"reset"})}return F}()})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:0,textAlign:"right",children:(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"fast-forward",onClick:function(){function F(){return i("set_volume",{volume:"max"})}return F}()})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"center",textColor:"label",children:[(0,e.createComponentVNode)(2,m.Knob,{size:2,color:g<=25?"green":g<=50?"":g<=75?"orange":"red",value:g,unit:"%",minValue:0,maxValue:v,step:1,stepPixelSize:5,onDrag:function(){function F(U,_){return i("set_volume",{volume:_})}return F}()}),"Volume"]})]})})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0442\u0440\u0435\u043A\u0438",buttons:(0,e.createComponentVNode)(2,m.Button,{bold:!0,icon:"random",color:"transparent",content:M+"/"+j,tooltip:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0442\u0440\u0435\u043A",tooltipPosition:"top-end",onClick:function(){function F(){var U=Math.floor(Math.random()*j),_=E[U];i("select_track",{track:_.name})}return F}()}),children:E.map(function(F){return(0,e.createComponentVNode)(2,m.Stack.Item,{mb:.5,textAlign:"left",children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,selected:P.name===F.name,color:"translucent",content:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:F.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:O(F.length)})]}),onClick:function(){function U(){i("select_track",{track:F.name})}return U}()})},F.name)})})})]})})]})}return p}(),S=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"music",size:"3",color:"gray",mb:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,children:"\u0418\u0433\u0440\u0430\u0435\u0442 \u043C\u0443\u0437\u044B\u043A\u0430"})]})},k=function(){return(0,e.createComponentVNode)(2,m.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"coins",size:"6",color:"gold",mr:1}),(0,e.createComponentVNode)(2,m.Box,{color:"label",bold:!0,mt:5,fontSize:2,children:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043C\u043E\u043D\u0435\u0442\u043A\u0443"})]})}},64261:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.KeycardAuth=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.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(!l.swiping&&!l.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:!l.redAvailable,onClick:function(){function i(){return p("triggerevent",{triggerevent:"Red Alert"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return i}(),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 i(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return i}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function i(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return i}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!l.hasSwiped&&!l.ertreason&&l.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):l.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):l.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):l.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,l.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:l.ertreason?"":"red",icon:l.ertreason?"check":"pencil-alt",content:l.ertreason?l.ertreason:"-----",disabled:l.busy,onClick:function(){function i(){return p("ert")}return i}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:l.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:l.busy||l.hasConfirm,onClick:function(){function i(){return p("reset")}return i}()}),children:f})]})})}return N}()},34898:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(48154),N=r.KitchenMachine=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.data,f=l.config,i=c.ingredients,u=c.operating,s=f.title;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:320,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:u,name:s}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,y)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Ingredients",children:(0,e.createComponentVNode)(2,t.Table,{className:"Ingredient__Table",children:i.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{tr:5,children:[(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:d.name}),2),(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," ",d.units]}),2)]},d.name)})})})})]})})})}return S}(),y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.inactive,u=f.tooltip;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:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:i,tooltip:i?u:"",tooltipPosition:"bottom",content:"Activate",onClick:function(){function s(){return c("cook")}return s}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:i,tooltip:i?u:"",tooltipPosition:"bottom",content:"Eject Contents",onClick:function(){function s(){return c("eject")}return s}()})})]})})}},52564:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.LawManager=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.isAdmin,s=i.isSlaved,d=i.isMalf,C=i.isAIMalf,g=i.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:d?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(u&&s)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",s,"."]}),!!(d||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:g===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:g===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),g===0&&(0,e.createComponentVNode)(2,N),g===1&&(0,e.createComponentVNode)(2,y)]})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.has_zeroth_laws,s=i.zeroth_laws,d=i.has_ion_laws,C=i.ion_laws,g=i.ion_law_nr,v=i.has_inherent_laws,h=i.inherent_laws,V=i.has_supplied_laws,b=i.supplied_laws,B=i.channels,I=i.channel,w=i.isMalf,T=i.isAdmin,A=i.zeroth_law,x=i.ion_law,E=i.inherent_law,P=i.supplied_law,j=i.supplied_law_position;return(0,e.createFragment)([!!u&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:s,ctx:l}),!!d&&(0,e.createComponentVNode)(2,S,{title:g,laws:C,ctx:l}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:h,ctx:l}),!!V&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:b,ctx:l}),(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:B.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===I,onClick:function(){function O(){return f("law_channel",{law_channel:M.channel})}return O}()},M.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function M(){return f("state_laws")}return M}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function M(){return f("notify_laws")}return M}()})})]})}),!!w&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!u)&&(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 M(){return f("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return f("add_zeroth_law")}return M}()})]})]}),(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:x}),(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 M(){return f("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return f("add_ion_law")}return M}()})]})]}),(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 M(){return f("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return f("add_inherent_law")}return M}()})]})]}),(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:P}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:j,onClick:function(){function M(){return f("change_supplied_law_position")}return M}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return f("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return f("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name+" - "+s.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function d(){return f("transfer_laws",{transfer_laws:s.ref})}return d}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.laws.has_ion_laws>0&&s.laws.ion_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_zeroth_laws>0&&s.laws.zeroth_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_inherent_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)}),s.laws.has_supplied_laws>0&&s.laws.inherent_laws.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.index,children:d.law},d.index)})]})},s.name)})})},S=function(p,l){var c=(0,a.useBackend)(p.ctx),f=c.act,i=c.data,u=i.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(s){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s.state?"Yes":"No",selected:s.state,onClick:function(){function d(){return f("state_law",{ref:s.ref,state_law:s.state?0:1})}return d}()}),!!u&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function d(){return f("edit_law",{edit_law:s.ref})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function d(){return f("delete_law",{delete_law:s.ref})}return d}()})],4)]})]},s.law)})]})})}},55499:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=r.LibraryComputer=function(){function g(v,h){return(0,e.createComponentVNode)(2,o.Window,{width:1050,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return g}(),y=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:I.summary}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",verticalAlign:"top"})]}),!I.isProgrammatic&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Categories",children:I.categories.join(", ")})]}),(0,e.createVNode)(1,"br"),w===I.ckey&&(0,e.createComponentVNode)(2,t.Button,{content:"Delete Book",icon:"trash",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return b("delete_book",{bookid:I.id,user_ckey:w})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Report Book",icon:"flag",color:"red",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"report_book",{bookid:I.id})}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rate Book",icon:"star",color:"caution",disabled:I.isProgrammatic,onClick:function(){function T(){return(0,m.modalOpen)(h,"rate_info",{bookid:I.id})}return T}()})]})},S=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.selected_report,T=B.report_categories,A=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",title:"Report this book for Rule Violations",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reasons",children:(0,e.createComponentVNode)(2,t.Box,{children:T.map(function(x,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:x.category_id===w,onClick:function(){function P(){return b("set_report",{report_type:x.category_id})}return P}()}),(0,e.createVNode)(1,"br")],4,E)})})})]}),(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,icon:"paper-plane",content:"Submit Report",onClick:function(){function x(){return b("submit_report",{bookid:I.id,user_ckey:A})}return x}()})]})},k=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selected_rating,w=Array(10).fill().map(function(T,A){return 1+A});return(0,e.createComponentVNode)(2,t.Stack,{children:[w.map(function(T,A){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{bold:!0,icon:"star",color:I>=T?"caution":"default",onClick:function(){function x(){return b("set_rating",{rating_value:T})}return x}()})},A)}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,ml:2,fontSize:"150%",children:[I+"/10",(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"top"})]})]})},p=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=v.args,w=B.user_ckey;return(0,e.createComponentVNode)(2,t.Section,{level:2,m:"-1rem",pb:"1.5rem",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:I.title}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:I.author}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rating",children:[I.current_rating?I.current_rating:0,(0,e.createComponentVNode)(2,t.Icon,{name:"star",color:"yellow",ml:.5,verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Ratings",children:I.total_ratings?I.total_ratings:0})]}),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Button.Confirm,{mt:2,content:"Submit",icon:"paper-plane",onClick:function(){function T(){return b("rate_book",{bookid:I.id,user_ckey:w})}return T}()})]})},l=function(v,h){var V=(0,a.useBackend)(h),b=V.data,B=(0,a.useLocalState)(h,"tabIndex",0),I=B[0],w=B[1],T=b.login_state;return(0,e.createComponentVNode)(2,t.Stack.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===0,onClick:function(){function A(){return w(0)}return A}(),children:"Book Archives"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===1,onClick:function(){function A(){return w(1)}return A}(),children:"Corporate Literature"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===2,onClick:function(){function A(){return w(2)}return A}(),children:"Upload Book"}),T===1&&(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===3,onClick:function(){function A(){return w(3)}return A}(),children:"Patron Manager"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:I===4,onClick:function(){function A(){return w(4)}return A}(),children:"Inventory"})]})})},c=function(v,h){var V=(0,a.useLocalState)(h,"tabIndex",0),b=V[0];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,u);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,d);case 4:return(0,e.createComponentVNode)(2,C);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},f=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.searchcontent,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"35%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"edit",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Inputs"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.title||"Input Title",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{textAlign:"left",icon:"pen",width:20,content:I.author||"Input Author",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Ratings",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:1,width:"min-content",content:I.ratingmin,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmin")}return x}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"To"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{ml:1,width:"min-content",content:I.ratingmax,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_search_ratingmax")}return x}()})})]})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"clipboard-list",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Book Categories"]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Dropdown,{mt:.6,width:"190px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_search_category",{category_id:A[E]})}return x}()})})})}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_search_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",m:".5em",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:1.5,mr:"1rem"}),"Search Actions"]}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Search",icon:"eraser",onClick:function(){function x(){return b("clear_search")}return x}()}),I.ckey?(0,e.createComponentVNode)(2,t.Button,{mb:.5,content:"Stop Showing My Books",color:"bad",icon:"search",onClick:function(){function x(){return b("clear_ckey_search")}return x}()}):(0,e.createComponentVNode)(2,t.Button,{content:"Find My Books",icon:"search",onClick:function(){function x(){return b("find_users_books",{user_ckey:T})}return x}()})]})]})},i=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.external_booklist,w=B.archive_pagenumber,T=B.num_pages,A=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Access",buttons:(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpagemax")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",disabled:w===1,onClick:function(){function x(){return b("deincrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{bold:!0,content:w,onClick:function(){function x(){return(0,m.modalOpen)(h,"setpagenumber")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",disabled:w===T,onClick:function(){function x(){return b("incrementpage")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",disabled:w===T,onClick:function(){function x(){return b("incrementpagemax")}return x}()})],4),children:[(0,e.createComponentVNode)(2,f),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ratings"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Category"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(x){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:.5}),x.title.length>45?x.title.substr(0,45)+"...":x.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:x.author.length>30?x.author.substr(0,30)+"...":x.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[x.rating,(0,e.createComponentVNode)(2,t.Icon,{name:"star",ml:.5,color:"yellow",verticalAlign:"middle"})]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:x.categories.join(", ").substr(0,45)}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[A===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function E(){return b("order_external_book",{bookid:x.id})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function E(){return(0,m.modalOpen)(h,"expand_info",{bookid:x.id})}return E}()})]})]},x.id)})]})]})},u=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.programmatic_booklist,w=B.login_state;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Corporate Book Catalog",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Actions"})]}),I.map(function(T,A){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:T.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book",mr:2}),T.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:T.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[w===1&&(0,e.createComponentVNode)(2,t.Button,{content:"Order",icon:"print",onClick:function(){function x(){return b("order_programmatic_book",{bookid:T.id})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"More...",onClick:function(){function x(){return(0,m.modalOpen)(h,"expand_info",{bookid:T.id})}return x}()})]})]},A)})]})})},s=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.selectedbook,w=B.book_categories,T=B.user_ckey,A=[];return w.map(function(x){return A[x.description]=x.category_id}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Book System Upload",buttons:(0,e.createComponentVNode)(2,t.Button.Confirm,{bold:!0,width:9.5,icon:"upload",disabled:I.copyright,content:"Upload Book",onClick:function(){function x(){return b("uploadbook",{user_ckey:T})}return x}()}),children:[I.copyright?(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"WARNING: You cannot upload or modify the attributes of a copyrighted book"}):(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{ml:15,mb:3,fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"search-plus",verticalAlign:"middle",size:3,mr:2}),"Book Uploader"]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.title,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_title")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,t.Button,{width:20,textAlign:"left",icon:"pen",disabled:I.copyright,content:I.author,onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_author")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Categories",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Dropdown,{width:"240px",options:w.map(function(x){return x.description}),onSelected:function(){function x(E){return b("toggle_upload_category",{category_id:A[E]})}return x}()})})})]}),(0,e.createVNode)(1,"br"),w.filter(function(x){return I.categories.includes(x.category_id)}).map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.description,disabled:I.copyright,selected:!0,icon:"unlink",onClick:function(){function E(){return b("toggle_upload_category",{category_id:x.category_id})}return E}()},x.category_id)})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:75,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Summary",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pen",width:"auto",disabled:I.copyright,content:"Edit Summary",onClick:function(){function x(){return(0,m.modalOpen)(h,"edit_selected_summary")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:I.summary})]})})]})]})},d=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.checkout_data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Checked Out Books",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Patron"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actions"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-tag"}),w.patron_name]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.timeleft>=0?w.timeleft:"LATE"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:(0,e.createComponentVNode)(2,t.Button,{content:"Mark Lost",icon:"flag",color:"bad",disabled:w.timeleft>=0,onClick:function(){function A(){return b("reportlost",{libraryid:w.libraryid})}return A}()})})]},T)})]})})},C=function(v,h){var V=(0,a.useBackend)(h),b=V.act,B=V.data,I=B.inventory_list;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Library Inventory",children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"LIB ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"})]}),I.map(function(w,T){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:w.libraryid}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"})," ",w.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:w.checked_out?"Checked Out":"Available"})]},T)})]})})};(0,m.modalRegisterBodyOverride)("expand_info",y),(0,m.modalRegisterBodyOverride)("report_book",S),(0,m.modalRegisterBodyOverride)("rate_info",p)},92682:function(L,r,n){"use strict";r.__esModule=!0,r.LibraryManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=r.LibraryManager=function(){function l(c,f){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:600,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,y)})]})}return l}(),y=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.pagestate;switch(d){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,p);case 3:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}},S=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.4rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-shield",verticalAlign:"middle",size:3,mr:"1rem"}),"Library Manager"]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",width:"auto",color:"danger",content:"Delete Book by SSID",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ssid_delete")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user-slash",width:"auto",color:"danger",content:"Delete All Books By CKEY",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ckey_delete")}return d}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Books By CKEY",onClick:function(){function d(){return(0,m.modalOpen)(f,"specify_ckey_search")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"search",width:"auto",content:"View All Reported Books",onClick:function(){function d(){return u("view_reported_books")}return d}()})]})},k=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.reports;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-secret",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"All Reported Books",(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function C(){return u("return")}return C}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Uploader CKEY"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Report Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reporter Ckey"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),d.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.uploader_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),C.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:C.report_description}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:C.reporter_ckey}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",onClick:function(){function g(){return u("delete_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Unflag",icon:"flag",color:"caution",onClick:function(){function g(){return u("unflag_book",{bookid:C.id})}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function g(){return u("view_book",{bookid:C.id})}return g}()})]})]},C.id)})]})})},p=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.ckey,C=s.booklist;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Table,{className:"Library__Booklist",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.2rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user",verticalAlign:"middle",size:2,mr:"1rem"}),(0,e.createVNode)(1,"br"),"Books uploaded by ",d,(0,e.createVNode)(1,"br")]}),(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Return to Main",icon:"arrow-alt-circle-left",onClick:function(){function g(){return u("return")}return g}()}),(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"SSID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Title"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Author"}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"middle",children:"Administrative Actions"})]}),C.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.id}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"book"}),g.title]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"left",children:g.author}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",children:[(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"Delete",icon:"trash",color:"bad",onClick:function(){function v(){return u("delete_book",{bookid:g.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"View",onClick:function(){function v(){return u("view_book",{bookid:g.id})}return v}()})]})]},g.id)})]})})}},68e3:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(2971),m=n(91819),N=n(31068),y=n(84947),S=r.ListInputModal=function(){function l(c,f){var i=(0,m.useBackend)(f),u=i.act,s=i.data,d=s.items,C=d===void 0?[]:d,g=s.message,v=g===void 0?"":g,h=s.init_value,V=s.timeout,b=s.title,B=(0,m.useLocalState)(f,"selected",C.indexOf(h)),I=B[0],w=B[1],T=(0,m.useLocalState)(f,"searchBarVisible",C.length>10),A=T[0],x=T[1],E=(0,m.useLocalState)(f,"searchQuery",""),P=E[0],j=E[1],M=function(){function $(G){var X=z.length-1;if(G===N.KEY_DOWN)if(I===null||I===X){var oe;w(0),(oe=document.getElementById("0"))==null||oe.scrollIntoView()}else{var re;w(I+1),(re=document.getElementById((I+1).toString()))==null||re.scrollIntoView()}else if(G===N.KEY_UP)if(I===null||I===0){var se;w(X),(se=document.getElementById(X.toString()))==null||se.scrollIntoView()}else{var he;w(I-1),(he=document.getElementById((I-1).toString()))==null||he.scrollIntoView()}}return $}(),O=function(){function $(G){G!==I&&w(G)}return $}(),D=function(){function $(){x(!1),x(!0)}return $}(),F=function(){function $(G){var X=String.fromCharCode(G),oe=C.find(function(he){return he==null?void 0:he.toLowerCase().startsWith(X==null?void 0:X.toLowerCase())});if(oe){var re,se=C.indexOf(oe);w(se),(re=document.getElementById(se.toString()))==null||re.scrollIntoView()}}return $}(),U=function(){function $(G){var X;G!==P&&(j(G),w(0),(X=document.getElementById("0"))==null||X.scrollIntoView())}return $}(),_=function(){function $(){x(!A),j("")}return $}(),z=C.filter(function($){return $==null?void 0:$.toLowerCase().includes(P.toLowerCase())}),H=330+Math.ceil(v.length/3);return A||setTimeout(function(){var $;return($=document.getElementById(I.toString()))==null?void 0:$.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:b,width:325,height:H,children:[V&&(0,e.createComponentVNode)(2,a.Loader,{value:V}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function $(G){var X=window.event?G.which:G.keyCode;(X===N.KEY_DOWN||X===N.KEY_UP)&&(G.preventDefault(),M(X)),X===N.KEY_ENTER&&(G.preventDefault(),u("submit",{entry:z[I]})),!A&&X>=N.KEY_A&&X<=N.KEY_Z&&(G.preventDefault(),F(X)),X===N.KEY_ESCAPE&&(G.preventDefault(),u("cancel"))}return $}(),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 $(){return _()}return $}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:z,onClick:O,onFocusSearch:D,searchBarVisible:A,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:z,onSearch:U,searchQuery:P,selected:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:z[I]})})]})})})]})}return l}(),k=function(c,f){var i=(0,m.useBackend)(f),u=i.act,s=c.filteredItems,d=c.onClick,C=c.onFocusSearch,g=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:s.map(function(h,V){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:V,onClick:function(){function b(){return d(V)}return b}(),onDblClick:function(){function b(B){B.preventDefault(),u("submit",{entry:s[v]})}return b}(),onKeyDown:function(){function b(B){var I=window.event?B.which:B.keyCode;g&&I>=N.KEY_A&&I<=N.KEY_Z&&(B.preventDefault(),C())}return b}(),selected:V===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(b){return b.toUpperCase()})},V)})})},p=function(c,f){var i=(0,m.useBackend)(f),u=i.act,s=c.filteredItems,d=c.onSearch,C=c.searchQuery,g=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),u("submit",{entry:s[g]})}return v}(),onInput:function(){function v(h,V){return d(V)}return v}(),placeholder:"Search...",value:C})}},75965:function(L,r,n){"use strict";r.__esModule=!0,r.MODsuitContent=r.MODsuit=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:A,minValue:-50,maxValue:50,stepPixelSize:5,width:"39px",onChange:function(){function j(M,O){return P("configure",{key:T,value:O,ref:x})}return j}()})},N=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:A,onClick:function(){function j(){return P("configure",{key:T,value:!A,ref:x})}return j}()})},y=function(I,w){var T=I.name,A=I.value,x=I.module_ref,E=(0,a.useBackend)(w),P=E.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"paint-brush",onClick:function(){function j(){return P("configure",{key:T,ref:x})}return j}()}),(0,e.createComponentVNode)(2,t.ColorBox,{color:A,mr:.5})],4)},S=function(I,w){var T=I.name,A=I.value,x=I.values,E=I.module_ref,P=(0,a.useBackend)(w),j=P.act;return(0,e.createComponentVNode)(2,t.Dropdown,{displayText:A,options:x,onSelected:function(){function M(O){return j("configure",{key:T,value:O,ref:E})}return M}()})},k=function(I,w){var T=I.name,A=I.display_name,x=I.type,E=I.value,P=I.values,j=I.module_ref,M={number:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},I))),bool:(0,e.normalizeProps)((0,e.createComponentVNode)(2,N,Object.assign({},I))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,y,Object.assign({},I))),list:(0,e.normalizeProps)((0,e.createComponentVNode)(2,S,Object.assign({},I)))};return(0,e.createComponentVNode)(2,t.Box,{children:[A,": ",M[x]]})},p=function(I,w){var T=I.active,A=I.userradiated,x=I.usertoxins,E=I.usermaxtoxins,P=I.threatlevel;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Level",color:T&&A?"bad":"good",children:T&&A?"IRRADIATED!":"RADIATION-FREE"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxins Level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?x/E:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:x})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Hazard Level",color:T&&P?"bad":"good",bold:!0,children:T&&P?P:0})})]})},l=function(I,w){var T=I.active,A=I.userhealth,x=I.usermaxhealth,E=I.userbrute,P=I.userburn,j=I.usertoxin,M=I.useroxy;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?A/x:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?A:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?P/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?P:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/x:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})})]})],4)},c=function(I,w){var T=I.active,A=I.statustime,x=I.statusid,E=I.statushealth,P=I.statusmaxhealth,j=I.statusbrute,M=I.statusburn,O=I.statustoxin,D=I.statusoxy,F=I.statustemp,U=I.statusnutrition,_=I.statusfingerprints,z=I.statusdna,H=I.statusviruses;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Time",children:T?A:"00:00:00"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Operation Number",children:T?x||"0":"???"})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?E/P:0,ranges:{good:[.5,1/0],average:[.2,.5],bad:[-1/0,.2]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?E:0})})}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Brute",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?j/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?j:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Burn",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?M/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:T?M:0})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Toxin",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?O/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:O})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Suffocation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:T?D/P:0,ranges:{good:[-1/0,.2],average:[.2,.5],bad:[.5,1/0]},children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:D})})})})]}),(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Body Temperature",children:T?F:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Nutrition Status",children:T?U:0})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"DNA",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fingerprints",children:T?_:"???"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:T?z:"???"})]})}),!!T&&!!H&&(0,e.createComponentVNode)(2,t.Section,{title:"Diseases",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,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"signature",tooltip:"Name",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"wind",tooltip:"Type",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Stage",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"flask",tooltip:"Cure",tooltipPosition:"top"})})]}),H.map(function($){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.type}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[$.stage,"/",$.maxstage]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:$.cure})]},$.name)})]})})],0)},f={rad_counter:p,health_analyzer:l,status_readout:c},i=function(){return(0,e.createComponentVNode)(2,t.Section,{align:"center",fill:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{color:"red",name:"exclamation-triangle",size:15}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"30px",color:"red",children:"ERROR: INTERFACE UNRESPONSIVE"})]})},u=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data;return(0,e.createComponentVNode)(2,t.Dimmer,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"16px",color:"blue",children:"SUIT UNPOWERED"})})})},s=function(I,w){var T=I.configuration_data,A=I.module_ref,x=Object.keys(T);return(0,e.createComponentVNode)(2,t.Dimmer,{backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[x.map(function(E){var P=T[E];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{name:E,display_name:P.display_name,type:P.type,value:P.value,values:P.values,module_ref:A})},P.key)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:I.onExit,icon:"times",textAlign:"center",children:"Exit"})})})]})})},d=function(I){switch(I){case 1:return"Use";case 2:return"Toggle";case 3:return"Select"}},C=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.malfunctioning,j=x.locked,M=x.open,O=x.selected_module,D=x.complexity,F=x.complexity_max,U=x.wearer_name,_=x.wearer_job,z=P?"Malfunctioning":E?"Active":"Inactive";return(0,e.createComponentVNode)(2,t.Section,{title:"Parameters",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:E?"Deactivate":"Activate",onClick:function(){function H(){return A("activate")}return H}()}),children:z}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:j?"lock-open":"lock",content:j?"Unlock":"Lock",onClick:function(){function H(){return A("lock")}return H}()}),children:j?"Locked":"Unlocked"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover",children:M?"Open":"Closed"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Module",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Complexity",children:[D," (",F,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Occupant",children:[U,", ",_]})]})})},g=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.control,j=x.helmet,M=x.chestplate,O=x.gauntlets,D=x.boots,F=x.core,U=x.charge;return(0,e.createComponentVNode)(2,t.Section,{title:"Hardware",children:[(0,e.createComponentVNode)(2,t.Collapsible,{title:"Parts",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Control Unit",children:P}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Helmet",children:j||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chestplate",children:M||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gauntlets",children:O||"None"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Boots",children:D||"None"})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Core",children:F&&(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Type",children:F}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:U/100,content:U+"%",ranges:{good:[.6,1/0],average:[.3,.6],bad:[-1/0,.3]}})})]})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",textAlign:"center",children:"No Core Detected"})})]})},v=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.active,P=x.modules,j=P.filter(function(M){return!!M.id});return(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:j.length!==0&&j.map(function(M){var O=f[M.id];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[!E&&(0,e.createComponentVNode)(2,u),(0,e.normalizeProps)((0,e.createComponentVNode)(2,O,Object.assign({},M,{active:E})))]},M.ref)})||(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Info Modules Detected"})})})},h=function(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.complexity_max,P=x.modules,j=(0,a.useLocalState)(w,"module_configuration",null),M=j[0],O=j[1];return(0,e.createComponentVNode)(2,t.Section,{title:"Modules",fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:P.length!==0&&P.map(function(D){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Collapsible,{title:D.module_name,children:(0,e.createComponentVNode)(2,t.Section,{children:[M===D.ref&&(0,e.createComponentVNode)(2,s,{configuration_data:D.configuration_data,module_ref:D.ref,onExit:function(){function F(){return O(null)}return F}()}),(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"save",tooltip:"Complexity",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"plug",tooltip:"Idle Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",tooltip:"Active Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"bolt",tooltip:"Use Power Cost",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"hourglass-half",tooltip:"Cooldown",tooltipPosition:"top"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"tasks",tooltip:"Actions",tooltipPosition:"top"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.module_complexity,"/",E]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.idle_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.active_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:D.use_power}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[D.cooldown>0&&D.cooldown/10||"0","/",D.cooldown_time/10,"s"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("select",{ref:D.ref})}return F}(),icon:"bullseye",selected:D.module_active,tooltip:d(D.module_type),tooltipPosition:"left",disabled:!D.module_type}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return O(D.ref)}return F}(),icon:"cog",selected:M===D.ref,tooltip:"Configure",tooltipPosition:"left",disabled:D.configuration_data.length===0}),(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function F(){return A("pin",{ref:D.ref})}return F}(),icon:"thumbtack",selected:D.pinned,tooltip:"Pin",tooltipPosition:"left",disabled:!D.module_type})]})]})]}),(0,e.createComponentVNode)(2,t.Box,{children:D.description})]})})},D.ref)})||(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"No Modules Detected"})})})})},V=r.MODsuitContent=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!P,children:!!P&&(0,e.createComponentVNode)(2,i)||(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,g)}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,h)})]})})}return B}(),b=r.MODsuit=function(){function B(I,w){var T=(0,a.useBackend)(w),A=T.act,x=T.data,E=x.ui_theme,P=x.interface_break;return(0,e.createComponentVNode)(2,o.Window,{theme:E,width:400,height:620,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,V)})})})}return B}()},86322:function(L,r,n){"use strict";r.__esModule=!0,r.MagnetController=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=n(22677),y=new Map([["n",{icon:"arrow-up",tooltip:"Move North"}],["e",{icon:"arrow-right",tooltip:"Move East"}],["s",{icon:"arrow-down",tooltip:"Move South"}],["w",{icon:"arrow-left",tooltip:"Move West"}],["c",{icon:"crosshairs",tooltip:"Move to Magnet"}],["r",{icon:"dice",tooltip:"Move Randomly"}]]),S=r.MagnetController=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,i=c.data,u=i.autolink,s=i.code,d=i.frequency,C=i.linkedMagnets,g=i.magnetConfiguration,v=i.path,h=i.pathPosition,V=i.probing,b=i.powerState,B=i.speed;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:600,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[!u&&(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Probe",icon:V?"spinner":"sync",iconSpin:!!V,disabled:V,onClick:function(){function I(){return f("probe_magnets")}return I}()}),title:"Magnet Linking",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,a.toFixed)(d/10,1)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:s})]})}),(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{icon:b?"power-off":"times",content:b?"On":"Off",selected:b,onClick:function(){function I(){return f("toggle_power")}return I}()}),title:"Controller Configuration",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:B.value,minValue:B.min,maxValue:B.max,onChange:function(){function I(w,T){return f("set_speed",{speed:T})}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Path",children:[Array.from(y.entries()).map(function(I){var w=I[0],T=I[1],A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button,{icon:A,tooltip:x,onClick:function(){function E(){return f("path_add",{code:w})}return E}()},w)}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",confirmIcon:"trash",confirmContent:"",float:"right",tooltip:"Reset Path",tooltipPosition:"left",onClick:function(){function I(){return f("path_clear")}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file-import",float:"right",tooltip:"Manually input path",tooltipPosition:"left",onClick:function(){function I(){return(0,N.modalOpen)(l,"path_custom_input")}return I}()}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:v.map(function(I,w){var T=y.get(I)||{icon:"question"},A=T.icon,x=T.tooltip;return(0,e.createComponentVNode)(2,o.Button.Confirm,{selected:w+2===h,icon:A,confirmIcon:A,confirmContent:"",tooltip:x,onClick:function(){function E(){return f("path_remove",{index:w+1,code:I})}return E}()},w)})})]})]})}),C.map(function(I,w){var T=I.uid,A=I.powerState,x=I.electricityLevel,E=I.magneticField;return(0,e.createComponentVNode)(2,o.Section,{title:"Magnet #"+(w+1)+" Configuration",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:A?"power-off":"times",content:A?"On":"Off",selected:A,onClick:function(){function P(){return f("toggle_magnet_power",{id:T})}return P}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Move Speed",children:(0,e.createComponentVNode)(2,o.Slider,{value:x,minValue:g.electricityLevel.min,maxValue:g.electricityLevel.max,onChange:function(){function P(j,M){return f("set_electricity_level",{id:T,electricityLevel:M})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Field Size",children:(0,e.createComponentVNode)(2,o.Slider,{value:E,minValue:g.magneticField.min,maxValue:g.magneticField.max,onChange:function(){function P(j,M){return f("set_magnetic_field",{id:T,magneticField:M})}return P}()})})]})},T)})]})]})}return k}()},54374:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.MechBayConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.recharge_port,f=c&&c.mech,i=f&&f.cell,u=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:155,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:u?"Mech status: "+u:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function s(){return p("reconnect")}return s}()}),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."})||!i&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.charge/i.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.charge})," / "+i.maxcharge]})})]})})})})}return N}()},14823:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=n(37843),y=r.MechaControlConsole=function(){function S(k,p){var l=(0,t.useBackend)(p),c=l.act,f=l.data,i=f.beacons,u=f.stored_data;return u.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function s(){return c("clear_log")}return s}()}),children:u.map(function(s){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",s.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,N.decodeHtmlEntities)(s.message)})]},s.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:i.length&&i.map(function(s){return(0,e.createComponentVNode)(2,o.Section,{title:s.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function d(){return c("send_message",{mt:s.uid})}return d}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function d(){return c("get_log",{mt:s.uid})}return d}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"Sabotage",icon:"bomb",onClick:function(){function d(){return c("shock",{mt:s.uid})}return d}()})],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:[s.maxHealth*.75,1/0],average:[s.maxHealth*.5,s.maxHealth*.75],bad:[-1/0,s.maxHealth*.5]},value:s.health,maxValue:s.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:s.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[s.cellMaxCharge*.75,1/0],average:[s.cellMaxCharge*.5,s.cellMaxCharge*.75],bad:[-1/0,s.cellMaxCharge*.5]},value:s.cellCharge,maxValue:s.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[s.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:s.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,N.toTitleCase)(s.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:s.active||"None"}),s.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[s.cargoMax*.75,1/0],average:[s.cargoMax*.5,s.cargoMax*.75],good:[-1/0,s.cargoMax*.5]},value:s.cargoUsed,maxValue:s.cargoMax})})||null]})},s.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},16189:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(22677),N=n(84947),y=n(51185),S=n(69774),k=n(76519),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},l={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(A,x){(0,m.modalOpen)(A,"edit",{field:x.edit,value:x.value})},f=function(A,x){var E=A.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.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:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[E.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[E.severity],children:E.severity})]})})})},i=r.MedicalRecords=function(){function T(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.loginState,M=P.screen;if(!j.logged_in)return(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var O;return M===2?O=(0,e.createComponentVNode)(2,u):M===3?O=(0,e.createComponentVNode)(2,s):M===4?O=(0,e.createComponentVNode)(2,d):M===5?O=(0,e.createComponentVNode)(2,h):M===6?O=(0,e.createComponentVNode)(2,V):M===7&&(O=(0,e.createComponentVNode)(2,b)),(0,e.createComponentVNode)(2,N.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,N.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,w),O]})})]})}return T}(),u=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.records,O=(0,t.useLocalState)(x,"searchText",""),D=O[0],F=O[1],U=(0,t.useLocalState)(x,"sortId","name"),_=U[0],z=U[1],H=(0,t.useLocalState)(x,"sortOrder",!0),$=H[0],G=H[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function X(){return P("screen",{screen:3})}return X}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function X(oe,re){return F(re)}return X}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,B,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,B,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,B,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,B,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,B,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(D,function(X){return X.name+"|"+X.id+"|"+X.rank+"|"+X.p_stat+"|"+X.m_stat})).sort(function(X,oe){var re=$?1:-1;return X[_].localeCompare(oe[_])*re}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+l[X.p_stat],onClick:function(){function oe(){return P("view_record",{view_record:X.ref})}return oe}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.m_stat})]},X.id)})]})})})],4)},s=function(A,x){var E=(0,t.useBackend)(x),P=E.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 j(){return P("del_all_med_records")}return j}()})})]})})},d=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical,O=j.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:O?"spinner":"print",disabled:O,iconSpin:!!O,content:"Print Record",ml:"0.5rem",onClick:function(){function D(){return P("print_record")}return D}()}),children:(0,e.createComponentVNode)(2,C)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function D(){return P("new_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function D(){return P("del_med_record")}return D}()}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(A,x){var E=(0,t.useBackend)(x),P=E.data,j=P.general;return!j||!j.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:j.fields.map(function(M,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function D(){return c(x,M)}return D}()})]},O)})})}),!!j.has_photos&&j.photos.map(function(M,O){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createVNode)(1,"br"),"Photo #",O+1]},O)})]})},g=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(O,D){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:O.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:O.value}),!!O.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return c(x,O)}return F}()})]},D)})})})})},v=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.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 O(){return(0,m.modalOpen)(x,"add_comment")}return O}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(O,D){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:O.header}),(0,e.createVNode)(1,"br"),O.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return P("del_comment",{del_comment:D+1})}return F}()})]},D)})})})},h=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.virus,O=(0,t.useLocalState)(x,"searchText",""),D=O[0],F=O[1],U=(0,t.useLocalState)(x,"sortId2","name"),_=U[0],z=U[1],H=(0,t.useLocalState)(x,"sortOrder2",!0),$=H[0],G=H[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function X(oe,re){return F(re)}return X}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,I,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,I,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,I,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(D,function(X){return X.name+"|"+X.max_stages+"|"+X.severity})).sort(function(X,oe){var re=$?1:-1;return X[_].localeCompare(oe[_])*re}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+X.severity,onClick:function(){function oe(){return P("vir",{vir:X.D})}return oe}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[X.severity],children:X.severity})]},X.id)})]})})})})],4)},V=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.goals;return(0,e.createComponentVNode)(2,o.Section,{title:"Virology Goals",fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:M.length!==0&&M.map(function(O){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:O.name,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,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:O.delivered,minValue:0,maxValue:O.deliverygoal,ranges:{good:[O.deliverygoal*.5,1/0],average:[O.deliverygoal*.25,O.deliverygoal*.5],bad:[-1/0,O.deliverygoal*.25]},children:[O.delivered," / ",O.deliverygoal," Units"]})})})}),(0,e.createComponentVNode)(2,o.Box,{children:O.report})]})},O.id)})||(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:"No Goals Detected"})})})})},b=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+O.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",O.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[O.area||"Unknown"," (",O.x,", ",O.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.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:O.use_beaker?"Reservoir: "+O.total_volume+"/"+O.maximum_volume:"Using internal synthesizer"})]},O.id)})]})})})},B=function(A,x){var E=(0,t.useLocalState)(x,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder",!0),O=M[0],D=M[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function _(){P===F?D(!O):(j(F),D(!0))}return _}(),children:[U,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},I=function(A,x){var E=(0,t.useLocalState)(x,"sortId2","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(x,"sortOrder2",!0),O=M[0],D=M[1],F=A.id,U=A.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:P!==F&&"transparent",onClick:function(){function _(){P===F?D(!O):(j(F),D(!0))}return _}(),children:[U,P===F&&(0,e.createComponentVNode)(2,o.Icon,{name:O?"sort-up":"sort-down",ml:"0.25rem;"})]})})},w=function(A,x){var E=(0,t.useBackend)(x),P=E.act,j=E.data,M=j.screen,O=j.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function D(){P("screen",{screen:2})}return D}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function D(){P("screen",{screen:5})}return D}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"vial",selected:M===6,onClick:function(){function D(){P("screen",{screen:6})}return D}(),children:"Virology Goals"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===7,onClick:function(){function D(){return P("screen",{screen:7})}return D}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&O&&!O.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",O.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",f)},44482:function(L,r,n){"use strict";r.__esModule=!0,r.MerchVendor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=p.product,s=p.productImage,d=p.productCategory,C=i.user_money;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:u.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{disabled:u.price>C,icon:"shopping-cart",content:u.price,textAlign:"left",onClick:function(){function g(){return f("purchase",{name:u.name,category:d})}return g}()})})]})},N=function(p,l){var c=(0,a.useBackend)(l),f=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),u=i[0],s=f.products,d=f.imagelist,C=["apparel","toy","decoration"];return(0,e.createComponentVNode)(2,t.Table,{children:s[C[u]].map(function(g){return(0,e.createComponentVNode)(2,m,{product:g,productImage:d[g.path],productCategory:C[u]},g.name)})})},y=r.MerchVendor=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.user_cash,s=i.inserted_cash;return(0,e.createComponentVNode)(2,o.Window,{title:"Merch Computer",width:450,height:600,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:"User",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"light-grey",inline:!0,mr:"0.5rem",children:["There is ",(0,e.createVNode)(1,"b",null,s,0)," credits inserted."]}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"money-bill-wave-alt",content:"Dispense Change",textAlign:"left",onClick:function(){function d(){return f("change")}return d}()})],4),children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Doing your job and not getting any recognition at work? Well, welcome to the merch shop! Here, you can buy cool things in exchange for money you earn when you have completed your Job Objectives.",u!==null&&(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:["Your balance is ",(0,e.createVNode)(1,"b",null,[u||0,(0,e.createTextVNode)(" credits")],0),"."]})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,N)]})})]})})})}return k}(),S=function(p,l){var c=(0,a.useBackend)(l),f=c.data,i=(0,a.useLocalState)(l,"tabIndex",1),u=i[0],s=i[1],d=f.login_state;return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"dice",selected:u===1,onClick:function(){function C(){return s(1)}return C}(),children:"Toys"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"flag",selected:u===2,onClick:function(){function C(){return s(2)}return C}(),children:"Decorations"})]})}},53551:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(84947),N=["title","items"];function y(i,u){if(i==null)return{};var s={},d=Object.keys(i),C,g;for(g=0;g=0)&&(s[C]=i[C]);return s}var S={Alphabetical:function(){function i(u,s){return u-s}return i}(),Availability:function(){function i(u,s){return-(u.affordable-s.affordable)}return i}(),Price:function(){function i(u,s){return u.price-s.price}return i}()},k=r.MiningVendor=function(){function i(u,s){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:455,children:(0,e.createComponentVNode)(2,m.Window.Content,{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,l)]})})})}return i}(),p=function(u,s){var d=(0,t.useBackend)(s),C=d.act,g=d.data,v=g.has_id,h=g.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function V(){return C("logoff")}return V}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},l=function(u,s){var d=(0,t.useBackend)(s),C=d.act,g=d.data,v=g.has_id,h=g.id,V=g.items,b=(0,t.useLocalState)(s,"search",""),B=b[0],I=b[1],w=(0,t.useLocalState)(s,"sort","Alphabetical"),T=w[0],A=w[1],x=(0,t.useLocalState)(s,"descending",!1),E=x[0],P=x[1],j=(0,a.createSearch)(B,function(D){return D[0]}),M=!1,O=Object.entries(V).map(function(D,F){var U=Object.entries(D[1]).filter(j).map(function(_){return _[1].affordable=v&&h.points>=_[1].price,_[1]}).sort(S[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,f,{title:D[0],items:U},D[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?O:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(u,s){var d=(0,t.useLocalState)(s,"search",""),C=d[0],g=d[1],v=(0,t.useLocalState)(s,"sort",""),h=v[0],V=v[1],b=(0,t.useLocalState)(s,"descending",!1),B=b[0],I=b[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{mt:.2,placeholder:"Search by item name..",width:"100%",onInput:function(){function w(T,A){return g(A)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function w(T){return V(T)}return w}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"arrow-down":"arrow-up",height:"21px",tooltip:B?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function w(){return I(!B)}return w}()})})]})})},f=function(u,s){var d=(0,t.useBackend)(s),C=d.act,g=d.data,v=u.title,h=u.items,V=y(u,N);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},V,{children:h.map(function(b){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:b.name}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.has_id||g.id.points0?'\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430 "'+u+'"':"\u0412\u0441\u0435 \u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438 - "+f.length,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:f.filter(function(C){return C.name&&(u.length>0?C.name.toLowerCase().includes(u.toLowerCase())||C.desc.toLowerCase().includes(u.toLowerCase())||C.author.toLowerCase().includes(u.toLowerCase()):!0)}).map(function(C){return(0,e.createComponentVNode)(2,o.Collapsible,{title:C.name,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u0410\u0432\u0442\u043E\u0440\u044B",children:C.author}),(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:C.desc})]},C.name)})})})})})],4)}return y}()},61100:function(L,r,n){"use strict";r.__esModule=!0,r.NTRecruiter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.NTRecruiter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.gamestatus,f=l.cand_name,i=l.cand_birth,u=l.cand_age,s=l.cand_species,d=l.cand_planet,C=l.cand_job,g=l.cand_records,v=l.cand_curriculum,h=l.total_curriculums,V=l.reason;if(c===0)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"45%",fontSize:"31px",color:"white",textAlign:"center",bold:!0,children:"Nanotrasen Recruiter Simulator"}),(0,e.createComponentVNode)(2,t.Stack.Item,{pt:"1%",fontSize:"16px",textAlign:"center",color:"label",children:"Work as the Nanotrasen recruiter and avoid hiring incompetent employees!"})]})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"play",color:"green",content:"Begin Shift",onClick:function(){function b(){return p("start_game")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",lineHeight:2,fluid:!0,icon:"info",color:"blue",content:"Guide",onClick:function(){function b(){return p("instructions")}return b}()})]})]})})});if(c===1)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,{fill:!0,color:"grey",title:"Guide",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"1#",color:"silver",children:["To win this game you must hire/dismiss"," ",(0,e.createVNode)(1,"b",null,h,0)," candidates, one wrongly made choice leads to a game over."]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"2#",color:"silver",children:"Make the right choice by truly putting yourself into the skin of a recruiter working for Nanotrasen!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"3#",color:"silver",children:[(0,e.createVNode)(1,"b",null,"Unique",16)," characters may appear, pay attention to them!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"4#",color:"silver",children:"Make sure to pay attention to details like age, planet names, the requested job and even the species of the candidate!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"5#",color:"silver",children:["Not every employment record is good, remember to make your choice based on the ",(0,e.createVNode)(1,"b",null,"company morals",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"6#",color:"silver",children:"The planet of origin has no restriction on the species of the candidate, don't think too much when you see humans that came from Boron!"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"7#",color:"silver",children:["Pay attention to ",(0,e.createVNode)(1,"b",null,"typos",16)," and ",(0,e.createVNode)(1,"b",null,"missing words",16),", these do make for bad applications!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"8#",color:"silver",children:["Remember, you are recruiting people to work at one of the many NT stations, so no hiring for ",(0,e.createVNode)(1,"b",null,"jobs",16)," that they"," ",(0,e.createVNode)(1,"b",null,"don't offer",16),"!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"9#",color:"silver",children:["Keep your eyes open for incompatible ",(0,e.createVNode)(1,"b",null,"naming schemes",16),", no company wants a Vox named Joe!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10#",color:"silver",children:["For some unknown reason ",(0,e.createVNode)(1,"b",null,"clowns",16)," are never denied by the company, no matter what."]})]})})})})});if(c===2)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,color:"label",fontSize:"14px",title:"Employment Applications",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"24px",textAlign:"center",color:"silver",bold:!0,children:["Candidate Number #",v]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",color:"silver",children:(0,e.createVNode)(1,"b",null,f,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",color:"silver",children:(0,e.createVNode)(1,"b",null,s,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Age",color:"silver",children:(0,e.createVNode)(1,"b",null,u,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Date of Birth",color:"silver",children:(0,e.createVNode)(1,"b",null,i,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Planet of Origin",color:"silver",children:(0,e.createVNode)(1,"b",null,d,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requested Job",color:"silver",children:(0,e.createVNode)(1,"b",null,C,0)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Employment Records",color:"silver",children:(0,e.createVNode)(1,"b",null,g,0)})]})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stamp the application!",color:"grey",textAlign:"center",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"red",content:"Dismiss",fontSize:"150%",icon:"ban",lineHeight:4.5,onClick:function(){function b(){return p("dismiss")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"green",content:"Hire",fontSize:"150%",icon:"arrow-circle-up",lineHeight:4.5,onClick:function(){function b(){return p("hire")}return b}()})})]})})})]})})});if(c===3)return(0,e.createComponentVNode)(2,o.Window,{width:400,height:550,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,{pt:"40%",fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,color:"red",fontSize:"50px",textAlign:"center",children:"Game Over"}),(0,e.createComponentVNode)(2,t.Stack.Item,{fontSize:"15px",color:"label",textAlign:"center",children:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{color:"blue",fontSize:"20px",textAlign:"center",pt:"10px",children:["FINAL SCORE: ",v-1,"/",h]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:4,fluid:!0,icon:"arrow-left",content:"Main Menu",onClick:function(){function b(){return p("back_to_menu")}return b}()})})]})})})}return N}()},6802:function(L,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),m=n(30381),N=n(84947),y=n(22677),S=n(76519),k=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function l(I,w){if(I==null)return{};var T={},A=Object.keys(I),x,E;for(E=0;E=0)&&(T[x]=I[x]);return T}var c=128,f=["security","engineering","medical","science","service","supply"],i={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"}},u=r.Newscaster=function(){function I(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.is_security,j=E.is_admin,M=E.is_silent,O=E.is_printing,D=E.screen,F=E.channels,U=E.channel_idx,_=U===void 0?-1:U,z=(0,t.useLocalState)(T,"menuOpen",!1),H=z[0],$=z[1],G=(0,t.useLocalState)(T,"viewingPhoto",""),X=G[0],oe=G[1],re=(0,t.useLocalState)(T,"censorMode",!1),se=re[0],he=re[1],ye;D===0||D===2?ye=(0,e.createComponentVNode)(2,d):D===1&&(ye=(0,e.createComponentVNode)(2,C));var Be=F.reduce(function(me,te){return me+te.unread},0);return(0,e.createComponentVNode)(2,N.Window,{theme:P&&"security",width:800,height:600,children:[X?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,N.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",H&&"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,s,{icon:"bars",title:"Toggle Menu",onClick:function(){function me(){return $(!H)}return me}()}),(0,e.createComponentVNode)(2,s,{icon:"newspaper",title:"Headlines",selected:D===0,onClick:function(){function me(){return x("headlines")}return me}(),children:Be>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Be>=10?"9+":Be})}),(0,e.createComponentVNode)(2,s,{icon:"briefcase",title:"Job Openings",selected:D===1,onClick:function(){function me(){return x("jobs")}return me}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:F.map(function(me){return(0,e.createComponentVNode)(2,s,{icon:me.icon,title:me.name,selected:D===2&&F[_-1]===me,onClick:function(){function te(){return x("channel",{uid:me.uid})}return te}(),children:me.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:me.unread>=10?"9+":me.unread})},me)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!P||!!j)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,s,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function me(){return(0,y.modalOpen)(T,"wanted_notice")}return me}()}),(0,e.createComponentVNode)(2,s,{security:!0,icon:se?"minus-square":"minus-square-o",title:"Censor Mode: "+(se?"On":"Off"),mb:"0.5rem",onClick:function(){function me(){return he(!se)}return me}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,s,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function me(){return(0,y.modalOpen)(T,"create_story")}return me}()}),(0,e.createComponentVNode)(2,s,{icon:"plus-circle",title:"New Channel",onClick:function(){function me(){return(0,y.modalOpen)(T,"create_channel")}return me}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,s,{icon:O?"spinner":"print",iconSpin:O,title:O?"Printing...":"Print Newspaper",onClick:function(){function me(){return x("print_newspaper")}return me}()}),(0,e.createComponentVNode)(2,s,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function me(){return x("toggle_mute")}return me}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ye]})]})})]})}return I}(),s=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=w.icon,P=E===void 0?"":E,j=w.iconSpin,M=w.selected,O=M===void 0?!1:M,D=w.security,F=D===void 0?!1:D,U=w.onClick,_=w.title,z=w.children,H=l(w,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",O&&"Newscaster__menuButton--selected",F&&"Newscaster__menuButton--security"]),onClick:U},H,{children:[O&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:P,spin:j,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:_}),z]})))},d=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.screen,j=E.is_admin,M=E.channel_idx,O=E.channel_can_manage,D=E.channels,F=E.stories,U=E.wanted,_=(0,t.useLocalState)(T,"fullStories",[]),z=_[0],H=_[1],$=(0,t.useLocalState)(T,"censorMode",!1),G=$[0],X=$[1],oe=P===2&&M>-1?D[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,g,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:oe?oe.icon:"newspaper",mr:"0.5rem"}),oe?oe.name:"Headlines"],0),children:F.length>0?F.slice().reverse().map(function(re){return!z.includes(re.uid)&&re.body.length+3>c?Object.assign({},re,{body_short:re.body.substr(0,c-4)+"..."}):re}).map(function(re,se){return(0,e.createComponentVNode)(2,g,{story:re},se)}):(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."]})}),!!oe&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([G&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!oe.admin&&!j,selected:oe.censored,icon:oe.censored?"comment-slash":"comment",content:oe.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function re(){return x("censor_channel",{uid:oe.uid})}return re}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!O,icon:"cog",content:"Manage",onClick:function(){function re(){return(0,y.modalOpen)(T,"manage_channel",{uid:oe.uid})}return re}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:oe.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:oe.author||"N/A"}),!!j&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Ckey",children:oe.author_ckey}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:oe.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"}),F.reduce(function(re,se){return re+se.view_count},0).toLocaleString()]})]})})]})},C=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.jobs,j=E.wanted,M=Object.entries(P).reduce(function(O,D){var F=D[0],U=D[1];return O+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,g,{story:j,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:M>0?f.map(function(O){return Object.assign({},i[O],{id:O,jobs:P[O]})}).filter(function(O){return!!O&&O.jobs.length>0}).map(function(O){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+O.id]),title:O.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:O.fluff_text}),children:O.jobs.map(function(D){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!D.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",D.title]},D.title)})},O.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."})]})]})},g=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=w.story,j=w.wanted,M=j===void 0?!1:j,O=E.is_admin,D=(0,t.useLocalState)(T,"fullStories",[]),F=D[0],U=D[1],_=(0,t.useLocalState)(T,"censorMode",!1),z=_[0],H=_[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),P.censor_flags&2&&"[REDACTED]"||P.title||"News from "+P.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&z&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:P.censor_flags&2,icon:P.censor_flags&2?"comment-slash":"comment",content:P.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return x("censor_story",{uid:P.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",P.author," |\xA0",!!O&&(0,e.createFragment)([(0,e.createTextVNode)("ckey: "),P.author_ckey,(0,e.createTextVNode)(" |\xA0")],0),!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),P.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(P.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:P.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!P.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+P.uid+".png",float:"right",ml:"0.5rem"}),(P.body_short||P.body).split("\n").map(function($,G){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},G)}),P.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return U([].concat(F,[P.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(w,T){var A=w.name,x=l(w,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),P=E[0],j=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return j(A)}return M}()},x)))},h=function(w,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),x=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:x}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function P(){return E("")}return P}()})]})},V=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=!!w.args.uid&&E.channels.filter(function(q){return q.uid===w.args.uid}).pop();if(w.id==="manage_channel"&&!P){(0,y.modalClose)(T);return}var j=w.id==="manage_channel",M=!!w.args.is_admin,O=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||O||"Unknown"),F=D[0],U=D[1],_=(0,t.useLocalState)(T,"name",(P==null?void 0:P.name)||""),z=_[0],H=_[1],$=(0,t.useLocalState)(T,"description",(P==null?void 0:P.description)||""),G=$[0],X=$[1],oe=(0,t.useLocalState)(T,"icon",(P==null?void 0:P.icon)||"newspaper"),re=oe[0],se=oe[1],he=(0,t.useLocalState)(T,"isPublic",j?!!(P!=null&&P.public):!1),ye=he[0],Be=he[1],me=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin)===1||!1),te=me[0],Z=me[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:j?"Manage "+P.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:!M,width:"100%",value:F,onInput:function(){function q(ue,fe){return U(fe)}return q}()})}),(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:z,onInput:function(){function q(ue,fe){return H(fe)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:G,onInput:function(){function q(ue,fe){return X(fe)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:re,width:"35%",mr:"0.5rem",onInput:function(){function q(ue,fe){return se(fe)}return q}()}),(0,e.createComponentVNode)(2,o.Icon,{name:re,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:ye,icon:ye?"toggle-on":"toggle-off",content:ye?"Yes":"No",onClick:function(){function q(){return Be(!ye)}return q}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:te,icon:te?"lock":"lock-open",content:te?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!te)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,49),description:G.substr(0,128),icon:re,public:ye?1:0,admin_locked:te?1:0})}return q}()})]})},b=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,j=E.channels,M=E.channel_idx,O=M===void 0?-1:M,D=!!w.args.is_admin,F=w.args.scanned_user,U=j.slice().sort(function(q,ue){if(O<0)return 0;var fe=j[O-1];if(fe.uid===q.uid)return-1;if(fe.uid===ue.uid)return 1}).filter(function(q){return D||!q.frozen&&(q.author===F||!!q.public)}),_=(0,t.useLocalState)(T,"author",F||"Unknown"),z=_[0],H=_[1],$=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),G=$[0],X=$[1],oe=(0,t.useLocalState)(T,"title",""),re=oe[0],se=oe[1],he=(0,t.useLocalState)(T,"body",""),ye=he[0],Be=he[1],me=(0,t.useLocalState)(T,"adminLocked",!1),te=me[0],Z=me[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:!D,width:"100%",value:z,onInput:function(){function q(ue,fe){return H(fe)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:G,options:U.map(function(q){return q.name}),mb:"0",width:"100%",onSelected:function(){function q(ue){return X(ue)}return q}()})}),(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:re,onInput:function(){function q(ue,fe){return se(fe)}return q}()})}),(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:ye,onInput:function(){function q(ue,fe){return Be(fe)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function q(){return x(P?"eject_photo":"attach_photo")}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:re,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"}),ye.split("\n").map(function(q,ue){return(0,e.createComponentVNode)(2,o.Box,{children:q||(0,e.createVNode)(1,"br")},ue)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),D&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:te,icon:te?"lock":"lock-open",content:te?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return Z(!te)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:z.trim().length===0||G.trim().length===0||re.trim().length===0||ye.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,"create_story","",{author:z,channel:G,title:re.substr(0,127),body:ye.substr(0,1023),admin_locked:te?1:0})}return q}()})]})},B=function(w,T){var A=(0,t.useBackend)(T),x=A.act,E=A.data,P=E.photo,j=E.wanted,M=!!w.args.is_admin,O=w.args.scanned_user,D=(0,t.useLocalState)(T,"author",(j==null?void 0:j.author)||O||"Unknown"),F=D[0],U=D[1],_=(0,t.useLocalState)(T,"name",(j==null?void 0:j.title.substr(8))||""),z=_[0],H=_[1],$=(0,t.useLocalState)(T,"description",(j==null?void 0:j.body)||""),G=$[0],X=$[1],oe=(0,t.useLocalState)(T,"adminLocked",(j==null?void 0:j.admin_locked)===1||!1),re=oe[0],se=oe[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:!M,width:"100%",value:F,onInput:function(){function he(ye,Be){return U(Be)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:z,maxLength:"128",onInput:function(){function he(ye,Be){return H(Be)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:G,maxLength:"512",rows:"4",onInput:function(){function he(ye,Be){return X(Be)}return he}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:P,content:P?"Eject: "+P.name:"Insert Photo",tooltip:!P&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function he(){return x(P?"eject_photo":"attach_photo")}return he}()}),!!P&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+P.uid+".png",float:"right"})]}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:re,icon:re?"lock":"lock-open",content:re?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function he(){return se(!re)}return he}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!j,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function he(){x("clear_wanted_notice"),(0,y.modalClose)(T)}return he}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:F.trim().length===0||z.trim().length===0||G.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function he(){(0,y.modalAnswer)(T,w.id,"",{author:F,name:z.substr(0,127),description:G.substr(0,511),admin_locked:re?1:0})}return he}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",V),(0,y.modalRegisterBodyOverride)("manage_channel",V),(0,y.modalRegisterBodyOverride)("create_story",b),(0,y.modalRegisterBodyOverride)("wanted_notice",B)},64639:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.NuclearBomb=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return l.extended?(0,e.createComponentVNode)(2,o.Window,{width:350,height:290,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:l.authdisk?"eject":"id-card",selected:l.authdisk,content:l.diskname?l.diskname:"-----",tooltip:l.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:!l.authdisk,selected:l.authcode,content:l.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:l.anchored?"check":"times",selected:l.anchored,disabled:!l.authdisk,content:l.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:l.time,disabled:!l.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:l.safety?"check":"times",selected:l.safety,disabled:!l.authfull,content:l.safety?"ON":"OFF",tooltip:l.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:(l.timer,"bomb"),disabled:l.safety||!l.authfull,color:"red",content:l.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:350,height:115,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return N}()},45523:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(31068),m=n(91819),N=n(2971),y=n(84947),S=r.NumberInputModal=function(){function p(l,c){var f=(0,m.useBackend)(c),i=f.act,u=f.data,s=u.init_value,d=u.large_buttons,C=u.message,g=C===void 0?"":C,v=u.timeout,h=u.title,V=(0,m.useLocalState)(c,"input",s),b=V[0],B=V[1],I=function(){function A(x){x!==b&&B(x)}return A}(),w=function(){function A(x){x!==b&&B(x)}return A}(),T=120+(g.length>30?Math.ceil(g.length/3):0);return(0,e.createComponentVNode)(2,y.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(x){var E=window.event?x.which:x.keyCode;E===o.KEY_ENTER&&i("submit",{entry:b}),E===o.KEY_ESCAPE&&i("cancel")}return A}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{input:b,onClick:w,onChange:I})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:b})})]})})})]})}return p}(),k=function(l,c){var f=(0,m.useBackend)(c),i=f.act,u=f.data,s=u.min_value,d=u.max_value,C=u.init_value,g=u.round_value,v=l.input,h=l.onClick,V=l.onChange,b=Math.round(v!==s?Math.max(v/2,s):d/2),B=v===s&&s>0||v===1;return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===s,icon:"angle-double-left",onClick:function(){function I(){return h(s)}return I}(),tooltip:v===s?"Min":"Min ("+s+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!g,minValue:s,maxValue:d,onChange:function(){function I(w,T){return V(T)}return I}(),onEnter:function(){function I(w,T){return i("submit",{entry:T})}return I}(),value:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===d,icon:"angle-double-right",onClick:function(){function I(){return h(d)}return I}(),tooltip:v===d?"Max":"Max ("+d+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:B,icon:"divide",onClick:function(){function I(){return h(b)}return I}(),tooltip:B?"Split":"Split ("+b+")"})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Button,{disabled:v===C,icon:"redo",onClick:function(){function I(){return h(C)}return I}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},48314:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(84947),m=n(2971),N=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function i(u,s){var d=(0,t.useBackend)(s),C=d.act,g=d.data,v=g.hasOccupant,h=g.choice,V;return h?V=(0,e.createComponentVNode)(2,f):V=v?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function b(){return C("choiceOff")}return b}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function b(){return C("choiceOn")}return b}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:V})})]})})})}return i}(),l=function(u,s){var d=(0,t.useBackend)(s),C=d.data,g=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:g.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:N[g.stat][0],children:N[g.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxHealth,value:g.health/g.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:g[v[1]]/100,ranges:S,children:(0,a.round)(g[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:g.maxTemp,value:g.bodyTemperature/g.maxTemp,color:k[g.temperatureSuitability+3],children:[(0,a.round)(g.btCelsius),"\xB0C, ",(0,a.round)(g.btFaren),"\xB0F"]})}),!!g.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.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,m.LabeledList.Item,{label:"Pulse",children:[g.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedure",level:"2",children:g.inSurgery?(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g.surgeryName}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:g.stepName})]}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},f=function(u,s){var d=(0,t.useBackend)(s),C=d.act,g=d.data,v=g.verbose,h=g.health,V=g.healthAlarm,b=g.oxy,B=g.oxyAlarm,I=g.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function w(){return C(v?"verboseOff":"verboseOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function w(){return C(h?"healthOff":"healthOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:V,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("health_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function w(){return C(b?"oxyOff":"oxyOn")}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:B,stepPixelSize:5,ml:"0",onChange:function(){function w(T,A){return C("oxy_adj",{new:A})}return w}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){function w(){return C(I?"critOff":"critOn")}return w}()})})]})}},87511:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(84947),N=n(66586);function y(d,C){var g=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(g)return(g=g.call(d)).next.bind(g);if(Array.isArray(d)||(g=S(d))||C&&d&&typeof d.length=="number"){g&&(d=g);var v=0;return function(){return v>=d.length?{done:!0}:{done:!1,value:d[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(d,C){if(d){if(typeof d=="string")return k(d,C);var g=Object.prototype.toString.call(d).slice(8,-1);if(g==="Object"&&d.constructor&&(g=d.constructor.name),g==="Map"||g==="Set")return Array.from(d);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return k(d,C)}}function k(d,C){(C==null||C>d.length)&&(C=d.length);for(var g=0,v=new Array(C);gg},f=function(C,g){var v=C.name,h=g.name;if(!v||!h)return 0;var V=v.match(p),b=h.match(p);if(V&&b&&v.replace(p,"")===h.replace(p,"")){var B=parseInt(V[1],10),I=parseInt(b[1],10);return B-I}return c(v,h)},i=function(C,g){var v=C.searchText,h=C.source,V=C.title,b=C.color,B=C.sorted,I=h.filter(l(v));return B&&I.sort(f),h.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+h.length+")",children:I.map(function(w){return(0,e.createComponentVNode)(2,u,{thing:w,color:b},w.name)})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.color,b=C.thing;return(0,e.createComponentVNode)(2,o.Button,{color:V,tooltip:b.assigned_role?(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",mr:"0.5em",className:(0,N.classes)(["orbit_job16x16",b.assigned_role_sprite])})," ",b.assigned_role]}):"",tooltipPosition:"bottom",onClick:function(){function B(){return h("orbit",{ref:b.ref})}return B}(),children:[b.name,b.orbiters&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,children:["(",b.orbiters," ",(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),")"]})]})},s=r.Orbit=function(){function d(C,g){for(var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alive,B=V.antagonists,I=V.highlights,w=V.response_teams,T=V.auto_observe,A=V.dead,x=V.ghosts,E=V.misc,P=V.npcs,j=(0,t.useLocalState)(g,"searchText",""),M=j[0],O=j[1],D={},F=y(B),U;!(U=F()).done;){var _=U.value;D[_.antag]===void 0&&(D[_.antag]=[]),D[_.antag].push(_)}var z=Object.entries(D);z.sort(function($,G){return c($[0],G[0])});var H=function(){function $(G){for(var X=0,oe=[z.map(function(he){var ye=he[0],Be=he[1];return Be}),I,b,x,A,P,E];X0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:z.map(function($){var G=$[0],X=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G+" - ("+X.length+")",level:2,children:X.filter(l(M)).sort(f).map(function(oe){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:oe},oe.name)})},G)})}),I.length>0&&(0,e.createComponentVNode)(2,i,{title:"Highlights",source:I,searchText:M,color:"teal"}),(0,e.createComponentVNode)(2,i,{title:"Response Teams",source:w,searchText:M,color:"purple"}),(0,e.createComponentVNode)(2,i,{title:"Alive",source:b,searchText:M,color:"good"}),(0,e.createComponentVNode)(2,i,{title:"Ghosts",source:x,searchText:M,color:"grey"}),(0,e.createComponentVNode)(2,i,{title:"Dead",source:A,searchText:M,sorted:!1}),(0,e.createComponentVNode)(2,i,{title:"NPCs",source:P,searchText:M,sorted:!1}),(0,e.createComponentVNode)(2,i,{title:"Misc",source:E,searchText:M,sorted:!1})]})})}return d}()},54528:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),m=n(84947),N=n(50175);function y(d){if(d==null)throw new TypeError("Cannot destructure "+d)}var S=(0,N.createLogger)("OreRedemption"),k=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function d(C,g){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f)]})})})}return d}(),l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.id,B=V.points,I=V.disk,w=Object.assign({},(y(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},w,{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:b?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:b.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:k(b.points)})}),b&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:k(b.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:B>0?"good":"grey",bold:B>0&&"good",children:k(B)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!b,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),I?(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:I.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!I.design||!I.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:I.design&&(I.compatible?"good":"bad"),children:I.design||"N/A"})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.sheets,B=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,u,{ore:I},I.id)})]})))})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.alloys,B=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},B,{children:[(0,e.createComponentVNode)(2,i,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),b.map(function(I){return(0,e.createComponentVNode)(2,s,{ore:I},I.id)})]})))})},i=function(C,g){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;if(!(V.value&&V.amount<=0&&!(["metal","glass"].indexOf(V.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",V.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:V.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})},s=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",V.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:V.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:V.amount>=1?"good":"gray",align:"center",children:V.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:V.amount>=1?"good":"gray",bold:V.amount>=1,align:"center",children:V.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(V.amount,50),stepPixelSize:6,onChange:function(){function b(B,I){return h(V.value?"sheet":"alloy",{id:V.id,amount:I})}return b}()})})]})})}},55686:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(76521),N=n(33115),y=function(p){var l;try{l=N("./"+p+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw f}var c=l[p];return c||(0,m.routingError)("missingExport",p)},S=r.PAI=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.app_template,s=i.app_icon,d=i.app_title,C=y(u);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,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{p:1,fill:!0,scrollable:!0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s,mr:1}),d,u!=="pai_main_menu"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{ml:2,mb:0,content:"Back",icon:"arrow-left",onClick:function(){function g(){return f("Back")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Home",icon:"arrow-up",onClick:function(){function g(){return f("MASTER_back")}return g}()})],4)]}),children:(0,e.createComponentVNode)(2,C)})})})})})}return k}()},58717:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(76521),N=n(75168),y=function(c){var f;try{f=N("./"+c+".js")}catch(u){if(u.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw u}var i=f[c];return i||(0,m.routingError)("missingExport",c)},S=r.PDA=function(){function l(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.app,C=s.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var g=y(d.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,k)}),(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:d.icon,mr:1}),d.name]}),children:(0,e.createComponentVNode)(2,g)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return l}(),k=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.idInserted,C=s.idLink,g=s.stationTime,v=s.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 u("Authenticate")}return h}(),content:d?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function h(){return u("Eject")}return h}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:g})]})},p=function(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.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:[!!d.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:d.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return u("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:d.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:d.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){u("Home")}return C}()})})]})})}},78062:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(48300),N=r.Pacman=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.active,i=c.anchored,u=c.broken,s=c.emagged,d=c.fuel_type,C=c.fuel_usage,g=c.fuel_stored,v=c.fuel_cap,h=c.is_ai,V=c.tmp_current,b=c.tmp_max,B=c.tmp_overheat,I=c.output_max,w=c.power_gen,T=c.output_set,A=c.has_fuel,x=g/v,E=V/b,P=T*w,j=Math.round(g/C),M=Math.round(j/60),O=j>120?M+" minutes":j+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:225,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(u||!i)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!u&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!u&&!i&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!u&&!!i&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!A,selected:f,onClick:function(){function D(){return l("toggle_power")}return D}()}),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:T,minValue:1,maxValue:I*(s?2.5:1),step:1,className:"mt-1",onDrag:function(){function D(F,U){return l("change_power",{change_power:U})}return D}()}),"(",(0,m.formatPower)(P),")"]})})}),(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:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[V," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[B>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),B>20&&B<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),B>1&&B<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),B===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:f||h||!A,onClick:function(){function D(){return l("eject_fuel")}return D}()}),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:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:x,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(g/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:[!!A&&(C?O:"N/A"),!A&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},65823:function(L,r,n){"use strict";r.__esModule=!0,r.ParticleAccelerator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ParticleAccelerator=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.assembled,f=l.power,i=l.strength,u=l.max_strength;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Control Panel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Connect",onClick:function(){function s(){return p("scan")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",mb:"5px",children:(0,e.createComponentVNode)(2,t.Box,{color:c?"good":"bad",children:c?"Operational":"Error: Verify Configuration"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,disabled:!c,onClick:function(){function s(){return p("power")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Strength",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:!c||i===0,onClick:function(){function s(){return p("remove_strength")}return s}(),mr:"4px"}),i,(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:!c||i===u,onClick:function(){function s(){return p("add_strength")}return s}(),ml:"4px"})]})]})})})})}return N}()},67572:function(L,r,n){"use strict";r.__esModule=!0,r.PdaPainter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.PdaPainter=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.has_pda;return(0,e.createComponentVNode)(2,o.Window,{width:510,height:505,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:i?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,N)})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act;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,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"silver",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"download",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{width:"160px",textAlign:"center",content:"Insert PDA",onClick:function(){function i(){return f("insert_pda")}return i}()})]})})})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.pda_colors;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,horizontal:!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,children:(0,e.createComponentVNode)(2,t.Table,{className:"PdaPainter__list",children:Object.keys(u).map(function(s){return(0,e.createComponentVNode)(2,t.Table.Row,{onClick:function(){function d(){return f("choose_pda",{selectedPda:s})}return d}(),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+u[s][0],style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s})]},s)})})})})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.current_appearance,s=i.preview_appearance;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Current PDA",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",content:"Eject",color:"green",onClick:function(){function d(){return f("eject_pda")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"paint-roller",content:"Paint PDA",onClick:function(){function d(){return f("paint_pda")}return d}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Preview",children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"vertical-align":"middle",width:"160px",margin:"0px","margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor"}})})]})}},12456:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.PersonalCrafting=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.busy,u=f.category,s=f.display_craftable_only,d=f.display_compact,C=f.prev_cat,g=f.next_cat,v=f.subcategory,h=f.prev_subcat,V=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:[!!i&&(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:u,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:s?"check-square-o":"square-o",selected:s,onClick:function(){function b(){return c("toggle_recipes")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:d?"check-square-o":"square-o",selected:d,onClick:function(){function b(){return c("toggle_compact")}return b}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function b(){return c("backwardCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function b(){return c("forwardCat")}return b}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function b(){return c("backwardSubCat")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function b(){return c("forwardSubCat")}return b}()})]}),d?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.display_craftable_only,u=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:d.ref})}return C}()}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)}),!i&&s.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),d.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:d.req_text,content:"Requirements",color:"transparent"}),d.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:d.tool_text,content:"Tools",color:"transparent"})]},d.name)})]})})},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.display_craftable_only,u=f.can_craft,s=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:d.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)}),!i&&s.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:d.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:d.req_text}),d.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:d.tool_text})]})},d.name)})]})}},72143:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Photocopier=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:440,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.Section,{title:"Photocopier",color:"silver",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Copies:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"2em",bold:!0,children:f.copynumber}),(0,e.createComponentVNode)(2,t.Stack.Item,{float:"right",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"minus",textAlign:"center",content:"",onClick:function(){function i(){return c("minus")}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"plus",textAlign:"center",content:"",onClick:function(){function i(){return c("add")}return i}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Toner:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,children:f.toner})]}),(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Document:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.copyitem&&!f.mob,content:f.copyitem?f.copyitem:f.mob?f.mob+"'s ass!":"document",onClick:function(){function i(){return c("removedocument")}return i}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:12,children:"Inserted Folder:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!f.folder,content:f.folder?f.folder:"folder",onClick:function(){function i(){return c("removefolder")}return i}()})})]})]}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,N)}),(0,e.createComponentVNode)(2,y)]})})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.issilicon;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"copy",float:"center",textAlign:"center",content:"Copy",onClick:function(){function u(){return c("copy")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file-import",float:"center",textAlign:"center",content:"Scan",onClick:function(){function u(){return c("scandocument")}return u}()}),!!i&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"file",color:"green",float:"center",textAlign:"center",content:"Print Text",onClick:function(){function u(){return c("ai_text")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"image",color:"green",float:"center",textAlign:"center",content:"Print Image",onClick:function(){function u(){return c("ai_pic")}return u}()})],4)],0)},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Scanned Files",children:f.files.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print",disabled:f.toner<=0,onClick:function(){function u(){return c("filecopy",{uid:i.uid})}return u}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash-alt",content:"Delete",color:"bad",onClick:function(){function u(){return c("deletefile",{uid:i.uid})}return u}()})]})},i.name)})})}},82020:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier220=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(72026),N=n(90955),y=n(37843);function S(f,i){var u=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(u)return(u=u.call(f)).next.bind(u);if(Array.isArray(f)||(u=k(f))||i&&f&&typeof f.length=="number"){u&&(f=u);var s=0;return function(){return s>=f.length?{done:!0}:{done:!1,value:f[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(f,i){if(f){if(typeof f=="string")return p(f,i);var u=Object.prototype.toString.call(f).slice(8,-1);if(u==="Object"&&f.constructor&&(u=f.constructor.name),u==="Map"||u==="Set")return Array.from(f);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return p(f,i)}}function p(f,i){(i==null||i>f.length)&&(i=f.length);for(var u=0,s=new Array(i);uf?this.substring(0,f)+"...":this};var l=function(i,u){u===void 0&&(u="");var s=(0,y.createSearch)(u,function(d){return d.altername});return(0,N.flow)([(0,m.filter)(function(d){return d==null?void 0:d.altername}),u&&(0,m.filter)(s),(0,m.sortBy)(function(d){return d.id})])(i)},c=r.Photocopier220=function(){function f(i,u){for(var s=(0,a.useBackend)(u),d=s.act,C=s.data,g=C.copies,v=C.maxcopies,h=(0,a.useLocalState)(u,"searchText",""),V=h[0],b=h[1],B=l((0,m.sortBy)(function(M){return M.category})(C.forms||[]),V),I=[],w=S(B),T;!(T=w()).done;){var A=T.value;I.includes(A.category)||I.push(A.category)}var x=(0,a.useLocalState)(u,"number",0),E=x[0],P=x[1],j;return C.category===""?j=B:j=B.filter(function(M){return M.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return d("removedocument")}return M}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return d("removefolder")}return M}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return d("print_form")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return d("ai_pic")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function M(){return d("copy")}return M}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function M(){return d("ai_text")}return M}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:g,stepPixelSize:10,onChange:function(){function M(O,D){return d("copies",{new:D})}return M}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function M(){return d("choose_category",{category:""})}return M}()})}),I.map(function(M){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:M,selected:C.category===M,onClick:function(){function O(){return d("choose_category",{category:M})}return O}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(O,D){return b(D)}return M}()}),children:j.map(function(M){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:M.altername.trimLongStr(37),tooltip:M.altername,selected:C.form_id===M.id,onClick:function(){function O(){return d("choose_form",{path:M.path,id:M.id})}return O}()})},M.path)})})})]})})})}return f}()},47051:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=["tempKey"];function N(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(l,c){var f=l.tempKey,i=N(l,m),u=y[f];if(!u)return null;var s=(0,a.useBackend)(c),d=s.data,C=s.act,g=d.currentTemp,v=u.label,h=u.icon,V=f===g,b=function(){C("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:"transparent",selected:V,onClick:b},i,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},k=r.PoolController=function(){function p(l,c){for(var f=(0,a.useBackend)(c),i=f.data,u=i.emagged,s=i.currentTemp,d=y[s]||y.normal,C=d.label,g=d.color,v=[],h=0,V=Object.entries(y);h50?"battery-half":"battery-quarter")||g==="C"&&"bolt"||g==="F"&&"battery-full"||g==="M"&&"slash",color:g==="N"&&(v>50?"yellow":"red")||g==="C"&&"yellow"||g==="F"&&"green"||g==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};u.defaultHooks=m.pureComponentHooks;var s=function(C){var g,v,h=C.status;switch(h){case"AOn":g=!0,v=!0;break;case"AOff":g=!0,v=!1;break;case"On":g=!1,v=!0;break;case"Off":g=!1,v=!1;break}var V=(v?"On":"Off")+(" ["+(g?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:g?void 0:"M",title:V})};s.defaultHooks=m.pureComponentHooks},15164:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(88488),m=n(22677),N=n(51185),y=n(69774),S=n(84947),k=r.PrisonerImplantManager=function(){function p(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.loginState,d=u.prisonerInfo,C=u.chemicalInfo,g=u.trackingInfo,v;if(!s.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.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:d.name?"eject":"id-card",selected:d.name,content:d.name?d.name:"-----",tooltip:d.name?"Eject ID":"Insert ID",onClick:function(){function V(){return i("id_card")}return V}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[d.points!==null?d.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:d.points===null,content:"Reset",onClick:function(){function V(){return i("reset_points")}return V}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[d.goal!==null?d.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:d.goal===null,content:"Edit",onClick:function(){function V(){return(0,m.modalOpen)(c,"set_points")}return V}()})]}),(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:d.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:g.map(function(V){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: ",V.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:V.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:V.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 b(){return(0,m.modalOpen)(c,"warn",{uid:V.uid})}return b}()})})]})]},V.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(V){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: ",V.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:V.volume})}),h.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:V.volumef;return(0,e.createComponentVNode)(2,o.Stack,{className:"PrizeCounter__Item",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{lineHeight:"0",align:"center",children:(0,e.createVNode)(1,"div",(0,a.classes)(["prize_counter64x64",v.imageID]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,mt:1,children:v.name}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{mb:1,children:v.desc})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:(0,a.classes)(["PrizeCounter__BuyButton",h&&"PrizeCounter__BuyButton--disabled"]),icon:"ticket",content:v.cost,tooltip:h?"Not enough tickets.":null,tooltipPosition:"top-end",onClick:function(){function V(){return!h&&l("purchase",{purchase:v.itemID})}return V}()})})]},v.name)})})})})})})}return y}()},82443:function(L,r,n){"use strict";r.__esModule=!0,r.RCD=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(22677),N=n(14635),y=r.RCD=function(){function i(u,s){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:670,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,c)]})})]})}return i}(),S=function(u,s){var d=(0,a.useBackend)(s),C=d.data,g=C.matter,v=C.max_matter,h=v*.7,V=v*.25;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Matter Storage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[h,1/0],average:[V,h],bad:[-1/0,V]},value:g,maxValue:v,children:(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:g+" / "+v+" units"})})})})},k=function(){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Construction Type",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,p,{mode_type:"Floors and Walls"}),(0,e.createComponentVNode)(2,p,{mode_type:"Airlocks"}),(0,e.createComponentVNode)(2,p,{mode_type:"Windows"}),(0,e.createComponentVNode)(2,p,{mode_type:"Deconstruction"})]})})})},p=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=u.mode_type,h=g.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",content:v,selected:h===v?1:0,onClick:function(){function V(){return C("mode",{mode:v})}return V}()})})},l=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.door_name,h=g.electrochromic,V=g.airlock_glass;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Airlock Settings",children:(0,e.createComponentVNode)(2,t.Stack,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"transparent",icon:"pen-alt",content:(0,e.createFragment)([(0,e.createTextVNode)("Rename: "),(0,e.createVNode)(1,"b",null,v,0)],0),onClick:function(){function b(){return(0,m.modalOpen)(s,"renameAirlock")}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:V===1&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:h?"toggle-on":"toggle-off",content:"Electrochromic",selected:h,onClick:function(){function b(){return C("electrochromic")}return b}()})})]})})})},c=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.tab,h=g.locked,V=g.one_access,b=g.selected_accesses,B=g.regions;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Tabs,{fluid:!0,children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"cog",selected:v===1,onClick:function(){function I(){return C("set_tab",{tab:1})}return I}(),children:"Airlock Types"}),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,icon:"list",onClick:function(){function I(){return C("set_tab",{tab:2})}return I}(),children:"Airlock Access"})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v===1?(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Types",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:0})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f,{check_number:1})})]})}):v===2&&h?(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Access",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock-open",content:"Unlock",onClick:function(){function I(){return C("set_lock",{new_lock:"unlock"})}return I}()}),children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"lock",size:"5",mb:3}),(0,e.createVNode)(1,"br"),"Airlock access selection is currently locked."]})})}):(0,e.createComponentVNode)(2,N.AccessList,{sectionButtons:(0,e.createComponentVNode)(2,t.Button,{icon:"lock",content:"Lock",onClick:function(){function I(){return C("set_lock",{new_lock:"lock"})}return I}()}),usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:V,content:"One",onClick:function(){function I(){return C("set_one_access",{access:"one"})}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!V,width:4,content:"All",onClick:function(){function I(){return C("set_one_access",{access:"all"})}return I}()})],4),accesses:B,selectedList:b,accessMod:function(){function I(w){return C("set",{access:w})}return I}(),grantAll:function(){function I(){return C("grant_all")}return I}(),denyAll:function(){function I(){return C("clear_all")}return I}(),grantDep:function(){function I(w){return C("grant_region",{region:w})}return I}(),denyDep:function(){function I(w){return C("deny_region",{region:w})}return I}()})})],4)},f=function(u,s){for(var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.door_types_ui_list,h=g.door_type,V=u.check_number,b=[],B=0;B0?"envelope-open-text":"envelope",onClick:function(){function B(){return C("setScreen",{setScreen:6})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Assistance",icon:"hand-paper",onClick:function(){function B(){return C("setScreen",{setScreen:1})}return B}()}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Supplies",icon:"box",onClick:function(){function B(){return C("setScreen",{setScreen:2})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Request Secondary Goal",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:11})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Relay Anonymous Information",icon:"comment",onClick:function(){function B(){return C("setScreen",{setScreen:3})}return B}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Print Shipping Label",icon:"tag",onClick:function(){function B(){return C("setScreen",{setScreen:9})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function B(){return C("setScreen",{setScreen:10})}return B}()})]})}),!!h&&(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,lineHeight:3,color:"translucent",content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function B(){return C("setScreen",{setScreen:8})}return B}()})})]})})},y=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.department,h=[],V;switch(u.purpose){case"ASSISTANCE":h=g.assist_dept,V="Request assistance from another department";break;case"SUPPLIES":h=g.supply_dept,V="Request supplies from another department";break;case"INFO":h=g.info_dept,V="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:V,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function b(){return C("setScreen",{setScreen:0})}return b}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(b){return b!==v}).map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function B(){return C("writeInput",{write:b,priority:"1"})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function B(){return C("writeInput",{write:b,priority:"2"})}return B}()})]},b)})})})})},S=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v;switch(u.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},k=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v,h;switch(u.type){case"MESSAGES":v=g.message_log,h="Message Log";break;case"SHIPPING":v=g.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),children:v.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:[V.map(function(b,B){return(0,e.createVNode)(1,"div",null,b,0,null,B)}),(0,e.createVNode)(1,"hr")]},V)})})})},p=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.recipient,h=g.message,V=g.msgVerified,b=g.msgStamped;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function B(){return C("setScreen",{setScreen:0})}return B}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:b})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function B(){return C("department",{department:v})}return B}()})})})],4)},l=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.message,h=g.announceAuth;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Station-Wide Announcement",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Edit Message",icon:"edit",onClick:function(){function V(){return C("writeAnnouncement")}return V}()})],4),children:v})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function V(){return C("sendAnnouncement")}return V}()})]})})],4)},c=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.shipDest,h=g.msgVerified,V=g.ship_dept;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"center",children:(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 b(){return C("setScreen",{setScreen:0})}return b}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function b(){return C("printLabel")}return b}()})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Destinations",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:V.map(function(b){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:b,textAlign:"right",className:"candystripe",children:(0,e.createComponentVNode)(2,t.Button,{content:v===b?"Selected":"Select",selected:v===b,onClick:function(){function B(){return C("shipSelect",{shipSelect:b})}return B}()})},b)})})})})],4)},f=function(u,s){var d=(0,a.useBackend)(s),C=d.act,g=d.data,v=g.secondaryGoalAuth,h=g.secondaryGoalEnabled;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Request Secondary Goal",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function V(){return C("setScreen",{setScreen:0})}return V}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:[h?v?(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Swipe your ID card to authenticate yourself"}):(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",color:"label",children:"Complete your current goal first!"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:2,textAlign:"center",content:"Request Secondary Goal",icon:"clipboard-list",disabled:!(v&&h),onClick:function(){function V(){return C("requestSecondaryGoal")}return V}()})]})})],4)}},51939:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(28823),a=n(91819),t=n(84947),o=n(2971),m=n(63752),N=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.MAIN,render:function(){function u(){return(0,e.createComponentVNode)(2,m.MainMenu)}return u}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.LEVELS,render:function(){function u(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return u}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DISK,render:function(){function u(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return u}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.DESTROY,render:function(){function u(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return u}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function u(s){return s===N.LATHE||s===N.IMPRINTER}return u}(),render:function(){function u(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return u}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:N.SETTINGS,render:function(){function u(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return u}()}),i?(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:i})})}):null]})})})}return k}()},50239:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.CurrentLevels=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=k.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(l,c){var f=l.name,i=l.level,u=l.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: ",i]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",u]})]},f)})]})}return m}()},24183:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),m=n(51939),N="design",y="tech",S=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=C.act,h=g.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 V(){return v("updt_tech")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function V(){return v("clear_tech")}return V}()}),(0,e.createComponentVNode)(2,l)]})]}):null},k=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=C.act,h=g.disk_data;if(!h)return null;var V=h.name,b=h.lathe_types,B=h.materials,I=b.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:V}),I?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:I}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),B.map(function(w){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,w.name,0,{style:{"text-transform":"capitalize"}})," x ",w.amount]},w.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 w(){return v("updt_design")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function w(){return v("clear_design")}return w}()}),(0,e.createComponentVNode)(2,l)]})]})},p=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=g.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,l)]})]})},l=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=C.act,h=g.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function V(){var b=h===y?"eject_tech":"eject_design";v(b)}return V}()}):null},c=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=g.disk_data,h=g.disk_type,V=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case N:return(0,e.createComponentVNode)(2,k);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:V()})},f=function(s,d){var C=(0,a.useBackend)(d),g=C.data,v=C.act,h=g.disk_type,V=g.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:V.sort(function(b,B){return b.name.localeCompare(B.name)}).map(function(b){var B=b.name,I=b.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:B,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function w(){h===y?v("copy_tech",{id:I}):v("copy_design",{id:I})}return w}()})},I)})})})})},i=r.DataDiskMenu=function(){function u(s,d){var C=(0,a.useBackend)(d),g=C.data,v=g.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,f)}return h}()})],4):null}return u}()},72751:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.DeconstructionMenu=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_item,c=k.linked_destroy;return c?l?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",l.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:l.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 m}()},51802:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),m=r.LatheCategory=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.data,l=k.act,c=p.category,f=p.matching_designs,i=p.menu,u=i===4,s=u?"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(d){var C=d.id,g=d.name,v=d.can_build,h=d.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:g,disabled:v<1,onClick:function(){function V(){return l(s,{id:C,amount:1})}return V}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function V(){return l(s,{id:C,amount:5})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function V(){return l(s,{id:C,amount:10})}return V}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(V){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",V.is_red?"color-red":null,[V.amount,(0,e.createTextVNode)(" "),V.name],0)],0)})})]},C)})})]})}return N}()},47349:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheChemicalStorage=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_chemicals,c=k.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 i=c?"disposeallP":"disposeallI";p(i)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(f){var i=f.volume,u=f.name,s=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+i+" of "+u,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function d(){var C=c?"disposeP":"disposeI";p(C,{id:s})}return d}()})},s)})})]})}return m}()},73492:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),m=r.LatheMainMenu=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.data,l=k.act,c=p.menu,f=p.categories,i=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:i+" 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(u){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:u,onClick:function(){function s(){l("setCategory",{category:u})}return s}()})},u)})})]})}return N}()},87115:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterialStorage=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=S.act,l=k.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:l.map(function(c){var f=c.id,i=c.amount,u=c.name,s=function(){function v(h){var V=k.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(V,{id:f,amount:h})}return v}(),d=Math.floor(i/2e3),C=i<1,g=d===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",i," of ",u]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",d," sheet",g,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return s(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return s("custom")}return v}()}),i>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return s(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return s(50)}return v}()})],0):null})]},f)})})})}return m}()},2345:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheMaterials=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data,p=k.total_materials,l=k.max_materials,c=k.max_chemicals,f=k.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}),l?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+l}):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 m}()},45805:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(28823),a=n(91819),t=n(28078),o=n(63752),m=n(2971),N=n(51939),y=r.LatheMenu=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.data,f=c.menu,i=c.linked_lathe,u=c.linked_imprinter;return f===4&&!i?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!u?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CATEGORY,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_MAT_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return s}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:N.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function s(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return s}()})]})}return S}()},92497:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LatheSearch=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(l,c){return k("search",{to_search:c})}return p}()})})}return m}()},25242:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),m=n(51939),N=r.MainMenu=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.disk_type,f=l.linked_destroy,i=l.linked_lathe,u=l.linked_imprinter,s=l.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!i,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(d){var C=d.name,g=d.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:g},C)})})]})}return y}()},29933:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.RndNavButton=function(){function m(N,y){var S=N.icon,k=N.children,p=N.disabled,l=N.content,c=(0,a.useBackend)(y),f=c.data,i=c.act,u=f.menu,s=f.submenu,d=u,C=s;return N.menu!==null&&N.menu!==void 0&&(d=N.menu),N.submenu!==null&&N.submenu!==void 0&&(C=N.submenu),(0,e.createComponentVNode)(2,t.Button,{content:l,icon:S,disabled:p,onClick:function(){function g(){i("nav",{menu:d,submenu:C})}return g}(),children:k})}return m}()},59959:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(28823),a=n(63752),t=n(2971),o=n(51939),m=r.RndNavbar=function(){function N(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return N}()},28078:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(91819),a=r.RndRoute=function(){function t(o,m){var N=o.render,y=(0,e.useBackend)(m),S=y.data,k=S.menu,p=S.submenu,l=function(){function f(i,u){return i==null?!0:typeof i=="function"?i(u):i===u}return f}(),c=l(o.menu,k)&&l(o.submenu,p);return c?N():null}return t}()},59991:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(63752),m=n(51939),N=r.SettingsMenu=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=p.act,f=l.sync,i=l.admin,u=l.linked_destroy,s=l.linked_lathe,d=l.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function g(){c("sync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function g(){c("togglesync")}return g}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),i===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function g(){return c("maxresearch")}return g}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function g(){return c("find_device")}return g}()}),(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:[u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"destroy"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),s?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){c("disconnect",{item:"lathe"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function g(){return c("disconnect",{item:"imprinter"})}return g}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return y}()},63752:function(L,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(50239);r.CurrentLevels=e.CurrentLevels;var a=n(24183);r.DataDiskMenu=a.DataDiskMenu;var t=n(72751);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(51802);r.LatheCategory=o.LatheCategory;var m=n(47349);r.LatheChemicalStorage=m.LatheChemicalStorage;var N=n(73492);r.LatheMainMenu=N.LatheMainMenu;var y=n(2345);r.LatheMaterials=y.LatheMaterials;var S=n(87115);r.LatheMaterialStorage=S.LatheMaterialStorage;var k=n(45805);r.LatheMenu=k.LatheMenu;var p=n(92497);r.LatheSearch=p.LatheSearch;var l=n(25242);r.MainMenu=l.MainMenu;var c=n(59959);r.RndNavbar=c.RndNavbar;var f=n(29933);r.RndNavButton=f.RndNavButton;var i=n(28078);r.RndRoute=i.RndRoute;var u=n(59991);r.SettingsMenu=u.SettingsMenu},73407:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(37843),N=function(k,p){var l=k/p;return l<=.2?"good":l<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.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(i,u){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(i.name),children:i.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:i.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:N(i.brute_damage,i.max_damage),children:i.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:N(i.electronic_damage,i.max_damage),children:i.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:i.powered?"good":"bad",children:i.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:i.status?"good":"bad",children:i.status?"Yes":"No"})]})})]})},u)})})})}return S}()},48356:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.RoboticsControlConsole=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.can_hack,i=c.safety,u=c.show_lock_all,s=c.cyborgs,d=s===void 0?[]:s;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Lock Down",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i?"lock":"unlock",content:i?"Disable Safety":"Enable Safety",selected:i,onClick:function(){function C(){return l("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lock",disabled:i,content:"Lock ALL Cyborgs",color:"bad",onClick:function(){function C(){return l("masslock",{})}return C}()})]}),(0,e.createComponentVNode)(2,N,{cyborgs:d,can_hack:f})]})})}return y}(),N=function(S,k){var p=S.cyborgs,l=S.can_hack,c=(0,a.useBackend)(k),f=c.act,i=c.data,u="Detonate";return i.detonate_cooldown>0&&(u+=" ("+i.detonate_cooldown+"s)"),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 d(){return f("hackbot",{uid:s.uid})}return d}()}),(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:!i.auth,onClick:function(){function d(){return f("stopbot",{uid:s.uid})}return d}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:u,disabled:!i.auth||i.detonate_cooldown>0,color:"bad",onClick:function(){function d(){return f("killbot",{uid:s.uid})}return d}()})],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."})}},33122:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Safe=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.dial,s=i.open,d=i.locked,C=i.contents;return(0,e.createComponentVNode)(2,o.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,t.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),s?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{as:"img",className:"Safe--dial",src:"safe_dial.png",style:{transform:"rotate(-"+3.6*u+"deg)","z-index":0}})]}),!s&&(0,e.createComponentVNode)(2,S)]})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.dial,s=i.open,d=i.locked,C=function(v,h){return(0,e.createComponentVNode)(2,t.Button,{disabled:s||h&&!d,icon:"arrow-"+(h?"right":"left"),content:(h?"Right":"Left")+" "+v,iconRight:h,onClick:function(){function V(){return f(h?"turnleft":"turnright",{num:v})}return V}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:d,icon:s?"lock":"lock-open",content:s?"Close":"Open",mb:"0.5rem",onClick:function(){function g(){return f("open")}return g}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{position:"absolute",children:[C(50),C(10),C(1)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[C(1,!0),C(10,!0),C(50,!0)]}),(0,e.createComponentVNode)(2,t.Box,{className:"Safe--dialer--number",children:u})]})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.contents;return(0,e.createComponentVNode)(2,t.Box,{className:"Safe--contents",overflow:"auto",children:u.map(function(s,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mb:"0.5rem",onClick:function(){function C(){return f("retrieve",{index:d+1})}return C}(),children:[(0,e.createComponentVNode)(2,t.Box,{as:"img",src:s.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),s.name]}),(0,e.createVNode)(1,"br")],4,s)})})},S=function(p,l){return(0,e.createComponentVNode)(2,t.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,t.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,t.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},46748:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SatelliteControl=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.satellites,f=l.notice,i=l.meteor_shield,u=l.meteor_shield_coverage,s=l.meteor_shield_coverage_max,d=l.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:[i&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d>=100?"good":"average",value:u,maxValue:s,children:[d," %"]})}),(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:l.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function g(){return p("toggle",{id:C.id})}return g}()})]},C.id)})]})})]})})}return N}()},46504:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),m=n(84947),N=n(99753),y=n(31068),S=r.SecureStorage=function(){function c(f,i){return(0,e.createComponentVNode)(2,m.Window,{theme:"securestorage",height:500,width:280,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p)})})})})}return c}(),k=function(f,i){var u=(0,t.useBackend)(i),s=u.act,d=window.event?f.which:f.keyCode;if(d===y.KEY_ENTER){f.preventDefault(),s("keypad",{digit:"E"});return}if(d===y.KEY_ESCAPE){f.preventDefault(),s("keypad",{digit:"C"});return}if(d===y.KEY_BACKSPACE){f.preventDefault(),s("backspace");return}if(d>=y.KEY_0&&d<=y.KEY_9){f.preventDefault(),s("keypad",{digit:d-y.KEY_0});return}if(d>=y.KEY_NUMPAD_0&&d<=y.KEY_NUMPAD_9){f.preventDefault(),s("keypad",{digit:d-y.KEY_NUMPAD_0});return}},p=function(f,i){var u=(0,t.useBackend)(i),s=u.act,d=u.data,C=d.locked,g=d.no_passcode,v=d.emagged,h=d.user_entered_code,V=[["1","2","3"],["4","5","6"],["7","8","9"],["C","0","E"]],b=g?"":C?"bad":"good";return(0,e.createComponentVNode)(2,o.Section,{fill:!0,onKeyDown:function(){function B(I){return k(I,i)}return B}(),children:[(0,e.createComponentVNode)(2,o.Stack.Item,{height:7.3,children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["SecureStorage__displayBox","SecureStorage__displayBox--"+b]),height:"100%",children:v?"ERROR":h})}),(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(B){return(0,e.createComponentVNode)(2,N.TableRow,{children:B.map(function(I){return(0,e.createComponentVNode)(2,N.TableCell,{children:(0,e.createComponentVNode)(2,l,{number:I})},I)})},B[0])})})]})},l=function(f,i){var u=(0,t.useBackend)(i),s=u.act,d=u.data,C=f.number;return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"60px",lineHeight:1.25,width:"80px",className:(0,a.classes)(["SecureStorage__Button","SecureStorage__Button--keypad","SecureStorage__Button--"+C]),onClick:function(){function g(){return s("keypad",{digit:C})}return g}()})}},54529:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=n(84947),N=n(22677),y=n(51185),S=n(69774),k=n(76519),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},l=function(h,V){(0,N.modalOpen)(h,"edit",{field:V.edit,value:V.value})},c=r.SecurityRecords=function(){function v(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.loginState,T=I.currentPage,A;if(w.logged_in)T===1?A=(0,e.createComponentVNode)(2,i):T===2&&(A=(0,e.createComponentVNode)(2,d));else return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,N.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,k.TemporaryNotice),(0,e.createComponentVNode)(2,f),A]})})]})}return v}(),f=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.currentPage,T=I.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:w===1,onClick:function(){function A(){return B("page",{page:1})}return A}(),children:"List Records"}),w===2&&T&&!T.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:w===2,children:["Record: ",T.fields[0].value]})]})})},i=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.records,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[1],E=(0,t.useLocalState)(V,"sortId","name"),P=E[0],j=E[1],M=(0,t.useLocalState)(V,"sortOrder",!0),O=M[0],D=M[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,s)}),(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,u,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,u,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,u,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,u,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,u,{id:"status",children:"Criminal Status"})]}),w.filter((0,a.createSearch)(A,function(F){return F.name+"|"+F.id+"|"+F.rank+"|"+F.fingerprint+"|"+F.status})).sort(function(F,U){var _=O?1:-1;return F[P].localeCompare(U[P])*_}).map(function(F){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[F.status],onClick:function(){function U(){return B("view",{uid_gen:F.uid_gen,uid_sec:F.uid_sec})}return U}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",F.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:F.status})]},F.id)})]})})})],4)},u=function(h,V){var b=(0,t.useLocalState)(V,"sortId","name"),B=b[0],I=b[1],w=(0,t.useLocalState)(V,"sortOrder",!0),T=w[0],A=w[1],x=h.id,E=h.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!==x&&"transparent",fluid:!0,onClick:function(){function P(){B===x?A(!T):(I(x),A(!0))}return P}(),children:[E,B===x&&(0,e.createComponentVNode)(2,o.Icon,{name:T?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},s=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=(0,t.useLocalState)(V,"searchText",""),A=T[0],x=T[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 E(){return B("new_general")}return E}()})}),(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 E(){return(0,N.modalOpen)(V,"print_cell_log")}return E}()})}),(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 E(P,j){return x(j)}return E}()})})]})},d=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.isPrinting,T=I.general,A=I.security;return!T||!T.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,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 x(){return B("print_record")}return x}()}),(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 x(){return B("delete_general")}return x}()})],4),children:(0,e.createComponentVNode)(2,C)})}),!A||!A.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 x(){return B("new_security")}return x}()}),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:A.empty,content:"Delete Record",onClick:function(){function x(){return B("delete_security")}return x}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:A.fields.map(function(x,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:x.field,prewrap:!0,children:[(0,a.decodeHtmlEntities)(x.value),!!x.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:x.line_break?"1rem":"initial",onClick:function(){function P(){return l(V,x)}return P}()})]},E)})})})})}),(0,e.createComponentVNode)(2,g)],4)],0)},C=function(h,V){var b=(0,t.useBackend)(V),B=b.data,I=B.general;return!I||!I.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:I.fields.map(function(w,T){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,prewrap:!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 A(){return l(V,w)}return A}()})]},T)})})}),!!I.has_photos&&I.photos.map(function(w,T){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"}}),(0,e.createVNode)(1,"br"),"Photo #",T+1]},T)})]})},g=function(h,V){var b=(0,t.useBackend)(V),B=b.act,I=b.data,w=I.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 T(){return(0,N.modalOpen)(V,"comment_add")}return T}()}),children:w.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):w.comments.map(function(T,A){return(0,e.createComponentVNode)(2,o.Box,{prewrap:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:T.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),T.text||T,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function x(){return B("comment_delete",{id:A+1})}return x}()})]},A)})})})}},79315:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SeedExtractor=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.stored_seeds,i=c.vend_amount;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:400,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,{fill:!0,scrollable:!0,title:"Stored Seeds",buttons:(0,e.createFragment)([(0,e.createTextVNode)("Set Amount to be Vended:\xA0"),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:i,width:"40px",minValue:1,maxValue:25,stepPixelSize:3,onDrag:function(){function u(s,d){return l("set_vend_amount",{vend_amount:d})}return u}()})],4),children:f!=null&&f.length?(0,e.createComponentVNode)(2,N):"No Seeds"})})})})}return y}(),N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.stored_seeds;return(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Lifespan"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Endurance"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Maturation"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Production"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Yield"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Potency"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Stock"})]}),f.map(function(i,u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+i.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),i.name,i.variant?" ("+i.variant+")":""]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.lifespan}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.endurance}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.maturation}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.production}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.yield}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.potency}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:["(",i.amount," Left)\xA0",(0,e.createComponentVNode)(2,t.Button,{ml:1,content:"Vend",icon:"arrow-circle-down",onClick:function(){function s(){return l("vend",{seedid:i.id,seedvariant:i.variant})}return s}()})]})]},u)})]})}},58578:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ShuttleConsole=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;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:"Location",children:l.status?l.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),!!l.shuttle&&(!!l.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Send to ",children:l.docking_ports.map(function(c){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:c.name,onClick:function(){function f(){return p("move",{move:c.id})}return f}()},c.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!l.admin_controlled&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"Request Authorization",disabled:!l.status,onClick:function(){function c(){return p("request")}return c}()})})],0))]})})})})}return N}()},11154:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.ShuttleManipulator=function(){function k(p,l){var c=(0,a.useLocalState)(l,"tabIndex",0),f=c[0],i=c[1],u=function(){function s(d){switch(d){case 0:return(0,e.createComponentVNode)(2,N);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return s}();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 s(){return i(0)}return s}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function s(){return i(1)}return s}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function s(){return i(2)}return s}(),icon:"tools",children:"Modification"},"Modification")]}),u(f)]})})})}return k}(),N=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:u.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:s.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:s.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:s.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:s.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 d(){return f("jump_to",{type:"mobile",id:s.id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function d(){return f("fast_travel",{id:s.id})}return d}()})]})]})},s.name)})})},y=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.templates_tabs,s=i.existing_shuttle,d=i.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===s.id,icon:"file",onClick:function(){function g(){return f("select_template_category",{cat:C})}return g}(),children:C},C)})}),!!s&&d[s.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function g(){return f("select_template",{shuttle_id:C.shuttle_id})}return g}()})})]})},C.name)})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.existing_shuttle,s=i.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[u?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+u.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:u.status}),u.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:u.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 d(){return f("jump_to",{type:"mobile",id:u.id})}return d}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),s?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.description}),s.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:s.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 d(){return f("preview",{shuttle_id:s.shuttle_id})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function d(){return f("load",{shuttle_id:s.shuttle_id})}return d}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},80699:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},k=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function d(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=b?(0,e.createComponentVNode)(2,l):(0,e.createComponentVNode)(2,s);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:B}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i)})]})})})}return d}(),l=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)],4)},c=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.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:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){function I(){return h("auto_eject_dead_"+(B?"off":"on"))}return I}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function I(){return h("ejectify")}return I}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(b.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:N[b.stat][0],children:N[b.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:k[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius,0),"\xB0C,",(0,a.round)(b.btFaren,0),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.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,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[b.pulse," BPM"]})],4)]})})},f=function(C,g){var v=(0,t.useBackend)(g),h=v.data,V=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(b,B){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:b[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:V[b[1]]/100,ranges:S,children:(0,a.round)(V[b[1]],0)},B)},B)})})})},i=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.hasOccupant,B=V.isBeakerLoaded,I=V.beakerMaxSpace,w=V.beakerFreeSpace,T=V.dialysis,A=T&&w>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!B||w<=0||!b,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function x(){return h("togglefilter")}return x}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,icon:"eject",content:"Eject",onClick:function(){function x(){return h("removebeaker")}return x}()})],4),children:B?(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:I,value:w/I,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[w,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},u=function(C,g){var v=(0,t.useBackend)(g),h=v.act,V=v.data,b=V.occupant,B=V.chemicals,I=V.maxchem,w=V.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:B.map(function(T,A){var x="",E;return T.overdosing?(x="bad",E=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(x="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:T.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:I,value:T.occ_amount/I,color:x,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",I,"u"]}),w.map(function(P,j){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+P>I||b.stat===2,icon:"syringe",content:"Inject "+P+"u",title:"Inject "+P+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:P})}return M}()},j)})]})})},A)})})},s=function(C,g){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."]})})})}},42439:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SlotMachine=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;if(l.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:90,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 l.plays===1?c=l.plays+" player has tried their luck today!":c=l.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:300,height:151,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:l.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"10 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:l.working,content:l.working?"Spinning...":"Spin",onClick:function(){function f(){return p("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:l.resultlvl,children:l.result})]})})})}return N}()},280:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Smartfridge=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.secure,f=l.can_dry,i=l.drying,u=l.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:i?"power-off":"times",content:i?"On":"Off",selected:i,onClick:function(){function s(){return p("drying")}return s}()}),children:[!u&&(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."]})}),!!u&&u.slice().sort(function(s,d){return s.display_name.localeCompare(d.display_name)}).map(function(s){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:s.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",s.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 d(){return p("vend",{index:s.vend,amount:1})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:s.quantity,step:1,stepPixelSize:3,onChange:function(){function d(C,g){return p("vend",{index:s.vend,amount:g})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function d(){return p("vend",{index:s.vend,amount:s.quantity})}return d}()})]})]},s)})]})]})})})}return N}()},47606:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(48300),m=n(84947),N=1e3,y=r.Smes=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.capacityPercent,u=f.capacity,s=f.charge,d=f.inputAttempt,C=f.inputting,g=f.inputLevel,v=f.inputLevelMax,h=f.inputAvailable,V=f.outputPowernet,b=f.outputAttempt,B=f.outputting,I=f.outputLevel,w=f.outputLevelMax,T=f.outputUsed,A=i>=100&&"good"||C&&"average"||"bad",x=B&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i*.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:d?"sync-alt":"times",selected:d,onClick:function(){function E(){return c("tryinput")}return E}(),children:d?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:i>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:g===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:g===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:g/N,fillValue:h/N,minValue:0,maxValue:v/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,j){return c("input",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:g===v,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:g===v,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:b?"power-off":"times",selected:b,onClick:function(){function E(){return c("tryoutput")}return E}(),children:b?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:x,children:V?B?"Sending":s>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:I===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:I===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:I/N,minValue:0,maxValue:w/N,step:5,stepPixelSize:4,format:function(){function E(P){return(0,o.formatPower)(P*N,1)}return E}(),onChange:function(){function E(P,j){return c("output",{target:j*N})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:I===w,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:I===w,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},66527:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SolarControl=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=0,f=1,i=2,u=l.generated,s=l.generated_ratio,d=l.tracking_state,C=l.tracking_rate,g=l.connected_panels,v=l.connected_tracker,h=l.cdir,V=l.direction,b=l.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:277,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 B(){return p("refresh")}return B}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:g>0?"good":"bad",children:g})]})}),(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:s,children:u+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",V,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===i&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),d===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",b,")"," "]}),d===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:[d!==i&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function B(I,w){return p("cdir",{cdir:w})}return B}()}),d===i&&(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:d===c,onClick:function(){function B(){return p("track",{track:c})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:d===f,onClick:function(){function B(){return p("track",{track:f})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:d===i,disabled:!v,onClick:function(){function B(){return p("track",{track:i})}return B}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[d===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function B(I){var w=Math.sign(I)>0?"+":"-";return w+Math.abs(I)}return B}(),onDrag:function(){function B(I,w){return p("tdir",{tdir:w})}return B}()}),d===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),d===i&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return N}()},27478:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SpawnersMenu=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.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 i(){return p("jump",{ID:f.uids})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function i(){return p("spawn",{ID:f.uids})}return i}()})],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 N}()},15565:function(L,r,n){"use strict";r.__esModule=!0,r.SpecMenu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SpecMenu=function(){function p(l,c){return(0,e.createComponentVNode)(2,o.Window,{width:1100,height:600,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,k)]})})})}return p}(),N=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Hemomancer",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return i("hemomancer")}return d}()}),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)]})})},y=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Umbrae",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return i("umbrae")}return d}()}),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 will do a fake recall, causing a clone to appear at the anchor and making yourself invisible. 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 ensnares 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. Inside the radius, nearby creatures will freeze and energy projectiles will deal less damage.")],4),(0,e.createVNode)(1,"p",null,"In addition, you also gain permanent X-ray vision.",16)]})})},S=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Gargantua",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return i("gargantua")}return d}()}),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 do not 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,"Charge",16),(0,e.createTextVNode)(": Unlocked at 800 blood, you gain the ability to charge at a target. Destroying and knocking back pretty much anything you collide with.")],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,"Desecrated Duel",16),(0,e.createTextVNode)(": Leap towards a visible enemy, creating an arena upon landing, infusing you with increased regeneration, and granting you resistance to internal damages.")],4)]})})},k=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.subclasses;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Dantalion",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Choose",onClick:function(){function d(){return i("dantalion")}return d}()}),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 and then makes everyone nearby perceive others as random animals.")],4)]})})}},31752:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N)})})}return y}(),N=r.StationAlertConsoleContent=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.data,c=l.alarms||[],f=c.Fire||[],i=c.Atmosphere||[],u=c.Power||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Fire Alarms",children:(0,e.createVNode)(1,"ul",null,[f.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),f.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Atmospherics Alarms",children:(0,e.createVNode)(1,"ul",null,[i.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),i.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Alarms",children:(0,e.createVNode)(1,"ul",null,[u.length===0&&(0,e.createVNode)(1,"li","color-good","Systems Nominal",16),u.map(function(s){return(0,e.createVNode)(1,"li","color-average",s,0,null,s)})],0)})],4)}return y}()},64323:function(L,r,n){"use strict";r.__esModule=!0,r.StationTraitsPanel=void 0;var e=n(28823),a=n(72026),t=n(98644),o=n(91819),m=n(2971),N=n(84947),y=function(l){return l[l.SetupFutureStationTraits=0]="SetupFutureStationTraits",l[l.ViewStationTraits=1]="ViewStationTraits",l}(y||{}),S=function(c,f){var i=(0,o.useBackend)(f),u=i.act,s=i.data,d=s.future_station_traits,C=(0,o.useLocalState)(f,"selectedFutureTrait",null),g=C[0],v=C[1],h=Object.fromEntries(s.valid_station_traits.map(function(b){return[b.name,b.path]})),V=Object.keys(h);return V.sort(),(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Dropdown,{displayText:!g&&"Select trait to add...",onSelected:v,options:V,selected:g,width:"100%"})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"green",icon:"plus",onClick:function(){function b(){if(g){var B=h[g],I=[B];if(d){var w,T=d.map(function(A){return A.path});if(T.indexOf(B)!==-1)return;I=(w=I).concat.apply(w,T)}u("setup_future_traits",{station_traits:I})}}return b}(),children:"Add"})})]}),(0,e.createComponentVNode)(2,m.Divider),Array.isArray(d)?d.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:d.map(function(b){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:b.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button,{color:"red",icon:"times",onClick:function(){function B(){u("setup_future_traits",{station_traits:(0,a.filterMap)(d,function(I){if(I.path!==b.path)return I.path})})}return B}(),children:"Delete"})})]})},b.path)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No station traits will run next round."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"good",icon:"times",tooltip:"The next round will roll station traits randomly, just like normal",onClick:function(){function b(){return u("clear_future_traits")}return b}(),children:"Run Station Traits Normally"})]}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,m.Box,{children:"No future station traits are planned."}),(0,e.createComponentVNode)(2,m.Button,{mt:1,fluid:!0,color:"red",icon:"times",onClick:function(){function b(){return u("setup_future_traits",{station_traits:[]})}return b}(),children:"Prevent station traits from running next round"})]})]})},k=function(c,f){var i=(0,o.useBackend)(f),u=i.act,s=i.data;return s.current_traits.length>0?(0,e.createComponentVNode)(2,m.Stack,{vertical:!0,fill:!0,children:s.current_traits.map(function(d){return(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:d.name}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Button.Confirm,{content:"Revert",color:"red",disabled:s.too_late_to_revert||!d.can_revert,tooltip:!d.can_revert&&"This trait is not revertable."||s.too_late_to_revert&&"It's too late to revert station traits, the round has already started.",icon:"times",onClick:function(){function C(){return u("revert",{ref:d.ref})}return C}()})})]})},d.ref)})}):(0,e.createComponentVNode)(2,m.Box,{textAlign:"center",children:"There are no active station traits."})},p=r.StationTraitsPanel=function(){function l(c,f){var i=(0,o.useLocalState)(f,"station_traits_tab",y.ViewStationTraits),u=i[0],s=i[1],d;switch(u){case y.SetupFutureStationTraits:d=(0,e.createComponentVNode)(2,S);break;case y.ViewStationTraits:d=(0,e.createComponentVNode)(2,k);break;default:(0,t.exhaustiveCheck)(u)}return(0,e.createComponentVNode)(2,N.Window,{title:"Modify Station Traits",height:350,width:350,children:(0,e.createComponentVNode)(2,N.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"eye",selected:u===y.ViewStationTraits,onClick:function(){function C(){return s(y.ViewStationTraits)}return C}(),children:"View"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{icon:"edit",selected:u===y.SetupFutureStationTraits,onClick:function(){function C(){return s(y.SetupFutureStationTraits)}return C}(),children:"Edit"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{m:0,children:[(0,e.createComponentVNode)(2,m.Divider),d]})]})})})}return l}()},28973:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(28823),a=n(72026),t=n(96820),o=n(91819),m=n(2971),N=n(84947),y=5,S=5,k="64px",p=function(d){return d[0]+"/"+d[1]},l=function(d){var C=d.align,g=d.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:C==="left"?"6px":"48px","text-align":C,"text-shadow":"2px 2px 2px #000",top:"2px"},children:g})},c={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"}},f={eyes:{displayName:"eyewear",gridSpot:p([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:p([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:p([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:p([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:p([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:p([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:p([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:p([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:p([1,4])},jumpsuit:{displayName:"uniform",gridSpot:p([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:p([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:p([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:p([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:p([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,l,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:p([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:p([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:p([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:p([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:p([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:p([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:p([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:p([4,4]),image:"inventory-pda.png"}},i=function(s){return s[s.Completely=1]="Completely",s[s.Hidden=2]="Hidden",s}(i||{}),u=r.StripMenu=function(){function s(d,C){for(var g=(0,o.useBackend)(C),v=g.act,h=g.data,V=new Map,b=0,B=Object.keys(h.items);b=.01})},(0,a.sortBy)(function(T){return-T.amount})])(g.gases||[]),w=Math.max.apply(Math,[1].concat(I.map(function(T){return T.amount})));return(0,e.createComponentVNode)(2,S.Window,{width:550,height:185,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"270px",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Metrics",children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:h/100,ranges:{good:[.9,1/0],average:[.5,.9],bad:[-1/0,.5]}})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:V,minValue:0,maxValue:5e3,ranges:{good:[-1/0,5e3],average:[5e3,7e3],bad:[7e3,1/0]},children:(0,o.toFixed)(V)+" MeV/cm3"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(b),minValue:0,maxValue:l(1e4),ranges:{teal:[-1/0,l(80)],good:[l(80),l(373)],average:[l(373),l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(b)+" K"})}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,N.ProgressBar,{value:l(B),minValue:0,maxValue:l(5e4),ranges:{good:[l(1),l(300)],average:[-1/0,l(1e3)],bad:[l(1e3),1/0]},children:(0,o.toFixed)(B)+" kPa"})})]})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,basis:0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Gases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return C("back")}return T}()}),children:(0,e.createComponentVNode)(2,N.LabeledList,{children:I.map(function(T){return(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:(0,y.getGasLabel)(T.name),children:(0,e.createComponentVNode)(2,N.ProgressBar,{color:(0,y.getGasColor)(T.name),value:T.amount,minValue:0,maxValue:w,children:(0,o.toFixed)(T.amount,2)+"%"})},T.name)})})})})]})})})}},55055:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.SyndicateComputerSimple=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data;return(0,e.createComponentVNode)(2,o.Window,{theme:"syndicate",width:400,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:l.rows.map(function(c){return(0,e.createComponentVNode)(2,t.Section,{title:c.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:c.buttontitle,disabled:c.buttondisabled,tooltip:c.buttontooltip,tooltipPosition:"left",onClick:function(){function f(){return p(c.buttonact)}return f}()}),children:[c.status,!!c.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:c.bullets.map(function(f){return(0,e.createComponentVNode)(2,t.Box,{children:f},f)})})]},c.title)})})})}return N}()},61225:function(L,r,n){"use strict";r.__esModule=!0,r.TEG=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(S){return S.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},N=r.TEG=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data;return c.error?(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:"Error",children:[c.error,(0,e.createComponentVNode)(2,t.Button,{icon:"circle",content:"Recheck",onClick:function(){function f(){return l("check")}return f}()})]})})}):(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:"Cold Loop ("+c.cold_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Inlet",children:[m(c.cold_inlet_temp)," K,"," ",m(c.cold_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cold Outlet",children:[m(c.cold_outlet_temp)," K,"," ",m(c.cold_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Hot Loop ("+c.hot_dir+")",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Inlet",children:[m(c.hot_inlet_temp)," K,"," ",m(c.hot_inlet_pressure)," kPa"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hot Outlet",children:[m(c.hot_outlet_temp)," K,"," ",m(c.hot_outlet_pressure)," kPa"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Output",children:[m(c.output_power)," W",!!c.warning_switched&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold inlet temperature exceeds hot inlet temperature."}),!!c.warning_cold_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Cold circulator inlet pressure is under 1,000 kPa."}),!!c.warning_hot_pressure&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Warning: Hot circulator inlet pressure is under 1,000 kPa."})]})]})})}return y}()},61424:function(L,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV",5:"Tier V"},N={male:"\u041C\u0443\u0436\u0441\u043A\u043E\u0439",female:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439"},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"}},S=function(c,f,i,u){return u===void 0&&(u=null),c.map(function(s){var d,C=(d=s[u])!=null?d:s;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:f.includes(s),content:C,onClick:function(){function g(){f.includes(s)?i(f.filter(function(v){var h;return((h=v[u])!=null?h:v)!==s})):i([s].concat(f))}return g}()},C)})},k=r.TTSSeedsExplorer=function(){function l(){return(0,e.createComponentVNode)(2,o.Window,{width:600,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,p)})})})}return l}(),p=r.TTSSeedsExplorerContent=function(){function l(c,f){var i=(0,a.useBackend)(f),u=i.act,s=i.data,d=s.providers,C=s.seeds,g=s.selected_seed,v=s.phrases,h=s.donator_level,V=s.character_gender,b=C.map(function(Z){return Z.category}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),B=C.map(function(Z){return Z.gender}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}),I=C.map(function(Z){return Z.required_donator_level}).filter(function(Z,q,ue){return ue.indexOf(Z)===q}).sort(function(Z,q){return Z-q}).map(function(Z){return m[Z]}),w=(0,a.useLocalState)(f,"selectedProviders",d),T=w[0],A=w[1],x=(0,a.useLocalState)(f,"selectedGenders",B.includes(N[V])?[N[V]]:B),E=x[0],P=x[1],j=(0,a.useLocalState)(f,"selectedCategories",b),M=j[0],O=j[1],D=(0,a.useLocalState)(f,"selectedDonatorLevels",I.includes(m[h])?I.slice(0,I.indexOf(m[h])+1):I),F=D[0],U=D[1],_=(0,a.useLocalState)(f,"selectedPhrase",v[0]),z=_[0],H=_[1],$=(0,a.useLocalState)(f,"searchtext",""),G=$[0],X=$[1],oe=S(d,T,A,"name"),re=S(B,E,P),se=S(b,M,O),he=S(I,F,U),ye=(0,e.createComponentVNode)(2,t.Dropdown,{options:v,selected:z.replace(/(.{60})..+/,"$1..."),width:"445px",onSelected:function(){function Z(q){return H(q)}return Z}()}),Be=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",width:"100%",onInput:function(){function Z(q,ue){return X(ue)}return Z}()}),me=C.sort(function(Z,q){var ue=Z.name.toLowerCase(),fe=q.name.toLowerCase();return ue>fe?1:ue0&&g!==Z.name?"orange":"white",children:Z.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:g===Z.name?.5:.25,textAlign:"left",children:Z.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:g===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.required_donator_level>0&&(0,e.createFragment)([m[Z.required_donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Z.name)});return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{height:"175px",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",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:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:he}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ye}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Be})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0423\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===0,onClick:function(){function Z(){return O([])}return Z}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",disabled:M.length===b.length,onClick:function(){function Z(){return O(b)}return Z}()})],4),children:se})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+me.length+"/"+C.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:te})})}),(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,{mt:2,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."})]})})})],4)}return l}()},97552:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.TachyonArray=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.records,i=f===void 0?[]:f,u=c.explosion_target,s=c.toxins_tech,d=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:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!i.length||d,align:"center",onClick:function(){function C(){return l("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!i.length,color:"bad",align:"center",onClick:function(){function C(){return l("delete_logs")}return C}()})]})]})}),i.length?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),N=r.TachyonArrayContent=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.records,i=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"})]}),i.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.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 s(){return l("delete_record",{index:u.index})}return s}()})})]},u.index)})]})})})})}return y}()},33291:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Tank=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c;return l.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,width:"76%",icon:l.connected?"check":"times",content:l.connected?"Internals On":"Internals Off",selected:l.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:325,height:135,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:l.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:l.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l.ReleasePressure===l.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return p("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(l.releasePressure),width:"65px",unit:"kPa",minValue:l.minReleasePressure,maxValue:l.maxReleasePressure,onChange:function(){function f(i,u){return p("pressure",{pressure:u})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l.ReleasePressure===l.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return p("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:l.ReleasePressure===l.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return p("pressure",{pressure:"reset"})}return f}()})]}),c]})})})})}return N}()},75480:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.TankDispenser=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.o_tanks,f=l.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("oxygen")}return i}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mt:1,fluid:!0,content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function i(){return p("plasma")}return i}()})})]})})})}return N}()},62291:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.TcommsCore=function(){function p(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.ion,d=(0,a.useLocalState)(c,"tabIndex",0),C=d[0],g=d[1],v=function(){function h(V){switch(V){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:520,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[s===1&&(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"wrench",selected:C===0,onClick:function(){function h(){return g(0)}return h}(),children:"Configuration"},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"link",selected:C===1,onClick:function(){function h(){return g(1)}return h}(),children:"Device Linkage"},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:"user-times",selected:C===2,onClick:function(){function h(){return g(2)}return h}(),children:"User Filtering"},"FilterPage")]}),v(C)]})})}return p}(),N=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.active,d=u.sectors_available,C=u.nttc_toggle_jobs,g=u.nttc_toggle_job_color,v=u.nttc_toggle_name_color,h=u.nttc_toggle_command_bold,V=u.nttc_job_indicator_type,b=u.nttc_setting_language,B=u.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:s?"On":"Off",selected:s,icon:"power-off",onClick:function(){function I(){return i("toggle_active")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:d})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_jobs")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"On":"Off",selected:g,icon:"clipboard-list",onClick:function(){function I(){return i("nttc_toggle_job_color")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function I(){return i("nttc_toggle_name_color")}return I}()})}),(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 I(){return i("nttc_toggle_command_bold")}return I}()})})]})}),(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:V||"Unset",selected:V,icon:"pencil-alt",onClick:function(){function I(){return i("nttc_job_indicator_type")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:b||"Unset",selected:b,icon:"globe",onClick:function(){function I(){return i("nttc_setting_language")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:B||"Unset",selected:B,icon:"server",onClick:function(){function I(){return i("network_id")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function I(){return i("import")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function I(){return i("export")}return I}()})]})],4)},S=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.link_password,d=u.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:s||"Unset",selected:s,icon:"lock",onClick:function(){function C(){return i("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),d.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function g(){return i("unlink",{addr:C.addr})}return g}()})})]},C.addr)})]})]})},k=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=f.data,s=u.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 d(){return i("add_filter")}return d}()}),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"})]}),s.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return i("remove_filter",{user:d})}return C}()})})]},d)})]})})}},82905:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.TcommsRelay=function(){function S(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.linked,u=f.active,s=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:292,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:u?"On":"Off",selected:u,icon:"power-off",onClick:function(){function d(){return c("toggle_active")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:s||"Unset",selected:s,icon:"server",onClick:function(){function d(){return c("network_id")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:i===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),i===1?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,y)]})})}return S}(),N=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=f.linked_core_id,u=f.linked_core_addr,s=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:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"Yes":"No",icon:s?"eye-slash":"eye",selected:s,onClick:function(){function d(){return c("toggle_hidden_link")}return d}()})}),(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 d(){return c("unlink")}return d}()})})]})})},y=function(k,p){var l=(0,a.useBackend)(p),c=l.act,f=l.data,i=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"})]}),i.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function s(){return c("link",{addr:u.addr})}return s}()})})]},u.addr)})]})})}},87692:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Teleporter=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.targetsTeleport?l.targetsTeleport:{},f=0,i=1,u=2,s=l.calibrated,d=l.calibrating,C=l.powerstation,g=l.regime,v=l.teleporterhub,h=l.target,V=l.locked;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:270,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:[(!C||!v)&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Error",children:[v,!C&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),C&&!v&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),C&&v&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Status",children:[(0,e.createComponentVNode)(2,t.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Teleport target:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[g===f&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===i&&(0,e.createComponentVNode)(2,t.Dropdown,{width:18.2,selected:h,options:Object.keys(c),color:h!=="None"?"default":"bad",onSelected:function(){function b(B){return p("settarget",{x:c[B].x,y:c[B].y,z:c[B].z})}return b}()}),g===u&&(0,e.createComponentVNode)(2,t.Box,{children:h})]})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Regime:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Gate",tooltip:"Teleport to another teleport hub.",tooltipPosition:"top",color:g===i?"good":null,onClick:function(){function b(){return p("setregime",{regime:i})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Teleporter",tooltip:"One-way teleport.",tooltipPosition:"top",color:g===f?"good":null,onClick:function(){function b(){return p("setregime",{regime:f})}return b}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GPS",tooltip:"Teleport to a location stored in a GPS device.",tooltipPosition:"top-end",color:g===u?"good":null,disabled:!V,onClick:function(){function b(){return p("setregime",{regime:u})}return b}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{label:"Calibration",mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:8.5,color:"label",children:"Calibration:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[h!=="None"&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:15.8,textAlign:"center",mt:.5,children:d&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||s&&(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,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",tooltipPosition:"bottom-end",disabled:!!(s||d),onClick:function(){function b(){return p("calibrate")}return b}()})})]}),h==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})]}),!!(V&&C&&v&&g===u)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Stack,{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 p("load")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function b(){return p("eject")}return b}()})]})})]})})})})}return N}()},40759:function(L,r,n){"use strict";r.__esModule=!0,r.TempGun=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=r.TempGun=function(){function p(l,c){var f=(0,t.useBackend)(c),i=f.act,u=f.data,s=u.target_temperature,d=u.temperature,C=u.max_temp,g=u.min_temp;return(0,e.createComponentVNode)(2,m.Window,{width:250,height:121,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:10,stepPixelSize:6,minValue:g,maxValue:C,value:s,format:function(){function v(h){return(0,a.toFixed)(h,2)}return v}(),width:"50px",onDrag:function(){function v(h,V){return i("target_temperature",{target_temperature:V})}return v}()}),"\xB0C"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Temperature",children:(0,e.createComponentVNode)(2,o.Box,{color:y(d),bold:d>500-273.15,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(d,2)}),"\xB0C"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power Cost",children:(0,e.createComponentVNode)(2,o.Box,{color:k(d),children:S(d)})})]})})})})}return p}(),y=function(l){return l<=-100?"blue":l<=0?"teal":l<=100?"green":l<=200?"orange":"red"},S=function(l){return l<=100-273.15?"High":l<=250-273.15?"Medium":l<=300-273.15?"Low":l<=400-273.15?"Medium":"High"},k=function(l){return l<=100-273.15?"red":l<=250-273.15?"orange":l<=300-273.15?"green":l<=400-273.15?"orange":"red"}},32369:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(28823),a=n(2146),t=n(98658),o=n(91819),m=n(31068),N=n(2971),y=n(84947),S=r.sanitizeMultiline=function(){function c(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),k=r.removeAllSkiplines=function(){function c(f){return f.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(f,i){var u=(0,o.useBackend)(i),s=u.act,d=u.data,C=d.max_length,g=d.message,v=g===void 0?"":g,h=d.multiline,V=d.placeholder,b=d.timeout,B=d.title,I=(0,o.useLocalState)(i,"input",V||""),w=I[0],T=I[1],A=function(){function P(j){if(j!==w){var M=h?S(j):k(j);T(M)}}return P}(),x=h||w.length>=40,E=130+(v.length>40?Math.ceil(v.length/4):0)+(x?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:B,width:325,height:E,children:[b&&(0,e.createComponentVNode)(2,a.Loader,{value:b}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function P(j){var M=window.event?j.which:j.keyCode;M===m.KEY_ENTER&&(!x||!j.shiftKey)&&s("submit",{entry:w}),M===m.KEY_ESCAPE&&s("cancel")}return P}(),children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l,{input:w,onType:A})}),(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:w,message:w.length+"/"+C})})]})})})]})}return c}(),l=function(f,i){var u=(0,o.useBackend)(i),s=u.act,d=u.data,C=d.max_length,g=d.multiline,v=f.input,h=f.onType,V=g||v.length>=40;return(0,e.createComponentVNode)(2,N.TextArea,{autoFocus:!0,autoSelect:!0,height:g||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function b(){return s("cancel")}return b}(),onEnter:function(){function b(B){V&&B.shiftKey||(B.preventDefault(),s("submit",{entry:v}))}return b}(),onInput:function(){function b(B,I){return h(I)}return b}(),placeholder:"Type something...",value:v})}},82296:function(L,r,n){"use strict";r.__esModule=!0,r.ThermoMachine=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=n(84947),N=r.ThermoMachine=function(){function y(S,k){var p=(0,t.useBackend)(k),l=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:300,height:225,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"Status",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.temperature,format:function(){function f(i){return(0,a.toFixed)(i,2)}return f}()})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:c.pressure,format:function(){function f(i){return(0,a.toFixed)(i,2)}return f}()})," kPa"]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:c.on?"power-off":"times",content:c.on?"On":"Off",selected:c.on,onClick:function(){function f(){return l("power")}return f}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Setting",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:c.cooling?"temperature-low":"temperature-high",content:c.cooling?"Cooling":"Heating",selected:c.cooling,onClick:function(){function f(){return l("cooling")}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target Temperature",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"fast-backward",disabled:c.target===c.min,title:"Minimum temperature",onClick:function(){function f(){return l("target",{target:c.min})}return f}()}),(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,value:Math.round(c.target),unit:"K",width:5.4,lineHeight:1.4,minValue:Math.round(c.min),maxValue:Math.round(c.max),step:5,stepPixelSize:3,onDrag:function(){function f(i,u){return l("target",{target:u})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"fast-forward",disabled:c.target===c.max,title:"Maximum Temperature",onClick:function(){function f(){return l("target",{target:c.max})}return f}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"sync",disabled:c.target===c.initial,title:"Room Temperature",onClick:function(){function f(){return l("target",{target:c.initial})}return f}()})]})]})})]})})}return y}()},68488:function(L,r,n){"use strict";r.__esModule=!0,r.TransferValve=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.TransferValve=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.tank_one,f=l.tank_two,i=l.attached_device,u=l.valve;return(0,e.createComponentVNode)(2,o.Window,{width:460,height:285,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:"Valve Status",children:(0,e.createComponentVNode)(2,t.Button,{icon:u?"unlock":"lock",content:u?"Open":"Closed",disabled:!c||!f,onClick:function(){function s(){return p("toggle")}return s}()})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Assembly",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Configure Assembly",disabled:!i,onClick:function(){function s(){return p("device")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:i?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:i,disabled:!i,onClick:function(){function s(){return p("remove_device")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Assembly"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment One",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:c?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:c,disabled:!c,onClick:function(){function s(){return p("tankone")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Attachment Two",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Attachment",children:f?(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:f,disabled:!f,onClick:function(){function s(){return p("tanktwo")}return s}()}):(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"No Tank"})})})})]})})}return N}()},26868:function(L,r,n){"use strict";r.__esModule=!0,r.TurbineComputer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=n(58331),N=r.TurbineComputer=function(){function k(p,l){var c=(0,a.useBackend)(l),f=c.act,i=c.data,u=i.compressor,s=i.compressor_broken,d=i.turbine,C=i.turbine_broken,g=i.online,v=!!(u&&!s&&d&&!C);return(0,e.createComponentVNode)(2,o.Window,{width:400,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:g?"power-off":"times",content:g?"Online":"Offline",selected:g,disabled:!v,onClick:function(){function h(){return f("toggle_power")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Disconnect",onClick:function(){function h(){return f("disconnect")}return h}()})],4),children:v?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)})})})}return k}(),y=function(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.compressor,u=f.compressor_broken,s=f.turbine,d=f.turbine_broken,C=f.online;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Compressor Status",color:!i||u?"bad":"good",children:u?i?"Offline":"Missing":"Online"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Status",color:!s||d?"bad":"good",children:d?s?"Offline":"Missing":"Online"})]})},S=function(p,l){var c=(0,a.useBackend)(l),f=c.data,i=f.rpm,u=f.temperature,s=f.power,d=f.bearing_heat;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Turbine Speed",children:[i," RPM"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Temp",children:[u," K"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Generated Power",children:[s," W"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bearing Heat",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:d,minValue:0,maxValue:100,ranges:{good:[-1/0,60],average:[60,90],bad:[90,1/0]},children:(0,m.toFixed)(d)+"%"})})]})}},30778:function(L,r,n){"use strict";r.__esModule=!0,r.Uplink=void 0;var e=n(28823),a=n(72026),t=n(90955),o=n(37843),m=n(91819),N=n(2971),y=n(84947),S=n(22677),k=function(g){switch(g){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,d);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}},p=r.Uplink=function(){function C(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=(0,m.useLocalState)(v,"tabIndex",0),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Window,{width:900,height:600,theme:"syndicate",children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,y.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Tabs,{children:[(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===0,onClick:function(){function P(){T(0),E("")}return P}(),icon:"store",children:"View Market"},"PurchasePage"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===1,onClick:function(){function P(){T(1),E("")}return P}(),icon:"shopping-cart",children:["View Shopping Cart"," ",B&&B.length?"("+B.length+")":""]},"Cart"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:w===2,onClick:function(){function P(){T(2),E("")}return P}(),icon:"user",children:"Exploitable Information"},"ExploitableInfo"),(0,e.createComponentVNode)(2,N.Tabs.Tab,{onClick:function(){function P(){return V("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:k(w)})]})})]})}return C}(),l=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.crystals,I=b.cats,w=(0,m.useLocalState)(v,"uplinkItems",I[0].items),T=w[0],A=w[1],x=(0,m.useLocalState)(v,"searchText",""),E=x[0],P=x[1],j=function(_,z){z===void 0&&(z="");var H=(0,o.createSearch)(z,function($){var G=$.hijack_only===1?"|hijack":"";return $.name+"|"+$.desc+"|"+$.cost+"tc"+G});return(0,t.flow)([(0,a.filter)(function($){return $==null?void 0:$.name}),z&&(0,a.filter)(H),(0,a.sortBy)(function($){return $==null?void 0:$.name})])(_)},M=function(_){if(P(_),_==="")return A(I[0].items);A(j(I.map(function(z){return z.items}).flat(),_))},O=(0,m.useLocalState)(v,"showDesc",1),D=O[0],F=O[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,N.Stack.Item,{children:(0,e.createComponentVNode)(2,N.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:D,onClick:function(){function U(){return F(!D)}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Random Item",icon:"question",onClick:function(){function U(){return V("buyRandom")}return U}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function U(){return V("refund")}return U}()})],4),children:(0,e.createComponentVNode)(2,N.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function U(_,z){M(z)}return U}(),value:E})})})}),(0,e.createComponentVNode)(2,N.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:I.map(function(U){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:E!==""?!1:U.items===T,onClick:function(){function _(){A(U.items),P("")}return _}(),children:U.cat},U)})})})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:T.map(function(U){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:U,showDecription:D},(0,o.decodeHtmlEntities)(U.name))},(0,o.decodeHtmlEntities)(U.name))})})})})]})]})},c=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cart,I=b.crystals,w=b.cart_price,T=(0,m.useLocalState)(v,"showDesc",0),A=T[0],x=T[1];return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button.Checkbox,{content:"Show Descriptions",checked:A,onClick:function(){function E(){return x(!A)}return E}()}),(0,e.createComponentVNode)(2,N.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function E(){return V("empty_cart")}return E}(),disabled:!B}),(0,e.createComponentVNode)(2,N.Button,{content:"Purchase Cart ("+w+"TC)",icon:"shopping-cart",onClick:function(){function E(){return V("purchase_cart")}return E}(),disabled:!B||w>I})],4),children:(0,e.createComponentVNode)(2,N.Stack,{vertical:!0,children:B?B.map(function(E){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,i,{i:E,showDecription:A,buttons:(0,e.createComponentVNode)(2,s,{i:E})})},(0,o.decodeHtmlEntities)(E.name))}):(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,f)]})},f=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.cats,I=b.lucky_numbers;return(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,N.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function w(){return V("shuffle_lucky_numbers")}return w}()}),children:(0,e.createComponentVNode)(2,N.Stack,{wrap:!0,children:I.map(function(w){return B[w.cat].items[w.item]}).filter(function(w){return w!=null}).map(function(w,T){return(0,e.createComponentVNode)(2,N.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,i,{grow:!0,i:w})},T)})})})})},i=function(g,v){var h=g.i,V=g.showDecription,b=V===void 0?1:V,B=g.buttons,I=B===void 0?(0,e.createComponentVNode)(2,u,{i:h}):B;return(0,e.createComponentVNode)(2,N.Section,{title:(0,o.decodeHtmlEntities)(h.name),showBottom:b,buttons:I,children:b?(0,e.createComponentVNode)(2,N.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(h.desc)}):null})},u=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,N.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function w(){return V("add_to_cart",{item:B.obj_path})}return w}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,N.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 V("buyItem",{item:B.obj_path})}return w}(),disabled:B.cost>I})],4)},s=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=g.i,I=b.exploitable;return(0,e.createComponentVNode)(2,N.Stack,{children:[(0,e.createComponentVNode)(2,N.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function w(){return V("remove_from_cart",{item:B.obj_path})}return w}()}),(0,e.createComponentVNode)(2,N.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return w}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,N.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function w(T,A){return V("set_cart_item_quantity",{item:B.obj_path,quantity:A})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,N.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function w(){return V("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return w}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},d=function(g,v){var h=(0,m.useBackend)(v),V=h.act,b=h.data,B=b.exploitable,I=(0,m.useLocalState)(v,"selectedRecord",B[0]),w=I[0],T=I[1],A=(0,m.useLocalState)(v,"searchText",""),x=A[0],E=A[1],P=function(O,D){D===void 0&&(D="");var F=(0,o.createSearch)(D,function(U){return U.name});return(0,t.flow)([(0,a.filter)(function(U){return U==null?void 0:U.name}),D&&(0,a.filter)(F),(0,a.sortBy)(function(U){return U.name})])(O)},j=P(B,x);return(0,e.createComponentVNode)(2,N.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,N.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:"Exploitable Records",children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function M(O,D){return E(D)}return M}()}),(0,e.createComponentVNode)(2,N.Tabs,{vertical:!0,children:j.map(function(M){return(0,e.createComponentVNode)(2,N.Tabs.Tab,{selected:M===w,onClick:function(){function O(){return T(M)}return O}(),children:M.name},M)})})]})}),(0,e.createComponentVNode)(2,N.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N.Section,{fill:!0,scrollable:!0,title:w.name,children:(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:w.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:w.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:w.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:w.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:w.species})]})})})]})}},7307:function(L,r,n){"use strict";r.__esModule=!0,r.Vending=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=S.product,i=S.productStock,u=S.productImage,s=c.chargesMoney,d=c.user,C=c.usermoney,g=c.inserted_cash,v=c.vend_ready,h=c.inserted_item_name,V=!s||f.price===0,b="ERROR!",B="";V?(b="FREE",B="arrow-circle-down"):(b=f.price,B="shopping-cart");var I=!v||i===0||!V&&f.price>C&&f.price>g;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+u,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:f.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Box,{color:i<=0&&"bad"||i<=f.max_amount/2&&"average"||"good",children:[i," in stock"]})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,disabled:I,icon:B,content:b,textAlign:"left",onClick:function(){function w(){return l("vend",{inum:f.inum})}return w}()})})]})},N=r.Vending=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.user,i=c.usermoney,u=c.inserted_cash,s=c.chargesMoney,d=c.product_records,C=d===void 0?[]:d,g=c.hidden_records,v=g===void 0?[]:g,h=c.stock,V=c.vend_ready,b=c.inserted_item_name,B=c.panel_open,I=c.speaker,w=c.imagelist,T;return T=[].concat(C),c.extended_inventory&&(T=[].concat(T,v)),T=T.filter(function(A){return!!A}),(0,e.createComponentVNode)(2,o.Window,{title:"Vending Machine",width:450,height:Math.min((s?171:89)+T.length*32,585),children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!s&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"User",buttons:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!b&&(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:(0,e.createVNode)(1,"span",null,b,0,{style:{"text-transform":"capitalize"}}),onClick:function(){function A(){return l("eject_item",{})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u,icon:"money-bill-wave-alt",content:u?(0,e.createFragment)([(0,e.createVNode)(1,"b",null,u,0),(0,e.createTextVNode)(" credits")],0):"Dispense Change",tooltip:u?"Dispense Change":null,textAlign:"left",onClick:function(){function A(){return l("change")}return A}()})})]}),children:f&&(0,e.createComponentVNode)(2,t.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),","," ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[i,(0,e.createTextVNode)(" credits")],0),".",(0,e.createVNode)(1,"br")]})})}),!!B&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,t.Button,{icon:I?"check":"volume-mute",selected:I,content:"Speaker",textAlign:"left",onClick:function(){function A(){return l("toggle_voice",{})}return A}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Products",children:(0,e.createComponentVNode)(2,t.Table,{children:T.map(function(A){return(0,e.createComponentVNode)(2,m,{product:A,productStock:h[A.name],productImage:w[A.path]},A.name)})})})})]})})})}return y}()},25485:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.VolumeMixer=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.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,i){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:i>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 u(){return p("volume",{channel:f.num,volume:0})}return u}()})})}),(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 u(s,d){return p("volume",{channel:f.num,volume:d})}return u}()})}),(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 u(){return p("volume",{channel:f.num,volume:100})}return u}()})})})]})})],4,f.num)})})})})}return N}()},26564:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.VotePanel=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.remaining,f=l.question,i=l.choices,u=l.user_vote,s=l.counts,d=l.show_counts;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:360,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1.5,ml:.5,children:["Time remaining: ",Math.round(c/10),"s"]}),i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{mb:1,fluid:!0,lineHeight:3,color:"translucent",multiLine:C,content:C+(d?" ("+(s[C]||0)+")":""),onClick:function(){function g(){return p("vote",{target:C})}return g}(),selected:C===u})},C)})]})})})}return N}()},496:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.Wires=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.wires||[],f=l.status||[],i=56+c.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:i,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(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:u.color_name,labelColor:u.seen_color,color:u.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:u.cut?"Mend":"Cut",onClick:function(){function s(){return p("cut",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function s(){return p("pulse",{wire:u.color})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:u.attached?"Detach":"Attach",onClick:function(){function s(){return p("attach",{wire:u.color})}return s}()})],4),children:!!u.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),u.wire,(0,e.createTextVNode)(")")],0)},u.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:u},u)})})})]})})})}return N}()},28919:function(L,r,n){"use strict";r.__esModule=!0,r.WizardApprenticeContract=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(84947),m=r.WizardApprenticeContract=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.used;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:555,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Contract of Apprenticeship",children:["Using this contract, you may summon an apprentice to aid you on your mission.",(0,e.createVNode)(1,"p",null,"If you are unable to establish contact with your apprentice, you can feed the contract back to the spellbook to refund your points.",16),c?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"You've already summoned an apprentice or you are in process of summoning one."}):""]}),(0,e.createComponentVNode)(2,t.Section,{title:"Which school of magic is your apprentice studying?",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fire",children:["Your apprentice is skilled in bending fire. ",(0,e.createVNode)(1,"br"),"They know Fireball, Sacred Flame, and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("fire")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Translocation",children:["Your apprentice is able to defy physics, learning how to move through bluespace. ",(0,e.createVNode)(1,"br"),"They know Teleport, Blink and Ethereal Jaunt.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("translocation")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Restoration",children:["Your apprentice is dedicated to supporting your magical prowess.",(0,e.createVNode)(1,"br"),"They come equipped with a Staff of Healing, have the unique ability to teleport back to you, and know Charge and Knock.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("restoration")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stealth",children:["Your apprentice is learning the art of infiltrating mundane facilities. ",(0,e.createVNode)(1,"br"),"They know Mindswap, Knock, Homing Toolbox, and Disguise Self, all of which can be cast without robes. They also join you in a Maintenance Dweller disguise, complete with Gloves of Shock Immunity and a Belt of Tools.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("stealth")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Honk",children:["Your apprentice is here to spread the Honkmother's blessings.",(0,e.createVNode)(1,"br"),"They know Banana Touch, Instant Summons, Ethereal Jaunt, and come equipped with a Staff of Slipping. ",(0,e.createVNode)(1,"br"),"While under your tutelage, they have been 'blessed' with clown shoes that are impossible to remove.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Select",disabled:c,onClick:function(){function f(){return p("honk")}return f}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})})]})})}return N}()},14635:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971);function m(p,l){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=N(p))||l&&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 N(p,l){if(p){if(typeof p=="string")return y(p,l);var c=Object.prototype.toString.call(p).slice(8,-1);if(c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set")return Array.from(p);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return y(p,l)}}function y(p,l){(l==null||l>p.length)&&(l=p.length);for(var c=0,f=new Array(l);c0&&!b.includes(D.ref)&&!h.includes(D.ref),checked:h.includes(D.ref),onClick:function(){function F(){return B(D.ref)}return F}()},D.desc)})]})]})})}return p}()},29136:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),m=function(S,k,p,l,c){return Sl?"average":S>c?"bad":"good"},N=r.AtmosScan=function(){function y(S,k){var p=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(l){return l.val!=="0"||l.entry==="Pressure"||l.entry==="Temperature"})(p).map(function(l){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:l.entry,color:m(l.val,l.bad_low,l.poor_low,l.poor_high,l.bad_high),children:[l.val,l.units]},l.entry)})})})}return y}()},83326:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(28823),a=n(2971),t=n(64635),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function N(y){var S=y.beakerLoaded,k=y.beakerContents,p=k===void 0?[]:k,l=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(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),!!l&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:l(c,f)})]},c.name)})]})}return N}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},86041:function(L,r,n){"use strict";r.__esModule=!0,r.BotStatus=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.BotStatus=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.locked,c=p.noaccess,f=p.maintpanel,i=p.on,u=p.autopatrol,s=p.canhack,d=p.emagged,C=p.remote_disabled;return(0,e.createFragment)([(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:i?"power-off":"times",content:i?"On":"Off",selected:i,disabled:c,onClick:function(){function g(){return k("power")}return g}()})}),u!==null&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Patrol",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:u,content:"Auto Patrol",disabled:c,onClick:function(){function g(){return k("autopatrol")}return g}()})}),!!f&&(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:d?"bad":"good",children:d?"DISABLED!":"Enabled"})}),!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hacking",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:d?"Restore Safties":"Hack",disabled:c,color:"bad",onClick:function(){function g(){return k("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Access",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!C,content:"AI Remote Control",disabled:c,onClick:function(){function g(){return k("disableremote")}return g}()})})]})})],4)}return m}()},22677:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(28823),a=n(91819),t=n(2971),o={},m=r.modalOpen=function(){function p(l,c,f){var i=(0,a.useBackend)(l),u=i.act,s=i.data,d=Object.assign(s.modal?s.modal.args:{},f||{});u("modal_open",{id:c,arguments:JSON.stringify(d)})}return p}(),N=r.modalRegisterBodyOverride=function(){function p(l,c){o[l]=c}return p}(),y=r.modalAnswer=function(){function p(l,c,f,i){var u=(0,a.useBackend)(l),s=u.act,d=u.data;if(d.modal){var C=Object.assign(d.modal.args||{},i||{});s("modal_answer",{id:c,answer:f,arguments:JSON.stringify(C)})}}return p}(),S=r.modalClose=function(){function p(l,c){var f=(0,a.useBackend)(l),i=f.act;i("modal_close",{id:c})}return p}(),k=r.ComplexModal=function(){function p(l,c){var f=(0,a.useBackend)(c),i=f.data;if(i.modal){var u=i.modal,s=u.id,d=u.text,C=u.type,g,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function w(){return S(c)}return w}()}),h,V,b="auto";if(o[s])h=o[s](i.modal,c);else if(C==="input"){var B=i.modal.value;g=function(){function w(T){return y(c,s,B)}return w}(),h=(0,e.createComponentVNode)(2,t.Input,{value:i.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function w(T,A){B=A}return w}()}),V=(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 w(){return S(c)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,B)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var I=typeof i.modal.choices=="object"?Object.values(i.modal.choices):i.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:I,selected:i.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function w(T){return y(c,s,T)}return w}()}),b="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:i.modal.choices.map(function(w,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(i.modal.value,10),onClick:function(){function A(){return y(c,s,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:w})})},T)})}):C==="boolean"&&(V=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:i.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function w(){return y(c,s,0)}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:i.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function w(){return y(c,s,1)}return w}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:l.maxWidth||window.innerWidth/2+"px",maxHeight:l.maxHeight||window.innerHeight/2+"px",onEnter:g,mx:"auto",overflowY:b,"padding-bottom":"5px",children:[d&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d}),o[s]&&v,h,V]})}}return p}()},692:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(37843),m=n(30381),N=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},k=function(f){if(y.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(i){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(i.rank),bold:k(i.rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(i.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.active})]},i.name+i.rank)})]})},l=r.CrewManifest=function(){function c(f,i){var u=(0,a.useBackend)(i),s=u.act,d;if(f.data)d=f.data;else{var C=(0,a.useBackend)(i),g=C.data;d=g}var v=d,h=v.manifest,V=h.heads,b=h.sec,B=h.eng,I=h.med,w=h.sci,T=h.ser,A=h.sup,x=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.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(V)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.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(b)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.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:N.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(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.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:N.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(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:N.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(A)}),(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(x)})]})}return c}()},98658:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(28823),a=n(2971),t=n(91819),o=r.InputButtons=function(){function m(N,y){var S=(0,t.useBackend)(y),k=S.act,p=S.data,l=p.large_buttons,c=p.swapped_buttons,f=N.input,i=N.message,u=N.disabled,s=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!l,fluid:!!l,onClick:function(){function C(){return k("submit",{entry:f})}return C}(),textAlign:"center",tooltip:l&&i,disabled:u,width:!l&&6}),d=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!l,fluid:!!l,onClick:function(){function C(){return k("cancel")}return C}(),textAlign:"center",width:!l&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:d}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:d}),!l&&i&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:i})}),l?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:s}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:s})]})}return m}()},29723:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.InterfaceLockNoticeBox=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=N.siliconUser,c=l===void 0?p.siliconUser:l,f=N.locked,i=f===void 0?p.locked:f,u=N.normallyLocked,s=u===void 0?p.normallyLocked:u,d=N.onLockStatusChange,C=d===void 0?function(){return k("lock")}:d,g=N.accessText,v=g===void 0?"an ID card":g;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:s?"red":"green",icon:s?"lock":"unlock",content:s?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!i)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",i?"unlock":"lock"," this interface."]})}return m}()},2146:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(28823),a=n(58331),t=n(2971),o=r.Loader=function(){function m(N){var y=N.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},51185:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginInfo=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=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: ",l.name," (",l.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!l.id,content:"Eject ID",color:"good",onClick:function(){function c(){return k("login_eject")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return k("login_logout")}return c}()})]})]})})}return m}()},69774:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.LoginScreen=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.loginState,c=p.isAI,f=p.isRobot,i=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:l.id?l.id:"----------",ml:"0.5rem",onClick:function(){function u(){return k("login_insert")}return u}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!l.id,content:"Login",onClick:function(){function u(){return k("login_login",{login_type:1})}return u}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function u(){return k("login_login",{login_type:2})}return u}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function u(){return k("login_login",{login_type:3})}return u}()}),!!i&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function u(){return k("login_login",{login_type:4})}return u}()})]})})})}return m}()},48154:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(28823),a=n(2971),t=n(64635),o=r.Operating=function(){function m(N){var y=N.operating,S=N.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},92149:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=r.Signaler=function(){function N(y,S){var k=(0,t.useBackend)(S),p=k.act,l=y.data,c=l.code,f=l.frequency,i=l.minFrequency,u=l.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:i/10,maxValue:u/10,value:f/10,format:function(){function s(d){return(0,a.toFixed)(d,1)}return s}(),width:"80px",onDrag:function(){function s(d,C){return p("freq",{freq:C})}return s}()})}),(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 s(d,C){return p("code",{code:C})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function s(){return p("signal")}return s}()})]})}return N}()},79969:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(28823),a=n(91819),t=n(37843),o=n(90955),m=n(72026),N=n(2971),y=r.SimpleRecords=function(){function p(l,c){var f=l.data.records;return(0,e.createComponentVNode)(2,N.Box,{children:f?(0,e.createComponentVNode)(2,k,{data:l.data,recordType:l.recordType}):(0,e.createComponentVNode)(2,S,{data:l.data})})}return p}(),S=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=l.data.recordsList,s=(0,a.useLocalState)(c,"searchText",""),d=s[0],C=s[1],g=function(V,b){b===void 0&&(b="");var B=(0,t.createSearch)(b,function(I){return I.Name});return(0,o.flow)([(0,m.filter)(function(I){return I==null?void 0:I.Name}),b&&(0,m.filter)(B),(0,m.sortBy)(function(I){return I.Name})])(u)},v=g(u,d);return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(V,b){return C(b)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,N.Box,{children:(0,e.createComponentVNode)(2,N.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function V(){return i("Records",{target:h.uid})}return V}()})},h)})]})},k=function(l,c){var f=(0,a.useBackend)(c),i=f.act,u=l.data.records,s=u.general,d=u.medical,C=u.security,g;switch(l.recordType){case"MED":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Medical Data",children:d?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Blood Type",children:d.blood_type}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Disabilities",children:d.mi_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.mi_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Disabilities",children:d.ma_dis}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.ma_dis_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Allergies",children:d.alg}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.alg_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Current Diseases",children:d.cdi}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:d.cdi_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:d.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":g=(0,e.createComponentVNode)(2,N.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Important Notes",children:C.notes})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,N.Box,{children:[(0,e.createComponentVNode)(2,N.Section,{title:"General Data",children:s?(0,e.createComponentVNode)(2,N.LabeledList,{children:[(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Sex",children:s.sex}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Species",children:s.species}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Age",children:s.age}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Rank",children:s.rank}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Fingerprint",children:s.fingerprint}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Physical Status",children:s.p_stat}),(0,e.createComponentVNode)(2,N.LabeledList.Item,{label:"Mental Status",children:s.m_stat})]}):(0,e.createComponentVNode)(2,N.Box,{color:"red",bold:!0,children:"General record lost!"})}),g]})}},76519:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.TemporaryNotice=function(){function m(N,y){var S,k=(0,a.useBackend)(y),p=k.act,l=k.data,c=l.temp;if(c){var f=(S={},S[c.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:c.text}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",onClick:function(){function i(){return p("cleartemp")}return i}()})})]})})))}}return m}()},98638:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pai_atmosphere=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},56601:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_bioscan=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.holder,f=l.dead,i=l.health,u=l.brute,s=l.oxy,d=l.tox,C=l.burn,g=l.temp;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:i/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:s})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},48047:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_directives=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.master,f=l.dna,i=l.prime,u=l.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 s(){return k("getdna")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:u||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},4646:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_doorjack=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.cable,f=l.machine,i=l.inprogress,u=l.progress,s=l.aborted,d;f?d=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):d=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function g(){return k("cable")}return g}()});var C;return f&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},value:u,maxValue:100}),i?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function g(){return k("cancel")}return g}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function g(){return k("jack")}return g}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:d}),C]})}return m}()},94648:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pai_main_menu=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data,c=l.available_software,f=l.installed_software,i=l.installed_toggles,u=l.available_ram,s=l.emotions,d=l.current_emotion,C=l.speech_verbs,g=l.current_speech_verb,v=l.available_chassises,h=l.current_chassis,V=[];return f.map(function(b){return V[b.key]=b.name}),i.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:u}),(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,{content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>u,onClick:function(){function B(){return k("purchaseSoftware",{key:b.key})}return B}()},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 B(){return k("startSoftware",{software_key:b.key})}return B}()},b.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[i.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function B(){return k("setToggle",{toggle_key:b.key})}return B}()},b.key)}),i.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:s.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.id===d,onClick:function(){function B(){return k("setEmotion",{emotion:b.id})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Speaking State",children:C.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.name===g,onClick:function(){function B(){return k("setSpeechStyle",{speech_state:b.name})}return B}()},b.id)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Chassis Type",children:v.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,selected:b.icon===h,onClick:function(){function B(){return k("setChassis",{chassis_to_change:b.icon})}return B}()},b.id)})})]})})}return m}()},45549:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pai_manifest=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},53434:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_medrecords=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"MED"})}return m}()},7328:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(28823),a=n(91819),t=n(38467),o=r.pai_messenger=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.app_data.active_convo;return l?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},32036:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(28823),a=n(91819),t=n(58331),o=n(2971),m=r.pai_radio=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.app_data,f=c.minFrequency,i=c.maxFrequency,u=c.frequency,s=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:i/10,value:u/10,format:function(){function d(C){return(0,t.toFixed)(C,1)}return d}(),onChange:function(){function d(C,g){return p("freq",{freq:g})}return d}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function d(){return p("freq",{freq:"145.9"})}return d}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function d(){return p("toggleBroadcast")}return d}(),selected:s,content:s?"Enabled":"Disabled"})})]})}return N}()},76020:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pai_secrecords=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k.app_data,recordType:"SEC"})}return m}()},11562:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(28823),a=n(91819),t=n(92149),o=r.pai_signaler=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},29539:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(28823),a=n(91819),t=n(29136),o=r.pda_atmos_scan=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:k})}return m}()},92180:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_janitor=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data,l=p.janitor,c=l.user_loc,f=l.mops,i=l.buckets,u=l.cleanbots,s=l.carts,d=l.janicarts;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(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),i&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:i.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - ",C.status]},C)})}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:s.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.dir,") - [",C.volume,"/",C.max_volume,"]"]},C)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janicart Locations",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:[C.x,",",C.y," (",C.direction_from_user,")"]},C)})})]})}return m}()},57725:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(28823),a=n(58331),t=n(91819),o=n(2971),m=r.pda_main_menu=function(){function N(y,S){var k=(0,t.useBackend)(S),p=k.act,l=k.data,c=l.owner,f=l.ownjob,i=l.idInserted,u=l.categories,s=l.pai,d=l.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:!i,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:u.map(function(C){var g=l.apps[C];return!g||!g.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:g.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in d?v.notify_icon:v.icon,iconSpin:v.uid in d,color:v.uid in d?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!s&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return N}()},29978:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(28823),a=n(91819),t=n(692),o=r.pda_manifest=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.act,p=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},20567:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(28823),a=n(91819),t=n(79969),o=r.pda_medical=function(){function m(N,y){var S=(0,a.useBackend)(y),k=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:k,recordType:"MED"})}return m}()},38467:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(28823),a=n(72026),t=n(91819),o=n(2971),m=r.pda_messenger=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,i=c.data,u=i.active_convo;return u?(0,e.createComponentVNode)(2,N,{data:i}):(0,e.createComponentVNode)(2,y,{data:i})}return k}(),N=r.ActiveConversation=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,i=p.data,u=i.convo_name,s=i.convo_job,d=i.messages,C=i.active_convo,g=(0,t.useLocalState)(l,"clipboardMode",!1),v=g[0],h=g[1],V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(d).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{textAlign:b.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:b.sent?"#4d9121":"#cd7a0d",position:"absolute",left:b.sent?null:"0px",right:b.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:b.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:b.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:b.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[b.sent?"You:":"Them:"," ",b.message]})]},B)})});return v&&(V=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+u+" ("+s+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:v,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function b(){return h(!v)}return b}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function b(){return f("Message",{target:C})}return b}(),content:"Reply"})],4),children:(0,a.filter)(function(b){return b.target===C})(d).map(function(b,B){return(0,e.createComponentVNode)(2,o.Box,{color:b.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[b.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:b.message})]},B)})})),(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 b(){return f("Clear",{option:"Convo"})}return b}()})})})}),V]})}return k}(),y=r.MessengerList=function(){function k(p,l){var c=(0,t.useBackend)(l),f=c.act,i=p.data,u=i.convopdas,s=i.pdas,d=i.charges,C=i.silent,g=i.toff,v=i.ringtone_list,h=i.ringtone,V=(0,t.useLocalState)(l,"searchTerm",""),b=V[0],B=V[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function I(){return f("Toggle Ringer")}return I}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:g?"bad":"green",icon:"power-off",onClick:function(){function I(){return f("Toggle Messenger")}return I}(),children:["Messenger: ",g?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function I(){return f("Clear",{option:"All"})}return I}(),children:"Delete All Conversations"}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function I(){return f("Ringtone")}return I}(),children:"Set Custom Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:h,width:"100px",options:Object.keys(v),onSelected:function(){function I(w){return f("Available_Ringtones",{selected_ringtone:w})}return I}()})})]})}),!g&&(0,e.createComponentVNode)(2,o.Box,{children:[!!d&&(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:[d," charges left."]})})}),!u.length&&!s.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:b,onInput:function(){function I(w,T){B(T)}return I}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:i,pdas:u,msgAct:"Select Conversation",searchTerm:b}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:s,msgAct:"Message",data:i,searchTerm:b})]})}return k}(),S=function(p,l){var c=(0,t.useBackend)(l),f=c.act,i=p.data,u=p.pdas,s=p.title,d=p.msgAct,C=p.searchTerm,g=i.charges,v=i.plugins;return!u||!u.length?(0,e.createComponentVNode)(2,o.Section,{title:s,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,children:u.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function V(){return f(d,{target:h.uid})}return V}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!g&&v.map(function(V){return(0,e.createComponentVNode)(2,o.Button,{icon:V.icon,content:V.name,onClick:function(){function b(){return f("Messenger Plugin",{plugin:V.uid,target:h.uid})}return b}()},V.uid)})})]},h.uid)})})}},54291:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mob_hunt=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(96820),m=r.pda_mob_hunt=function(){function N(y,S){var k=(0,a.useBackend)(S),p=k.act,l=k.data,c=l.connected,f=l.wild_captures,i=l.no_collection,u=l.entry;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Connection Status",children:c?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:["Connected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Disconnect",icon:"sign-out-alt",onClick:function(){function s(){return p("Disconnect")}return s}()})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:["Disconnected",(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Connect",icon:"sign-in-alt",onClick:function(){function s(){return p("Reconnect")}return s}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Wild Captures",children:f})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Collection",mt:2,buttons:(0,e.createComponentVNode)(2,t.Box,{children:!i&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Previous",icon:"arrow-left",onClick:function(){function s(){return p("Prev")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Next",icon:"arrow-right",onClick:function(){function s(){return p("Next")}return s}()})]})}),children:i?"Your collection is empty! Go capture some Nano-Mobs!":u?(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createVNode)(1,"img",null,null,1,{src:(0,o.resolveAsset)(u.sprite),style:{width:"64px","-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.nickname&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nickname",children:u.nickname}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:u.real_name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:u.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Primary Type",children:u.type1}),u.type2&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secondary Type",children:u.type2}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sd-card",onClick:function(){function s(){return p("Transfer")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Release",icon:"arrow-up",onClick:function(){function s(){return p("Release")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Rename",icon:"pencil-alt",onClick:function(){function s(){return p("Rename")}return s}()}),!!u.is_hacked&&(0,e.createComponentVNode)(2,t.Button,{content:"Set Trap",icon:"bolt",color:"red",onClick:function(){function s(){return p("Set_Trap")}return s}()})]})]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Mob entry missing!"})})]})}return N}()},31112:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(28823),a=n(91819),t=n(2971),o=r.pda_mule=function(){function y(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,i=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:i?(0,e.createComponentVNode)(2,N):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,i=f.bots;return i.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:u.Name,icon:"cog",onClick:function(){function s(){return l("control",{bot:u.uid})}return s}()})},u.Name)})},N=function(S,k){var p=(0,a.useBackend)(k),l=p.act,c=p.data,f=c.mulebot,i=f.botstatus,u=f.active,s=i.mode,d=i.loca,C=i.load,g=i.powr,v=i.dest,h=i.home,V=i.retn,b=i.pick,B;switch(s){case 0:B="Ready";break;case 1:B="Loading/Unloading";break;case 2:case 12:B="Navigating to delivery location";break;case 3:B="Navigating to Home";break;case 4:B="Waiting for clear path";break;case 5:case 6:B="Calculating navigation path";break;case 7:B="Unable to locate destination";break;default:B=s;break}return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[s===-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:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[g,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function I(){return l("target")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function I(){return l("unload")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"Yes":"No",selected:b,onClick:function(){function I(){return l("set_pickup_type",{autopick:b?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"Yes":"No",selected:V,onClick:function(){function I(){return l("set_auto_return",{autoret:V?0:1})}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function I(){return l("stop")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function I(){return l("start")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function I(){return l("home")}return I}()})]})]})]})}},2817:function(L,r,n){"use strict";r.__esModule=!0,r.pda_nanobank=void 0;var e=n(28823),a=n(37843),t=n(91819),o=n(2971),m=r.pda_nanobank=function(){function c(f,i){var u=(0,t.useBackend)(i),s=u.act,d=u.data,C=d.logged_in,g=d.owner_name,v=d.money;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Name",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:["$",v]})]})}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,N),(0,e.createComponentVNode)(2,y)]})],4):(0,e.createComponentVNode)(2,l)}return c}(),N=function(f,i){var u=(0,t.useBackend)(i),s=u.data,d=(0,t.useLocalState)(i,"tabIndex",1),C=d[0],g=d[1];return(0,e.createComponentVNode)(2,o.Tabs,{mt:2,children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===1,onClick:function(){function v(){return g(1)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transfers"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===2,onClick:function(){function v(){return g(2)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Account Actions"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===3,onClick:function(){function v(){return g(3)}return v}(),children:[(0,e.createComponentVNode)(2,o.Icon,{mr:1,name:"list"}),"Transaction History"]})]})},y=function(f,i){var u=(0,t.useLocalState)(i,"tabIndex",1),s=u[0],d=(0,t.useBackend)(i),C=d.data,g=C.db_status;if(!g)return(0,e.createComponentVNode)(2,o.Box,{children:"Account Database Connection Severed"});switch(s){case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,k);case 3:return(0,e.createComponentVNode)(2,p);default:return"You are somehow on a tab that doesn't exist! Please let a coder know."}},S=function(f,i){var u,s=(0,t.useBackend)(i),d=s.act,C=s.data,g=C.requests,v=C.available_accounts,h=C.money,V=(0,t.useLocalState)(i,"selectedAccount"),b=V[0],B=V[1],I=(0,t.useLocalState)(i,"transferAmount"),w=I[0],T=I[1],A=(0,t.useLocalState)(i,"searchText",""),x=A[0],E=A[1],P=[];return v.map(function(j){return P[j.name]=j.UID}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account",children:[(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account name",onInput:function(){function j(M,O){return E(O)}return j}()}),(0,e.createComponentVNode)(2,o.Dropdown,{mt:.6,width:"190px",options:v.filter((0,a.createSearch)(x,function(j){return j.name})).map(function(j){return j.name}),selected:(u=v.filter(function(j){return j.UID===b})[0])==null?void 0:u.name,onSelected:function(){function j(M){return B(P[M])}return j}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Amount",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Up to 5000",onInput:function(){function j(M,O){return T(O)}return j}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{bold:!0,icon:"paper-plane",width:"auto",disabled:h0&&d.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.OrderedBy,'"']},g)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:s>0&&u.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:["#",g.Number,' - "',g.Name,'" for "',g.ApprovedBy,'"']},g)})})]})}return m}()},73786:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(28823),a=n(66586),t=n(93843),o=n(33053),m=["className","theme","children"],N=["className","scrollable","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function y(p,l){if(p==null)return{};var c={},f=Object.keys(p),i,u;for(u=0;u=0)&&(c[i]=p[i]);return c}var S=r.Layout=function(){function p(l){var c=l.className,f=l.theme,i=f===void 0?"nanotrasen":f,u=l.children,s=y(l,m);return(0,e.createVNode)(1,"div","theme-"+i,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(s))),u,0,Object.assign({},(0,t.computeBoxProps)(s)))),2)}return p}(),k=function(l){var c=l.className,f=l.scrollable,i=l.children,u=y(l,N);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",f&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(u)]),i,0,Object.assign({},(0,t.computeBoxProps)(u))))};k.defaultHooks={onComponentDidMount:function(){function p(l){return(0,o.addScrollableNode)(l)}return p}(),onComponentWillUnmount:function(){function p(l){return(0,o.removeScrollableNode)(l)}return p}()},S.Content=k},55067:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(28823),a=n(66586),t=n(91819),o=n(2971),m=n(39241),N=n(73786),y=["theme","children","className"],S=["className","fitted","children"];/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */function k(c,f){if(c==null)return{};var i={},u=Object.keys(c),s,d;for(d=0;d=0)&&(i[s]=c[s]);return i}var p=r.Pane=function(){function c(f,i){var u=f.theme,s=f.children,d=f.className,C=k(f,y),g=(0,t.useBackend)(i),v=g.suspended,h=(0,m.useDebug)(i),V=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout,Object.assign({className:(0,a.classes)(["Window",d]),theme:u},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:V&&"debug-layout",children:!v&&s})})))}return c}(),l=function(f){var i=f.className,u=f.fitted,s=f.children,d=k(f,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,N.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",i])},d,{children:u&&s||(0,e.createVNode)(1,"div","Window__contentPadding",s,0)})))};p.Content=l},82118:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(28823),a=n(66586),t=n(90816),o=n(37843),m=n(91819),N=n(2971),y=n(30381),S=n(39241),k=n(20697),p=n(45360),l=n(50175),c=n(73786),f=["className","fitted","children"];function i(b,B){if(b==null)return{};var I={},w=Object.keys(b),T,A;for(A=0;A=0)&&(I[T]=b[T]);return I}function u(b,B){b.prototype=Object.create(B.prototype),b.prototype.constructor=b,s(b,B)}function s(b,B){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(){function I(w,T){return w.__proto__=T,w}return I}(),s(b,B)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var d=(0,l.createLogger)("Window"),C=[400,600],g=r.Window=function(b){u(B,b);function B(){return b.apply(this,arguments)||this}var I=B.prototype;return I.componentDidMount=function(){function w(){var T=(0,m.useBackend)(this.context),A=T.suspended;A||(d.log("mounting"),this.updateGeometry())}return w}(),I.componentDidUpdate=function(){function w(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return w}(),I.updateGeometry=function(){function w(){var T,A=(0,m.useBackend)(this.context),x=A.config,E=Object.assign({size:C},x.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=x.window)!=null&&T.key&&(0,p.setWindowKey)(x.window.key),(0,p.recallWindowGeometry)(E)}return w}(),I.render=function(){function w(){var T,A=this.props,x=A.theme,E=A.title,P=A.children,j=(0,m.useBackend)(this.context),M=j.config,O=j.suspended,D=(0,S.useDebug)(this.context),F=D.debugLayout,U=(0,t.useDispatch)(this.context),_=(T=M.window)==null?void 0:T.fancy,z=M.user&&(M.user.observer?M.status2?f-2:0),u=2;u=o){var s=[c].concat(i).map(function(d){return typeof d=="string"?d:d instanceof Error?d.stack||String(d):JSON.stringify(d)}).filter(function(d){return d}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:s})}},S=r.createLogger=function(){function p(l){return{debug:function(){function c(){for(var f=arguments.length,i=new Array(f),u=0;u0;){var h=g.shift(),V=h(C);try{v=N(V)}catch(B){if(B.code!=="MODULE_NOT_FOUND")throw B}}if(!v)return y("notFound",C);var b=v[C];return b||y("missingExport",C)}return l}()},79143:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(90955),a=n(90816),t=n(28823),o=n(96820),m=n(91819),N=n(39241),y=n(50175);function S(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(){function d(C,g){return C.__proto__=g,C}return d}(),k(u,s)}/** +* @file +* @copyright 2020 Aleksej Komarov +* @license MIT +*/var p=(0,y.createLogger)("store"),l=r.configureStore=function(){function u(s){var d,C;s===void 0&&(s={});var g=s,v=g.sideEffects,h=v===void 0?!0:v,V=(0,e.flow)([(0,a.combineReducers)({debug:N.debugReducer,backend:m.backendReducer}),s.reducer]),b=h?[].concat(((d=s.middleware)==null?void 0:d.pre)||[],[o.assetMiddleware,m.backendMiddleware],((C=s.middleware)==null?void 0:C.post)||[]):[],B=a.applyMiddleware.apply(void 0,b),I=(0,a.createStore)(V,B);return window.__store__=I,window.__augmentStack__=f(I),I}return u}(),c=function(s){return function(d){return function(C){var g=C.type,v=C.payload;return g==="update"||g==="backend/update"?p.debug("action",{type:g}):p.debug("action",C),d(C)}}},f=function(s){return function(d,C){var g,v;C?typeof C=="object"&&!C.stack&&(C.stack=d):(C=new Error(d.split("\n")[0]),C.stack=d),p.log("FatalError:",C);var h=s.getState(),V=h==null||(g=h.backend)==null?void 0:g.config,b=d;return b+="\nUser Agent: "+navigator.userAgent,b+="\nState: "+JSON.stringify({ckey:V==null||(v=V.client)==null?void 0:v.ckey,interface:V==null?void 0:V.interface,window:V==null?void 0:V.window}),b}},i=r.StoreProvider=function(u){S(s,u);function s(){return u.apply(this,arguments)||this}var d=s.prototype;return d.getChildContext=function(){function C(){var g=this.props.store;return{store:g}}return C}(),d.render=function(){function C(){return this.props.children}return C}(),s}(t.Component)},90969:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(N,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},22030:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"BlockQuote",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},35286:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(N,y){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"})]})}},38465:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var t=r.meta={title:"Button",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],N=function(S,k){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:[m.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)})]})]})}},16748:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971),o=n(50175);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},N=function(S,k){var p=(0,a.useLocalState)(k,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),l=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 setImmediate(function(){try{var i=new Function("return ("+l+")")();i&&i.then?(o.logger.log("Promise"),i.then(o.logger.log)):o.logger.log(i)}catch(u){o.logger.log(u)}})}return f}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function f(i){return c(i.target.value)}return f}(),children:l})})],4)}},76475:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=n(51753);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Collapsible",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){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)})})}},28994:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Flex & Sections",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"fs_grow",1),p=k[0],l=k[1],c=(0,a.useLocalState)(S,"fs_direction","column"),f=c[0],i=c[1],u=(0,a.useLocalState)(S,"fs_fill",!0),s=u[0],d=u[1],C=(0,a.useLocalState)(S,"fs_title",!0),g=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(f==="column"?"row":"column")}return h}(),children:'Flex direction="'+f+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return d(!s)}return h}(),children:"Section fill={"+String(s)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:g,onClick:function(){function h(){return v(!g)}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:g&&"Section 1",fill:s,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:g&&"Section 2",fill:s,children:"Content"})})]})})]})}},25462:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Input",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"number",0),p=k[0],l=k[1],c=(0,a.useLocalState)(S,"text","Sample text"),f=c[0],i=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 u(s,d){return i(d)}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:f,onInput:function(){function u(s,d){return i(d)}return u}()})}),(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 u(s,d){return l(d)}return u}()})}),(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 u(s,d){return l(d)}return u}()})}),(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 u(s,d){return l(d)}return u}()})}),(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 u(s,d){return l(d)}return u}()}),(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 u(s,d){return l(d)}return u}()})]}),(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 u(s,d){return l(d)}return u}(),children:function(){function u(s){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:s.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:s.displayValue*4}),s.inputElement]})}return u}()})})})]})})}},97028:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},85266:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"ProgressBar",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"progress",.5),p=k[0],l=k[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 l(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return l(p+.1)}return c}()})]})]})}},36216:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},o=function(){return(0,e.createComponentVNode)(2,a.Box,{inline:!0,width:1,height:1,children:"A"})},m=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)},N=function(S,k){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,m),(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,m),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,m)]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:1}),(0,e.createComponentVNode)(2,m)]})})]})})}},22338:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(96417),t=n(2971),o=n(48300);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var m=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},N=function(S,k){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."})}},88446:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,N)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],N=function(S,k){var p=(0,a.useLocalState)(k,"tabIndex",0),l=p[0],c=p[1],f=(0,a.useLocalState)(k,"tabProps",{}),i=f[0],u=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:i.vertical,onClick:function(){function s(){return u(Object.assign({},i,{vertical:!i.vertical}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:i.leftSlot,onClick:function(){function s(){return u(Object.assign({},i,{leftSlot:!i.leftSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:i.rightSlot,onClick:function(){function s(){return u(Object.assign({},i,{rightSlot:!i.rightSlot}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:i.icon,onClick:function(){function s(){return u(Object.assign({},i,{icon:!i.icon}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:i.fluid,onClick:function(){function s(){return u(Object.assign({},i,{fluid:!i.fluid}))}return s}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:i.leftAligned,onClick:function(){function s(){return u(Object.assign({},i,{leftAligned:!i.leftAligned}))}return s}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:i.vertical,fluid:i.fluid,textAlign:i.leftAligned&&"left",children:m.map(function(s,d){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:d===l,icon:i.icon&&"info-circle",leftSlot:i.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:i.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(d)}return C}(),children:s},d)})})})],4)}},2938:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(91819),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Themes",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(y,S){var k=(0,a.useLocalState)(S,"kitchenSinkTheme"),p=k[0],l=k[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,i){return l(i)}return c}()})})})})}},54212:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(28823),a=n(60028),t=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var o=r.meta={title:"Tooltip",render:function(){function N(){return(0,e.createComponentVNode)(2,m)}return N}()},m=function(){var y=["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:y.map(function(S){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:S,content:S},S)})})]})}},51753:function(L,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(28823),a=n(2971);/** + * @file + * @copyright 2021 Aleksej Komarov + * @license MIT + */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},47468:function(){},52355:function(){},66309:function(){},74395:function(){},86879:function(){},66782:function(){},72694:function(){},35116:function(){},47968:function(){},67041:function(){},59719:function(){},14045:function(){},81912:function(){},53152:function(){},33115:function(L,r,n){var e={"./pai_atmosphere.js":98638,"./pai_bioscan.js":56601,"./pai_directives.js":48047,"./pai_doorjack.js":4646,"./pai_main_menu.js":94648,"./pai_manifest.js":45549,"./pai_medrecords.js":53434,"./pai_messenger.js":7328,"./pai_radio.js":32036,"./pai_secrecords.js":76020,"./pai_signaler.js":11562};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=33115},75168:function(L,r,n){var e={"./pda_atmos_scan.js":29539,"./pda_janitor.js":92180,"./pda_main_menu.js":57725,"./pda_manifest.js":29978,"./pda_medical.js":20567,"./pda_messenger.js":38467,"./pda_mob_hunt.js":54291,"./pda_mule.js":31112,"./pda_nanobank.js":2817,"./pda_notes.js":66621,"./pda_power.js":96490,"./pda_secbot.js":36436,"./pda_security.js":55244,"./pda_signaler.js":23470,"./pda_status_display.js":43085,"./pda_supplyrecords.js":26948};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=75168},8156:function(L,r,n){var e={"./AICard":89163,"./AICard.js":89163,"./AIFixer":46817,"./AIFixer.js":46817,"./APC":20420,"./APC.js":20420,"./ATM":16822,"./ATM.js":16822,"./AccountsUplinkTerminal":90698,"./AccountsUplinkTerminal.js":90698,"./AgentCard":66895,"./AgentCard.js":66895,"./AiAirlock":26354,"./AiAirlock.js":26354,"./AirAlarm":26673,"./AirAlarm.js":26673,"./AirlockAccessController":98565,"./AirlockAccessController.js":98565,"./AirlockElectronics":76385,"./AirlockElectronics.js":76385,"./AlertModal":55666,"./AlertModal.tsx":55666,"./AppearanceChanger":16504,"./AppearanceChanger.js":16504,"./AtmosAlertConsole":77280,"./AtmosAlertConsole.js":77280,"./AtmosControl":66274,"./AtmosControl.js":66274,"./AtmosFilter":90588,"./AtmosFilter.js":90588,"./AtmosGraphMonitor":82657,"./AtmosGraphMonitor.tsx":82657,"./AtmosMixer":87486,"./AtmosMixer.js":87486,"./AtmosPump":46714,"./AtmosPump.js":46714,"./AtmosTankControl":66032,"./AtmosTankControl.js":66032,"./Autolathe":62343,"./Autolathe.js":62343,"./BioChipPad":13940,"./BioChipPad.js":13940,"./Biogenerator":55295,"./Biogenerator.js":55295,"./BlueSpaceArtilleryControl":92247,"./BlueSpaceArtilleryControl.js":92247,"./BluespaceTap":74594,"./BluespaceTap.js":74594,"./BodyScanner":31876,"./BodyScanner.js":31876,"./BookBinder":73440,"./BookBinder.js":73440,"./BotClean":40730,"./BotClean.js":40730,"./BotFloor":36078,"./BotFloor.js":36078,"./BotHonk":89121,"./BotHonk.js":89121,"./BotMed":39805,"./BotMed.js":39805,"./BotSecurity":35519,"./BotSecurity.js":35519,"./BrigCells":71169,"./BrigCells.js":71169,"./BrigTimer":19070,"./BrigTimer.js":19070,"./CameraConsole":59681,"./CameraConsole.js":59681,"./CameraConsole220":64487,"./CameraConsole220.js":64487,"./Canister":21348,"./Canister.js":21348,"./CardComputer":13944,"./CardComputer.js":13944,"./CargoConsole":62486,"./CargoConsole.js":62486,"./ChangelogView":86885,"./ChangelogView.js":86885,"./ChemDispenser":56975,"./ChemDispenser.js":56975,"./ChemHeater":48734,"./ChemHeater.js":48734,"./ChemMaster":35918,"./ChemMaster.js":35918,"./CloningConsole":8573,"./CloningConsole.js":8573,"./CloningPod":58378,"./CloningPod.js":58378,"./ColourMatrixTester":14283,"./ColourMatrixTester.js":14283,"./CommunicationsComputer":98577,"./CommunicationsComputer.js":98577,"./CompostBin":70611,"./CompostBin.js":70611,"./Contractor":73744,"./Contractor.js":73744,"./ConveyorSwitch":57392,"./ConveyorSwitch.js":57392,"./CrewMonitor":91413,"./CrewMonitor.js":91413,"./Cryo":55104,"./Cryo.js":55104,"./CryopodConsole":1763,"./CryopodConsole.js":1763,"./DNAModifier":69055,"./DNAModifier.js":69055,"./DestinationTagger":94406,"./DestinationTagger.js":94406,"./DisposalBin":17585,"./DisposalBin.js":17585,"./DnaVault":64636,"./DnaVault.js":64636,"./DroneConsole":13015,"./DroneConsole.js":13015,"./EFTPOS":97673,"./EFTPOS.js":97673,"./ERTManager":29206,"./ERTManager.js":29206,"./EconomyManager":77877,"./EconomyManager.js":77877,"./Electropack":10707,"./Electropack.js":10707,"./EmotePanel":85307,"./EmotePanel.js":85307,"./EvolutionMenu":52640,"./EvolutionMenu.js":52640,"./ExosuitFabricator":70672,"./ExosuitFabricator.js":70672,"./ExperimentConsole":25627,"./ExperimentConsole.js":25627,"./ExternalAirlockController":14172,"./ExternalAirlockController.js":14172,"./FaxMachine":61893,"./FaxMachine.js":61893,"./FilingCabinet":80031,"./FilingCabinet.js":80031,"./FloorPainter":39552,"./FloorPainter.js":39552,"./GPS":5090,"./GPS.js":5090,"./GeneModder":1055,"./GeneModder.js":1055,"./GenericCrewManifest":14232,"./GenericCrewManifest.js":14232,"./GhostHudPanel":86268,"./GhostHudPanel.js":86268,"./GlandDispenser":8977,"./GlandDispenser.js":8977,"./GravityGen":70309,"./GravityGen.js":70309,"./GuestPass":64769,"./GuestPass.js":64769,"./HandheldChemDispenser":12219,"./HandheldChemDispenser.js":12219,"./HealthSensor":53917,"./HealthSensor.js":53917,"./Holodeck":93116,"./Holodeck.js":93116,"./Instrument":77209,"./Instrument.js":77209,"./Jukebox":28847,"./Jukebox.tsx":28847,"./KeycardAuth":64261,"./KeycardAuth.js":64261,"./KitchenMachine":34898,"./KitchenMachine.js":34898,"./LawManager":52564,"./LawManager.js":52564,"./LibraryComputer":55499,"./LibraryComputer.js":55499,"./LibraryManager":92682,"./LibraryManager.js":92682,"./ListInputModal":68e3,"./ListInputModal.tsx":68e3,"./MODsuit":75965,"./MODsuit.js":75965,"./MagnetController":86322,"./MagnetController.js":86322,"./MechBayConsole":54374,"./MechBayConsole.js":54374,"./MechaControlConsole":14823,"./MechaControlConsole.js":14823,"./MedicalRecords":16189,"./MedicalRecords.js":16189,"./MerchVendor":44482,"./MerchVendor.js":44482,"./MiningVendor":53551,"./MiningVendor.js":53551,"./ModpacksList":71545,"./ModpacksList.js":71545,"./NTRecruiter":61100,"./NTRecruiter.js":61100,"./Newscaster":6802,"./Newscaster.js":6802,"./NuclearBomb":64639,"./NuclearBomb.js":64639,"./NumberInputModal":45523,"./NumberInputModal.tsx":45523,"./OperatingComputer":48314,"./OperatingComputer.js":48314,"./Orbit":87511,"./Orbit.js":87511,"./OreRedemption":54528,"./OreRedemption.js":54528,"./PAI":55686,"./PAI.js":55686,"./PDA":58717,"./PDA.js":58717,"./Pacman":78062,"./Pacman.js":78062,"./ParticleAccelerator":65823,"./ParticleAccelerator.js":65823,"./PdaPainter":67572,"./PdaPainter.js":67572,"./PersonalCrafting":12456,"./PersonalCrafting.js":12456,"./Photocopier":72143,"./Photocopier.js":72143,"./Photocopier220":82020,"./Photocopier220.js":82020,"./PoolController":47051,"./PoolController.js":47051,"./PortablePump":5424,"./PortablePump.js":5424,"./PortableScrubber":70673,"./PortableScrubber.js":70673,"./PortableTurret":22015,"./PortableTurret.js":22015,"./PowerMonitor":75199,"./PowerMonitor.js":75199,"./PrisonerImplantManager":15164,"./PrisonerImplantManager.js":15164,"./PrisonerShuttleConsole":99646,"./PrisonerShuttleConsole.js":99646,"./PrizeCounter":96493,"./PrizeCounter.tsx":96493,"./RCD":82443,"./RCD.js":82443,"./RPD":61566,"./RPD.js":61566,"./Radio":24618,"./Radio.js":24618,"./ReagentGrinder":85183,"./ReagentGrinder.js":85183,"./RemoteSignaler":94890,"./RemoteSignaler.js":94890,"./RequestConsole":6301,"./RequestConsole.js":6301,"./RndConsole":51939,"./RndConsole.js":51939,"./RndConsoleComponents":63752,"./RndConsoleComponents/":63752,"./RndConsoleComponents/CurrentLevels":50239,"./RndConsoleComponents/CurrentLevels.js":50239,"./RndConsoleComponents/DataDiskMenu":24183,"./RndConsoleComponents/DataDiskMenu.js":24183,"./RndConsoleComponents/DeconstructionMenu":72751,"./RndConsoleComponents/DeconstructionMenu.js":72751,"./RndConsoleComponents/LatheCategory":51802,"./RndConsoleComponents/LatheCategory.js":51802,"./RndConsoleComponents/LatheChemicalStorage":47349,"./RndConsoleComponents/LatheChemicalStorage.js":47349,"./RndConsoleComponents/LatheMainMenu":73492,"./RndConsoleComponents/LatheMainMenu.js":73492,"./RndConsoleComponents/LatheMaterialStorage":87115,"./RndConsoleComponents/LatheMaterialStorage.js":87115,"./RndConsoleComponents/LatheMaterials":2345,"./RndConsoleComponents/LatheMaterials.js":2345,"./RndConsoleComponents/LatheMenu":45805,"./RndConsoleComponents/LatheMenu.js":45805,"./RndConsoleComponents/LatheSearch":92497,"./RndConsoleComponents/LatheSearch.js":92497,"./RndConsoleComponents/MainMenu":25242,"./RndConsoleComponents/MainMenu.js":25242,"./RndConsoleComponents/RndNavButton":29933,"./RndConsoleComponents/RndNavButton.js":29933,"./RndConsoleComponents/RndNavbar":59959,"./RndConsoleComponents/RndNavbar.js":59959,"./RndConsoleComponents/RndRoute":28078,"./RndConsoleComponents/RndRoute.js":28078,"./RndConsoleComponents/SettingsMenu":59991,"./RndConsoleComponents/SettingsMenu.js":59991,"./RndConsoleComponents/index":63752,"./RndConsoleComponents/index.js":63752,"./RobotSelfDiagnosis":73407,"./RobotSelfDiagnosis.js":73407,"./RoboticsControlConsole":48356,"./RoboticsControlConsole.js":48356,"./Safe":33122,"./Safe.js":33122,"./SatelliteControl":46748,"./SatelliteControl.js":46748,"./SecureStorage":46504,"./SecureStorage.js":46504,"./SecurityRecords":54529,"./SecurityRecords.js":54529,"./SeedExtractor":79315,"./SeedExtractor.js":79315,"./ShuttleConsole":58578,"./ShuttleConsole.js":58578,"./ShuttleManipulator":11154,"./ShuttleManipulator.js":11154,"./Sleeper":80699,"./Sleeper.js":80699,"./SlotMachine":42439,"./SlotMachine.js":42439,"./Smartfridge":280,"./Smartfridge.js":280,"./Smes":47606,"./Smes.js":47606,"./SolarControl":66527,"./SolarControl.js":66527,"./SpawnersMenu":27478,"./SpawnersMenu.js":27478,"./SpecMenu":15565,"./SpecMenu.js":15565,"./StationAlertConsole":31752,"./StationAlertConsole.js":31752,"./StationTraitsPanel":64323,"./StationTraitsPanel.tsx":64323,"./StripMenu":28973,"./StripMenu.tsx":28973,"./SuitStorage":57633,"./SuitStorage.js":57633,"./SupermatterMonitor":72217,"./SupermatterMonitor.js":72217,"./SyndicateComputerSimple":55055,"./SyndicateComputerSimple.js":55055,"./TEG":61225,"./TEG.js":61225,"./TTSSeedsExplorer":61424,"./TTSSeedsExplorer.tsx":61424,"./TachyonArray":97552,"./TachyonArray.js":97552,"./Tank":33291,"./Tank.js":33291,"./TankDispenser":75480,"./TankDispenser.js":75480,"./TcommsCore":62291,"./TcommsCore.js":62291,"./TcommsRelay":82905,"./TcommsRelay.js":82905,"./Teleporter":87692,"./Teleporter.js":87692,"./TempGun":40759,"./TempGun.js":40759,"./TextInputModal":32369,"./TextInputModal.tsx":32369,"./ThermoMachine":82296,"./ThermoMachine.js":82296,"./TransferValve":68488,"./TransferValve.js":68488,"./TurbineComputer":26868,"./TurbineComputer.js":26868,"./Uplink":30778,"./Uplink.js":30778,"./Vending":7307,"./Vending.js":7307,"./VolumeMixer":25485,"./VolumeMixer.js":25485,"./VotePanel":26564,"./VotePanel.js":26564,"./Wires":496,"./Wires.js":496,"./WizardApprenticeContract":28919,"./WizardApprenticeContract.js":28919,"./common/AccessList":14635,"./common/AccessList.js":14635,"./common/AtmosScan":29136,"./common/AtmosScan.js":29136,"./common/BeakerContents":83326,"./common/BeakerContents.js":83326,"./common/BotStatus":86041,"./common/BotStatus.js":86041,"./common/ComplexModal":22677,"./common/ComplexModal.js":22677,"./common/CrewManifest":692,"./common/CrewManifest.js":692,"./common/InputButtons":98658,"./common/InputButtons.tsx":98658,"./common/InterfaceLockNoticeBox":29723,"./common/InterfaceLockNoticeBox.js":29723,"./common/Loader":2146,"./common/Loader.tsx":2146,"./common/LoginInfo":51185,"./common/LoginInfo.js":51185,"./common/LoginScreen":69774,"./common/LoginScreen.js":69774,"./common/Operating":48154,"./common/Operating.js":48154,"./common/Signaler":92149,"./common/Signaler.js":92149,"./common/SimpleRecords":79969,"./common/SimpleRecords.js":79969,"./common/TemporaryNotice":76519,"./common/TemporaryNotice.js":76519,"./pai/pai_atmosphere":98638,"./pai/pai_atmosphere.js":98638,"./pai/pai_bioscan":56601,"./pai/pai_bioscan.js":56601,"./pai/pai_directives":48047,"./pai/pai_directives.js":48047,"./pai/pai_doorjack":4646,"./pai/pai_doorjack.js":4646,"./pai/pai_main_menu":94648,"./pai/pai_main_menu.js":94648,"./pai/pai_manifest":45549,"./pai/pai_manifest.js":45549,"./pai/pai_medrecords":53434,"./pai/pai_medrecords.js":53434,"./pai/pai_messenger":7328,"./pai/pai_messenger.js":7328,"./pai/pai_radio":32036,"./pai/pai_radio.js":32036,"./pai/pai_secrecords":76020,"./pai/pai_secrecords.js":76020,"./pai/pai_signaler":11562,"./pai/pai_signaler.js":11562,"./pda/pda_atmos_scan":29539,"./pda/pda_atmos_scan.js":29539,"./pda/pda_janitor":92180,"./pda/pda_janitor.js":92180,"./pda/pda_main_menu":57725,"./pda/pda_main_menu.js":57725,"./pda/pda_manifest":29978,"./pda/pda_manifest.js":29978,"./pda/pda_medical":20567,"./pda/pda_medical.js":20567,"./pda/pda_messenger":38467,"./pda/pda_messenger.js":38467,"./pda/pda_mob_hunt":54291,"./pda/pda_mob_hunt.js":54291,"./pda/pda_mule":31112,"./pda/pda_mule.js":31112,"./pda/pda_nanobank":2817,"./pda/pda_nanobank.js":2817,"./pda/pda_notes":66621,"./pda/pda_notes.js":66621,"./pda/pda_power":96490,"./pda/pda_power.js":96490,"./pda/pda_secbot":36436,"./pda/pda_secbot.js":36436,"./pda/pda_security":55244,"./pda/pda_security.js":55244,"./pda/pda_signaler":23470,"./pda/pda_signaler.js":23470,"./pda/pda_status_display":43085,"./pda/pda_status_display.js":43085,"./pda/pda_supplyrecords":26948,"./pda/pda_supplyrecords.js":26948};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=8156},69321:function(L,r,n){var e={"./Blink.stories.js":90969,"./BlockQuote.stories.js":22030,"./Box.stories.js":35286,"./Button.stories.js":38465,"./ByondUi.stories.js":16748,"./Collapsible.stories.js":76475,"./Flex.stories.js":28994,"./Input.stories.js":25462,"./Popper.stories.js":97028,"./ProgressBar.stories.js":85266,"./Stack.stories.js":36216,"./Storage.stories.js":22338,"./Tabs.stories.js":88446,"./Themes.stories.js":2938,"./Tooltip.stories.js":54212};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=69321},79474:function(L,r,n){"use strict";var e=n(53664),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},48218:function(L,r,n){"use strict";var e=n(49632),a=n(36787),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},30907:function(L,r,n){"use strict";var e=n(62600),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},98759:function(L,r,n){"use strict";var e=n(95558),a=n(15439),t=n(8165).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),L.exports=function(N){m[o][N]=!0}},47158:function(L,r,n){"use strict";var e=n(13300).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},14434:function(L,r,n){"use strict";var e=n(54341),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},45418:function(L,r,n){"use strict";var e=n(66379),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},11559:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},8685:function(L,r,n){"use strict";var e=n(13586);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},30432:function(L,r,n){"use strict";var e=n(11559),a=n(16361),t=n(26856),o=n(53664),m=n(66379),N=n(3302),y=n(48615),S=n(36787),k=n(21650),p=n(60855),l=n(57301),c=n(54341),f=n(56379),i=n(91420),u=n(95558),s=n(76246),d=n(4471),C=d.enforce,g=d.get,v=t.Int8Array,h=v&&v.prototype,V=t.Uint8ClampedArray,b=V&&V.prototype,B=v&&f(v),I=h&&f(h),w=Object.prototype,T=t.TypeError,A=u("toStringTag"),x=s("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",P=e&&!!i&&y(t.opera)!=="Opera",j=!1,M,O,D,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},_=function(){function re(se){if(!m(se))return!1;var he=y(se);return he==="DataView"||N(F,he)||N(U,he)}return re}(),z=function re(se){var he=f(se);if(m(he)){var ye=g(he);return ye&&N(ye,E)?ye[E]:re(he)}},H=function(se){if(!m(se))return!1;var he=y(se);return N(F,he)||N(U,he)},$=function(se){if(H(se))return se;throw new T("Target is not a typed array")},G=function(se){if(o(se)&&(!i||c(B,se)))return se;throw new T(S(se)+" is not a typed array constructor")},X=function(se,he,ye,Be){if(a){if(ye)for(var me in F){var te=t[me];if(te&&N(te.prototype,se))try{delete te.prototype[se]}catch(Z){try{te.prototype[se]=he}catch(q){}}}(!I[se]||ye)&&p(I,se,ye?he:P&&h[se]||he,Be)}},oe=function(se,he,ye){var Be,me;if(a){if(i){if(ye){for(Be in F)if(me=t[Be],me&&N(me,se))try{delete me[se]}catch(te){}}if(!B[se]||ye)try{return p(B,se,ye?he:P&&B[se]||he)}catch(te){}else return}for(Be in F)me=t[Be],me&&(!me[se]||ye)&&p(me,se,he)}};for(M in F)O=t[M],D=O&&O.prototype,D?C(D)[E]=O:P=!1;for(M in U)O=t[M],D=O&&O.prototype,D&&(C(D)[E]=O);if((!P||!o(B)||B===Function.prototype)&&(B=function(){function re(){throw new T("Incorrect invocation")}return re}(),P))for(M in F)t[M]&&i(t[M],B);if((!P||!I||I===w)&&(I=B.prototype,P))for(M in F)t[M]&&i(t[M].prototype,I);if(P&&f(b)!==I&&i(b,I),a&&!N(I,A)){j=!0,l(I,A,{configurable:!0,get:function(){function re(){return m(this)?this[x]:void 0}return re}()});for(M in F)t[M]&&k(t[M],x,M)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:j&&x,aTypedArray:$,aTypedArrayConstructor:G,exportTypedArrayMethod:X,exportTypedArrayStaticMethod:oe,getTypedArrayConstructor:z,isView:_,isTypedArray:H,TypedArray:B,TypedArrayPrototype:I}},31284:function(L,r,n){"use strict";var e=n(26856),a=n(72908),t=n(16361),o=n(11559),m=n(15340),N=n(21650),y=n(57301),S=n(26148),k=n(13586),p=n(14434),l=n(84501),c=n(74369),f=n(28968),i=n(48705),u=n(48350),s=n(56379),d=n(91420),C=n(39948),g=n(31170),v=n(43405),h=n(83826),V=n(15676),b=n(4471),B=m.PROPER,I=m.CONFIGURABLE,w="ArrayBuffer",T="DataView",A="prototype",x="Wrong length",E="Wrong index",P=b.getterFor(w),j=b.getterFor(T),M=b.set,O=e[w],D=O,F=D&&D[A],U=e[T],_=U&&U[A],z=Object.prototype,H=e.Array,$=e.RangeError,G=a(C),X=a([].reverse),oe=u.pack,re=u.unpack,se=function(ge){return[ge&255]},he=function(ge){return[ge&255,ge>>8&255]},ye=function(ge){return[ge&255,ge>>8&255,ge>>16&255,ge>>24&255]},Be=function(ge){return ge[3]<<24|ge[2]<<16|ge[1]<<8|ge[0]},me=function(ge){return oe(i(ge),23,4)},te=function(ge){return oe(ge,52,8)},Z=function(ge,ke,ve){y(ge[A],ke,{configurable:!0,get:function(){function Se(){return ve(this)[ke]}return Se}()})},q=function(ge,ke,ve,Se){var we=j(ge),xe=f(ve),Oe=!!Se;if(xe+ke>we.byteLength)throw new $(E);var We=we.bytes,Ve=xe+we.byteOffset,ce=g(We,Ve,Ve+ke);return Oe?ce:X(ce)},ue=function(ge,ke,ve,Se,we,xe){var Oe=j(ge),We=f(ve),Ve=Se(+we),ce=!!xe;if(We+ke>Oe.byteLength)throw new $(E);for(var le=Oe.bytes,Ce=We+Oe.byteOffset,de=0;dewe)throw new $("Wrong offset");if(ve=ve===void 0?we-xe:c(ve),xe+ve>we)throw new $(x);M(this,{type:T,buffer:ge,byteLength:ve,byteOffset:xe,bytes:Se.bytes}),t||(this.buffer=ge,this.byteLength=ve,this.byteOffset=xe)}return pe}(),_=U[A],t&&(Z(D,"byteLength",P),Z(U,"buffer",j),Z(U,"byteLength",j),Z(U,"byteOffset",j)),S(_,{getInt8:function(){function pe(ge){return q(this,1,ge)[0]<<24>>24}return pe}(),getUint8:function(){function pe(ge){return q(this,1,ge)[0]}return pe}(),getInt16:function(){function pe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16}return pe}(),getUint16:function(){function pe(ge){var ke=q(this,2,ge,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]}return pe}(),getInt32:function(){function pe(ge){return Be(q(this,4,ge,arguments.length>1?arguments[1]:!1))}return pe}(),getUint32:function(){function pe(ge){return Be(q(this,4,ge,arguments.length>1?arguments[1]:!1))>>>0}return pe}(),getFloat32:function(){function pe(ge){return re(q(this,4,ge,arguments.length>1?arguments[1]:!1),23)}return pe}(),getFloat64:function(){function pe(ge){return re(q(this,8,ge,arguments.length>1?arguments[1]:!1),52)}return pe}(),setInt8:function(){function pe(ge,ke){ue(this,1,ge,se,ke)}return pe}(),setUint8:function(){function pe(ge,ke){ue(this,1,ge,se,ke)}return pe}(),setInt16:function(){function pe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return pe}(),setUint16:function(){function pe(ge,ke){ue(this,2,ge,he,ke,arguments.length>2?arguments[2]:!1)}return pe}(),setInt32:function(){function pe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return pe}(),setUint32:function(){function pe(ge,ke){ue(this,4,ge,ye,ke,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat32:function(){function pe(ge,ke){ue(this,4,ge,me,ke,arguments.length>2?arguments[2]:!1)}return pe}(),setFloat64:function(){function pe(ge,ke){ue(this,8,ge,te,ke,arguments.length>2?arguments[2]:!1)}return pe}()});else{var fe=B&&O.name!==w;!k(function(){O(1)})||!k(function(){new O(-1)})||k(function(){return new O,new O(1.5),new O(NaN),O.length!==1||fe&&!I})?(D=function(){function pe(ge){return p(this,F),v(new O(f(ge)),this,D)}return pe}(),D[A]=F,F.constructor=D,h(D,O)):fe&&I&&N(O,"name",w),d&&s(_)!==z&&d(_,z);var ae=new U(new D(2)),be=a(_.setInt8);ae.setInt8(0,2147483648),ae.setInt8(1,2147483649),(ae.getInt8(0)||!ae.getInt8(1))&&S(_,{setInt8:function(){function pe(ge,ke){be(this,ge,ke<<24>>24)}return pe}(),setUint8:function(){function pe(ge,ke){be(this,ge,ke<<24>>24)}return pe}()},{unsafe:!0})}V(D,w),V(U,T),L.exports={ArrayBuffer:D,DataView:U}},28332:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207),o=n(81245),m=Math.min;L.exports=[].copyWithin||function(){function N(y,S){var k=e(this),p=t(k),l=a(y,p),c=a(S,p),f=arguments.length>2?arguments[2]:void 0,i=m((f===void 0?p:a(f,p))-c,p-l),u=1;for(c0;)c in k?k[l]=k[c]:o(k,l),l+=u,c+=u;return k}return N}()},39948:function(L,r,n){"use strict";var e=n(63549),a=n(39531),t=n(83207);L.exports=function(){function o(m){for(var N=e(this),y=t(N),S=arguments.length,k=a(S>1?arguments[1]:void 0,y),p=S>2?arguments[2]:void 0,l=p===void 0?y:a(p,y);l>k;)N[k++]=m;return N}return o}()},16856:function(L,r,n){"use strict";var e=n(18539).forEach,a=n(56127),t=a("forEach");L.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},21465:function(L,r,n){"use strict";var e=n(83207);L.exports=function(a,t,o){for(var m=0,N=arguments.length>2?o:e(t),y=new a(N);N>m;)y[m]=t[m++];return y}},45056:function(L,r,n){"use strict";var e=n(8942),a=n(20276),t=n(63549),o=n(80002),m=n(48594),N=n(49632),y=n(83207),S=n(80750),k=n(45731),p=n(52984),l=Array;L.exports=function(){function c(f){var i=t(f),u=N(this),s=arguments.length,d=s>1?arguments[1]:void 0,C=d!==void 0;C&&(d=e(d,s>2?arguments[2]:void 0));var g=p(i),v=0,h,V,b,B,I,w;if(g&&!(this===l&&m(g)))for(B=k(i,g),I=B.next,V=u?new this:[];!(b=a(I,B)).done;v++)w=C?o(B,d,[b.value,v],!0):b.value,S(V,v,w);else for(h=y(i),V=u?new this(h):l(h);h>v;v++)w=C?d(i[v],v):i[v],S(V,v,w);return V.length=v,V}return c}()},33483:function(L,r,n){"use strict";var e=n(54292),a=n(39531),t=n(83207),o=function(N){return function(y,S,k){var p=e(y),l=t(p),c=a(k,l),f;if(N&&S!==S){for(;l>c;)if(f=p[c++],f!==f)return!0}else for(;l>c;c++)if((N||c in p)&&p[c]===S)return N||c||0;return!N&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},18539:function(L,r,n){"use strict";var e=n(8942),a=n(72908),t=n(80689),o=n(63549),m=n(83207),N=n(51582),y=a([].push),S=function(p){var l=p===1,c=p===2,f=p===3,i=p===4,u=p===6,s=p===7,d=p===5||u;return function(C,g,v,h){for(var V=o(C),b=t(V),B=m(b),I=e(g,v),w=0,T=h||N,A=l?T(C,B):c||s?T(C,0):void 0,x,E;B>w;w++)if((d||w in b)&&(x=b[w],E=I(x,w,V),p))if(l)A[w]=E;else if(E)switch(p){case 3:return!0;case 5:return x;case 6:return w;case 2:y(A,x)}else switch(p){case 4:return!1;case 7:y(A,x)}return u?-1:f||i?i:A}};L.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}},16400:function(L,r,n){"use strict";var e=n(47244),a=n(54292),t=n(84501),o=n(83207),m=n(56127),N=Math.min,y=[].lastIndexOf,S=!!y&&1/[1].lastIndexOf(1,-0)<0,k=m("lastIndexOf"),p=S||!k;L.exports=p?function(){function l(c){if(S)return e(y,this,arguments)||0;var f=a(this),i=o(f),u=i-1;for(arguments.length>1&&(u=N(u,t(arguments[1]))),u<0&&(u=i+u);u>=0;u--)if(u in f&&f[u]===c)return u||0;return-1}return l}():y},34924:function(L,r,n){"use strict";var e=n(13586),a=n(95558),t=n(43541),o=a("species");L.exports=function(m){return t>=51||!e(function(){var N=[],y=N.constructor={};return y[o]=function(){return{foo:1}},N[m](Boolean).foo!==1})}},56127:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},58394:function(L,r,n){"use strict";var e=n(79474),a=n(63549),t=n(80689),o=n(83207),m=TypeError,N=function(S){return function(k,p,l,c){var f=a(k),i=t(f),u=o(f);e(p);var s=S?u-1:0,d=S?-1:1;if(l<2)for(;;){if(s in i){c=i[s],s+=d;break}if(s+=d,S?s<0:u<=s)throw new m("Reduce of empty array with no initial value")}for(;S?s>=0:u>s;s+=d)s in i&&(c=p(c,i[s],s,f));return c}};L.exports={left:N(!1),right:N(!0)}},10779:function(L,r,n){"use strict";var e=n(16361),a=n(59882),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(N){return N instanceof TypeError}}();L.exports=m?function(N,y){if(a(N)&&!o(N,"length").writable)throw new t("Cannot set read only .length");return N.length=y}:function(N,y){return N.length=y}},31170:function(L,r,n){"use strict";var e=n(72908);L.exports=e([].slice)},91183:function(L,r,n){"use strict";var e=n(31170),a=Math.floor,t=function o(m,N){var y=m.length;if(y<8)for(var S=1,k,p;S0;)m[p]=m[--p];p!==S++&&(m[p]=k)}else for(var l=a(y/2),c=o(e(m,0,l),N),f=o(e(m,l),N),i=c.length,u=f.length,s=0,d=0;s1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(x(E.value,E.key,this);E&&E.removed;)E=E.previous}return w}(),has:function(){function w(T){return!!I(this,T)}return w}()}),t(V,g?{get:function(){function w(T){var A=I(this,T);return A&&A.value}return w}(),set:function(){function w(T,A){return B(this,T===0?0:T,A)}return w}()}:{add:function(){function w(T){return B(this,T=T===0?0:T,T)}return w}()}),l&&a(V,"size",{configurable:!0,get:function(){function w(){return b(this).size}return w}()}),h}return s}(),setStrong:function(){function s(d,C,g){var v=C+" Iterator",h=u(C),V=u(v);S(d,C,function(b,B){i(this,{type:v,target:b,state:h(b),kind:B,last:void 0})},function(){for(var b=V(this),B=b.kind,I=b.last;I&&I.removed;)I=I.previous;return!b.target||!(b.last=I=I?I.next:b.state.first)?(b.target=void 0,k(void 0,!0)):k(B==="keys"?I.key:B==="values"?I.value:[I.key,I.value],!1)},g?"entries":"values",!g,!0),p(C)}return s}()}},19250:function(L,r,n){"use strict";var e=n(72908),a=n(26148),t=n(66526).getWeakData,o=n(14434),m=n(45418),N=n(62695),y=n(66379),S=n(20453),k=n(18539),p=n(3302),l=n(4471),c=l.set,f=l.getterFor,i=k.find,u=k.findIndex,s=e([].splice),d=0,C=function(V){return V.frozen||(V.frozen=new g)},g=function(){this.entries=[]},v=function(V,b){return i(V.entries,function(B){return B[0]===b})};g.prototype={get:function(){function h(V){var b=v(this,V);if(b)return b[1]}return h}(),has:function(){function h(V){return!!v(this,V)}return h}(),set:function(){function h(V,b){var B=v(this,V);B?B[1]=b:this.entries.push([V,b])}return h}(),delete:function(){function h(V){var b=u(this.entries,function(B){return B[0]===V});return~b&&s(this.entries,b,1),!!~b}return h}()},L.exports={getConstructor:function(){function h(V,b,B,I){var w=V(function(E,P){o(E,T),c(E,{type:b,id:d++,frozen:void 0}),N(P)||S(P,E[I],{that:E,AS_ENTRIES:B})}),T=w.prototype,A=f(b),x=function(){function E(P,j,M){var O=A(P),D=t(m(j),!0);return D===!0?C(O).set(j,M):D[O.id]=M,P}return E}();return a(T,{delete:function(){function E(P){var j=A(this);if(!y(P))return!1;var M=t(P);return M===!0?C(j).delete(P):M&&p(M,j.id)&&delete M[j.id]}return E}(),has:function(){function E(P){var j=A(this);if(!y(P))return!1;var M=t(P);return M===!0?C(j).has(P):M&&p(M,j.id)}return E}()}),a(T,B?{get:function(){function E(P){var j=A(this);if(y(P)){var M=t(P);return M===!0?C(j).get(P):M?M[j.id]:void 0}}return E}(),set:function(){function E(P,j){return x(this,P,j)}return E}()}:{add:function(){function E(P){return x(this,P,!0)}return E}()}),w}return h}()}},10609:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(72908),o=n(23620),m=n(60855),N=n(66526),y=n(20453),S=n(14434),k=n(53664),p=n(62695),l=n(66379),c=n(13586),f=n(1608),i=n(15676),u=n(43405);L.exports=function(s,d,C){var g=s.indexOf("Map")!==-1,v=s.indexOf("Weak")!==-1,h=g?"set":"add",V=a[s],b=V&&V.prototype,B=V,I={},w=function(O){var D=t(b[O]);m(b,O,O==="add"?function(){function F(U){return D(this,U===0?0:U),this}return F}():O==="delete"?function(F){return v&&!l(F)?!1:D(this,F===0?0:F)}:O==="get"?function(){function F(U){return v&&!l(U)?void 0:D(this,U===0?0:U)}return F}():O==="has"?function(){function F(U){return v&&!l(U)?!1:D(this,U===0?0:U)}return F}():function(){function F(U,_){return D(this,U===0?0:U,_),this}return F}())},T=o(s,!k(V)||!(v||b.forEach&&!c(function(){new V().entries().next()})));if(T)B=C.getConstructor(d,s,g,h),N.enable();else if(o(s,!0)){var A=new B,x=A[h](v?{}:-0,1)!==A,E=c(function(){A.has(1)}),P=f(function(M){new V(M)}),j=!v&&c(function(){for(var M=new V,O=5;O--;)M[h](O,O);return!M.has(-0)});P||(B=d(function(M,O){S(M,b);var D=u(new V,M,B);return p(O)||y(O,D[h],{that:D,AS_ENTRIES:g}),D}),B.prototype=b,b.constructor=B),(E||j)&&(w("delete"),w("has"),g&&w("get")),(j||x)&&w(h),v&&b.clear&&delete b.clear}return I[s]=B,e({global:!0,constructor:!0,forced:B!==V},I),i(B,s),v||C.setStrong(B,s,g),B}},83826:function(L,r,n){"use strict";var e=n(3302),a=n(53988),t=n(19765),o=n(8165);L.exports=function(m,N,y){for(var S=a(N),k=o.f,p=t.f,l=0;l"+p+""}},32214:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},21650:function(L,r,n){"use strict";var e=n(16361),a=n(8165),t=n(73970);L.exports=e?function(o,m,N){return a.f(o,m,t(1,N))}:function(o,m,N){return o[m]=N,o}},73970:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},80750:function(L,r,n){"use strict";var e=n(72445),a=n(8165),t=n(73970);L.exports=function(o,m,N){var y=e(m);y in o?a.f(o,y,t(0,N)):o[y]=N}},20228:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(81290).start,o=RangeError,m=isFinite,N=Math.abs,y=Date.prototype,S=y.toISOString,k=e(y.getTime),p=e(y.getUTCDate),l=e(y.getUTCFullYear),c=e(y.getUTCHours),f=e(y.getUTCMilliseconds),i=e(y.getUTCMinutes),u=e(y.getUTCMonth),s=e(y.getUTCSeconds);L.exports=a(function(){return S.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){S.call(new Date(NaN))})?function(){function d(){if(!m(k(this)))throw new o("Invalid time value");var C=this,g=l(C),v=f(C),h=g<0?"-":g>9999?"+":"";return h+t(N(g),h?6:4,0)+"-"+t(u(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(i(C),2,0)+":"+t(s(C),2,0)+"."+t(v,3,0)+"Z"}return d}():S},81603:function(L,r,n){"use strict";var e=n(45418),a=n(56109),t=TypeError;L.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)}},57301:function(L,r,n){"use strict";var e=n(40773),a=n(8165);L.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},60855:function(L,r,n){"use strict";var e=n(53664),a=n(8165),t=n(40773),o=n(17553);L.exports=function(m,N,y,S){S||(S={});var k=S.enumerable,p=S.name!==void 0?S.name:N;if(e(y)&&t(y,p,S),S.global)k?m[N]=y:o(N,y);else{try{S.unsafe?m[N]&&(k=!0):delete m[N]}catch(l){}k?m[N]=y:a.f(m,N,{value:y,enumerable:!1,configurable:!S.nonConfigurable,writable:!S.nonWritable})}return m}},26148:function(L,r,n){"use strict";var e=n(60855);L.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},17553:function(L,r,n){"use strict";var e=n(26856),a=Object.defineProperty;L.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},81245:function(L,r,n){"use strict";var e=n(36787),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},16361:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},55642:function(L,r,n){"use strict";var e=n(26856),a=n(66379),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(m){return o?t.createElement(m):{}}},54579:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},31574:function(L,r,n){"use strict";var e=n(74247),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},52460:function(L,r,n){"use strict";var e=n(53437),a=n(86727);L.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},68261:function(L){"use strict";L.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},53437:function(L){"use strict";L.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},88836:function(L,r,n){"use strict";var e=n(74247);L.exports=/MSIE|Trident/.test(e)},79034:function(L,r,n){"use strict";var e=n(74247);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},25184:function(L,r,n){"use strict";var e=n(74247);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},86727:function(L,r,n){"use strict";var e=n(26856),a=n(8649);L.exports=a(e.process)==="process"},71979:function(L,r,n){"use strict";var e=n(74247);L.exports=/web0s(?!.*chrome)/i.test(e)},74247:function(L){"use strict";L.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},43541:function(L,r,n){"use strict";var e=n(26856),a=n(74247),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,N=m&&m.v8,y,S;N&&(y=N.split("."),S=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!S&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(S=+y[1]))),L.exports=S},27204:function(L,r,n){"use strict";var e=n(74247),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},38139:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3116:function(L,r,n){"use strict";var e=n(26856),a=n(19765).f,t=n(21650),o=n(60855),m=n(17553),N=n(83826),y=n(23620);L.exports=function(S,k){var p=S.target,l=S.global,c=S.stat,f,i,u,s,d,C;if(l?i=e:c?i=e[p]||m(p,{}):i=(e[p]||{}).prototype,i)for(u in k){if(d=k[u],S.dontCallGetSet?(C=a(i,u),s=C&&C.value):s=i[u],f=y(l?u:p+(c?".":"#")+u,S.forced),!f&&s!==void 0){if(typeof d==typeof s)continue;N(d,s)}(S.sham||s&&s.sham)&&t(d,"sham",!0),o(i,u,d,S)}}},13586:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},18690:function(L,r,n){"use strict";n(72941);var e=n(69935),a=n(60855),t=n(59049),o=n(13586),m=n(95558),N=n(21650),y=m("species"),S=RegExp.prototype;L.exports=function(k,p,l,c){var f=m(k),i=!o(function(){var C={};return C[f]=function(){return 7},""[k](C)!==7}),u=i&&!o(function(){var C=!1,g=/a/;return k==="split"&&(g={},g.constructor={},g.constructor[y]=function(){return g},g.flags="",g[f]=/./[f]),g.exec=function(){return C=!0,null},g[f](""),!C});if(!i||!u||l){var s=e(/./[f]),d=p(f,""[k],function(C,g,v,h,V){var b=e(C),B=g.exec;return B===t||B===S.exec?i&&!V?{done:!0,value:s(g,v,h)}:{done:!0,value:b(v,g,h)}:{done:!1}});a(String.prototype,k,d[0]),a(S,f,d[1])}c&&N(S[f],"sham",!0)}},73132:function(L,r,n){"use strict";var e=n(59882),a=n(83207),t=n(54579),o=n(8942),m=function N(y,S,k,p,l,c,f,i){for(var u=l,s=0,d=f?o(f,i):!1,C,g;s0&&e(C)?(g=a(C),u=N(y,S,C,g,u,c-1)-1):(t(u+1),y[u]=C),u++),s++;return u};L.exports=m},58199:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},47244:function(L,r,n){"use strict";var e=n(86678),a=Function.prototype,t=a.apply,o=a.call;L.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},8942:function(L,r,n){"use strict";var e=n(69935),a=n(79474),t=n(86678),o=e(e.bind);L.exports=function(m,N){return a(m),N===void 0?m:t?o(m,N):function(){return m.apply(N,arguments)}}},86678:function(L,r,n){"use strict";var e=n(13586);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},82060:function(L,r,n){"use strict";var e=n(72908),a=n(79474),t=n(66379),o=n(3302),m=n(31170),N=n(86678),y=Function,S=e([].concat),k=e([].join),p={},l=function(f,i,u){if(!o(p,i)){for(var s=[],d=0;d]*>)/g,S=/\$([$&'`]|\d{1,2})/g;L.exports=function(k,p,l,c,f,i){var u=l+k.length,s=c.length,d=S;return f!==void 0&&(f=a(f),d=y),m(i,d,function(C,g){var v;switch(o(g,0)){case"$":return"$";case"&":return k;case"`":return N(p,0,l);case"'":return N(p,u);case"<":v=f[N(g,1,-1)];break;default:var h=+g;if(h===0)return C;if(h>s){var V=t(h/10);return V===0?C:V<=s?c[V-1]===void 0?o(g,1):c[V-1]+o(g,1):C}v=c[h-1]}return v===void 0?"":v})}},26856:function(L,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};L.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")()},3302:function(L,r,n){"use strict";var e=n(72908),a=n(63549),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(m,N){return t(a(m),N)}return o}()},51653:function(L){"use strict";L.exports={}},66481:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},21474:function(L,r,n){"use strict";var e=n(22070);L.exports=e("document","documentElement")},16109:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(55642);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},48350:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(S,k,p){var l=r(p),c=p*8-k-1,f=(1<>1,u=k===23?e(2,-24)-e(2,-77):0,s=S<0||S===0&&1/S<0?1:0,d=0,C,g,v;for(S=n(S),S!==S||S===1/0?(g=S!==S?1:0,C=f):(C=a(t(S)/o),v=e(2,-C),S*v<1&&(C--,v*=2),C+i>=1?S+=u/v:S+=u*e(2,1-i),S*v>=2&&(C++,v/=2),C+i>=f?(g=0,C=f):C+i>=1?(g=(S*v-1)*e(2,k),C+=i):(g=S*e(2,i-1)*e(2,k),C=0));k>=8;)l[d++]=g&255,g/=256,k-=8;for(C=C<0;)l[d++]=C&255,C/=256,c-=8;return l[--d]|=s*128,l},N=function(S,k){var p=S.length,l=p*8-k-1,c=(1<>1,i=l-7,u=p-1,s=S[u--],d=s&127,C;for(s>>=7;i>0;)d=d*256+S[u--],i-=8;for(C=d&(1<<-i)-1,d>>=-i,i+=k;i>0;)C=C*256+S[u--],i-=8;if(d===0)d=1-f;else{if(d===c)return C?NaN:s?-1/0:1/0;C+=e(2,k),d-=f}return(s?-1:1)*C*e(2,d-k)};L.exports={pack:m,unpack:N}},80689:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(8649),o=Object,m=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(N){return t(N)==="String"?m(N,""):o(N)}:o},43405:function(L,r,n){"use strict";var e=n(53664),a=n(66379),t=n(91420);L.exports=function(o,m,N){var y,S;return t&&e(y=m.constructor)&&y!==N&&a(S=y.prototype)&&S!==N.prototype&&t(o,S),o}},92004:function(L,r,n){"use strict";var e=n(72908),a=n(53664),t=n(70192),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),L.exports=t.inspectSource},66526:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(51653),o=n(66379),m=n(3302),N=n(8165).f,y=n(60097),S=n(31024),k=n(58221),p=n(76246),l=n(58199),c=!1,f=p("meta"),i=0,u=function(V){N(V,f,{value:{objectID:"O"+i++,weakData:{}}})},s=function(V,b){if(!o(V))return typeof V=="symbol"?V:(typeof V=="string"?"S":"P")+V;if(!m(V,f)){if(!k(V))return"F";if(!b)return"E";u(V)}return V[f].objectID},d=function(V,b){if(!m(V,f)){if(!k(V))return!0;if(!b)return!1;u(V)}return V[f].weakData},C=function(V){return l&&c&&k(V)&&!m(V,f)&&u(V),V},g=function(){v.enable=function(){},c=!0;var V=y.f,b=a([].splice),B={};B[f]=1,V(B).length&&(y.f=function(I){for(var w=V(I),T=0,A=w.length;TI;I++)if(T=P(i[I]),T&&y(f,T))return T;return new c(!1)}b=S(i,B)}for(A=g?i.next:b.next;!(x=a(A,b)).done;){try{T=P(x.value)}catch(j){p(b,"throw",j)}if(typeof T=="object"&&T&&y(f,T))return T}return new c(!1)}},65169:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(76540);L.exports=function(o,m,N){var y,S;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw N;return N}y=e(y,o)}catch(k){S=!0,y=k}if(m==="throw")throw N;if(S)throw y;return a(y),N}},41903:function(L,r,n){"use strict";var e=n(83665).IteratorPrototype,a=n(15439),t=n(73970),o=n(15676),m=n(47730),N=function(){return this};L.exports=function(y,S,k,p){var l=S+" Iterator";return y.prototype=a(e,{next:t(+!p,k)}),o(y,l,!1,!0),m[l]=N,y}},21436:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(90139),o=n(15340),m=n(53664),N=n(41903),y=n(56379),S=n(91420),k=n(15676),p=n(21650),l=n(60855),c=n(95558),f=n(47730),i=n(83665),u=o.PROPER,s=o.CONFIGURABLE,d=i.IteratorPrototype,C=i.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",h="values",V="entries",b=function(){return this};L.exports=function(B,I,w,T,A,x,E){N(w,I,T);var P=function(G){if(G===A&&F)return F;if(!C&&G&&G in O)return O[G];switch(G){case v:return function(){function X(){return new w(this,G)}return X}();case h:return function(){function X(){return new w(this,G)}return X}();case V:return function(){function X(){return new w(this,G)}return X}()}return function(){return new w(this)}},j=I+" Iterator",M=!1,O=B.prototype,D=O[g]||O["@@iterator"]||A&&O[A],F=!C&&D||P(A),U=I==="Array"&&O.entries||D,_,z,H;if(U&&(_=y(U.call(new B)),_!==Object.prototype&&_.next&&(!t&&y(_)!==d&&(S?S(_,d):m(_[g])||l(_,g,b)),k(_,j,!0,!0),t&&(f[j]=b))),u&&A===h&&D&&D.name!==h&&(!t&&s?p(O,"name",h):(M=!0,F=function(){function $(){return a(D,this)}return $}())),A)if(z={values:P(h),keys:x?F:P(v),entries:P(V)},E)for(H in z)(C||M||!(H in O))&&l(O,H,z[H]);else e({target:I,proto:!0,forced:C||M},z);return(!t||E)&&O[g]!==F&&l(O,g,F,{name:A}),f[I]=F,z}},83665:function(L,r,n){"use strict";var e=n(13586),a=n(53664),t=n(66379),o=n(15439),m=n(56379),N=n(60855),y=n(95558),S=n(90139),k=y("iterator"),p=!1,l,c,f;[].keys&&(f=[].keys(),"next"in f?(c=m(m(f)),c!==Object.prototype&&(l=c)):p=!0);var i=!t(l)||e(function(){var u={};return l[k].call(u)!==u});i?l={}:S&&(l=o(l)),a(l[k])||N(l,k,function(){return this}),L.exports={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:p}},47730:function(L){"use strict";L.exports={}},83207:function(L,r,n){"use strict";var e=n(74369);L.exports=function(a){return e(a.length)}},40773:function(L,r,n){"use strict";var e=n(72908),a=n(13586),t=n(53664),o=n(3302),m=n(16361),N=n(15340).CONFIGURABLE,y=n(92004),S=n(4471),k=S.enforce,p=S.get,l=String,c=Object.defineProperty,f=e("".slice),i=e("".replace),u=e([].join),s=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),d=String(String).split("String"),C=L.exports=function(g,v,h){f(l(v),0,7)==="Symbol("&&(v="["+i(l(v),/^Symbol\(([^)]*)\)/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(g,"name")||N&&g.name!==v)&&(m?c(g,"name",{value:v,configurable:!0}):g.name=v),s&&h&&o(h,"arity")&&g.length!==h.arity&&c(g,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch(b){}var V=k(g);return o(V,"source")||(V.source=u(d,typeof v=="string"?v:"")),g};Function.prototype.toString=C(function(){function g(){return t(this)&&p(this).source||y(this)}return g}(),"toString")},80563:function(L){"use strict";var r=Math.expm1,n=Math.exp;L.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},27509:function(L,r,n){"use strict";var e=n(30585),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};L.exports=function(N,y,S,k){var p=+N,l=a(p),c=e(p);if(lS||i!==i?c*(1/0):c*i}},48705:function(L,r,n){"use strict";var e=n(27509),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function m(N){return e(N,a,t,o)}return m}()},74347:function(L){"use strict";var r=Math.log,n=Math.LOG10E;L.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},50169:function(L){"use strict";var r=Math.log;L.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}()},30585:function(L){"use strict";L.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},54037:function(L){"use strict";var r=Math.ceil,n=Math.floor;L.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},60816:function(L,r,n){"use strict";var e=n(26856),a=n(8975),t=n(8942),o=n(87073).set,m=n(8274),N=n(25184),y=n(79034),S=n(71979),k=n(86727),p=e.MutationObserver||e.WebKitMutationObserver,l=e.document,c=e.process,f=e.Promise,i=a("queueMicrotask"),u,s,d,C,g;if(!i){var v=new m,h=function(){var b,B;for(k&&(b=c.domain)&&b.exit();B=v.get();)try{B()}catch(I){throw v.head&&u(),I}b&&b.enter()};!N&&!k&&!S&&p&&l?(s=!0,d=l.createTextNode(""),new p(h).observe(d,{characterData:!0}),u=function(){d.data=s=!s}):!y&&f&&f.resolve?(C=f.resolve(void 0),C.constructor=f,g=t(C.then,C),u=function(){g(h)}):k?u=function(){c.nextTick(h)}:(o=t(o,e),u=function(){o(h)}),i=function(b){v.head||u(),v.add(b)}}L.exports=i},14187:function(L,r,n){"use strict";var e=n(79474),a=TypeError,t=function(m){var N,y;this.promise=new m(function(S,k){if(N!==void 0||y!==void 0)throw new a("Bad Promise constructor");N=S,y=k}),this.resolve=e(N),this.reject=e(y)};L.exports.f=function(o){return new t(o)}},75816:function(L,r,n){"use strict";var e=n(28774),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},23944:function(L,r,n){"use strict";var e=n(26856),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},98973:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),m=n(47913).trim,N=n(47410),y=t("".charAt),S=e.parseFloat,k=e.Symbol,p=k&&k.iterator,l=1/S(N+"-0")!==-1/0||p&&!a(function(){S(Object(p))});L.exports=l?function(){function c(f){var i=m(o(f)),u=S(i);return u===0&&y(i,0)==="-"?-0:u}return c}():S},41148:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(8758),m=n(47913).trim,N=n(47410),y=e.parseInt,S=e.Symbol,k=S&&S.iterator,p=/^[+-]?0x/i,l=t(p.exec),c=y(N+"08")!==8||y(N+"0x16")!==22||k&&!a(function(){y(Object(k))});L.exports=c?function(){function f(i,u){var s=m(o(i));return y(s,u>>>0||(l(p,s)?16:10))}return f}():y},23554:function(L,r,n){"use strict";var e=n(16361),a=n(72908),t=n(20276),o=n(13586),m=n(99869),N=n(61791),y=n(10409),S=n(63549),k=n(80689),p=Object.assign,l=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(l({},"a",{enumerable:!0,get:function(){function d(){l(this,"b",{value:3,enumerable:!1})}return d}()}),{b:2})).b!==1)return!0;var f={},i={},u=Symbol("assign detection"),s="abcdefghijklmnopqrst";return f[u]=7,s.split("").forEach(function(d){i[d]=d}),p({},f)[u]!==7||m(p({},i)).join("")!==s})?function(){function f(i,u){for(var s=S(i),d=arguments.length,C=1,g=N.f,v=y.f;d>C;)for(var h=k(arguments[C++]),V=g?c(m(h),g(h)):m(h),b=V.length,B=0,I;b>B;)I=V[B++],(!e||t(v,h,I))&&(s[I]=h[I]);return s}return f}():p},15439:function(L,r,n){"use strict";var e=n(45418),a=n(55119),t=n(38139),o=n(51653),m=n(21474),N=n(55642),y=n(97223),S=">",k="<",p="prototype",l="script",c=y("IE_PROTO"),f=function(){},i=function(v){return k+l+S+v+k+"/"+l+S},u=function(v){v.write(i("")),v.close();var h=v.parentWindow.Object;return v=null,h},s=function(){var v=N("iframe"),h="java"+l+":",V;return v.style.display="none",m.appendChild(v),v.src=String(h),V=v.contentWindow.document,V.open(),V.write(i("document.F=Object")),V.close(),V.F},d,C=function(){try{d=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&d?u(d):s():u(d);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function g(v,h){var V;return v!==null?(f[p]=e(v),V=new f,f[p]=null,V[c]=v):V=C(),h===void 0?V:a.f(V,h)}return g}()},55119:function(L,r,n){"use strict";var e=n(16361),a=n(87168),t=n(8165),o=n(45418),m=n(54292),N=n(99869);r.f=e&&!a?Object.defineProperties:function(){function y(S,k){o(S);for(var p=m(k),l=N(k),c=l.length,f=0,i;c>f;)t.f(S,i=l[f++],p[i]);return S}return y}()},8165:function(L,r,n){"use strict";var e=n(16361),a=n(16109),t=n(87168),o=n(45418),m=n(72445),N=TypeError,y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,k="enumerable",p="configurable",l="writable";r.f=e?t?function(){function c(f,i,u){if(o(f),i=m(i),o(u),typeof f=="function"&&i==="prototype"&&"value"in u&&l in u&&!u[l]){var s=S(f,i);s&&s[l]&&(f[i]=u.value,u={configurable:p in u?u[p]:s[p],enumerable:k in u?u[k]:s[k],writable:!1})}return y(f,i,u)}return c}():y:function(){function c(f,i,u){if(o(f),i=m(i),o(u),a)try{return y(f,i,u)}catch(s){}if("get"in u||"set"in u)throw new N("Accessors not supported");return"value"in u&&(f[i]=u.value),f}return c}()},19765:function(L,r,n){"use strict";var e=n(16361),a=n(20276),t=n(10409),o=n(73970),m=n(54292),N=n(72445),y=n(3302),S=n(16109),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(){function p(l,c){if(l=m(l),c=N(c),S)try{return k(l,c)}catch(f){}if(y(l,c))return o(!a(t.f,l,c),l[c])}return p}()},31024:function(L,r,n){"use strict";var e=n(8649),a=n(54292),t=n(60097).f,o=n(31170),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],N=function(S){try{return t(S)}catch(k){return o(m)}};L.exports.f=function(){function y(S){return m&&e(S)==="Window"?N(S):t(a(S))}return y}()},60097:function(L,r,n){"use strict";var e=n(49871),a=n(38139),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},61791:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},56379:function(L,r,n){"use strict";var e=n(3302),a=n(53664),t=n(63549),o=n(97223),m=n(62297),N=o("IE_PROTO"),y=Object,S=y.prototype;L.exports=m?y.getPrototypeOf:function(k){var p=t(k);if(e(p,N))return p[N];var l=p.constructor;return a(l)&&p instanceof l?l.prototype:p instanceof y?S:null}},58221:function(L,r,n){"use strict";var e=n(13586),a=n(66379),t=n(8649),o=n(8685),m=Object.isExtensible,N=e(function(){m(1)});L.exports=N||o?function(){function y(S){return!a(S)||o&&t(S)==="ArrayBuffer"?!1:m?m(S):!0}return y}():m},54341:function(L,r,n){"use strict";var e=n(72908);L.exports=e({}.isPrototypeOf)},49871:function(L,r,n){"use strict";var e=n(72908),a=n(3302),t=n(54292),o=n(33483).indexOf,m=n(51653),N=e([].push);L.exports=function(y,S){var k=t(y),p=0,l=[],c;for(c in k)!a(m,c)&&a(k,c)&&N(l,c);for(;S.length>p;)a(k,c=S[p++])&&(~o(l,c)||N(l,c));return l}},99869:function(L,r,n){"use strict";var e=n(49871),a=n(38139);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},10409:function(L,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},6205:function(L,r,n){"use strict";var e=n(90139),a=n(26856),t=n(13586),o=n(27204);L.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},91420:function(L,r,n){"use strict";var e=n(53715),a=n(45418),t=n(30907);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,m={},N;try{N=e(Object.prototype,"__proto__","set"),N(m,[]),o=m instanceof Array}catch(y){}return function(){function y(S,k){return a(S),t(k),o?N(S,k):S.__proto__=k,S}return y}()}():void 0)},64266:function(L,r,n){"use strict";var e=n(16361),a=n(13586),t=n(72908),o=n(56379),m=n(99869),N=n(54292),y=n(10409).f,S=t(y),k=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!S(c,2)}),l=function(f){return function(i){for(var u=N(i),s=m(u),d=p&&o(u)===null,C=s.length,g=0,v=[],h;C>g;)h=s[g++],(!e||(d?h in u:S(u,h)))&&k(v,f?[h,u[h]]:u[h]);return v}};L.exports={entries:l(!0),values:l(!1)}},6625:function(L,r,n){"use strict";var e=n(41936),a=n(48615);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},56109:function(L,r,n){"use strict";var e=n(20276),a=n(53664),t=n(66379),o=TypeError;L.exports=function(m,N){var y,S;if(N==="string"&&a(y=m.toString)&&!t(S=e(y,m))||a(y=m.valueOf)&&!t(S=e(y,m))||N!=="string"&&a(y=m.toString)&&!t(S=e(y,m)))return S;throw new o("Can't convert object to primitive value")}},53988:function(L,r,n){"use strict";var e=n(22070),a=n(72908),t=n(60097),o=n(61791),m=n(45418),N=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function y(S){var k=t.f(m(S)),p=o.f;return p?N(k,p(S)):k}return y}()},55601:function(L,r,n){"use strict";var e=n(26856);L.exports=e},73034:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},14657:function(L,r,n){"use strict";var e=n(26856),a=n(3e3),t=n(53664),o=n(23620),m=n(92004),N=n(95558),y=n(52460),S=n(53437),k=n(90139),p=n(43541),l=a&&a.prototype,c=N("species"),f=!1,i=t(e.PromiseRejectionEvent),u=o("Promise",function(){var s=m(a),d=s!==String(a);if(!d&&p===66||k&&!(l.catch&&l.finally))return!0;if(!p||p<51||!/native code/.test(s)){var C=new a(function(h){h(1)}),g=function(V){V(function(){},function(){})},v=C.constructor={};if(v[c]=g,f=C.then(function(){})instanceof g,!f)return!0}return!d&&(y||S)&&!i});L.exports={CONSTRUCTOR:u,REJECTION_EVENT:i,SUBCLASSING:f}},3e3:function(L,r,n){"use strict";var e=n(26856);L.exports=e.Promise},61988:function(L,r,n){"use strict";var e=n(45418),a=n(66379),t=n(14187);L.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var N=t.f(o),y=N.resolve;return y(m),N.promise}},18182:function(L,r,n){"use strict";var e=n(3e3),a=n(1608),t=n(14657).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},69713:function(L,r,n){"use strict";var e=n(8165).f;L.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(N){t[o]=N}return m}()})}},8274:function(L){"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}()},L.exports=r},59833:function(L,r,n){"use strict";var e=n(20276),a=n(45418),t=n(53664),o=n(8649),m=n(59049),N=TypeError;L.exports=function(y,S){var k=y.exec;if(t(k)){var p=e(k,y,S);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,S);throw new N("RegExp#exec called on incompatible receiver")}},59049:function(L,r,n){"use strict";var e=n(20276),a=n(72908),t=n(8758),o=n(41913),m=n(96472),N=n(7624),y=n(15439),S=n(4471).get,k=n(18095),p=n(17329),l=N("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,f=c,i=a("".charAt),u=a("".indexOf),s=a("".replace),d=a("".slice),C=function(){var V=/a/,b=/b*/g;return e(c,V,"a"),e(c,b,"a"),V.lastIndex!==0||b.lastIndex!==0}(),g=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||g||k||p;h&&(f=function(){function V(b){var B=this,I=S(B),w=t(b),T=I.raw,A,x,E,P,j,M,O;if(T)return T.lastIndex=B.lastIndex,A=e(f,T,w),B.lastIndex=T.lastIndex,A;var D=I.groups,F=g&&B.sticky,U=e(o,B),_=B.source,z=0,H=w;if(F&&(U=s(U,"y",""),u(U,"g")===-1&&(U+="g"),H=d(w,B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&i(w,B.lastIndex-1)!=="\n")&&(_="(?: "+_+")",H=" "+H,z++),x=new RegExp("^(?:"+_+")",U)),v&&(x=new RegExp("^"+_+"$(?!\\s)",U)),C&&(E=B.lastIndex),P=e(c,F?x:B,H),F?P?(P.input=d(P.input,z),P[0]=d(P[0],z),P.index=B.lastIndex,B.lastIndex+=P[0].length):B.lastIndex=0:C&&P&&(B.lastIndex=B.global?P.index+P[0].length:E),v&&P&&P.length>1&&e(l,P[0],x,function(){for(j=1;jb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$
c")!=="bc"})},305:function(L,r,n){"use strict";var e=n(62695),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},8975:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},91935:function(L){"use strict";L.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},17459:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(53664),o=n(68261),m=n(74247),N=n(31170),y=n(92827),S=e.Function,k=/MSIE .\./.test(m)||o&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,l){var c=l?2:1;return k?function(f,i){var u=y(arguments.length,1)>c,s=t(f)?f:S(f),d=u?N(arguments,c):[],C=u?function(){a(s,this,d)}:s;return l?p(C,i):p(C)}:p}},92468:function(L,r,n){"use strict";var e=n(22070),a=n(57301),t=n(95558),o=n(16361),m=t("species");L.exports=function(N){var y=e(N);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function S(){return this}return S}()})}},15676:function(L,r,n){"use strict";var e=n(8165).f,a=n(3302),t=n(95558),o=t("toStringTag");L.exports=function(m,N,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:N})}},97223:function(L,r,n){"use strict";var e=n(7624),a=n(76246),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},70192:function(L,r,n){"use strict";var e=n(26856),a=n(17553),t="__core-js_shared__",o=e[t]||a(t,{});L.exports=o},7624:function(L,r,n){"use strict";var e=n(90139),a=n(70192);(L.exports=function(t,o){return a[t]||(a[t]=o!==void 0?o:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},83604:function(L,r,n){"use strict";var e=n(45418),a=n(48218),t=n(62695),o=n(95558),m=o("species");L.exports=function(N,y){var S=e(N).constructor,k;return S===void 0||t(k=e(S)[m])?y:a(k)}},81626:function(L,r,n){"use strict";var e=n(13586);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},13300:function(L,r,n){"use strict";var e=n(72908),a=n(84501),t=n(8758),o=n(305),m=e("".charAt),N=e("".charCodeAt),y=e("".slice),S=function(p){return function(l,c){var f=t(o(l)),i=a(c),u=f.length,s,d;return i<0||i>=u?p?"":void 0:(s=N(f,i),s<55296||s>56319||i+1===u||(d=N(f,i+1))<56320||d>57343?p?m(f,i):s:p?y(f,i,i+2):(s-55296<<10)+(d-56320)+65536)}};L.exports={codeAt:S(!1),charAt:S(!0)}},51468:function(L,r,n){"use strict";var e=n(74247);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},81290:function(L,r,n){"use strict";var e=n(72908),a=n(74369),t=n(8758),o=n(75463),m=n(305),N=e(o),y=e("".slice),S=Math.ceil,k=function(l){return function(c,f,i){var u=t(m(c)),s=a(f),d=u.length,C=i===void 0?" ":t(i),g,v;return s<=d||C===""?u:(g=s-d,v=N(C,S(g/C.length)),v.length>g&&(v=y(v,0,g)),l?u+v:v+u)}};L.exports={start:k(!1),end:k(!0)}},75463:function(L,r,n){"use strict";var e=n(84501),a=n(8758),t=n(305),o=RangeError;L.exports=function(){function m(N){var y=a(t(this)),S="",k=e(N);if(k<0||k===1/0)throw new o("Wrong number of repetitions");for(;k>0;(k>>>=1)&&(y+=y))k&1&&(S+=y);return S}return m}()},45745:function(L,r,n){"use strict";var e=n(47913).end,a=n(15677);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},15677:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(13586),t=n(47410),o="\u200B\x85\u180E";L.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},35634:function(L,r,n){"use strict";var e=n(47913).start,a=n(15677);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},47913:function(L,r,n){"use strict";var e=n(72908),a=n(305),t=n(8758),o=n(47410),m=e("".replace),N=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),S=function(p){return function(l){var c=t(a(l));return p&1&&(c=m(c,N,"")),p&2&&(c=m(c,y,"$1")),c}};L.exports={start:S(1),end:S(2),trim:S(3)}},61855:function(L,r,n){"use strict";var e=n(43541),a=n(13586),t=n(26856),o=t.String;L.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},28952:function(L,r,n){"use strict";var e=n(20276),a=n(22070),t=n(95558),o=n(60855);L.exports=function(){var m=a("Symbol"),N=m&&m.prototype,y=N&&N.valueOf,S=t("toPrimitive");N&&!N[S]&&o(N,S,function(k){return e(y,this)},{arity:1})}},16010:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},87073:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(8942),o=n(53664),m=n(3302),N=n(13586),y=n(21474),S=n(31170),k=n(55642),p=n(92827),l=n(25184),c=n(86727),f=e.setImmediate,i=e.clearImmediate,u=e.process,s=e.Dispatch,d=e.Function,C=e.MessageChannel,g=e.String,v=0,h={},V="onreadystatechange",b,B,I,w;N(function(){b=e.location});var T=function(j){if(m(h,j)){var M=h[j];delete h[j],M()}},A=function(j){return function(){T(j)}},x=function(j){T(j.data)},E=function(j){e.postMessage(g(j),b.protocol+"//"+b.host)};(!f||!i)&&(f=function(){function P(j){p(arguments.length,1);var M=o(j)?j:d(j),O=S(arguments,1);return h[++v]=function(){a(M,void 0,O)},B(v),v}return P}(),i=function(){function P(j){delete h[j]}return P}(),c?B=function(j){u.nextTick(A(j))}:s&&s.now?B=function(j){s.now(A(j))}:C&&!l?(I=new C,w=I.port2,I.port1.onmessage=x,B=t(w.postMessage,w)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&b&&b.protocol!=="file:"&&!N(E)?(B=E,e.addEventListener("message",x,!1)):V in k("script")?B=function(j){y.appendChild(k("script"))[V]=function(){y.removeChild(this),T(j)}}:B=function(j){setTimeout(A(j),0)}),L.exports={set:f,clear:i}},7950:function(L,r,n){"use strict";var e=n(72908);L.exports=e(1 .valueOf)},39531:function(L,r,n){"use strict";var e=n(84501),a=Math.max,t=Math.min;L.exports=function(o,m){var N=e(o);return N<0?a(N+m,0):t(N,m)}},73873:function(L,r,n){"use strict";var e=n(9560),a=TypeError;L.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},28968:function(L,r,n){"use strict";var e=n(84501),a=n(74369),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var m=e(o),N=a(m);if(m!==N)throw new t("Wrong length or index");return N}},54292:function(L,r,n){"use strict";var e=n(80689),a=n(305);L.exports=function(t){return e(a(t))}},84501:function(L,r,n){"use strict";var e=n(54037);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},74369:function(L,r,n){"use strict";var e=n(84501),a=Math.min;L.exports=function(t){return t>0?a(e(t),9007199254740991):0}},63549:function(L,r,n){"use strict";var e=n(305),a=Object;L.exports=function(t){return a(e(t))}},45476:function(L,r,n){"use strict";var e=n(70685),a=RangeError;L.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},70685:function(L,r,n){"use strict";var e=n(84501),a=RangeError;L.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},9560:function(L,r,n){"use strict";var e=n(20276),a=n(66379),t=n(43474),o=n(76540),m=n(56109),N=n(95558),y=TypeError,S=N("toPrimitive");L.exports=function(k,p){if(!a(k)||t(k))return k;var l=o(k,S),c;if(l){if(p===void 0&&(p="default"),c=e(l,k,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(k,p)}},72445:function(L,r,n){"use strict";var e=n(9560),a=n(43474);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},41936:function(L,r,n){"use strict";var e=n(95558),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},8758:function(L,r,n){"use strict";var e=n(48615),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},52834:function(L){"use strict";var r=Math.round;L.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},36787:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},43186:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(16361),m=n(45410),N=n(30432),y=n(31284),S=n(14434),k=n(73970),p=n(21650),l=n(76117),c=n(74369),f=n(28968),i=n(45476),u=n(52834),s=n(72445),d=n(3302),C=n(48615),g=n(66379),v=n(43474),h=n(15439),V=n(54341),b=n(91420),B=n(60097).f,I=n(12778),w=n(18539).forEach,T=n(92468),A=n(57301),x=n(8165),E=n(19765),P=n(21465),j=n(4471),M=n(43405),O=j.get,D=j.set,F=j.enforce,U=x.f,_=E.f,z=a.RangeError,H=y.ArrayBuffer,$=H.prototype,G=y.DataView,X=N.NATIVE_ARRAY_BUFFER_VIEWS,oe=N.TYPED_ARRAY_TAG,re=N.TypedArray,se=N.TypedArrayPrototype,he=N.isTypedArray,ye="BYTES_PER_ELEMENT",Be="Wrong length",me=function(ae,be){A(ae,be,{configurable:!0,get:function(){function pe(){return O(this)[be]}return pe}()})},te=function(ae){var be;return V($,ae)||(be=C(ae))==="ArrayBuffer"||be==="SharedArrayBuffer"},Z=function(ae,be){return he(ae)&&!v(be)&&be in ae&&l(+be)&&be>=0},q=function(){function fe(ae,be){return be=s(be),Z(ae,be)?k(2,ae[be]):_(ae,be)}return fe}(),ue=function(){function fe(ae,be,pe){return be=s(be),Z(ae,be)&&g(pe)&&d(pe,"value")&&!d(pe,"get")&&!d(pe,"set")&&!pe.configurable&&(!d(pe,"writable")||pe.writable)&&(!d(pe,"enumerable")||pe.enumerable)?(ae[be]=pe.value,ae):U(ae,be,pe)}return fe}();o?(X||(E.f=q,x.f=ue,me(se,"buffer"),me(se,"byteOffset"),me(se,"byteLength"),me(se,"length")),e({target:"Object",stat:!0,forced:!X},{getOwnPropertyDescriptor:q,defineProperty:ue}),L.exports=function(fe,ae,be){var pe=fe.match(/\d+/)[0]/8,ge=fe+(be?"Clamped":"")+"Array",ke="get"+fe,ve="set"+fe,Se=a[ge],we=Se,xe=we&&we.prototype,Oe={},We=function(de,Ne){var Ae=O(de);return Ae.view[ke](Ne*pe+Ae.byteOffset,!0)},Ve=function(de,Ne,Ae){var De=O(de);De.view[ve](Ne*pe+De.byteOffset,be?u(Ae):Ae,!0)},ce=function(de,Ne){U(de,Ne,{get:function(){function Ae(){return We(this,Ne)}return Ae}(),set:function(){function Ae(De){return Ve(this,Ne,De)}return Ae}(),enumerable:!0})};X?m&&(we=ae(function(Ce,de,Ne,Ae){return S(Ce,xe),M(function(){return g(de)?te(de)?Ae!==void 0?new Se(de,i(Ne,pe),Ae):Ne!==void 0?new Se(de,i(Ne,pe)):new Se(de):he(de)?P(we,de):t(I,we,de):new Se(f(de))}(),Ce,we)}),b&&b(we,re),w(B(Se),function(Ce){Ce in we||p(we,Ce,Se[Ce])}),we.prototype=xe):(we=ae(function(Ce,de,Ne,Ae){S(Ce,xe);var De=0,je=0,_e,Ue,Ke;if(!g(de))Ke=f(de),Ue=Ke*pe,_e=new H(Ue);else if(te(de)){_e=de,je=i(Ne,pe);var Ge=de.byteLength;if(Ae===void 0){if(Ge%pe)throw new z(Be);if(Ue=Ge-je,Ue<0)throw new z(Be)}else if(Ue=c(Ae)*pe,Ue+je>Ge)throw new z(Be);Ke=Ue/pe}else return he(de)?P(we,de):t(I,we,de);for(D(Ce,{buffer:_e,byteOffset:je,byteLength:Ue,length:Ke,view:new G(_e)});De1?arguments[1]:void 0,C=d!==void 0,g=y(u),v,h,V,b,B,I,w,T;if(g&&!S(g))for(w=N(u,g),T=w.next,u=[];!(I=a(T,w)).done;)u.push(I.value);for(C&&s>2&&(d=e(d,arguments[2])),h=m(u),V=new(p(i))(h),b=k(V),v=0;h>v;v++)B=C?d(u[v],v):u[v],V[v]=b?l(B):+B;return V}return c}()},9230:function(L,r,n){"use strict";var e=n(30432),a=n(83604),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(m){return t(a(m,o(m)))}},76246:function(L,r,n){"use strict";var e=n(72908),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},95343:function(L,r,n){"use strict";var e=n(61855);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},87168:function(L,r,n){"use strict";var e=n(16361),a=n(13586);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},92827:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var d=[];return d[f]=!1,d.concat()[0]!==d}),u=function(C){if(!o(C))return!1;var g=C[f];return g!==void 0?!!g:t(C)},s=!i||!p("concat");e({target:"Array",proto:!0,arity:1,forced:s},{concat:function(){function d(C){var g=m(this),v=k(g,0),h=0,V,b,B,I,w;for(V=-1,B=arguments.length;V1?arguments[1]:void 0)}return m}()})},7216:function(L,r,n){"use strict";var e=n(3116),a=n(39948),t=n(98759);e({target:"Array",proto:!0},{fill:a}),t("fill")},50584:function(L,r,n){"use strict";var e=n(3116),a=n(18539).filter,t=n(34924),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},25972:function(L,r,n){"use strict";var e=n(3116),a=n(18539).findIndex,t=n(98759),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},26632:function(L,r,n){"use strict";var e=n(3116),a=n(18539).find,t=n(98759),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),t(o)},14064:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(79474),o=n(63549),m=n(83207),N=n(51582);e({target:"Array",proto:!0},{flatMap:function(){function y(S){var k=o(this),p=m(k),l;return t(S),l=N(k,0),l.length=a(l,k,k,p,0,1,S,arguments.length>1?arguments[1]:void 0),l}return y}()})},55222:function(L,r,n){"use strict";var e=n(3116),a=n(73132),t=n(63549),o=n(83207),m=n(84501),N=n(51582);e({target:"Array",proto:!0},{flat:function(){function y(){var S=arguments.length?arguments[0]:void 0,k=t(this),p=o(k),l=N(k,0);return l.length=a(l,k,k,p,0,S===void 0?1:m(S)),l}return y}()})},68616:function(L,r,n){"use strict";var e=n(3116),a=n(16856);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},45168:function(L,r,n){"use strict";var e=n(3116),a=n(45056),t=n(1608),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},26088:function(L,r,n){"use strict";var e=n(3116),a=n(33483).includes,t=n(13586),o=n(98759),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function N(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return N}()}),o("includes")},92654:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(33483).indexOf,o=n(56127),m=a([].indexOf),N=!!m&&1/m([1],1,-0)<0,y=N||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function S(k){var p=arguments.length>1?arguments[1]:void 0;return N?m(this,k,p)||0:t(this,k,p)}return S}()})},58423:function(L,r,n){"use strict";var e=n(3116),a=n(59882);e({target:"Array",stat:!0},{isArray:a})},26017:function(L,r,n){"use strict";var e=n(54292),a=n(98759),t=n(47730),o=n(4471),m=n(8165).f,N=n(21436),y=n(32214),S=n(90139),k=n(16361),p="Array Iterator",l=o.set,c=o.getterFor(p);L.exports=N(Array,"Array",function(i,u){l(this,{type:p,target:e(i),index:0,kind:u})},function(){var i=c(this),u=i.target,s=i.index++;if(!u||s>=u.length)return i.target=void 0,y(void 0,!0);switch(i.kind){case"keys":return y(s,!1);case"values":return y(u[s],!1)}return y([s,u[s]],!1)},"values");var f=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!S&&k&&f.name!=="values")try{m(f,"name",{value:"values"})}catch(i){}},37808:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(80689),o=n(54292),m=n(56127),N=a([].join),y=t!==Object,S=y||!m("join",",");e({target:"Array",proto:!0,forced:S},{join:function(){function k(p){return N(o(this),p===void 0?",":p)}return k}()})},2509:function(L,r,n){"use strict";var e=n(3116),a=n(16400);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},2124:function(L,r,n){"use strict";var e=n(3116),a=n(18539).map,t=n(34924),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(N){return a(this,N,arguments.length>1?arguments[1]:void 0)}return m}()})},38196:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(49632),o=n(80750),m=Array,N=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:N},{of:function(){function y(){for(var S=0,k=arguments.length,p=new(t(this)?this:m)(k);k>S;)o(p,S,arguments[S++]);return p.length=k,p}return y}()})},56913:function(L,r,n){"use strict";var e=n(3116),a=n(58394).right,t=n(56127),o=n(43541),m=n(86727),N=!m&&o>79&&o<83,y=N||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function S(k){return a(this,k,arguments.length,arguments.length>1?arguments[1]:void 0)}return S}()})},7731:function(L,r,n){"use strict";var e=n(3116),a=n(58394).left,t=n(56127),o=n(43541),m=n(86727),N=!m&&o>79&&o<83,y=N||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function S(k){var p=arguments.length;return a(this,k,p,p>1?arguments[1]:void 0)}return S}()})},48704:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(59882),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function N(){return t(this)&&(this.length=this.length),o(this)}return N}()})},24077:function(L,r,n){"use strict";var e=n(3116),a=n(59882),t=n(49632),o=n(66379),m=n(39531),N=n(83207),y=n(54292),S=n(80750),k=n(95558),p=n(34924),l=n(31170),c=p("slice"),f=k("species"),i=Array,u=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function s(d,C){var g=y(this),v=N(g),h=m(d,v),V=m(C===void 0?v:C,v),b,B,I;if(a(g)&&(b=g.constructor,t(b)&&(b===i||a(b.prototype))?b=void 0:o(b)&&(b=b[f],b===null&&(b=void 0)),b===i||b===void 0))return l(g,h,V);for(B=new(b===void 0?i:b)(u(V-h,0)),I=0;h1?arguments[1]:void 0)}return m}()})},43430:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(79474),o=n(63549),m=n(83207),N=n(81245),y=n(8758),S=n(13586),k=n(91183),p=n(56127),l=n(31574),c=n(88836),f=n(43541),i=n(27204),u=[],s=a(u.sort),d=a(u.push),C=S(function(){u.sort(void 0)}),g=S(function(){u.sort(null)}),v=p("sort"),h=!S(function(){if(f)return f<70;if(!(l&&l>3)){if(c)return!0;if(i)return i<603;var B="",I,w,T,A;for(I=65;I<76;I++){switch(w=String.fromCharCode(I),I){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)u.push({k:w+A,v:T})}for(u.sort(function(x,E){return E.v-x.v}),A=0;Ay(T)?1:-1}};e({target:"Array",proto:!0,forced:V},{sort:function(){function B(I){I!==void 0&&t(I);var w=o(this);if(h)return I===void 0?s(w):s(w,I);var T=[],A=m(w),x,E;for(E=0;Eg-b+V;I--)p(C,I-1)}else if(V>b)for(I=g-b;I>v;I--)w=I+b-1,T=I+V-1,w in C?C[T]=C[w]:p(C,T);for(I=0;I9490626562425156e-8?o(p)+N:a(p-1+m(p-1)*m(p+1))}return S}()})},68872:function(L,r,n){"use strict";var e=n(3116),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var S=+y;return!isFinite(S)||S===0?S:S<0?-m(-S):t(S+o(S*S+1))}var N=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:N},{asinh:m})},93105:function(L,r,n){"use strict";var e=n(3116),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(N){var y=+N;return y===0?y:t((1+y)/(1-y))/2}return m}()})},1795:function(L,r,n){"use strict";var e=n(3116),a=n(30585),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(N){var y=+N;return a(y)*o(t(y),.3333333333333333)}return m}()})},11121:function(L,r,n){"use strict";var e=n(3116),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(N){var y=N>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},18730:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.cosh,o=Math.abs,m=Math.E,N=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:N},{cosh:function(){function y(S){var k=a(o(S)-1)+1;return(k+1/(k*m*m))*(m/2)}return y}()})},11624:function(L,r,n){"use strict";var e=n(3116),a=n(80563);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},89004:function(L,r,n){"use strict";var e=n(3116),a=n(48705);e({target:"Math",stat:!0},{fround:a})},72680:function(L,r,n){"use strict";var e=n(3116),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function N(y,S){for(var k=0,p=0,l=arguments.length,c=0,f,i;p0?(i=f/c,k+=i*i):k+=f;return c===1/0?1/0:c*o(k)}return N}()})},75213:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(N,y){var S=65535,k=+N,p=+y,l=S&k,c=S&p;return 0|l*c+((S&k>>>16)*c+l*(S&p>>>16)<<16>>>0)}return m}()})},4347:function(L,r,n){"use strict";var e=n(3116),a=n(74347);e({target:"Math",stat:!0},{log10:a})},86433:function(L,r,n){"use strict";var e=n(3116),a=n(50169);e({target:"Math",stat:!0},{log1p:a})},21401:function(L,r,n){"use strict";var e=n(3116),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},54468:function(L,r,n){"use strict";var e=n(3116),a=n(30585);e({target:"Math",stat:!0},{sign:a})},36183:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(80563),o=Math.abs,m=Math.exp,N=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function S(k){var p=+k;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(N/2)}return S}()})},95499:function(L,r,n){"use strict";var e=n(3116),a=n(80563),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var N=+m,y=a(N),S=a(-N);return y===1/0?1:S===1/0?-1:(y-S)/(t(N)+t(-N))}return o}()})},50929:function(L,r,n){"use strict";var e=n(15676);e(Math,"Math",!0)},91447:function(L,r,n){"use strict";var e=n(3116),a=n(54037);e({target:"Math",stat:!0},{trunc:a})},84314:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(16361),o=n(26856),m=n(55601),N=n(72908),y=n(23620),S=n(3302),k=n(43405),p=n(54341),l=n(43474),c=n(9560),f=n(13586),i=n(60097).f,u=n(19765).f,s=n(8165).f,d=n(7950),C=n(47913).trim,g="Number",v=o[g],h=m[g],V=v.prototype,b=o.TypeError,B=N("".slice),I=N("".charCodeAt),w=function(M){var O=c(M,"number");return typeof O=="bigint"?O:T(O)},T=function(M){var O=c(M,"number"),D,F,U,_,z,H,$,G;if(l(O))throw new b("Cannot convert a Symbol value to a number");if(typeof O=="string"&&O.length>2){if(O=C(O),D=I(O,0),D===43||D===45){if(F=I(O,2),F===88||F===120)return NaN}else if(D===48){switch(I(O,1)){case 66:case 98:U=2,_=49;break;case 79:case 111:U=8,_=55;break;default:return+O}for(z=B(O,2),H=z.length,$=0;$_)return NaN;return parseInt(z,U)}}return+O},A=y(g,!v(" 0o1")||!v("0b1")||v("+0x1")),x=function(M){return p(V,M)&&f(function(){d(M)})},E=function(){function j(M){var O=arguments.length<1?0:v(w(M));return x(this)?k(Object(O),this,E):O}return j}();E.prototype=V,A&&!a&&(V.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var P=function(M,O){for(var D=t?i(O):"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(","),F=0,U;D.length>F;F++)S(O,U=D[F])&&!S(M,U)&&s(M,U,u(O,U))};a&&h&&P(m[g],h),(A||a)&&P(m[g],v)},48211:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},52237:function(L,r,n){"use strict";var e=n(3116),a=n(23944);e({target:"Number",stat:!0},{isFinite:a})},306:function(L,r,n){"use strict";var e=n(3116),a=n(76117);e({target:"Number",stat:!0},{isInteger:a})},22509:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},84660:function(L,r,n){"use strict";var e=n(3116),a=n(76117),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},82678:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},76585:function(L,r,n){"use strict";var e=n(3116);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},21733:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},21210:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},10272:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(84501),o=n(7950),m=n(75463),N=n(13586),y=RangeError,S=String,k=Math.floor,p=a(m),l=a("".slice),c=a(1 .toFixed),f=function g(v,h,V){return h===0?V:h%2===1?g(v,h-1,V*v):g(v*v,h/2,V)},i=function(v){for(var h=0,V=v;V>=4096;)h+=12,V/=4096;for(;V>=2;)h+=1,V/=2;return h},u=function(v,h,V){for(var b=-1,B=V;++b<6;)B+=h*v[b],v[b]=B%1e7,B=k(B/1e7)},s=function(v,h){for(var V=6,b=0;--V>=0;)b+=v[V],v[V]=k(b/h),b=b%h*1e7},d=function(v){for(var h=6,V="";--h>=0;)if(V!==""||h===0||v[h]!==0){var b=S(v[h]);V=V===""?b:V+p("0",7-b.length)+b}return V},C=N(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!N(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function g(v){var h=o(this),V=t(v),b=[0,0,0,0,0,0],B="",I="0",w,T,A,x;if(V<0||V>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return S(h);if(h<0&&(B="-",h=-h),h>1e-21)if(w=i(h*f(2,69,1))-69,T=w<0?h*f(2,-w,1):h/f(2,w,1),T*=4503599627370496,w=52-w,w>0){for(u(b,0,T),A=V;A>=7;)u(b,1e7,0),A-=7;for(u(b,f(10,A,1),0),A=w-1;A>=23;)s(b,8388608),A-=23;s(b,1<0?(x=I.length,I=B+(x<=V?"0."+p("0",V-x)+I:l(I,0,x-V)+"."+l(I,x-V))):I=B+I,I}return g}()})},83403:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(13586),o=n(7950),m=a(1 .toPrecision),N=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:N},{toPrecision:function(){function y(S){return S===void 0?m(o(this)):m(o(this),S)}return y}()})},4229:function(L,r,n){"use strict";var e=n(3116),a=n(23554);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},53388:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(15439);e({target:"Object",stat:!0,sham:!a},{create:t})},53121:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),m=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(S,k){N.f(m(this),S,{get:o(k),enumerable:!0,configurable:!0})}return y}()})},53822:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(55119).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},2514:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(8165).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},2218:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(79474),m=n(63549),N=n(8165);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(S,k){N.f(m(this),S,{set:o(k),enumerable:!0,configurable:!0})}return y}()})},14955:function(L,r,n){"use strict";var e=n(3116),a=n(64266).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},79220:function(L,r,n){"use strict";var e=n(3116),a=n(58199),t=n(13586),o=n(66379),m=n(66526).onFreeze,N=Object.freeze,y=t(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function S(k){return N&&o(k)?N(m(k)):k}return S}()})},81941:function(L,r,n){"use strict";var e=n(3116),a=n(20453),t=n(80750);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var N={};return a(m,function(y,S){t(N,y,S)},{AS_ENTRIES:!0}),N}return o}()})},37245:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(54292),o=n(19765).f,m=n(16361),N=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getOwnPropertyDescriptor:function(){function y(S,k){return o(t(S),k)}return y}()})},8373:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(53988),o=n(54292),m=n(19765),N=n(80750);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(S){for(var k=o(S),p=m.f,l=t(k),c={},f=0,i,u;l.length>f;)u=p(k,i=l[f++]),u!==void 0&&N(c,i,u);return c}return y}()})},81212:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(31024).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},56896:function(L,r,n){"use strict";var e=n(3116),a=n(61855),t=n(13586),o=n(61791),m=n(63549),N=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:N},{getOwnPropertySymbols:function(){function y(S){var k=o.f;return k?k(m(S)):[]}return y}()})},26054:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(63549),o=n(56379),m=n(62297),N=a(function(){o(1)});e({target:"Object",stat:!0,forced:N,sham:!m},{getPrototypeOf:function(){function y(S){return o(t(S))}return y}()})},49611:function(L,r,n){"use strict";var e=n(3116),a=n(58221);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},98344:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),m=n(8685),N=Object.isFrozen,y=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},55750:function(L,r,n){"use strict";var e=n(3116),a=n(13586),t=n(66379),o=n(8649),m=n(8685),N=Object.isSealed,y=m||a(function(){N(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function S(k){return!t(k)||m&&o(k)==="ArrayBuffer"?!0:N?N(k):!1}return S}()})},57745:function(L,r,n){"use strict";var e=n(3116),a=n(91935);e({target:"Object",stat:!0},{is:a})},7340:function(L,r,n){"use strict";var e=n(3116),a=n(63549),t=n(99869),o=n(13586),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function N(y){return t(a(y))}return N}()})},63429:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),m=n(72445),N=n(56379),y=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function S(k){var p=o(this),l=m(k),c;do if(c=y(p,l))return c.get;while(p=N(p))}return S}()})},9558:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(6205),o=n(63549),m=n(72445),N=n(56379),y=n(19765).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function S(k){var p=o(this),l=m(k),c;do if(c=y(p,l))return c.set;while(p=N(p))}return S}()})},2420:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),m=n(13586),N=Object.preventExtensions,y=m(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},19015:function(L,r,n){"use strict";var e=n(3116),a=n(66379),t=n(66526).onFreeze,o=n(58199),m=n(13586),N=Object.seal,y=m(function(){N(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function S(k){return N&&a(k)?N(t(k)):k}return S}()})},34137:function(L,r,n){"use strict";var e=n(3116),a=n(91420);e({target:"Object",stat:!0},{setPrototypeOf:a})},24705:function(L,r,n){"use strict";var e=n(41936),a=n(60855),t=n(6625);e||a(Object.prototype,"toString",t,{unsafe:!0})},55318:function(L,r,n){"use strict";var e=n(3116),a=n(64266).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},49456:function(L,r,n){"use strict";var e=n(3116),a=n(98973);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},12217:function(L,r,n){"use strict";var e=n(3116),a=n(41148);e({global:!0,forced:parseInt!==a},{parseInt:a})},70479:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),m=n(73034),N=n(20453),y=n(18182);e({target:"Promise",stat:!0,forced:y},{all:function(){function S(k){var p=this,l=o.f(p),c=l.resolve,f=l.reject,i=m(function(){var u=t(p.resolve),s=[],d=0,C=1;N(k,function(g){var v=d++,h=!1;C++,a(u,p,g).then(function(V){h||(h=!0,s[v]=V,--C||c(s))},f)}),--C||c(s)});return i.error&&f(i.value),l.promise}return S}()})},72188:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(14657).CONSTRUCTOR,o=n(3e3),m=n(22070),N=n(53664),y=n(60855),S=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(l){return this.then(void 0,l)}return p}()}),!a&&N(o)){var k=m("Promise").prototype.catch;S.catch!==k&&y(S,"catch",k,{unsafe:!0})}},13779:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(86727),o=n(26856),m=n(20276),N=n(60855),y=n(91420),S=n(15676),k=n(92468),p=n(79474),l=n(53664),c=n(66379),f=n(14434),i=n(83604),u=n(87073).set,s=n(60816),d=n(66481),C=n(73034),g=n(8274),v=n(4471),h=n(3e3),V=n(14657),b=n(14187),B="Promise",I=V.CONSTRUCTOR,w=V.REJECTION_EVENT,T=V.SUBCLASSING,A=v.getterFor(B),x=v.set,E=h&&h.prototype,P=h,j=E,M=o.TypeError,O=o.document,D=o.process,F=b.f,U=F,_=!!(O&&O.createEvent&&o.dispatchEvent),z="unhandledrejection",H="rejectionhandled",$=0,G=1,X=2,oe=1,re=2,se,he,ye,Be,me=function(ve){var Se;return c(ve)&&l(Se=ve.then)?Se:!1},te=function(ve,Se){var we=Se.value,xe=Se.state===G,Oe=xe?ve.ok:ve.fail,We=ve.resolve,Ve=ve.reject,ce=ve.domain,le,Ce,de;try{Oe?(xe||(Se.rejection===re&&ae(Se),Se.rejection=oe),Oe===!0?le=we:(ce&&ce.enter(),le=Oe(we),ce&&(ce.exit(),de=!0)),le===ve.promise?Ve(new M("Promise-chain cycle")):(Ce=me(le))?m(Ce,le,We,Ve):We(le)):Ve(we)}catch(Ne){ce&&!de&&ce.exit(),Ve(Ne)}},Z=function(ve,Se){ve.notified||(ve.notified=!0,s(function(){for(var we=ve.reactions,xe;xe=we.get();)te(xe,ve);ve.notified=!1,Se&&!ve.rejection&&ue(ve)}))},q=function(ve,Se,we){var xe,Oe;_?(xe=O.createEvent("Event"),xe.promise=Se,xe.reason=we,xe.initEvent(ve,!1,!0),o.dispatchEvent(xe)):xe={promise:Se,reason:we},!w&&(Oe=o["on"+ve])?Oe(xe):ve===z&&d("Unhandled promise rejection",we)},ue=function(ve){m(u,o,function(){var Se=ve.facade,we=ve.value,xe=fe(ve),Oe;if(xe&&(Oe=C(function(){t?D.emit("unhandledRejection",we,Se):q(z,Se,we)}),ve.rejection=t||fe(ve)?re:oe,Oe.error))throw Oe.value})},fe=function(ve){return ve.rejection!==oe&&!ve.parent},ae=function(ve){m(u,o,function(){var Se=ve.facade;t?D.emit("rejectionHandled",Se):q(H,Se,ve.value)})},be=function(ve,Se,we){return function(xe){ve(Se,xe,we)}},pe=function(ve,Se,we){ve.done||(ve.done=!0,we&&(ve=we),ve.value=Se,ve.state=X,Z(ve,!0))},ge=function ke(ve,Se,we){if(!ve.done){ve.done=!0,we&&(ve=we);try{if(ve.facade===Se)throw new M("Promise can't be resolved itself");var xe=me(Se);xe?s(function(){var Oe={done:!1};try{m(xe,Se,be(ke,Oe,ve),be(pe,Oe,ve))}catch(We){pe(Oe,We,ve)}}):(ve.value=Se,ve.state=G,Z(ve,!1))}catch(Oe){pe({done:!1},Oe,ve)}}};if(I&&(P=function(){function ke(ve){f(this,j),p(ve),m(se,this);var Se=A(this);try{ve(be(ge,Se),be(pe,Se))}catch(we){pe(Se,we)}}return ke}(),j=P.prototype,se=function(){function ke(ve){x(this,{type:B,done:!1,notified:!1,parent:!1,reactions:new g,rejection:!1,state:$,value:void 0})}return ke}(),se.prototype=N(j,"then",function(){function ke(ve,Se){var we=A(this),xe=F(i(this,P));return we.parent=!0,xe.ok=l(ve)?ve:!0,xe.fail=l(Se)&&Se,xe.domain=t?D.domain:void 0,we.state===$?we.reactions.add(xe):s(function(){te(xe,we)}),xe.promise}return ke}()),he=function(){var ve=new se,Se=A(ve);this.promise=ve,this.resolve=be(ge,Se),this.reject=be(pe,Se)},b.f=F=function(ve){return ve===P||ve===ye?new he(ve):U(ve)},!a&&l(h)&&E!==Object.prototype)){Be=E.then,T||N(E,"then",function(){function ke(ve,Se){var we=this;return new P(function(xe,Oe){m(Be,we,xe,Oe)}).then(ve,Se)}return ke}(),{unsafe:!0});try{delete E.constructor}catch(ke){}y&&y(E,j)}e({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:P}),S(P,B,!1,!0),k(B)},79063:function(L,r,n){"use strict";var e=n(3116),a=n(90139),t=n(3e3),o=n(13586),m=n(22070),N=n(53664),y=n(83604),S=n(61988),k=n(60855),p=t&&t.prototype,l=!!t&&o(function(){p.finally.call({then:function(){function f(){}return f}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(){function f(i){var u=y(this,m("Promise")),s=N(i);return this.then(s?function(d){return S(u,i()).then(function(){return d})}:i,s?function(d){return S(u,i()).then(function(){throw d})}:i)}return f}()}),!a&&N(t)){var c=m("Promise").prototype.finally;p.finally!==c&&k(p,"finally",c,{unsafe:!0})}},75795:function(L,r,n){"use strict";n(13779),n(70479),n(72188),n(18199),n(75955),n(39996)},18199:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(79474),o=n(14187),m=n(73034),N=n(20453),y=n(18182);e({target:"Promise",stat:!0,forced:y},{race:function(){function S(k){var p=this,l=o.f(p),c=l.reject,f=m(function(){var i=t(p.resolve);N(k,function(u){a(i,p,u).then(l.resolve,c)})});return f.error&&c(f.value),l.promise}return S}()})},75955:function(L,r,n){"use strict";var e=n(3116),a=n(14187),t=n(14657).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var N=a.f(this),y=N.reject;return y(m),N.promise}return o}()})},39996:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(90139),o=n(3e3),m=n(14657).CONSTRUCTOR,N=n(61988),y=a("Promise"),S=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function k(p){return N(S&&this===y?o:this,p)}return k}()})},1210:function(L,r,n){"use strict";var e=n(3116),a=n(47244),t=n(79474),o=n(45418),m=n(13586),N=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:N},{apply:function(){function y(S,k,p){return a(t(S),k,o(p))}return y}()})},91370:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(47244),o=n(82060),m=n(48218),N=n(45418),y=n(66379),S=n(15439),k=n(13586),p=a("Reflect","construct"),l=Object.prototype,c=[].push,f=k(function(){function s(){}return!(p(function(){},[],s)instanceof s)}),i=!k(function(){p(function(){})}),u=f||i;e({target:"Reflect",stat:!0,forced:u,sham:u},{construct:function(){function s(d,C){m(d),N(C);var g=arguments.length<3?d:m(arguments[2]);if(i&&!f)return p(d,C,g);if(d===g){switch(C.length){case 0:return new d;case 1:return new d(C[0]);case 2:return new d(C[0],C[1]);case 3:return new d(C[0],C[1],C[2]);case 4:return new d(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,d,v))}var h=g.prototype,V=S(y(h)?h:l),b=t(d,V,C);return y(b)?b:V}return s}()})},17327:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(72445),m=n(8165),N=n(13586),y=N(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function S(k,p,l){t(k);var c=o(p);t(l);try{return m.f(k,c,l),!0}catch(f){return!1}}return S}()})},2679:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(19765).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,N){var y=t(a(m),N);return y&&!y.configurable?!1:delete m[N]}return o}()})},27262:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(45418),o=n(19765);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(N,y){return o.f(t(N),y)}return m}()})},47278:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(56379),o=n(62297);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(N){return t(a(N))}return m}()})},60733:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(66379),o=n(45418),m=n(75129),N=n(19765),y=n(56379);function S(k,p){var l=arguments.length<3?k:arguments[2],c,f;if(o(k)===l)return k[p];if(c=N.f(k,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,l);if(t(f=y(k)))return S(f,p,l)}e({target:"Reflect",stat:!0},{get:S})},22547:function(L,r,n){"use strict";var e=n(3116);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},92992:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(58221);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},64650:function(L,r,n){"use strict";var e=n(3116),a=n(53988);e({target:"Reflect",stat:!0},{ownKeys:a})},71255:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(45418),o=n(58199);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(N){t(N);try{var y=a("Object","preventExtensions");return y&&y(N),!0}catch(S){return!1}}return m}()})},65558:function(L,r,n){"use strict";var e=n(3116),a=n(45418),t=n(30907),o=n(91420);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(N,y){a(N),t(y);try{return o(N,y),!0}catch(S){return!1}}return m}()})},97836:function(L,r,n){"use strict";var e=n(3116),a=n(20276),t=n(45418),o=n(66379),m=n(75129),N=n(13586),y=n(8165),S=n(19765),k=n(56379),p=n(73970);function l(f,i,u){var s=arguments.length<4?f:arguments[3],d=S.f(t(f),i),C,g,v;if(!d){if(o(g=k(f)))return l(g,i,u,s);d=p(0)}if(m(d)){if(d.writable===!1||!o(s))return!1;if(C=S.f(s,i)){if(C.get||C.set||C.writable===!1)return!1;C.value=u,y.f(s,i,C)}else y.f(s,i,p(0,u))}else{if(v=d.set,v===void 0)return!1;a(v,s,u)}return!0}var c=N(function(){var f=function(){},i=y.f(new f,"a",{configurable:!0});return Reflect.set(f.prototype,"a",1,i)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:l})},83932:function(L,r,n){"use strict";var e=n(16361),a=n(26856),t=n(72908),o=n(23620),m=n(43405),N=n(21650),y=n(15439),S=n(60097).f,k=n(54341),p=n(28774),l=n(8758),c=n(13980),f=n(96472),i=n(69713),u=n(60855),s=n(13586),d=n(3302),C=n(4471).enforce,g=n(92468),v=n(95558),h=n(18095),V=n(17329),b=v("match"),B=a.RegExp,I=B.prototype,w=a.SyntaxError,T=t(I.exec),A=t("".charAt),x=t("".replace),E=t("".indexOf),P=t("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,O=/a/g,D=new B(M)!==M,F=f.MISSED_STICKY,U=f.UNSUPPORTED_Y,_=e&&(!D||F||h||V||s(function(){return O[b]=!1,B(M)!==M||B(O)===O||String(B(M,"i"))!=="/a/i"})),z=function(re){for(var se=re.length,he=0,ye="",Be=!1,me;he<=se;he++){if(me=A(re,he),me==="\\"){ye+=me+A(re,++he);continue}!Be&&me==="."?ye+="[\\s\\S]":(me==="["?Be=!0:me==="]"&&(Be=!1),ye+=me)}return ye},H=function(re){for(var se=re.length,he=0,ye="",Be=[],me=y(null),te=!1,Z=!1,q=0,ue="",fe;he<=se;he++){if(fe=A(re,he),fe==="\\")fe+=A(re,++he);else if(fe==="]")te=!1;else if(!te)switch(!0){case fe==="[":te=!0;break;case fe==="(":T(j,P(re,he+1))&&(he+=2,Z=!0),ye+=fe,q++;continue;case(fe===">"&&Z):if(ue===""||d(me,ue))throw new w("Invalid capture group name");me[ue]=!0,Be[Be.length]=[ue,q],Z=!1,ue="";continue}Z?ue+=fe:ye+=fe}return[ye,Be]};if(o("RegExp",_)){for(var $=function(){function oe(re,se){var he=k(I,this),ye=p(re),Be=se===void 0,me=[],te=re,Z,q,ue,fe,ae,be;if(!he&&ye&&Be&&re.constructor===$)return re;if((ye||k(I,re))&&(re=re.source,Be&&(se=c(te))),re=re===void 0?"":l(re),se=se===void 0?"":l(se),te=re,h&&"dotAll"in M&&(q=!!se&&E(se,"s")>-1,q&&(se=x(se,/s/g,""))),Z=se,F&&"sticky"in M&&(ue=!!se&&E(se,"y")>-1,ue&&U&&(se=x(se,/y/g,""))),V&&(fe=H(re),re=fe[0],me=fe[1]),ae=m(B(re,se),he?this:I,$),(q||ue||me.length)&&(be=C(ae),q&&(be.dotAll=!0,be.raw=$(z(re),Z)),ue&&(be.sticky=!0),me.length&&(be.groups=me)),re!==te)try{N(ae,"source",te===""?"(?:)":te)}catch(pe){}return ae}return oe}(),G=S(B),X=0;G.length>X;)i($,B,G[X++]);I.constructor=$,$.prototype=I,u(a,"RegExp",$,{constructor:!0})}g("RegExp")},72941:function(L,r,n){"use strict";var e=n(3116),a=n(59049);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},57918:function(L,r,n){"use strict";var e=n(26856),a=n(16361),t=n(57301),o=n(41913),m=n(13586),N=e.RegExp,y=N.prototype,S=a&&m(function(){var k=!0;try{N(".","d")}catch(d){k=!1}var p={},l="",c=k?"dgimsy":"gimsy",f=function(C,g){Object.defineProperty(p,C,{get:function(){function v(){return l+=g,!0}return v}()})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};k&&(i.hasIndices="d");for(var u in i)f(u,i[u]);var s=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return s!==c||l!==c});S&&t(y,"flags",{configurable:!0,get:o})},2394:function(L,r,n){"use strict";var e=n(15340).PROPER,a=n(60855),t=n(45418),o=n(8758),m=n(13586),N=n(13980),y="toString",S=RegExp.prototype,k=S[y],p=m(function(){return k.call({source:"a",flags:"b"})!=="/a/b"}),l=e&&k.name!==y;(p||l)&&a(S,y,function(){function c(){var f=t(this),i=o(f.source),u=o(N(f));return"/"+i+"/"+u}return c}(),{unsafe:!0})},98480:function(L,r,n){"use strict";var e=n(10609),a=n(42384);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37517:function(L,r,n){"use strict";n(98480)},25492:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},13684:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},79646:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},98511:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},65699:function(L,r,n){"use strict";var e=n(3116),a=n(13300).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},11360:function(L,r,n){"use strict";var e=n(3116),a=n(69935),t=n(19765).f,o=n(74369),m=n(8758),N=n(75816),y=n(305),S=n(46339),k=n(90139),p=a("".slice),l=Math.min,c=S("endsWith"),f=!k&&!c&&!!function(){var i=t(String.prototype,"endsWith");return i&&!i.writable}();e({target:"String",proto:!0,forced:!f&&!c},{endsWith:function(){function i(u){var s=m(y(this));N(u);var d=arguments.length>1?arguments[1]:void 0,C=s.length,g=d===void 0?C:l(o(d),C),v=m(u);return p(s,g-v.length,g)===v}return i}()})},30733:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},58683:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},70277:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},33683:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(39531),o=RangeError,m=String.fromCharCode,N=String.fromCodePoint,y=a([].join),S=!!N&&N.length!==1;e({target:"String",stat:!0,arity:1,forced:S},{fromCodePoint:function(){function k(p){for(var l=[],c=arguments.length,f=0,i;c>f;){if(i=+arguments[f++],t(i,1114111)!==i)throw new o(i+" is not a valid code point");l[f]=i<65536?m(i):m(((i-=65536)>>10)+55296,i%1024+56320)}return y(l,"")}return k}()})},16792:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(75816),o=n(305),m=n(8758),N=n(46339),y=a("".indexOf);e({target:"String",proto:!0,forced:!N("includes")},{includes:function(){function S(k){return!!~y(m(o(this)),m(t(k)),arguments.length>1?arguments[1]:void 0)}return S}()})},36865:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},8:function(L,r,n){"use strict";var e=n(13300).charAt,a=n(8758),t=n(4471),o=n(21436),m=n(32214),N="String Iterator",y=t.set,S=t.getterFor(N);o(String,"String",function(k){y(this,{type:N,string:a(k),index:0})},function(){function k(){var p=S(this),l=p.string,c=p.index,f;return c>=l.length?m(void 0,!0):(f=e(l,c),p.index+=f.length,m(f,!1))}return k}())},13763:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},76015:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),m=n(74369),N=n(8758),y=n(305),S=n(76540),k=n(47158),p=n(59833);a("match",function(l,c,f){return[function(){function i(u){var s=y(this),d=o(u)?void 0:S(u,l);return d?e(d,u,s):new RegExp(u)[l](N(s))}return i}(),function(i){var u=t(this),s=N(i),d=f(c,u,s);if(d.done)return d.value;if(!u.global)return p(u,s);var C=u.unicode;u.lastIndex=0;for(var g=[],v=0,h;(h=p(u,s))!==null;){var V=N(h[0]);g[v]=V,V===""&&(u.lastIndex=k(s,m(u.lastIndex),C)),v++}return v===0?null:g}]})},57318:function(L,r,n){"use strict";var e=n(3116),a=n(81290).end,t=n(51468);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},33177:function(L,r,n){"use strict";var e=n(3116),a=n(81290).start,t=n(51468);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},1429:function(L,r,n){"use strict";var e=n(3116),a=n(72908),t=n(54292),o=n(63549),m=n(8758),N=n(83207),y=a([].push),S=a([].join);e({target:"String",stat:!0},{raw:function(){function k(p){var l=t(o(p).raw),c=N(l);if(!c)return"";for(var f=arguments.length,i=[],u=0;;){if(y(i,m(l[u++])),u===c)return S(i,"");u")!=="7"});o("replace",function(x,E,P){var j=T?"$":"$0";return[function(){function M(O,D){var F=c(this),U=S(O)?void 0:i(O,C);return U?a(U,O,F,D):a(E,l(F),O,D)}return M}(),function(M,O){var D=N(this),F=l(M);if(typeof O=="string"&&b(O,j)===-1&&b(O,"$<")===-1){var U=P(E,D,F,O);if(U.done)return U.value}var _=y(O);_||(O=l(O));var z=D.global,H;z&&(H=D.unicode,D.lastIndex=0);for(var $=[],G;G=s(D,F),!(G===null||(V($,G),!z));){var X=l(G[0]);X===""&&(D.lastIndex=f(F,p(D.lastIndex),H))}for(var oe="",re=0,se=0;se<$.length;se++){G=$[se];for(var he=l(G[0]),ye=g(v(k(G.index),F.length),0),Be=[],me,te=1;te=re&&(oe+=B(F,re,ye)+me,re=ye+he.length)}return oe+B(F,re)}]},!A||!w||T)},60981:function(L,r,n){"use strict";var e=n(20276),a=n(18690),t=n(45418),o=n(62695),m=n(305),N=n(91935),y=n(8758),S=n(76540),k=n(59833);a("search",function(p,l,c){return[function(){function f(i){var u=m(this),s=o(i)?void 0:S(i,p);return s?e(s,i,u):new RegExp(i)[p](y(u))}return f}(),function(f){var i=t(this),u=y(f),s=c(l,i,u);if(s.done)return s.value;var d=i.lastIndex;N(d,0)||(i.lastIndex=0);var C=k(i,u);return N(i.lastIndex,d)||(i.lastIndex=d),C===null?-1:C.index}]})},56001:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},96578:function(L,r,n){"use strict";var e=n(47244),a=n(20276),t=n(72908),o=n(18690),m=n(45418),N=n(62695),y=n(28774),S=n(305),k=n(83604),p=n(47158),l=n(74369),c=n(8758),f=n(76540),i=n(31170),u=n(59833),s=n(59049),d=n(96472),C=n(13586),g=d.UNSUPPORTED_Y,v=4294967295,h=Math.min,V=[].push,b=t(/./.exec),B=t(V),I=t("".slice),w=!C(function(){var T=/(?:)/,A=T.exec;T.exec=function(){return A.apply(this,arguments)};var x="ab".split(T);return x.length!==2||x[0]!=="a"||x[1]!=="b"});o("split",function(T,A,x){var E;return"abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(j,M){var O=c(S(this)),D=M===void 0?v:M>>>0;if(D===0)return[];if(j===void 0)return[O];if(!y(j))return a(A,O,j,D);for(var F=[],U=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(j.sticky?"y":""),_=0,z=new RegExp(j.source,U+"g"),H,$,G;(H=a(s,z,O))&&($=z.lastIndex,!($>_&&(B(F,I(O,_,H.index)),H.length>1&&H.index=D)));)z.lastIndex===H.index&&z.lastIndex++;return _===O.length?(G||!b(z,""))&&B(F,""):B(F,I(O,_)),F.length>D?i(F,0,D):F}:"0".split(void 0,0).length?E=function(j,M){return j===void 0&&M===0?[]:a(A,this,j,M)}:E=A,[function(){function P(j,M){var O=S(this),D=N(j)?void 0:f(j,T);return D?a(D,j,O,M):a(E,c(O),j,M)}return P}(),function(P,j){var M=m(this),O=c(P),D=x(E,M,O,j,E!==A);if(D.done)return D.value;var F=k(M,RegExp),U=M.unicode,_=(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")+(g?"g":"y"),z=new F(g?"^(?:"+M.source+")":M,_),H=j===void 0?v:j>>>0;if(H===0)return[];if(O.length===0)return u(z,O)===null?[O]:[];for(var $=0,G=0,X=[];G1?arguments[1]:void 0,s.length)),C=m(u);return p(s,d,d+C.length)===C}return i}()})},58713:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},41960:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},31772:function(L,r,n){"use strict";var e=n(3116),a=n(38017),t=n(81626);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},84368:function(L,r,n){"use strict";n(12333);var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},81464:function(L,r,n){"use strict";var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},12333:function(L,r,n){"use strict";var e=n(3116),a=n(45745);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},76980:function(L,r,n){"use strict";n(81464);var e=n(3116),a=n(35634);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},54511:function(L,r,n){"use strict";var e=n(3116),a=n(47913).trim,t=n(15677);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},65884:function(L,r,n){"use strict";var e=n(20614);e("asyncIterator")},28579:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(20276),o=n(72908),m=n(90139),N=n(16361),y=n(61855),S=n(13586),k=n(3302),p=n(54341),l=n(45418),c=n(54292),f=n(72445),i=n(8758),u=n(73970),s=n(15439),d=n(99869),C=n(60097),g=n(31024),v=n(61791),h=n(19765),V=n(8165),b=n(55119),B=n(10409),I=n(60855),w=n(57301),T=n(7624),A=n(97223),x=n(51653),E=n(76246),P=n(95558),j=n(15355),M=n(20614),O=n(28952),D=n(15676),F=n(4471),U=n(18539).forEach,_=A("hidden"),z="Symbol",H="prototype",$=F.set,G=F.getterFor(z),X=Object[H],oe=a.Symbol,re=oe&&oe[H],se=a.RangeError,he=a.TypeError,ye=a.QObject,Be=h.f,me=V.f,te=g.f,Z=B.f,q=o([].push),ue=T("symbols"),fe=T("op-symbols"),ae=T("wks"),be=!ye||!ye[H]||!ye[H].findChild,pe=function(le,Ce,de){var Ne=Be(X,Ce);Ne&&delete X[Ce],me(le,Ce,de),Ne&&le!==X&&me(X,Ce,Ne)},ge=N&&S(function(){return s(me({},"a",{get:function(){function ce(){return me(this,"a",{value:7}).a}return ce}()})).a!==7})?pe:me,ke=function(le,Ce){var de=ue[le]=s(re);return $(de,{type:z,tag:le,description:Ce}),N||(de.description=Ce),de},ve=function(){function ce(le,Ce,de){le===X&&ve(fe,Ce,de),l(le);var Ne=f(Ce);return l(de),k(ue,Ne)?(de.enumerable?(k(le,_)&&le[_][Ne]&&(le[_][Ne]=!1),de=s(de,{enumerable:u(0,!1)})):(k(le,_)||me(le,_,u(1,s(null))),le[_][Ne]=!0),ge(le,Ne,de)):me(le,Ne,de)}return ce}(),Se=function(){function ce(le,Ce){l(le);var de=c(Ce),Ne=d(de).concat(Ve(de));return U(Ne,function(Ae){(!N||t(xe,de,Ae))&&ve(le,Ae,de[Ae])}),le}return ce}(),we=function(){function ce(le,Ce){return Ce===void 0?s(le):Se(s(le),Ce)}return ce}(),xe=function(){function ce(le){var Ce=f(le),de=t(Z,this,Ce);return this===X&&k(ue,Ce)&&!k(fe,Ce)?!1:de||!k(this,Ce)||!k(ue,Ce)||k(this,_)&&this[_][Ce]?de:!0}return ce}(),Oe=function(){function ce(le,Ce){var de=c(le),Ne=f(Ce);if(!(de===X&&k(ue,Ne)&&!k(fe,Ne))){var Ae=Be(de,Ne);return Ae&&k(ue,Ne)&&!(k(de,_)&&de[_][Ne])&&(Ae.enumerable=!0),Ae}}return ce}(),We=function(){function ce(le){var Ce=te(c(le)),de=[];return U(Ce,function(Ne){!k(ue,Ne)&&!k(x,Ne)&&q(de,Ne)}),de}return ce}(),Ve=function(le){var Ce=le===X,de=te(Ce?fe:c(le)),Ne=[];return U(de,function(Ae){k(ue,Ae)&&(!Ce||k(X,Ae))&&q(Ne,ue[Ae])}),Ne};y||(oe=function(){function ce(){if(p(re,this))throw new he("Symbol is not a constructor");var le=!arguments.length||arguments[0]===void 0?void 0:i(arguments[0]),Ce=E(le),de=function(){function Ne(Ae){var De=this===void 0?a:this;De===X&&t(Ne,fe,Ae),k(De,_)&&k(De[_],Ce)&&(De[_][Ce]=!1);var je=u(1,Ae);try{ge(De,Ce,je)}catch(_e){if(!(_e instanceof se))throw _e;pe(De,Ce,je)}}return Ne}();return N&&be&&ge(X,Ce,{configurable:!0,set:de}),ke(Ce,le)}return ce}(),re=oe[H],I(re,"toString",function(){function ce(){return G(this).tag}return ce}()),I(oe,"withoutSetter",function(ce){return ke(E(ce),ce)}),B.f=xe,V.f=ve,b.f=Se,h.f=Oe,C.f=g.f=We,v.f=Ve,j.f=function(ce){return ke(P(ce),ce)},N&&(w(re,"description",{configurable:!0,get:function(){function ce(){return G(this).description}return ce}()}),m||I(X,"propertyIsEnumerable",xe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:oe}),U(d(ae),function(ce){M(ce)}),e({target:z,stat:!0,forced:!y},{useSetter:function(){function ce(){be=!0}return ce}(),useSimple:function(){function ce(){be=!1}return ce}()}),e({target:"Object",stat:!0,forced:!y,sham:!N},{create:we,defineProperty:ve,defineProperties:Se,getOwnPropertyDescriptor:Oe}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:We}),O(),D(oe,z),x[_]=!0},64777:function(L,r,n){"use strict";var e=n(3116),a=n(16361),t=n(26856),o=n(72908),m=n(3302),N=n(53664),y=n(54341),S=n(8758),k=n(57301),p=n(83826),l=t.Symbol,c=l&&l.prototype;if(a&&N(l)&&(!("description"in c)||l().description!==void 0)){var f={},i=function(){function h(){var V=arguments.length<1||arguments[0]===void 0?void 0:S(arguments[0]),b=y(c,this)?new l(V):V===void 0?l():l(V);return V===""&&(f[b]=!0),b}return h}();p(i,l),i.prototype=c,c.constructor=i;var u=String(l("description detection"))==="Symbol(description detection)",s=o(c.valueOf),d=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,g=o("".replace),v=o("".slice);k(c,"description",{configurable:!0,get:function(){function h(){var V=s(this);if(m(f,V))return"";var b=d(V),B=u?v(b,7,-1):g(b,C,"$1");return B===""?void 0:B}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:i})}},99694:function(L,r,n){"use strict";var e=n(3116),a=n(22070),t=n(3302),o=n(8758),m=n(7624),N=n(16010),y=m("string-to-symbol-registry"),S=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{for:function(){function k(p){var l=o(p);if(t(y,l))return y[l];var c=a("Symbol")(l);return y[l]=c,S[c]=l,c}return k}()})},56564:function(L,r,n){"use strict";var e=n(20614);e("hasInstance")},68981:function(L,r,n){"use strict";var e=n(20614);e("isConcatSpreadable")},27699:function(L,r,n){"use strict";var e=n(20614);e("iterator")},32321:function(L,r,n){"use strict";n(28579),n(99694),n(16184),n(34233),n(56896)},16184:function(L,r,n){"use strict";var e=n(3116),a=n(3302),t=n(43474),o=n(36787),m=n(7624),N=n(16010),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!N},{keyFor:function(){function S(k){if(!t(k))throw new TypeError(o(k)+" is not a symbol");if(a(y,k))return y[k]}return S}()})},22905:function(L,r,n){"use strict";var e=n(20614);e("match")},96311:function(L,r,n){"use strict";var e=n(20614);e("replace")},61292:function(L,r,n){"use strict";var e=n(20614);e("search")},75419:function(L,r,n){"use strict";var e=n(20614);e("species")},67638:function(L,r,n){"use strict";var e=n(20614);e("split")},7601:function(L,r,n){"use strict";var e=n(20614),a=n(28952);e("toPrimitive"),a()},89010:function(L,r,n){"use strict";var e=n(22070),a=n(20614),t=n(15676);a("toStringTag"),t(e("Symbol"),"Symbol")},5401:function(L,r,n){"use strict";var e=n(20614);e("unscopables")},76464:function(L,r,n){"use strict";var e=n(72908),a=n(30432),t=n(28332),o=e(t),m=a.aTypedArray,N=a.exportTypedArrayMethod;N("copyWithin",function(){function y(S,k){return o(m(this),S,k,arguments.length>2?arguments[2]:void 0)}return y}())},58549:function(L,r,n){"use strict";var e=n(30432),a=n(18539).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},42774:function(L,r,n){"use strict";var e=n(30432),a=n(39948),t=n(73873),o=n(48615),m=n(20276),N=n(72908),y=n(13586),S=e.aTypedArray,k=e.exportTypedArrayMethod,p=N("".slice),l=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function f(){return c++}return f}()}),c!==1});k("fill",function(){function c(f){var i=arguments.length;S(this);var u=p(o(this),0,3)==="Big"?t(f):+f;return m(a,this,u,i>1?arguments[1]:void 0,i>2?arguments[2]:void 0)}return c}(),l)},65446:function(L,r,n){"use strict";var e=n(30432),a=n(18539).filter,t=n(85710),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function N(y){var S=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,S)}return N}())},62243:function(L,r,n){"use strict";var e=n(30432),a=n(18539).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},21066:function(L,r,n){"use strict";var e=n(30432),a=n(18539).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},43059:function(L,r,n){"use strict";var e=n(43186);e("Float32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},97363:function(L,r,n){"use strict";var e=n(43186);e("Float64",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},35249:function(L,r,n){"use strict";var e=n(30432),a=n(18539).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(N){a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},68739:function(L,r,n){"use strict";var e=n(45410),a=n(30432).exportTypedArrayStaticMethod,t=n(12778);a("from",t,e)},5723:function(L,r,n){"use strict";var e=n(30432),a=n(33483).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},40353:function(L,r,n){"use strict";var e=n(30432),a=n(33483).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},33278:function(L,r,n){"use strict";var e=n(43186);e("Int16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},65331:function(L,r,n){"use strict";var e=n(43186);e("Int32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},99755:function(L,r,n){"use strict";var e=n(43186);e("Int8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},87975:function(L,r,n){"use strict";var e=n(26856),a=n(13586),t=n(72908),o=n(30432),m=n(26017),N=n(95558),y=N("iterator"),S=e.Uint8Array,k=t(m.values),p=t(m.keys),l=t(m.entries),c=o.aTypedArray,f=o.exportTypedArrayMethod,i=S&&S.prototype,u=!a(function(){i[y].call([1])}),s=!!i&&i.values&&i[y]===i.values&&i.values.name==="values",d=function(){function C(){return k(c(this))}return C}();f("entries",function(){function C(){return l(c(this))}return C}(),u),f("keys",function(){function C(){return p(c(this))}return C}(),u),f("values",d,u||!s,{name:"values"}),f(y,d,u||!s,{name:"values"})},20812:function(L,r,n){"use strict";var e=n(30432),a=n(72908),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function N(y){return m(t(this),y)}return N}())},5640:function(L,r,n){"use strict";var e=n(30432),a=n(47244),t=n(16400),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function N(y){var S=arguments.length;return a(t,o(this),S>1?[y,arguments[1]]:[y])}return N}())},47736:function(L,r,n){"use strict";var e=n(30432),a=n(18539).map,t=n(9230),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function N(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(S,k){return new(t(S))(k)})}return N}())},81944:function(L,r,n){"use strict";var e=n(30432),a=n(45410),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var N=0,y=arguments.length,S=new(t(this))(y);y>N;)S[N]=arguments[N++];return S}return m}(),a)},72214:function(L,r,n){"use strict";var e=n(30432),a=n(58394).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(N){var y=arguments.length;return a(t(this),N,y,y>1?arguments[1]:void 0)}return m}())},68685:function(L,r,n){"use strict";var e=n(30432),a=n(58394).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(N){var y=arguments.length;return a(t(this),N,y,y>1?arguments[1]:void 0)}return m}())},48774:function(L,r,n){"use strict";var e=n(30432),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var N=this,y=a(N).length,S=o(y/2),k=0,p;k1?arguments[1]:void 0,1),g=N(d);if(i)return a(l,this,g,C);var v=this.length,h=o(g),V=0;if(h+C>v)throw new S("Wrong length");for(;Vf;)u[f]=l[f++];return u}return S}(),y)},10702:function(L,r,n){"use strict";var e=n(30432),a=n(18539).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(N){return a(t(this),N,arguments.length>1?arguments[1]:void 0)}return m}())},76622:function(L,r,n){"use strict";var e=n(26856),a=n(69935),t=n(13586),o=n(79474),m=n(91183),N=n(30432),y=n(31574),S=n(88836),k=n(43541),p=n(27204),l=N.aTypedArray,c=N.exportTypedArrayMethod,f=e.Uint16Array,i=f&&a(f.prototype.sort),u=!!i&&!(t(function(){i(new f(2),null)})&&t(function(){i(new f(2),{})})),s=!!i&&!t(function(){if(k)return k<74;if(y)return y<67;if(S)return!0;if(p)return p<602;var C=new f(516),g=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,g[v]=v-2*h+3;for(i(C,function(V,b){return(V/4|0)-(b/4|0)}),v=0;v<516;v++)if(C[v]!==g[v])return!0}),d=function(g){return function(v,h){return g!==void 0?+g(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(g){return g!==void 0&&o(g),s?i(this,g):m(l(this),d(g))}return C}(),!s||u)},64408:function(L,r,n){"use strict";var e=n(30432),a=n(74369),t=n(39531),o=n(9230),m=e.aTypedArray,N=e.exportTypedArrayMethod;N("subarray",function(){function y(S,k){var p=m(this),l=p.length,c=t(S,l),f=o(p);return new f(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((k===void 0?l:t(k,l))-c))}return y}())},22306:function(L,r,n){"use strict";var e=n(26856),a=n(47244),t=n(30432),o=n(13586),m=n(31170),N=e.Int8Array,y=t.aTypedArray,S=t.exportTypedArrayMethod,k=[].toLocaleString,p=!!N&&o(function(){k.call(new N(1))}),l=o(function(){return[1,2].toLocaleString()!==new N([1,2]).toLocaleString()})||!o(function(){N.prototype.toLocaleString.call([1,2])});S("toLocaleString",function(){function c(){return a(k,p?m(y(this)):y(this),m(arguments))}return c}(),l)},90334:function(L,r,n){"use strict";var e=n(30432).exportTypedArrayMethod,a=n(13586),t=n(26856),o=n(72908),m=t.Uint8Array,N=m&&m.prototype||{},y=[].toString,S=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return S(this)}return p}());var k=N.toString!==y;e("toString",y,k)},70088:function(L,r,n){"use strict";var e=n(43186);e("Uint16",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},7284:function(L,r,n){"use strict";var e=n(43186);e("Uint32",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},25855:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()})},97372:function(L,r,n){"use strict";var e=n(43186);e("Uint8",function(a){return function(){function t(o,m,N){return a(this,o,m,N)}return t}()},!0)},84937:function(L,r,n){"use strict";var e=n(58199),a=n(26856),t=n(72908),o=n(26148),m=n(66526),N=n(10609),y=n(19250),S=n(66379),k=n(4471).enforce,p=n(13586),l=n(73844),c=Object,f=Array.isArray,i=c.isExtensible,u=c.isFrozen,s=c.isSealed,d=c.freeze,C=c.seal,g=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(E){return function(){function P(){return E(this,arguments.length?arguments[0]:void 0)}return P}()},V=N("WeakMap",h,y),b=V.prototype,B=t(b.set),I=function(){return e&&p(function(){var E=d([]);return B(new V,E,1),!u(E)})};if(l)if(g){v=y.getConstructor(h,"WeakMap",!0),m.enable();var w=t(b.delete),T=t(b.has),A=t(b.get);o(b,{delete:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),w(this,E)||P.frozen.delete(E)}return w(this,E)}return x}(),has:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),T(this,E)||P.frozen.has(E)}return T(this,E)}return x}(),get:function(){function x(E){if(S(E)&&!i(E)){var P=k(this);return P.frozen||(P.frozen=new v),T(this,E)?A(this,E):P.frozen.get(E)}return A(this,E)}return x}(),set:function(){function x(E,P){if(S(E)&&!i(E)){var j=k(this);j.frozen||(j.frozen=new v),T(this,E)?B(this,E,P):j.frozen.set(E,P)}else B(this,E,P);return this}return x}()})}else I()&&o(b,{set:function(){function x(E,P){var j;return f(E)&&(u(E)?j=d:s(E)&&(j=C)),B(this,E,P),j&&j(E),this}return x}()})},69880:function(L,r,n){"use strict";n(84937)},74764:function(L,r,n){"use strict";var e=n(10609),a=n(19250);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},37167:function(L,r,n){"use strict";n(74764)},82818:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},25109:function(L,r,n){"use strict";n(82818),n(21813)},367:function(L,r,n){"use strict";var e=n(3116),a=n(60816),t=n(79474),o=n(92827);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(){function m(N){o(arguments.length,1),a(t(N))}return m}()})},21813:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(87073).set,o=n(17459),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},50943:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},91851:function(L,r,n){"use strict";var e=n(3116),a=n(26856),t=n(17459),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},8459:function(L,r,n){"use strict";n(50943),n(91851)},87454:function(L){"use strict";/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */var r,n=[],e=[],a=function(){if(0)var k;window.onunload=function(){return r&&r.close()}},t=function(k){return e.push(k)},o=function(k){var p=[],l=function(u){return typeof u=="number"&&!Number.isFinite(u)?{__number__:String(u)}:typeof u=="undefined"?{__undefined__:!0}:u},c=function(u,s){if(typeof s=="object"){if(s===null)return s;if(p.includes(s))return"[circular ref]";p.push(s);var d=s instanceof Error||s.code&&s.message&&s.message.includes("Error");return d?{__error__:!0,string:String(s),stack:s.stack}:Array.isArray(s)?s.map(l):s}return l(s)},f=JSON.stringify(k,c);return p=null,f},m=function(k){if(0)var p,l,c},N=function(k,p){if(0)var l,c,f},y=function(){};L.exports={subscribe:t,sendMessage:m,sendLogEntry:N,setupHotReloading:y}}},bt={};function J(L){var r=bt[L];if(r!==void 0)return r.exports;var n=bt[L]={exports:{}};return $t[L](n,n.exports,J),n.exports}(function(){J.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){J.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var In={};(function(){"use strict";J(32321),J(64777),J(65884),J(56564),J(68981),J(27699),J(22905),J(96311),J(61292),J(75419),J(67638),J(7601),J(89010),J(5401),J(75836),J(33901),J(85803),J(7216),J(50584),J(26632),J(25972),J(55222),J(14064),J(68616),J(45168),J(26088),J(92654),J(58423),J(26017),J(37808),J(2509),J(2124),J(38196),J(7731),J(56913),J(48704),J(24077),J(60230),J(43430),J(53407),J(69220),J(72978),J(55784),J(41365),J(58874),J(85806),J(3521),J(94961),J(91777),J(49615),J(70700),J(31032),J(83329),J(15700),J(85783),J(51430),J(10944),J(36418),J(68872),J(93105),J(1795),J(11121),J(18730),J(11624),J(89004),J(72680),J(75213),J(4347),J(86433),J(21401),J(54468),J(36183),J(95499),J(50929),J(91447),J(84314),J(48211),J(52237),J(306),J(22509),J(84660),J(82678),J(76585),J(21733),J(21210),J(10272),J(83403),J(4229),J(53388),J(53121),J(53822),J(2514),J(2218),J(14955),J(79220),J(81941),J(37245),J(8373),J(81212),J(26054),J(57745),J(49611),J(98344),J(55750),J(7340),J(63429),J(9558),J(2420),J(19015),J(34137),J(24705),J(55318),J(49456),J(12217),J(75795),J(79063),J(1210),J(91370),J(17327),J(2679),J(60733),J(27262),J(47278),J(22547),J(92992),J(64650),J(71255),J(97836),J(65558),J(83932),J(72941),J(57918),J(2394),J(37517),J(65699),J(11360),J(33683),J(16792),J(8),J(76015),J(57318),J(33177),J(1429),J(56515),J(30343),J(60981),J(96578),J(59592),J(54511),J(84368),J(76980),J(25492),J(13684),J(79646),J(98511),J(30733),J(58683),J(70277),J(36865),J(13763),J(56001),J(58713),J(41960),J(31772),J(43059),J(97363),J(99755),J(33278),J(65331),J(25855),J(97372),J(70088),J(7284),J(76464),J(58549),J(42774),J(65446),J(21066),J(62243),J(35249),J(68739),J(5723),J(40353),J(87975),J(20812),J(5640),J(47736),J(81944),J(68685),J(72214),J(48774),J(2915),J(17165),J(10702),J(76622),J(64408),J(22306),J(90334),J(69880),J(37167),J(25109),J(367),J(8459),J(16970),J(11386)})(),function(){"use strict";var L=J(28823);J(47468),J(52355),J(66309),J(74395),J(86879),J(66782),J(35116),J(47968),J(67041),J(59719),J(14045),J(81912),J(53152),J(72694);var r=J(60031),n=J(87454),e=J(39891),a=J(85955),t=J(64960),o=J(79143),m=J(33053),N;/** + * @file + * @copyright 2020 Aleksej Komarov + * @license MIT + */r.perf.mark("inception",(N=window.performance)==null||(N=N.timing)==null?void 0:N.navigationStart),r.perf.mark("init");var y=(0,o.configureStore)(),S=(0,t.createRenderer)(function(){var p=J(76521),l=p.getRoutedComponent,c=l(y);return(0,L.createComponentVNode)(2,o.StoreProvider,{store:y,children:(0,L.createComponentVNode)(2,c)})}),k=function p(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,m.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,a.captureExternalLinks)(),y.subscribe(S),Byond.subscribe(function(l,c){return y.dispatch({type:l,payload:c})})};k()}()})();})();