From 240753f250cc3385676340f4913ee5da2edf7708 Mon Sep 17 00:00:00 2001 From: dageavtobusnick <71216640+dageavtobusnick@users.noreply.github.com> Date: Sat, 11 Jan 2025 13:58:40 +0500 Subject: [PATCH] refactor: replace some icon2base64 to DMicon (#6347) * refactor: replace some icon2base64 to DMicon * Update tgui.bundle.js --- code/datums/elements/strippable.dm | 3 +- .../gamemodes/clockwork/clockwork_workshop.dm | 3 +- code/game/machinery/PDApainter.dm | 9 +- code/game/machinery/autolathe.dm | 3 +- code/game/machinery/customat.dm | 8 +- code/game/machinery/vending.dm | 19 +- .../objects/items/devices/floor_painter.dm | 19 +- .../items/weapons/implants/implantpad.dm | 3 +- .../space_ninja/suit/suit_SpiderOS.dm | 10 +- .../vampire/vampire_powers/bestia_powers.dm | 13 +- .../vampire/vampire_powers/vampire_powers.dm | 10 +- .../client/preference/loadout/gear_tweaks.dm | 2 +- code/modules/pda/PDA.dm | 8 - tgui/packages/tgui/interfaces/Autolathe.js | 6 +- tgui/packages/tgui/interfaces/FloorPainter.js | 43 ++-- tgui/packages/tgui/interfaces/ImplantPad.js | 15 +- tgui/packages/tgui/interfaces/PDAPainter.js | 41 ++-- tgui/packages/tgui/interfaces/SpiderOS.js | 186 +++++++++++------- tgui/packages/tgui/interfaces/StripMenu.tsx | 9 +- .../tgui/interfaces/VampireSpecMenu.js | 35 ++-- .../tgui/interfaces/VampireTrophiesStatus.js | 33 ++-- tgui/packages/tgui/interfaces/Vending.js | 28 +-- tgui/packages/tgui/interfaces/Workshop.js | 6 +- tgui/public/tgui.bundle.js | 170 ++++++++-------- 24 files changed, 385 insertions(+), 297 deletions(-) diff --git a/code/datums/elements/strippable.dm b/code/datums/elements/strippable.dm index 0dabede699d..3156376602f 100644 --- a/code/datums/elements/strippable.dm +++ b/code/datums/elements/strippable.dm @@ -360,7 +360,8 @@ var/key = "[item.icon],[item.icon_state]" if(!(key in base64_cache)) base64_cache[key] = icon2base64(icon(item.icon, item.icon_state, dir = SOUTH, frame = 1, moving = FALSE)) - result["icon"] = base64_cache[key] + result["icon"] = item.icon + result["icon_state"] = item.icon_state result["name"] = item.name var/real_alts = item_data.get_alternate_actions(owner, user) diff --git a/code/game/gamemodes/clockwork/clockwork_workshop.dm b/code/game/gamemodes/clockwork/clockwork_workshop.dm index 4a7c05791bd..5c16a4bcac7 100644 --- a/code/game/gamemodes/clockwork/clockwork_workshop.dm +++ b/code/game/gamemodes/clockwork/clockwork_workshop.dm @@ -132,7 +132,8 @@ "brass" = design.brass_cost, "power" = design.power_cost, "requirements" = matreq, - "image" = "[icon2base64(icon(initial(I.icon), initial(I.icon_state), SOUTH, 1))]" + "icon" = initial(I.icon), + "icon_state" = initial(I.icon_state), ) static_data["items"][cat] = cat_items diff --git a/code/game/machinery/PDApainter.dm b/code/game/machinery/PDApainter.dm index 0d01315d28f..c720faa2ba3 100644 --- a/code/game/machinery/PDApainter.dm +++ b/code/game/machinery/PDApainter.dm @@ -38,8 +38,7 @@ // Get Base64 version of an icon for our TGUI needs. // Always try to get first frame as it can be animation resulting in all frames in single image. // pda-library as an example has 4 frames - var/base64icon = "[icon2base64(icon(initial(pda.icon), initial(pda.icon_state), frame = 1))]" - new_color_list[initial(pda.icon_state)] = list(base64icon, initial(pda.desc)) + new_color_list[initial(pda.icon_state)] = list(initial(pda.icon), initial(pda.desc)) new_color_list = sortAssoc(new_color_list) colorlist = new_color_list @@ -152,12 +151,13 @@ if(storedpda) data["hasPDA"] = TRUE - data["pdaIcon"] = storedpda.base64icon + data["pdaIconState"] = storedpda.icon_state data["pdaOwnerName"] = storedpda.owner data["pdaJobName"] = storedpda.ownjob else data["hasPDA"] = FALSE data["pdaIcon"] = null + data["pdaIconState"] = null data["pdaOwnerName"] = null data["pdaJobName"] = null @@ -171,6 +171,7 @@ /obj/machinery/pdapainter/ui_static_data(mob/user) var/data = list() data["pdaTypes"] = colorlist + data["pdaIcon"] = icon data["allowErasePda"] = allowErasePda return data @@ -189,7 +190,7 @@ if(storedpda) storedpda.remove_pda_case() var/new_icon = params["selectedPda"] - storedpda.current_painting = list("icon" = new_icon, "base64" = colorlist[new_icon][1], "desc" = colorlist[new_icon][2]) + storedpda.current_painting = list("icon" = new_icon, "desc" = colorlist[new_icon][2]) storedpda.update_appearance(UPDATE_ICON_STATE|UPDATE_DESC) playsound(loc, 'sound/goonstation/machines/printer_thermal.ogg', 15, TRUE) statusLabel = "Покраска завершена" diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 18d6f43d030..38f5af12c2a 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -123,7 +123,8 @@ "requirements" = matreq, "hacked" = ("hacked" in categories) ? TRUE : FALSE, "max_multiplier" = maxmult, - "image" = "[icon2base64(icon(initial(I.icon), initial(I.icon_state), SOUTH, 1))]" + "icon" = initial(I.icon), + "icon_state" = initial(I.icon_state), ))) recipiecache = recipes data["recipes"] = recipiecache diff --git a/code/game/machinery/customat.dm b/code/game/machinery/customat.dm index 15fd069fb6a..428aa7d0b56 100644 --- a/code/game/machinery/customat.dm +++ b/code/game/machinery/customat.dm @@ -23,13 +23,16 @@ var/price = 0 ///Icon in tgui var/icon = "" + ///Icon_state in tgui + var/icon_state = "" /datum/data/customat_product/New(obj/item/I) name = I.name amount = 0 containtment = list() price = 0 - icon = icon2base64(icon(initial(I.icon), initial(I.icon_state), SOUTH, 1, FALSE)) + icon = icon(initial(I.icon)) + icon_state = initial(I.icon_state) /obj/machinery/customat @@ -565,7 +568,8 @@ price = product.price, stock = product.amount, icon = product.icon, - Key = product.key + icon_state = product.icon_state, + Key = product.key, ) data["products"] += list(data_pr) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 9f500f6a540..4ba043a3cd1 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -201,10 +201,6 @@ build_inventory(products, product_records) build_inventory(contraband, hidden_records) build_inventory(premium, coin_records) - for(var/datum/data/vending_product/R in (product_records + coin_records + hidden_records)) - var/obj/item/I = R.product_path - var/pp = path2assetID(R.product_path) - imagelist[pp] = "[icon2base64(icon(initial(I.icon), initial(I.icon_state), SOUTH, 1, FALSE))]" if(LAZYLEN(slogan_list)) // So not all machines speak at the exact same time. // The first time this machine says something will be at slogantime + this random value, @@ -802,10 +798,13 @@ data["product_records"] = list() var/i = 1 for (var/datum/data/vending_product/R in product_records) + var/obj/item = R.product_path var/list/data_pr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), name = R.name, - price = (R.product_path in prices) ? prices[R.product_path] : 0, + price = (item in prices) ? prices[item] : 0, + icon = item.icon, + icon_state = item.icon_state, max_amount = R.max_amount, req_coin = FALSE, is_hidden = FALSE, @@ -815,10 +814,13 @@ i++ data["coin_records"] = list() for (var/datum/data/vending_product/R in coin_records) + var/obj/item = R.product_path var/list/data_cr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), name = R.name, - price = (R.product_path in prices) ? prices[R.product_path] : 0, + price = (item in prices) ? prices[item] : 0, + icon = item.icon, + icon_state = item.icon_state, max_amount = R.max_amount, req_coin = TRUE, is_hidden = FALSE, @@ -829,10 +831,13 @@ i++ data["hidden_records"] = list() for (var/datum/data/vending_product/R in hidden_records) + var/obj/item = R.product_path var/list/data_hr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), name = R.name, - price = (R.product_path in prices) ? prices[R.product_path] : 0, + price = (item in prices) ? prices[item] : 0, + icon = item.icon, + icon_state = item.icon_state, max_amount = R.max_amount, req_coin = FALSE, is_hidden = TRUE, diff --git a/code/game/objects/items/devices/floor_painter.dm b/code/game/objects/items/devices/floor_painter.dm index 29f839d6eae..e3716cd5dc8 100644 --- a/code/game/objects/items/devices/floor_painter.dm +++ b/code/game/objects/items/devices/floor_painter.dm @@ -9,7 +9,7 @@ item_state = "floor_painter" usesound = 'sound/effects/spray2.ogg' - var/floor_icon + var/floor_icon = 'icons/turf/floors.dmi' var/floor_state = "floor" var/floor_dir = SOUTH @@ -70,9 +70,7 @@ ui = SStgui.try_update_ui(user, src, ui) if(!ui) ui = new(user, src, "FloorPainter", name) - // Disable automatic updates, because: - // 1) we are the only user of the item, and don't expect to observe external changes - // 2) generating and sending the icon each tick is a bit expensive, and creates small but noticeable lag + // Disable automatic updates, because we are the only user of the item, and don't expect to observe external changes ui.set_autoupdate(FALSE) ui.open() @@ -80,12 +78,7 @@ var/list/data = list() data["availableStyles"] = allowed_states data["selectedStyle"] = floor_state - data["selectedDir"] = dir2text(floor_dir) - - data["directionsPreview"] = list() - for(var/dir in GLOB.alldirs) - var/icon/floor_icon = icon('icons/turf/floors.dmi', floor_state, dir) - data["directionsPreview"][dir2text(dir)] = icon2base64(floor_icon) + data["selectedDir"] = floor_dir return data @@ -93,10 +86,8 @@ /obj/item/floor_painter/ui_static_data(mob/user) var/list/data = list() - data["allStylesPreview"] = list() - for (var/style in allowed_states) - var/icon/floor_icon = icon('icons/turf/floors.dmi', style, SOUTH) - data["allStylesPreview"][style] = icon2base64(floor_icon) + data["icon"] = floor_icon + data["availableStyles"] = allowed_states return data diff --git a/code/game/objects/items/weapons/implants/implantpad.dm b/code/game/objects/items/weapons/implants/implantpad.dm index 11b5f6e10af..925622c37fd 100644 --- a/code/game/objects/items/weapons/implants/implantpad.dm +++ b/code/game/objects/items/weapons/implants/implantpad.dm @@ -76,7 +76,8 @@ "life" = implant_data.life, "notes" = implant_data.notes, "function" = implant_data.function, - "image" = "[icon2base64(icon(initial(case.imp.icon), initial(case.imp.icon_state), SOUTH, 1))]", + "icon" = initial(case.imp.icon), + "icon_state" = initial(case.imp.icon_state), ) var/obj/item/implant/tracking/tracking_imp = case.imp data["tag"] = istype(tracking_imp) ? tracking_imp.gps_tag : null diff --git a/code/modules/antagonists/space_ninja/suit/suit_SpiderOS.dm b/code/modules/antagonists/space_ninja/suit/suit_SpiderOS.dm index 1787d2b0b08..444f825f7d3 100644 --- a/code/modules/antagonists/space_ninja/suit/suit_SpiderOS.dm +++ b/code/modules/antagonists/space_ninja/suit/suit_SpiderOS.dm @@ -76,16 +76,10 @@ var/list/data = list() //Превью абилок - data["allActionsPreview"] = list() - for (var/style in allowed_states) - var/icon/action_icon = icon('icons/mob/actions/actions_ninja.dmi', style, SOUTH, frame = 1) - data["allActionsPreview"][style] = icon2base64(action_icon) + data["actionsIcon"] = 'icons/mob/actions/actions_ninja.dmi' //Превью костюмов - data["allStylesPreview"] = list() - for (var/style in allowed_preview_states) - var/icon/costume_icon = icon('icons/mob/ninja_previews.dmi', style, SOUTH, frame = 1) - data["allStylesPreview"][style] = icon2base64(costume_icon) + data["stylesIcon"] = 'icons/mob/ninja_previews.dmi' return data diff --git a/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm b/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm index 34bb3e23d7b..8ca081703e1 100644 --- a/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm +++ b/code/modules/antagonists/vampire/vampire_powers/bestia_powers.dm @@ -499,12 +499,13 @@ var/list/data = list() var/datum/antagonist/vampire/vampire = user.mind.has_antag_datum(/datum/antagonist/vampire) - data["icon_hearts"] = "[icon2base64(icon('icons/obj/surgery.dmi', "heart-off"))]" - data["icon_lungs"] = "[icon2base64(icon('icons/obj/surgery.dmi', "lungs"))]" - data["icon_livers"] = "[icon2base64(icon('icons/obj/surgery.dmi', "liver"))]" - data["icon_kidneys"] = "[icon2base64(icon('icons/obj/surgery.dmi', "kidneys"))]" - data["icon_eyes"] = "[icon2base64(icon('icons/obj/surgery.dmi', "eyes"))]" - data["icon_ears"] = "[icon2base64(icon('icons/obj/surgery.dmi', "ears"))]" + data["organs_icon"] = 'icons/obj/surgery.dmi' + data["icon_hearts"] = "heart-off" + data["icon_lungs"] = "lungs" + data["icon_livers"] = "liver" + data["icon_kidneys"] = "kidneys" + data["icon_eyes"] = "eyes" + data["icon_ears"] = "ears" data["trophies_max_gen"] = MAX_TROPHIES_PER_TYPE_GENERAL data["trophies_max_crit"] = MAX_TROPHIES_PER_TYPE_CRITICAL diff --git a/code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm b/code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm index 4d24e992543..0f1de9b832b 100644 --- a/code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm +++ b/code/modules/antagonists/vampire/vampire_powers/vampire_powers.dm @@ -161,11 +161,11 @@ /obj/effect/proc_holder/spell/vampire/self/specialize/ui_static_data(mob/user) var/list/data = list() - data["hemomancer"] = icon2base64(icon('icons/misc/vampire_tgui.dmi', "hemomancer")) - data["umbrae"] = icon2base64(icon('icons/misc/vampire_tgui.dmi', "umbrae")) - data["gargantua"] = icon2base64(icon('icons/misc/vampire_tgui.dmi', "gargantua")) - data["dantalion"] = icon2base64(icon('icons/misc/vampire_tgui.dmi', "dantalion")) - data["bestia"] = icon2base64(icon('icons/misc/vampire_tgui.dmi', "bestia")) + data["hemomancer"] = list('icons/misc/vampire_tgui.dmi', "hemomancer") + data["umbrae"] = list('icons/misc/vampire_tgui.dmi', "umbrae") + data["gargantua"] = list('icons/misc/vampire_tgui.dmi', "gargantua") + data["dantalion"] = list('icons/misc/vampire_tgui.dmi', "dantalion") + data["bestia"] = list('icons/misc/vampire_tgui.dmi', "bestia") return data diff --git a/code/modules/client/preference/loadout/gear_tweaks.dm b/code/modules/client/preference/loadout/gear_tweaks.dm index 239036d15e8..961739bfac6 100644 --- a/code/modules/client/preference/loadout/gear_tweaks.dm +++ b/code/modules/client/preference/loadout/gear_tweaks.dm @@ -62,7 +62,7 @@ if(!param) return tgui_data tgui_data["display_param"] = param - tgui_data["icon"] = parent.get_gear_icon(param) + tgui_data["icon"] = parent.base64icon return tgui_data /datum/gear_tweak/color/update_gear_intro(color) diff --git a/code/modules/pda/PDA.dm b/code/modules/pda/PDA.dm index b636cbc1aaa..5a197dfc2d7 100755 --- a/code/modules/pda/PDA.dm +++ b/code/modules/pda/PDA.dm @@ -81,8 +81,6 @@ GLOBAL_LIST_EMPTY(PDAs) var/obj/item/pda/chameleon_skin /// Custom job name used in chameleon PDA. var/fakejob - /// Our icon saved in the text format for TGUI usage - var/base64icon /// Custom PDA name used in update_name() var/custom_name /// Current PDA case @@ -107,8 +105,6 @@ GLOBAL_LIST_EMPTY(PDAs) GLOB.PDAs += src GLOB.PDAs = sortAtom(GLOB.PDAs) - base64icon = "[icon2base64(icon(icon, icon_state, frame = 1))]" - update_programs() if(default_cartridge) cartridge = new default_cartridge(src) @@ -356,16 +352,12 @@ GLOBAL_LIST_EMPTY(PDAs) /obj/item/pda/update_icon_state() if(chameleon_skin) icon_state = initial(chameleon_skin.icon_state) - base64icon = "[icon2base64(icon(icon, icon_state, frame = 1))]" else if(current_case?.new_icon_state) icon_state = current_case.new_icon_state - base64icon = "[icon2base64(icon(icon, icon_state, frame = 1))]" else if(current_painting) icon_state = current_painting["icon"] - base64icon = current_painting["base64"] else icon_state = initial(icon_state) - base64icon = "[icon2base64(icon(icon, icon_state, frame = 1))]" if(chameleon_skin) item_state = initial(chameleon_skin.item_state) diff --git a/tgui/packages/tgui/interfaces/Autolathe.js b/tgui/packages/tgui/interfaces/Autolathe.js index 28dedb611f8..1a936dfe5f7 100644 --- a/tgui/packages/tgui/interfaces/Autolathe.js +++ b/tgui/packages/tgui/interfaces/Autolathe.js @@ -9,6 +9,7 @@ import { Section, Stack, Dropdown, + DmIcon, } from '../components'; import { Window } from '../layouts'; import { createSearch, toTitleCase } from 'common/string'; @@ -129,8 +130,9 @@ export const Autolathe = (props, context) => { /> {recipesToShow.map((recipe) => ( - { const { act, data } = useBackend(context); - const { image, isSelected, onSelect } = props; + const { icon_state, direction, isSelected, onSelect } = props; return ( - ); }; +const Dir = { + NORTH: 1, + SOUTH: 2, + EAST: 4, + WEST: 8, +}; + export const FloorPainter = (props, context) => { const { act, data } = useBackend(context); - const { - availableStyles, - selectedStyle, - selectedDir, - directionsPreview, - allStylesPreview, - } = data; + const { availableStyles, selectedStyle, selectedDir } = data; return ( @@ -71,13 +75,13 @@ export const FloorPainter = (props, context) => { {availableStyles.map((style) => ( - + act('select_style', { style: style })} /> @@ -89,9 +93,9 @@ export const FloorPainter = (props, context) => { - {['north', '', 'south'].map((latitude) => ( + {[Dir.NORTH, null, Dir.SOUTH].map((latitude) => ( - {[latitude + 'west', latitude, latitude + 'east'].map( + {[latitude + Dir.WEST, latitude, latitude + Dir.EAST].map( (dir) => ( { 'text-align': 'center', }} > - {dir === '' ? ( + {dir === null ? ( ) : ( act('select_direction', { direction: dir }) diff --git a/tgui/packages/tgui/interfaces/ImplantPad.js b/tgui/packages/tgui/interfaces/ImplantPad.js index 10a42084fa8..80592c8577a 100644 --- a/tgui/packages/tgui/interfaces/ImplantPad.js +++ b/tgui/packages/tgui/interfaces/ImplantPad.js @@ -1,5 +1,13 @@ import { useBackend, useLocalState } from '../backend'; -import { Button, Section, Box, LabeledList, Input, Icon } from '../components'; +import { + Button, + Section, + Box, + LabeledList, + Input, + Icon, + DmIcon, +} from '../components'; import { Window } from '../layouts'; export const ImplantPad = (props, context) => { @@ -27,8 +35,9 @@ export const ImplantPad = (props, context) => { {implant && contains_case ? ( <> - { const { act, data } = useBackend(context); - const { statusLabel, pdaTypes, hasPDA, pdaIcon, pdaOwnerName, pdaJobName } = - data; + const { + statusLabel, + pdaTypes, + hasPDA, + pdaIcon, + pdaIconState, + pdaOwnerName, + pdaJobName, + } = data; return ( @@ -40,10 +55,10 @@ export const PDAPainter = (props, context) => { - { ))} @@ -123,15 +138,16 @@ export const PDAPainter = (props, context) => { export const PDAColorRow = (props, context) => { const { act, data } = useBackend(context); - const { hasPDA } = data; + const { hasPDA, pdaIcon } = data; - const { selectedPda, selectedPdaImage } = props; + const { selectedPda } = props; return ( - { act('choose_pda', { selectedPda: selectedPda, - selectedPdaImage: selectedPdaImage, }) } /> diff --git a/tgui/packages/tgui/interfaces/SpiderOS.js b/tgui/packages/tgui/interfaces/SpiderOS.js index e56971e0853..04dc80a3f9c 100644 --- a/tgui/packages/tgui/interfaces/SpiderOS.js +++ b/tgui/packages/tgui/interfaces/SpiderOS.js @@ -11,6 +11,7 @@ import { ProgressBar, Dropdown, NoticeBox, + DmIcon, } from '../components'; import { LabeledListItem } from '../components/LabeledList'; import { Window } from '../layouts'; @@ -77,11 +78,13 @@ export const SpiderOS = (properties, context) => { const StylesPreview = (properties, context) => { const { data } = useBackend((properties, context)); - const { allStylesPreview, style_preview_icon_state } = data; + const { stylesIcon, style_preview_icon_state } = data; return (
{ mr={10} ml={10} > - { } return ( - + @@ -276,19 +280,13 @@ const SuitTuning = (properties, context) => { {if_concentration} - +
diff --git a/tgui/packages/tgui/interfaces/Workshop.js b/tgui/packages/tgui/interfaces/Workshop.js index 28408318c59..d9f273df59d 100644 --- a/tgui/packages/tgui/interfaces/Workshop.js +++ b/tgui/packages/tgui/interfaces/Workshop.js @@ -4,6 +4,7 @@ import { Box, Button, Collapsible, + DmIcon, Dropdown, Input, LabeledList, @@ -205,8 +206,9 @@ const WorkshopItemsCategory = (properties, context) => { {items.map((item) => ( - 0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var s=(0,e.isElement)(y)?(0,t.default)(y):window,l=s.visualViewport,d=!(0,o.default)()&&b,f=(p.left+(d&&l?l.offsetLeft:0))/i,u=(p.top+(d&&l?l.offsetTop:0))/c,v=p.width/i,V=p.height/c;return{width:v,height:V,top:u,right:f+v,bottom:u+V,left:f,x:f,y:u}}},49035:function(I,r,n){"use strict";r.__esModule=!0,r.default=V;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),m=d(n(44896)),S=d(n(40600)),y=d(n(16599)),k=n(75573),b=d(n(37786)),p=d(n(57819)),i=d(n(4206)),c=d(n(12972)),s=d(n(81666)),l=n(63618);function d(C){return C&&C.__esModule?C:{default:C}}function f(C,h){var g=(0,b.default)(C,!1,h==="fixed");return g.top=g.top+C.clientTop,g.left=g.left+C.clientLeft,g.bottom=g.top+C.clientHeight,g.right=g.left+C.clientWidth,g.width=C.clientWidth,g.height=C.clientHeight,g.x=g.left,g.y=g.top,g}function u(C,h,g){return h===e.viewport?(0,s.default)((0,a.default)(C,g)):(0,k.isElement)(h)?f(h,g):(0,s.default)((0,t.default)((0,S.default)(C)))}function v(C){var h=(0,o.default)((0,p.default)(C)),g=["absolute","fixed"].indexOf((0,y.default)(C).position)>=0,N=g&&(0,k.isHTMLElement)(C)?(0,m.default)(C):C;return(0,k.isElement)(N)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,N)&&(0,c.default)(x)!=="body"}):[]}function V(C,h,g,N){var x=h==="clippingParents"?v(C):[].concat(h),B=[].concat(x,[g]),L=B[0],T=B.reduce(function(A,w){var E=u(C,w,N);return A.top=(0,l.max)(E.top,A.top),A.right=(0,l.min)(E.right,A.right),A.bottom=(0,l.min)(E.bottom,A.bottom),A.left=(0,l.max)(E.left,A.left),A},u(C,L,N));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},74758:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=b(n(37786)),a=b(n(13390)),t=b(n(12972)),o=n(75573),m=b(n(79697)),S=b(n(40600)),y=b(n(10798)),k=n(63618);function b(c){return c&&c.__esModule?c:{default:c}}function p(c){var s=c.getBoundingClientRect(),l=(0,k.round)(s.width)/c.offsetWidth||1,d=(0,k.round)(s.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,s,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(s),f=(0,o.isHTMLElement)(s)&&p(s),u=(0,S.default)(s),v=(0,e.default)(c,f,l),V={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(s)!=="body"||(0,y.default)(u))&&(V=(0,a.default)(s)),(0,o.isHTMLElement)(s)?(C=(0,e.default)(s,!0),C.x+=s.clientLeft,C.y+=s.clientTop):u&&(C.x=(0,m.default)(u))),{x:v.left+V.scrollLeft-C.x,y:v.top+V.scrollTop-C.y,width:v.width,height:v.height}}},16599:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(I,r,n){"use strict";r.__esModule=!0,r.default=y;var e=S(n(40600)),a=S(n(16599)),t=S(n(79697)),o=S(n(43750)),m=n(63618);function S(k){return k&&k.__esModule?k:{default:k}}function y(k){var b,p=(0,e.default)(k),i=(0,o.default)(k),c=(b=k.ownerDocument)==null?void 0:b.body,s=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(k),f=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-s),{width:s,height:l,x:d,y:f}}},3073:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-S)<=1&&(S=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:S,height:y}}},12972:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(43750)),a=m(n(95115)),t=n(75573),o=m(n(3073));function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(95115)),a=k(n(12972)),t=k(n(16599)),o=n(75573),m=k(n(87031)),S=k(n(57819)),y=k(n(35366));function k(c){return c&&c.__esModule?c:{default:c}}function b(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var s=/firefox/i.test((0,y.default)()),l=/Trident/i.test((0,y.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var f=(0,S.default)(c);for((0,o.isShadowRoot)(f)&&(f=f.host);(0,o.isHTMLElement)(f)&&["html","body"].indexOf((0,a.default)(f))<0;){var u=(0,t.default)(f);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||s&&u.willChange==="filter"||s&&u.filter&&u.filter!=="none")return f;f=f.parentNode}return null}function i(c){for(var s=(0,e.default)(c),l=b(c);l&&(0,m.default)(l)&&(0,t.default)(l).position==="static";)l=b(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?s:l||p(c)||s}},57819:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)(S)==="html"?S:S.assignedSlot||S.parentNode||((0,t.isShadowRoot)(S)?S.host:null)||(0,a.default)(S)}},24426:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(57819)),a=m(n(10798)),t=m(n(12972)),o=n(75573);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:S((0,e.default)(y))}},87991:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(95115)),a=m(n(40600)),t=m(n(79697)),o=m(n(89331));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var b=(0,e.default)(y),p=(0,a.default)(y),i=b.visualViewport,c=p.clientWidth,s=p.clientHeight,l=0,d=0;if(i){c=i.width,s=i.height;var f=(0,o.default)();(f||!f&&k==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:l+(0,t.default)(y),y:d}}},95115:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}},43750:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:S,scrollTop:y}}},79697:function(I,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)((0,a.default)(S)).left+(0,t.default)(S).scrollLeft}},75573:function(I,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}function t(S){var y=(0,e.default)(S).Element;return S instanceof y||S instanceof Element}function o(S){var y=(0,e.default)(S).HTMLElement;return S instanceof y||S instanceof HTMLElement}function m(S){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(S).ShadowRoot;return S instanceof y||S instanceof ShadowRoot}},89331:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.overflow,y=m.overflowX,k=m.overflowY;return/auto|scroll|overlay|hidden/.test(S+k+y)}},87031:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(24426)),a=m(n(57819)),t=m(n(95115)),o=m(n(10798));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var b;k===void 0&&(k=[]);var p=(0,e.default)(y),i=p===((b=y.ownerDocument)==null?void 0:b.body),c=(0,t.default)(p),s=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=k.concat(s);return i?l:l.concat(S((0,a.default)(s)))}},46206:function(I,r){"use strict";r.__esModule=!0,r.write=r.viewport=r.variationPlacements=r.top=r.start=r.right=r.reference=r.read=r.popper=r.placements=r.modifierPhases=r.main=r.left=r.end=r.clippingParents=r.bottom=r.beforeWrite=r.beforeRead=r.beforeMain=r.basePlacements=r.auto=r.afterWrite=r.afterRead=r.afterMain=void 0;var n=r.top="top",e=r.bottom="bottom",a=r.right="right",t=r.left="left",o=r.auto="auto",m=r.basePlacements=[n,e,a,t],S=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",b=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=m.reduce(function(x,B){return x.concat([B+"-"+S,B+"-"+y])},[]),s=r.placements=[].concat(m,[o]).reduce(function(x,B){return x.concat([B,B+"-"+S,B+"-"+y])},[]),l=r.beforeRead="beforeRead",d=r.read="read",f=r.afterRead="afterRead",u=r.beforeMain="beforeMain",v=r.main="main",V=r.afterMain="afterMain",C=r.beforeWrite="beforeWrite",h=r.write="write",g=r.afterWrite="afterWrite",N=r.modifierPhases=[l,d,f,u,v,V,C,h,g]},95996:function(I,r,n){"use strict";r.__esModule=!0;var e={popperGenerator:!0,detectOverflow:!0,createPopperBase:!0,createPopper:!0,createPopperLite:!0};r.popperGenerator=r.detectOverflow=r.createPopperLite=r.createPopperBase=r.createPopper=void 0;var a=n(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(83312);r.createPopper=m.createPopper;var S=n(2473);r.createPopperLite=S.createPopper},19975:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(b){var p=k.styles[b]||{},i=k.attributes[b]||{},c=k.elements[b];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(s){var l=i[s];l===!1?c.removeAttribute(s):c.setAttribute(s,l===!0?"":l)}))})}function m(y){var k=y.state,b={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,b.popper),k.styles=b,k.elements.arrow&&Object.assign(k.elements.arrow.style,b.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],c=k.attributes[p]||{},s=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:b[p]),l=s.reduce(function(d,f){return d[f]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var S=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},52744:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(83104)),a=p(n(28811)),t=p(n(4206)),o=p(n(44896)),m=p(n(41199)),S=n(28595),y=p(n(43286)),k=p(n(81447)),b=n(46206);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(f,u){return f=typeof f=="function"?f(Object.assign({},u.rects,{placement:u.placement})):f,(0,y.default)(typeof f!="number"?f:(0,k.default)(f,b.basePlacements))}return d}();function c(d){var f,u=d.state,v=d.name,V=d.options,C=u.elements.arrow,h=u.modifiersData.popperOffsets,g=(0,e.default)(u.placement),N=(0,m.default)(g),x=[b.left,b.right].indexOf(g)>=0,B=x?"height":"width";if(!(!C||!h)){var L=i(V.padding,u),T=(0,a.default)(C),A=N==="y"?b.top:b.left,w=N==="y"?b.bottom:b.right,E=u.rects.reference[B]+u.rects.reference[N]-h[N]-u.rects.popper[B],O=h[N]-u.rects.reference[N],P=(0,o.default)(C),M=P?N==="y"?P.clientHeight||0:P.clientWidth||0:0,R=E/2-O/2,F=L[A],_=M-T[B]-L[w],U=M/2-T[B]/2+R,W=(0,S.within)(F,U,_),$=N;u.modifiersData[v]=(f={},f[$]=W,f.centerOffset=W-U,f)}}function s(d){var f=d.state,u=d.options,v=u.element,V=v===void 0?"[data-popper-arrow]":v;V!=null&&(typeof V=="string"&&(V=f.elements.popper.querySelector(V),!V)||(0,t.default)(f.elements.popper,V)&&(f.elements.arrow=V))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:s,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=b(n(44896)),t=b(n(95115)),o=b(n(40600)),m=b(n(16599)),S=b(n(83104)),y=b(n(45)),k=n(63618);function b(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,f){var u=d.x,v=d.y,V=f.devicePixelRatio||1;return{x:(0,k.round)(u*V)/V||0,y:(0,k.round)(v*V)/V||0}}function c(d){var f,u=d.popper,v=d.popperRect,V=d.placement,C=d.variation,h=d.offsets,g=d.position,N=d.gpuAcceleration,x=d.adaptive,B=d.roundOffsets,L=d.isFixed,T=h.x,A=T===void 0?0:T,w=h.y,E=w===void 0?0:w,O=typeof B=="function"?B({x:A,y:E}):{x:A,y:E};A=O.x,E=O.y;var P=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),R=e.left,F=e.top,_=window;if(x){var U=(0,a.default)(u),W="clientHeight",$="clientWidth";if(U===(0,t.default)(u)&&(U=(0,o.default)(u),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",$="scrollWidth")),U=U,V===e.top||(V===e.left||V===e.right)&&C===e.end){F=e.bottom;var G=L&&U===_&&_.visualViewport?_.visualViewport.height:U[W];E-=G-v.height,E*=N?1:-1}if(V===e.left||(V===e.top||V===e.bottom)&&C===e.end){R=e.right;var oe=L&&U===_&&_.visualViewport?_.visualViewport.width:U[$];A-=oe-v.width,A*=N?1:-1}}var X=Object.assign({position:g},x&&p),ve=B===!0?i({x:A,y:E},(0,t.default)(u)):{x:A,y:E};if(A=ve.x,E=ve.y,N){var me;return Object.assign({},X,(me={},me[F]=M?"0":"",me[R]=P?"0":"",me.transform=(_.devicePixelRatio||1)<=1?"translate("+A+"px, "+E+"px)":"translate3d("+A+"px, "+E+"px, 0)",me))}return Object.assign({},X,(f={},f[F]=M?E+"px":"",f[R]=P?A+"px":"",f.transform="",f))}function s(d){var f=d.state,u=d.options,v=u.gpuAcceleration,V=v===void 0?!0:v,C=u.adaptive,h=C===void 0?!0:C,g=u.roundOffsets,N=g===void 0?!0:g,x={placement:(0,S.default)(f.placement),variation:(0,y.default)(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:V,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,c(Object.assign({},x,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:h,roundOffsets:N})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,c(Object.assign({},x,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s,data:{}}},36692:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}var t={passive:!0};function o(S){var y=S.state,k=S.instance,b=S.options,p=b.scroll,i=p===void 0?!0:p,c=b.resize,s=c===void 0?!0:c,l=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",k.update,t)}),s&&l.addEventListener("resize",k.update,t),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",k.update,t)}),s&&l.removeEventListener("resize",k.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function S(){}return S}(),effect:o,data:{}}},23798:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(71376)),a=k(n(83104)),t=k(n(86459)),o=k(n(17633)),m=k(n(9041)),S=n(46206),y=k(n(45));function k(c){return c&&c.__esModule?c:{default:c}}function b(c){if((0,a.default)(c)===S.auto)return[];var s=(0,e.default)(c);return[(0,t.default)(c),s,(0,t.default)(s)]}function p(c){var s=c.state,l=c.options,d=c.name;if(!s.modifiersData[d]._skip){for(var f=l.mainAxis,u=f===void 0?!0:f,v=l.altAxis,V=v===void 0?!0:v,C=l.fallbackPlacements,h=l.padding,g=l.boundary,N=l.rootBoundary,x=l.altBoundary,B=l.flipVariations,L=B===void 0?!0:B,T=l.allowedAutoPlacements,A=s.options.placement,w=(0,a.default)(A),E=w===A,O=C||(E||!L?[(0,e.default)(A)]:b(A)),P=[A].concat(O).reduce(function(Z,te){return Z.concat((0,a.default)(te)===S.auto?(0,m.default)(s,{placement:te,boundary:g,rootBoundary:N,padding:h,flipVariations:L,allowedAutoPlacements:T}):te)},[]),M=s.rects.reference,R=s.rects.popper,F=new Map,_=!0,U=P[0],W=0;W=0,ve=X?"width":"height",me=(0,o.default)(s,{placement:$,boundary:g,rootBoundary:N,altBoundary:x,padding:h}),ne=X?oe?S.right:S.left:oe?S.bottom:S.top;M[ve]>R[ve]&&(ne=(0,e.default)(ne));var ce=(0,e.default)(ne),q=[];if(u&&q.push(me[G]<=0),V&&q.push(me[ne]<=0,me[ce]<=0),q.every(function(Z){return Z})){U=$,_=!1;break}F.set($,q)}if(_)for(var ae=L?3:1,J=function(){function Z(te){var se=P.find(function(ye){var fe=F.get(ye);if(fe)return fe.slice(0,te).every(function(Ie){return Ie})});if(se)return U=se,"break"}return Z}(),Y=ae;Y>0;Y--){var Q=J(Y);if(Q==="break")break}s.placement!==U&&(s.modifiersData[d]._skip=!0,s.placement=U,s.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,b,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-b.height-p.y,right:k.right-b.width+p.x,bottom:k.bottom-b.height+p.y,left:k.left-b.width-p.x}}function m(k){return[e.top,e.right,e.bottom,e.left].some(function(b){return k[b]>=0})}function S(k){var b=k.state,p=k.name,i=b.rects.reference,c=b.rects.popper,s=b.modifiersData.preventOverflow,l=(0,a.default)(b,{elementContext:"reference"}),d=(0,a.default)(b,{altBoundary:!0}),f=o(l,i),u=o(d,c,s),v=m(f),V=m(u);b.modifiersData[p]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:v,hasPopperEscaped:V},b.attributes.popper=Object.assign({},b.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":V})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S}},39805:function(I,r,n){"use strict";r.__esModule=!0,r.preventOverflow=r.popperOffsets=r.offset=r.hide=r.flip=r.eventListeners=r.computeStyles=r.arrow=r.applyStyles=void 0;var e=p(n(19975));r.applyStyles=e.default;var a=p(n(52744));r.arrow=a.default;var t=p(n(59894));r.computeStyles=t.default;var o=p(n(36692));r.eventListeners=o.default;var m=p(n(23798));r.flip=m.default;var S=p(n(83761));r.hide=S.default;var y=p(n(61410));r.offset=y.default;var k=p(n(40107));r.popperOffsets=k.default;var b=p(n(75137));r.preventOverflow=b.default;function p(i){return i&&i.__esModule?i:{default:i}}},61410:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,b){var p=(0,e.default)(y),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof b=="function"?b(Object.assign({},k,{placement:y})):b,s=c[0],l=c[1];return s=s||0,l=(l||0)*i,[a.left,a.right].indexOf(p)>=0?{x:l,y:s}:{x:s,y:l}}function m(y){var k=y.state,b=y.options,p=y.name,i=b.offset,c=i===void 0?[0,0]:i,s=a.placements.reduce(function(u,v){return u[v]=o(v,k.rects,c),u},{}),l=s[k.placement],d=l.x,f=l.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=d,k.modifiersData.popperOffsets.y+=f),k.modifiersData[p]=s}var S=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},40107:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var S=m.state,y=m.name;S.modifiersData[y]=(0,e.default)({reference:S.rects.reference,element:S.rects.popper,strategy:"absolute",placement:S.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(I,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),m=n(28595),S=c(n(28811)),y=c(n(44896)),k=c(n(17633)),b=c(n(45)),p=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function s(d){var f=d.state,u=d.options,v=d.name,V=u.mainAxis,C=V===void 0?!0:V,h=u.altAxis,g=h===void 0?!1:h,N=u.boundary,x=u.rootBoundary,B=u.altBoundary,L=u.padding,T=u.tether,A=T===void 0?!0:T,w=u.tetherOffset,E=w===void 0?0:w,O=(0,k.default)(f,{boundary:N,rootBoundary:x,padding:L,altBoundary:B}),P=(0,a.default)(f.placement),M=(0,b.default)(f.placement),R=!M,F=(0,t.default)(P),_=(0,o.default)(F),U=f.modifiersData.popperOffsets,W=f.rects.reference,$=f.rects.popper,G=typeof E=="function"?E(Object.assign({},f.rects,{placement:f.placement})):E,oe=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),X=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,ve={x:0,y:0};if(U){if(C){var me,ne=F==="y"?e.top:e.left,ce=F==="y"?e.bottom:e.right,q=F==="y"?"height":"width",ae=U[F],J=ae+O[ne],Y=ae-O[ce],Q=A?-$[q]/2:0,Z=M===e.start?W[q]:$[q],te=M===e.start?-$[q]:-W[q],se=f.elements.arrow,ye=A&&se?(0,S.default)(se):{width:0,height:0},fe=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:(0,p.default)(),Ie=fe[ne],D=fe[ce],re=(0,m.within)(0,W[q],ye[q]),de=R?W[q]/2-Q-re-Ie-oe.mainAxis:Z-re-Ie-oe.mainAxis,Ce=R?-W[q]/2+Q+re+D+oe.mainAxis:te+re+D+oe.mainAxis,pe=f.elements.arrow&&(0,y.default)(f.elements.arrow),Be=pe?F==="y"?pe.clientTop||0:pe.clientLeft||0:0,ke=(me=X==null?void 0:X[F])!=null?me:0,Ee=ae+de-ke-Be,Re=ae+Ce-ke,_e=(0,m.within)(A?(0,i.min)(J,Ee):J,ae,A?(0,i.max)(Y,Re):Y);U[F]=_e,ve[F]=_e-ae}if(g){var Pe,Ne=F==="x"?e.top:e.left,Se=F==="x"?e.bottom:e.right,H=U[_],ue=_==="y"?"height":"width",Ve=H+O[Ne],be=H-O[Se],Le=[e.top,e.left].indexOf(P)!==-1,we=(Pe=X==null?void 0:X[_])!=null?Pe:0,Me=Le?Ve:H-W[ue]-$[ue]-we+oe.altAxis,Ae=Le?H+W[ue]+$[ue]-we-oe.altAxis:be,De=A&&Le?(0,m.withinMaxClamp)(Me,H,Ae):(0,m.within)(A?Me:Ve,H,A?Ae:be);U[_]=De,ve[_]=De-H}f.modifiersData[v]=ve}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"]}},2473:function(I,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=S(n(36692)),t=S(n(40107)),o=S(n(59894)),m=S(n(19975));function S(b){return b&&b.__esModule?b:{default:b}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(I,r,n){"use strict";r.__esModule=!0;var e={createPopper:!0,createPopperLite:!0,defaultModifiers:!0,popperGenerator:!0,detectOverflow:!0};r.defaultModifiers=r.createPopperLite=r.createPopper=void 0;var a=n(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),m=l(n(59894)),S=l(n(19975)),y=l(n(61410)),k=l(n(23798)),b=l(n(75137)),p=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var s=n(39805);Object.keys(s).forEach(function(u){u==="default"||u==="__esModule"||Object.prototype.hasOwnProperty.call(e,u)||u in r&&r[u]===s[u]||(r[u]=s[u])});function l(u){return u&&u.__esModule?u:{default:u}}var d=r.defaultModifiers=[t.default,o.default,m.default,S.default,y.default,k.default,b.default,p.default,i.default],f=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(45)),a=n(46206),t=m(n(17633)),o=m(n(83104));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){k===void 0&&(k={});var b=k,p=b.placement,i=b.boundary,c=b.rootBoundary,s=b.padding,l=b.flipVariations,d=b.allowedAutoPlacements,f=d===void 0?a.placements:d,u=(0,e.default)(p),v=u?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===u}):a.basePlacements,V=v.filter(function(h){return f.indexOf(h)>=0});V.length===0&&(V=v);var C=V.reduce(function(h,g){return h[g]=(0,t.default)(y,{placement:g,boundary:i,rootBoundary:c,padding:s})[(0,o.default)(g)],h},{});return Object.keys(C).sort(function(h,g){return C[h]-C[g]})}},89951:function(I,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(83104)),a=m(n(45)),t=m(n(41199)),o=n(46206);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){var k=y.reference,b=y.element,p=y.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,s=k.x+k.width/2-b.width/2,l=k.y+k.height/2-b.height/2,d;switch(i){case o.top:d={x:s,y:k.y-b.height};break;case o.bottom:d={x:s,y:k.y+k.height};break;case o.right:d={x:k.x+k.width,y:l};break;case o.left:d={x:k.x-b.width,y:l};break;default:d={x:k.x,y:k.y}}var f=i?(0,t.default)(i):null;if(f!=null){var u=f==="y"?"height":"width";switch(c){case o.start:d[f]=d[f]-(k[u]/2-b[u]/2);break;case o.end:d[f]=d[f]+(k[u]/2-b[u]/2);break;default:}}return d}},10579:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}},17633:function(I,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(49035)),a=p(n(40600)),t=p(n(37786)),o=p(n(89951)),m=p(n(81666)),S=n(46206),y=n(75573),k=p(n(43286)),b=p(n(81447));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,s){s===void 0&&(s={});var l=s,d=l.placement,f=d===void 0?c.placement:d,u=l.strategy,v=u===void 0?c.strategy:u,V=l.boundary,C=V===void 0?S.clippingParents:V,h=l.rootBoundary,g=h===void 0?S.viewport:h,N=l.elementContext,x=N===void 0?S.popper:N,B=l.altBoundary,L=B===void 0?!1:B,T=l.padding,A=T===void 0?0:T,w=(0,k.default)(typeof A!="number"?A:(0,b.default)(A,S.basePlacements)),E=x===S.popper?S.reference:S.popper,O=c.rects.popper,P=c.elements[L?E:x],M=(0,e.default)((0,y.isElement)(P)?P:P.contextElement||(0,a.default)(c.elements.popper),C,g,v),R=(0,t.default)(c.elements.reference),F=(0,o.default)({reference:R,element:O,strategy:"absolute",placement:f}),_=(0,m.default)(Object.assign({},O,F)),U=x===S.popper?_:R,W={top:M.top-U.top+w.top,bottom:U.bottom-M.bottom+w.bottom,left:M.left-U.left+w.left,right:U.right-M.right+w.right},$=c.modifiersData.offset;if(x===S.popper&&$){var G=$[f];Object.keys(W).forEach(function(oe){var X=[S.right,S.bottom].indexOf(oe)>=0?1:-1,ve=[S.top,S.bottom].indexOf(oe)>=0?"y":"x";W[oe]+=G[ve]*X})}return W}},81447:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e,a){return a.reduce(function(t,o){return t[o]=e,t},{})}},28066:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(I,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={left:"right",right:"left",bottom:"top",top:"bottom"};function e(a){return a.replace(/left|right|bottom|top/g,function(t){return n[t]})}},86459:function(I,r){"use strict";r.__esModule=!0,r.default=e;var n={start:"end",end:"start"};function e(a){return a.replace(/start|end/g,function(t){return n[t]})}},45:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618:function(I,r){"use strict";r.__esModule=!0,r.round=r.min=r.max=void 0;var n=r.max=Math.max,e=r.min=Math.min,a=r.round=Math.round},56500:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){var a=e.reduce(function(t,o){var m=t[o.name];return t[o.name]=m?Object.assign({},m,o,{options:Object.assign({},m.options,o.options),data:Object.assign({},m.data,o.data)}):o,t},{});return Object.keys(a).map(function(t){return a[t]})}},43286:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(I,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var m=new Map,S=new Set,y=[];o.forEach(function(b){m.set(b.name,b)});function k(b){S.add(b.name);var p=[].concat(b.requires||[],b.requiresIfExists||[]);p.forEach(function(i){if(!S.has(i)){var c=m.get(i);c&&k(c)}}),y.push(b)}return o.forEach(function(b){S.has(b.name)||k(b)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(S,y){return S.concat(m.filter(function(k){return k.phase===y}))},[])}},81666:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}},35366:function(I,r){"use strict";r.__esModule=!0,r.default=n;function n(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}},28595:function(I,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,m,S){return(0,e.max)(o,(0,e.min)(m,S))}function t(o,m,S){var y=a(o,m,S);return y>S?S:y}},83331:function(I,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var i=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(l,d,f,u){if(o.length===1&&p(l)==="string"&&!/\d/.test(l)&&(d=l,l=void 0),l=l||l===0?l:new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");d=String(m.masks[d]||d||m.masks.default);var v=d.slice(0,4);(v==="UTC:"||v==="GMT:")&&(d=d.slice(4),f=!0,v==="GMT:"&&(u=!0));var V=function(){function P(){return f?"getUTC":"get"}return P}(),C=function(){function P(){return l[V()+"Date"]()}return P}(),h=function(){function P(){return l[V()+"Day"]()}return P}(),g=function(){function P(){return l[V()+"Month"]()}return P}(),N=function(){function P(){return l[V()+"FullYear"]()}return P}(),x=function(){function P(){return l[V()+"Hours"]()}return P}(),B=function(){function P(){return l[V()+"Minutes"]()}return P}(),L=function(){function P(){return l[V()+"Seconds"]()}return P}(),T=function(){function P(){return l[V()+"Milliseconds"]()}return P}(),A=function(){function P(){return f?0:l.getTimezoneOffset()}return P}(),w=function(){function P(){return k(l)}return P}(),E=function(){function P(){return b(l)}return P}(),O={d:function(){function P(){return C()}return P}(),dd:function(){function P(){return S(C())}return P}(),ddd:function(){function P(){return m.i18n.dayNames[h()]}return P}(),DDD:function(){function P(){return y({y:N(),m:g(),d:C(),_:V(),dayName:m.i18n.dayNames[h()],short:!0})}return P}(),dddd:function(){function P(){return m.i18n.dayNames[h()+7]}return P}(),DDDD:function(){function P(){return y({y:N(),m:g(),d:C(),_:V(),dayName:m.i18n.dayNames[h()+7]})}return P}(),m:function(){function P(){return g()+1}return P}(),mm:function(){function P(){return S(g()+1)}return P}(),mmm:function(){function P(){return m.i18n.monthNames[g()]}return P}(),mmmm:function(){function P(){return m.i18n.monthNames[g()+12]}return P}(),yy:function(){function P(){return String(N()).slice(2)}return P}(),yyyy:function(){function P(){return S(N(),4)}return P}(),h:function(){function P(){return x()%12||12}return P}(),hh:function(){function P(){return S(x()%12||12)}return P}(),H:function(){function P(){return x()}return P}(),HH:function(){function P(){return S(x())}return P}(),M:function(){function P(){return B()}return P}(),MM:function(){function P(){return S(B())}return P}(),s:function(){function P(){return L()}return P}(),ss:function(){function P(){return S(L())}return P}(),l:function(){function P(){return S(T(),3)}return P}(),L:function(){function P(){return S(Math.floor(T()/10))}return P}(),t:function(){function P(){return x()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return P}(),tt:function(){function P(){return x()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return P}(),T:function(){function P(){return x()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return P}(),TT:function(){function P(){return x()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return P}(),Z:function(){function P(){return u?"GMT":f?"UTC":(String(l).match(c)||[""]).pop().replace(s,"").replace(/GMT\+0000/g,"UTC")}return P}(),o:function(){function P(){return(A()>0?"-":"+")+S(Math.floor(Math.abs(A())/60)*100+Math.abs(A())%60,4)}return P}(),p:function(){function P(){return(A()>0?"-":"+")+S(Math.floor(Math.abs(A())/60),2)+":"+S(Math.floor(Math.abs(A())%60),2)}return P}(),S:function(){function P(){return["th","st","nd","rd"][C()%10>3?0:(C()%100-C()%10!=10)*C()%10]}return P}(),W:function(){function P(){return w()}return P}(),WW:function(){function P(){return S(w())}return P}(),N:function(){function P(){return E()}return P}()};return d.replace(i,function(P){return P in O?O[P]():P.slice(1,P.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var S=function(){function i(c,s){for(c=String(c),s=s||2;c.length0?x(K.componentWillDisappear,T(j,z)):L(j,z,!1)}function w(j,z,K,ee,le,he,ge,xe){j.componentWillMove.push({dom:ee,fn:function(){function Te(){ge&4?K.componentWillMove(z,le,ee):ge&8&&K.onComponentWillMove(z,le,ee,xe)}return Te}(),next:he,parent:le})}function E(j,z,K,ee,le){var he,ge,xe=z.flags;do{var Te=z.flags;if(Te&1521){!a(he)&&(o(he.componentWillMove)||o(he.onComponentWillMove))?w(le,j,he,z.dom,K,ee,xe,ge):u(K,z.dom,ee);return}var Fe=z.children;if(Te&4)he=z.children,ge=z.props,z=Fe.$LI;else if(Te&8)he=z.ref,ge=z.props,z=Fe;else if(Te&8192)if(z.childFlags===2)z=Fe;else{for(var Oe=0,We=Fe.length;Oe0,Fe=y(xe),Oe=m(xe)&&xe[0]===W;Te||Fe||Oe?(K=K||z.slice(0,he),(Te||Oe)&&(ge=J(ge)),(Fe||Oe)&&(ge.key=W+he),K.push(ge)):K&&K.push(ge),ge.flags|=65536}}K=K||z,K.length===0?ee=1:ee=8}else K=z,K.flags|=65536,z.flags&81920&&(K=J(z)),ee=2;return j.children=K,j.childFlags=ee,j}function ye(j){return t(j)||e(j)?ne(j,null):n(j)?ce(j,0,null):j.flags&16384?J(j):j}var fe="http://www.w3.org/1999/xlink",Ie="http://www.w3.org/XML/1998/namespace",D={"xlink:actuate":fe,"xlink:arcrole":fe,"xlink:href":fe,"xlink:role":fe,"xlink:show":fe,"xlink:title":fe,"xlink:type":fe,"xml:base":Ie,"xml:lang":Ie,"xml:space":Ie};function re(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var de=re(0),Ce=re(null),pe=re(!0);function Be(j,z){var K=z.$EV;return K||(K=z.$EV=re(null)),K[j]||++de[j]===1&&(Ce[j]=be(j)),K}function ke(j,z){var K=z.$EV;K&&K[j]&&(--de[j]===0&&(document.removeEventListener(d(j),Ce[j]),Ce[j]=null),K[j]=null)}function Ee(j,z,K,ee){if(o(K))Be(j,ee)[j]=K;else if(i(K)){if(F(z,K))return;Be(j,ee)[j]=K}else ke(j,ee)}function Re(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function _e(j,z,K,ee){var le=Re(j);do{if(z&&le.disabled)return;var he=le.$EV;if(he){var ge=he[K];if(ge&&(ee.dom=le,ge.event?ge.event(ge.data,j):ge(j),j.cancelBubble))return}le=le.parentNode}while(!y(le))}function Pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ne(){return this.defaultPrevented}function Se(){return this.cancelBubble}function H(j){var z={dom:document};return j.isDefaultPrevented=Ne,j.isPropagationStopped=Se,j.stopPropagation=Pe,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function K(){return z.dom}return K}()}),z}function ue(j){return function(z){if(z.button!==0){z.stopPropagation();return}_e(z,!0,j,H(z))}}function Ve(j){return function(z){_e(z,!1,j,H(z))}}function be(j){var z=j==="onClick"||j==="onDblClick"?ue(j):Ve(j);return document.addEventListener(d(j),z),z}function Le(j,z){var K=document.createElement("i");return K.innerHTML=z,K.innerHTML===j.innerHTML}function we(j,z,K){if(j[z]){var ee=j[z];ee.event?ee.event(ee.data,K):ee(K)}else{var le=z.toLowerCase();j[le]&&j[le](K)}}function Me(j,z){var K=function(){function ee(le){var he=this.$V;if(he){var ge=he.props||c,xe=he.dom;if(m(j))we(ge,j,le);else for(var Te=0;Te-1&&z.options[he]&&(xe=z.options[he].value),K&&a(xe)&&(xe=j.defaultValue),qe(ee,xe)}}var Zt=Me("onInput",Tt),qt=Me("onChange");function en(j,z){Ae(j,"input",Zt),z.onChange&&Ae(j,"change",qt)}function Tt(j,z,K){var ee=j.value,le=z.value;if(a(ee)){if(K){var he=j.defaultValue;!a(he)&&he!==le&&(z.defaultValue=he,z.value=he)}}else le!==ee&&(z.defaultValue=ee,z.value=ee)}function wt(j,z,K,ee,le,he){j&64?lt(ee,K):j&256?It(ee,K,le,z):j&128&&Tt(ee,K,le),he&&(K.$V=z)}function tn(j,z,K){j&64?$e(z,K):j&256?Jt(z):j&128&&en(z,K)}function Et(j){return j.type&&De(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var z={render:j};return z}function vt(j){j&&!U(j,null)&&j.current&&(j.current=null)}function st(j,z,K){j&&(o(j)||j.current!==void 0)&&K.push(function(){!U(j,z)&&j.current!==void 0&&(j.current=z)})}function tt(j,z,K){ot(j,K),A(j,z,K)}function ot(j,z){var K=j.flags,ee=j.children,le;if(K&481){le=j.ref;var he=j.props;vt(le);var ge=j.childFlags;if(!y(he))for(var xe=Object.keys(he),Te=0,Fe=xe.length;Te0?x(K.componentWillDisappear,rn(z,j)):j.textContent=""}function gt(j,z,K,ee){mt(K,ee),z.flags&8192?A(z,j,ee):Ct(j,K,ee)}function At(j,z,K,ee,le){j.componentWillDisappear.push(function(he){ee&4?z.componentWillDisappear(K,he):ee&8&&z.onComponentWillDisappear(K,le,he)})}function an(j){var z=j.event;return function(K){z(j.data,K)}}function cn(j,z,K,ee){if(i(K)){if(F(z,K))return;K=an(K)}Ae(ee,d(j),K)}function un(j,z,K){if(a(z)){K.removeAttribute("style");return}var ee=K.style,le,he;if(m(z)){ee.cssText=z;return}if(!a(j)&&!m(j)){for(le in z)he=z[le],he!==j[le]&&ee.setProperty(le,he);for(le in j)a(z[le])&&ee.removeProperty(le)}else for(le in z)he=z[le],ee.setProperty(le,he)}function ln(j,z,K,ee,le){var he=j&&j.__html||"",ge=z&&z.__html||"";he!==ge&&!a(ge)&&!Le(ee,ge)&&(y(K)||(K.childFlags&12?mt(K.children,le):K.childFlags===2&&ot(K.children,le),K.children=null,K.childFlags=1),ee.innerHTML=ge)}function bt(j,z,K,ee,le,he,ge,xe){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":ee.autofocus=!!K;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":ee[j]=!!K;break;case"defaultChecked":case"value":case"volume":if(he&&j==="value")break;var Te=a(K)?"":K;ee[j]!==Te&&(ee[j]=Te);break;case"style":un(z,K,ee);break;case"dangerouslySetInnerHTML":ln(z,K,ge,ee,xe);break;default:pe[j]?Ee(j,z,K,ee):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,z,K,ee):a(K)?ee.removeAttribute(j):le&&D[j]?ee.setAttributeNS(D[j],j,K):ee.setAttribute(j,K);break}}function Mt(j,z,K,ee,le,he){var ge=!1,xe=(z&448)>0;xe&&(ge=Et(K),ge&&tn(z,ee,K));for(var Te in K)bt(Te,null,K[Te],ee,le,ge,null,he);xe&&wt(z,j,ee,K,!0,ge)}function Pt(j,z,K){var ee=ye(j.render(z,j.state,K)),le=K;return o(j.getChildContext)&&(le=b(K,j.getChildContext())),j.$CX=le,ee}function Ot(j,z,K,ee,le,he){var ge=new z(K,ee),xe=ge.$N=!!(z.getDerivedStateFromProps||ge.getSnapshotBeforeUpdate);if(ge.$SVG=le,ge.$L=he,j.children=ge,ge.$BS=!1,ge.context=ee,ge.props===c&&(ge.props=K),xe)ge.state=O(ge,K,ge.state);else if(o(ge.componentWillMount)){ge.$BR=!0,ge.componentWillMount();var Te=ge.$PS;if(!y(Te)){var Fe=ge.state;if(y(Fe))ge.state=Te;else for(var Oe in Te)Fe[Oe]=Te[Oe];ge.$PS=null}ge.$BR=!1}return ge.$LI=Pt(ge,K,ee),ge}function yt(j,z){var K=j.props||c;return j.flags&32768?j.type.render(K,j.ref,z):j.type(K,z)}function Xe(j,z,K,ee,le,he,ge){var xe=j.flags|=16384;xe&481?Rt(j,z,K,ee,le,he,ge):xe&4?mn(j,z,K,ee,le,he,ge):xe&8?fn(j,z,K,ee,le,he,ge):xe&16?Dt(j,z,le):xe&8192?sn(j,K,z,ee,le,he,ge):xe&1024&&dn(j,K,z,le,he,ge)}function dn(j,z,K,ee,le,he){Xe(j.children,j.ref,z,!1,null,le,he);var ge=Y();Dt(ge,K,ee),j.dom=ge.dom}function sn(j,z,K,ee,le,he,ge){var xe=j.children,Te=j.childFlags;Te&12&&xe.length===0&&(Te=j.childFlags=2,xe=j.children=Y()),Te===2?Xe(xe,K,z,ee,le,he,ge):dt(xe,K,z,ee,le,he,ge)}function Dt(j,z,K){var ee=j.dom=document.createTextNode(j.children);y(z)||u(z,ee,K)}function Rt(j,z,K,ee,le,he,ge){var xe=j.flags,Te=j.props,Fe=j.className,Oe=j.childFlags,We=j.dom=v(j.type,ee=ee||(xe&32)>0),je=j.children;if(!a(Fe)&&Fe!==""&&(ee?We.setAttribute("class",Fe):We.className=Fe),Oe===16)R(We,je);else if(Oe!==1){var Ue=ee&&j.type!=="foreignObject";Oe===2?(je.flags&16384&&(j.children=je=J(je)),Xe(je,We,K,Ue,null,he,ge)):(Oe===8||Oe===4)&&dt(je,We,K,Ue,null,he,ge)}y(z)||u(z,We,le),y(Te)||Mt(j,xe,Te,We,ee,ge),st(j.ref,We,he)}function dt(j,z,K,ee,le,he,ge){for(var xe=0;xeUe)&&(We=N(xe[Ue-1],!1).nextSibling)}St(Fe,Oe,xe,Te,K,ee,le,We,j,he,ge)}function Vn(j,z,K,ee,le){var he=j.ref,ge=z.ref,xe=z.children;if(St(j.childFlags,z.childFlags,j.children,xe,he,K,!1,null,j,ee,le),z.dom=j.dom,he!==ge&&!t(xe)){var Te=xe.dom;C(he,Te),f(ge,Te)}}function bn(j,z,K,ee,le,he,ge){var xe=z.dom=j.dom,Te=j.props,Fe=z.props,Oe=!1,We=!1,je;if(ee=ee||(le&32)>0,Te!==Fe){var Ue=Te||c;if(je=Fe||c,je!==c){Oe=(le&448)>0,Oe&&(We=Et(je));for(var Ge in je){var ze=Ue[Ge],Je=je[Ge];ze!==Je&&bt(Ge,ze,Je,xe,ee,We,j,ge)}}if(Ue!==c)for(var Ke in Ue)a(je[Ke])&&!a(Ue[Ke])&&bt(Ke,Ue[Ke],null,xe,ee,We,j,ge)}var it=z.children,et=z.className;j.className!==et&&(a(et)?xe.removeAttribute("class"):ee?xe.setAttribute("class",et):xe.className=et),le&4096?gn(xe,it):St(j.childFlags,z.childFlags,j.children,it,xe,K,ee&&z.type!=="foreignObject",null,j,he,ge),Oe&&wt(le,z,xe,je,!1,We);var ft=z.ref,nt=j.ref;nt!==ft&&(vt(nt),st(ft,xe,he))}function yn(j,z,K,ee,le,he,ge){ot(j,ge),dt(z,K,ee,le,N(j,!0),he,ge),A(j,K,ge)}function St(j,z,K,ee,le,he,ge,xe,Te,Fe,Oe){switch(j){case 2:switch(z){case 2:rt(K,ee,le,he,ge,xe,Fe,Oe);break;case 1:tt(K,le,Oe);break;case 16:ot(K,Oe),R(le,ee);break;default:yn(K,ee,le,he,ge,Fe,Oe);break}break;case 1:switch(z){case 2:Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:break;case 16:R(le,ee);break;default:dt(ee,le,he,ge,xe,Fe,Oe);break}break;case 16:switch(z){case 16:Cn(K,ee,le);break;case 2:Ct(le,K,Oe),Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:Ct(le,K,Oe);break;default:Ct(le,K,Oe),dt(ee,le,he,ge,xe,Fe,Oe);break}break;default:switch(z){case 16:mt(K,Oe),R(le,ee);break;case 2:gt(le,Te,K,Oe),Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:gt(le,Te,K,Oe);break;default:var We=K.length|0,je=ee.length|0;We===0?je>0&&dt(ee,le,he,ge,xe,Fe,Oe):je===0?gt(le,Te,K,Oe):z===8&&j===8?In(K,ee,le,he,ge,We,je,xe,Te,Fe,Oe):Ln(K,ee,le,he,ge,We,je,xe,Fe,Oe);break}break}}function Sn(j,z,K,ee,le){le.push(function(){j.componentDidUpdate(z,K,ee)})}function Wt(j,z,K,ee,le,he,ge,xe,Te,Fe){var Oe=j.state,We=j.props,je=!!j.$N,Ue=o(j.shouldComponentUpdate);if(je&&(z=O(j,K,z!==Oe?b(Oe,z):z)),ge||!Ue||Ue&&j.shouldComponentUpdate(K,z,le)){!je&&o(j.componentWillUpdate)&&j.componentWillUpdate(K,z,le),j.props=K,j.state=z,j.context=le;var Ge=null,ze=Pt(j,K,le);je&&o(j.getSnapshotBeforeUpdate)&&(Ge=j.getSnapshotBeforeUpdate(We,Oe)),rt(j.$LI,ze,ee,j.$CX,he,xe,Te,Fe),j.$LI=ze,o(j.componentDidUpdate)&&Sn(j,We,Oe,Ge,Te)}else j.props=K,j.state=z,j.context=le}function kn(j,z,K,ee,le,he,ge,xe){var Te=z.children=j.children;if(!y(Te)){Te.$L=ge;var Fe=z.props||c,Oe=z.ref,We=j.ref,je=Te.state;if(!Te.$N){if(o(Te.componentWillReceiveProps)){if(Te.$BR=!0,Te.componentWillReceiveProps(Fe,ee),Te.$UN)return;Te.$BR=!1}y(Te.$PS)||(je=b(je,Te.$PS),Te.$PS=null)}Wt(Te,je,Fe,K,ee,le,!1,he,ge,xe),We!==Oe&&(vt(We),st(Oe,Te,ge))}}function Bn(j,z,K,ee,le,he,ge,xe){var Te=!0,Fe=z.props||c,Oe=z.ref,We=j.props,je=!a(Oe),Ue=j.children;if(je&&o(Oe.onComponentShouldUpdate)&&(Te=Oe.onComponentShouldUpdate(We,Fe)),Te!==!1){je&&o(Oe.onComponentWillUpdate)&&Oe.onComponentWillUpdate(We,Fe);var Ge=ye(yt(z,ee));rt(Ue,Ge,K,ee,le,he,ge,xe),z.children=Ge,je&&o(Oe.onComponentDidUpdate)&&Oe.onComponentDidUpdate(We,Fe)}else z.children=Ue}function xn(j,z){var K=z.children,ee=z.dom=j.dom;K!==j.children&&(ee.nodeValue=K)}function Ln(j,z,K,ee,le,he,ge,xe,Te,Fe){for(var Oe=he>ge?ge:he,We=0,je,Ue;Wege)for(We=Oe;WeWe||Ue>je)break e;Ge=j[Ue],ze=z[Ue]}for(Ge=j[We],ze=z[je];Ge.key===ze.key;){if(ze.flags&16384&&(z[je]=ze=J(ze)),rt(Ge,ze,K,ee,le,xe,Fe,Oe),j[We]=ze,We--,je--,Ue>We||Ue>je)break e;Ge=j[We],ze=z[je]}}if(Ue>We){if(Ue<=je)for(Je=je+1,Ke=Jeje)for(;Ue<=We;)tt(j[Ue++],K,Oe);else Tn(j,z,ee,he,ge,We,je,Ue,K,le,xe,Te,Fe,Oe)}function Tn(j,z,K,ee,le,he,ge,xe,Te,Fe,Oe,We,je,Ue){var Ge,ze,Je=0,Ke=0,it=xe,et=xe,ft=he-xe+1,nt=ge-xe+1,pt=new Int32Array(nt+1),ct=ft===ee,Bt=!1,Ze=0,ht=0;if(le<4||(ft|nt)<32)for(Ke=it;Ke<=he;++Ke)if(Ge=j[Ke],htxe?Bt=!0:Ze=xe,ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht;break}!ct&&xe>ge&&tt(Ge,Te,Ue)}else ct||tt(Ge,Te,Ue);else{var Yt={};for(Ke=et;Ke<=ge;++Ke)Yt[z[Ke].key]=Ke;for(Ke=it;Ke<=he;++Ke)if(Ge=j[Ke],htit;)tt(j[it++],Te,Ue);pt[xe-et]=Ke+1,Ze>xe?Bt=!0:Ze=xe,ze=z[xe],ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht}else ct||tt(Ge,Te,Ue);else ct||tt(Ge,Te,Ue)}if(ct)gt(Te,We,j,Ue),dt(z,Te,K,Fe,Oe,je,Ue);else if(Bt){var Qt=wn(pt);for(xe=Qt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,Je0&&B(Ue.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,JeUt&&(Ut=Te,at=new Int32Array(Te),Nt=new Int32Array(Te));K>1,j[at[xe]]0&&(Nt[K]=at[he-1]),at[he]=K)}he=le+1;var Fe=new Int32Array(he);for(ge=at[he-1];he-- >0;)Fe[he]=ge,ge=Nt[ge],at[he]=0;return Fe}var En=typeof document!="undefined";En&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,z,K,ee){var le=[],he=new l,ge=z.$V;P.v=!0,a(ge)?a(j)||(j.flags&16384&&(j=J(j)),Xe(j,z,ee,!1,null,le,he),z.$V=j,ge=j):a(j)?(tt(ge,z,he),z.$V=null):(j.flags&16384&&(j=J(j)),rt(ge,j,z,ee,!1,null,le,he),ge=z.$V=j),h(le),x(he.componentDidAppear),P.v=!1,o(K)&&K(),o(M.renderComplete)&&M.renderComplete(ge,z)}function zt(j,z,K,ee){K===void 0&&(K=null),ee===void 0&&(ee=c),Ht(j,z,K,ee)}function An(j){return function(){function z(K,ee,le,he){j||(j=K),zt(ee,j,le,he)}return z}()}var Vt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},kt=!1;function Kt(j,z,K,ee){var le=j.$PS;if(o(z)&&(z=z(le?b(j.state,le):j.state,j.props,j.context)),a(le))j.$PS=z;else for(var he in z)le[he]=z[he];if(j.$BR)o(K)&&j.$L.push(K.bind(j));else{if(!P.v&&Vt.length===0){Gt(j,ee),o(K)&&K.call(j);return}if(Vt.indexOf(j)===-1&&Vt.push(j),ee&&(j.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var ge=j.$QU;ge||(ge=j.$QU=[]),ge.push(K)}}}function Pn(j){for(var z=j.$QU,K=0;K=55296&&Ve<=56319&&ue+1=56320&&be<=57343)?(Ve-55296)*1024+be-56320+65536:Ve}function J(H){var ue=/^\n* /;return ue.test(H)}var Y=1,Q=2,Z=3,te=4,se=5;function ye(H,ue,Ve,be,Le,we,Me,Ae){var De,He=0,Ye=null,Qe=!1,$e=!1,lt=be!==-1,qe=-1,ut=ce(ae(H,0))&&q(ae(H,H.length-1));if(ue||Me)for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),!ve(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}else{for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),He===k)Qe=!0,lt&&($e=$e||De-qe-1>be&&H[qe+1]!==" ",qe=De);else if(!ve(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}$e=$e||lt&&De-qe-1>be&&H[qe+1]!==" "}return!Qe&&!$e?ut&&!Me&&!Le(H)?Y:we===U?se:Q:Ve>9&&J(H)?se:Me?we===U?se:Q:$e?te:Z}function fe(H,ue,Ve,be,Le){H.dump=function(){if(ue.length===0)return H.quotingType===U?'""':"''";if(!H.noCompatMode&&(P.indexOf(ue)!==-1||M.test(ue)))return H.quotingType===U?'"'+ue+'"':"'"+ue+"'";var we=H.indent*Math.max(1,Ve),Me=H.lineWidth===-1?-1:Math.max(Math.min(H.lineWidth,40),H.lineWidth-we),Ae=be||H.flowLevel>-1&&Ve>=H.flowLevel;function De(He){return oe(H,He)}switch(ye(ue,Ae,H.indent,Me,De,H.quotingType,H.forceQuotes&&!be,Le)){case Y:return ue;case Q:return"'"+ue.replace(/'/g,"''")+"'";case Z:return"|"+Ie(ue,H.indent)+D($(ue,we));case te:return">"+Ie(ue,H.indent)+D($(re(ue,Me),we));case se:return'"'+Ce(ue,Me)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Ie(H,ue){var Ve=J(H)?String(ue):"",be=H[H.length-1]==="\n",Le=be&&(H[H.length-2]==="\n"||H==="\n"),we=Le?"+":be?"":"-";return Ve+we+"\n"}function D(H){return H[H.length-1]==="\n"?H.slice(0,-1):H}function re(H,ue){for(var Ve=/(\n+)([^\n]*)/g,be=function(){var He=H.indexOf("\n");return He=He!==-1?He:H.length,Ve.lastIndex=He,de(H.slice(0,He),ue)}(),Le=H[0]==="\n"||H[0]===" ",we,Me;Me=Ve.exec(H);){var Ae=Me[1],De=Me[2];we=De[0]===" ",be+=Ae+(!Le&&!we&&De!==""?"\n":"")+de(De,ue),Le=we}return be}function de(H,ue){if(H===""||H[0]===" ")return H;for(var Ve=/ [^ ]/g,be,Le=0,we,Me=0,Ae=0,De="";be=Ve.exec(H);)Ae=be.index,Ae-Le>ue&&(we=Me>Le?Me:Ae,De+="\n"+H.slice(Le,we),Le=we+1),Me=Ae;return De+="\n",H.length-Le>ue&&Me>Le?De+=H.slice(Le,Me)+"\n"+H.slice(Me+1):De+=H.slice(Le),De.slice(1)}function Ce(H){for(var ue="",Ve=0,be,Le=0;Le=65536?Le+=2:Le++)Ve=ae(H,Le),be=O[Ve],!be&&ve(Ve)?(ue+=H[Le],Ve>=65536&&(ue+=H[Le+1])):ue+=be||F(Ve);return ue}function pe(H,ue,Ve){var be="",Le=H.tag,we,Me,Ae;for(we=0,Me=Ve.length;we1024&&(Ye+="? "),Ye+=H.dump+(H.condenseFlow?'"':"")+":"+(H.condenseFlow?"":" "),_e(H,ue,He,!1,!1)&&(Ye+=H.dump,be+=Ye));H.tag=Le,H.dump="{"+be+"}"}function Ee(H,ue,Ve,be){var Le="",we=H.tag,Me=Object.keys(Ve),Ae,De,He,Ye,Qe,$e;if(H.sortKeys===!0)Me.sort();else if(typeof H.sortKeys=="function")Me.sort(H.sortKeys);else if(H.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Ae=0,De=Me.length;Ae1024,Qe&&(H.dump&&k===H.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=H.dump,Qe&&($e+=G(H,ue)),_e(H,ue+1,Ye,!0,Qe)&&(H.dump&&k===H.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=H.dump,Le+=$e));H.tag=we,H.dump=Le||"{}"}function Re(H,ue,Ve){var be,Le,we,Me,Ae,De;for(Le=Ve?H.explicitTypes:H.implicitTypes,we=0,Me=Le.length;we tag resolver accepts not "'+De+'" style');H.dump=be}return!0}return!1}function _e(H,ue,Ve,be,Le,we,Me){H.tag=null,H.dump=Ve,Re(H,Ve,!1)||Re(H,Ve,!0);var Ae=o.call(H.dump),De=be,He;be&&(be=H.flowLevel<0||H.flowLevel>ue);var Ye=Ae==="[object Object]"||Ae==="[object Array]",Qe,$e;if(Ye&&(Qe=H.duplicates.indexOf(Ve),$e=Qe!==-1),(H.tag!==null&&H.tag!=="?"||$e||H.indent!==2&&ue>0)&&(Le=!1),$e&&H.usedDuplicates[Qe])H.dump="*ref_"+Qe;else{if(Ye&&$e&&!H.usedDuplicates[Qe]&&(H.usedDuplicates[Qe]=!0),Ae==="[object Object]")be&&Object.keys(H.dump).length!==0?(Ee(H,ue,H.dump,Le),$e&&(H.dump="&ref_"+Qe+H.dump)):(ke(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object Array]")be&&H.dump.length!==0?(H.noArrayIndent&&!Me&&ue>0?Be(H,ue-1,H.dump,Le):Be(H,ue,H.dump,Le),$e&&(H.dump="&ref_"+Qe+H.dump)):(pe(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object String]")H.tag!=="?"&&fe(H,H.dump,ue,we,De);else{if(Ae==="[object Undefined]")return!1;if(H.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Ae)}H.tag!==null&&H.tag!=="?"&&(He=encodeURI(H.tag[0]==="!"?H.tag.slice(1):H.tag).replace(/!/g,"%21"),H.tag[0]==="!"?He="!"+He:He.slice(0,18)==="tag:yaml.org,2002:"?He="!!"+He.slice(18):He="!<"+He+">",H.dump=He+" "+H.dump)}return!0}function Pe(H,ue){var Ve=[],be=[],Le,we;for(Ne(H,Ve,be),Le=0,we=be.length;Le>10)+55296,(D-65536&1023)+56320)}for(var A=new Array(256),w=new Array(256),E=0;E<256;E++)A[E]=L(E)?1:0,w[E]=L(E);function O(D,re){this.input=D,this.filename=re.filename||null,this.schema=re.schema||o,this.onWarning=re.onWarning||null,this.legacy=re.legacy||!1,this.json=re.json||!1,this.listener=re.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=D.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function P(D,re){var de={name:D.filename,buffer:D.input.slice(0,-1),position:D.position,line:D.line,column:D.position-D.lineStart};return de.snippet=t(de),new a(re,de)}function M(D,re){throw P(D,re)}function R(D,re){D.onWarning&&D.onWarning.call(null,P(D,re))}var F={YAML:function(){function D(re,de,Ce){var pe,Be,ke;re.version!==null&&M(re,"duplication of %YAML directive"),Ce.length!==1&&M(re,"YAML directive accepts exactly one argument"),pe=/^([0-9]+)\.([0-9]+)$/.exec(Ce[0]),pe===null&&M(re,"ill-formed argument of the YAML directive"),Be=parseInt(pe[1],10),ke=parseInt(pe[2],10),Be!==1&&M(re,"unacceptable YAML version of the document"),re.version=Ce[0],re.checkLineBreaks=ke<2,ke!==1&&ke!==2&&R(re,"unsupported YAML version of the document")}return D}(),TAG:function(){function D(re,de,Ce){var pe,Be;Ce.length!==2&&M(re,"TAG directive accepts exactly two arguments"),pe=Ce[0],Be=Ce[1],f.test(pe)||M(re,"ill-formed tag handle (first argument) of the TAG directive"),m.call(re.tagMap,pe)&&M(re,'there is a previously declared suffix for "'+pe+'" tag handle'),u.test(Be)||M(re,"ill-formed tag prefix (second argument) of the TAG directive");try{Be=decodeURIComponent(Be)}catch(ke){M(re,"tag prefix is malformed: "+Be)}re.tagMap[pe]=Be}return D}()};function _(D,re,de,Ce){var pe,Be,ke,Ee;if(re1&&(D.result+=e.repeat("\n",re-1))}function ve(D,re,de){var Ce,pe,Be,ke,Ee,Re,_e,Pe,Ne=D.kind,Se=D.result,H;if(H=D.input.charCodeAt(D.position),h(H)||g(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(pe=D.input.charCodeAt(D.position+1),h(pe)||de&&g(pe)))return!1;for(D.kind="scalar",D.result="",Be=ke=D.position,Ee=!1;H!==0;){if(H===58){if(pe=D.input.charCodeAt(D.position+1),h(pe)||de&&g(pe))break}else if(H===35){if(Ce=D.input.charCodeAt(D.position-1),h(Ce))break}else{if(D.position===D.lineStart&&oe(D)||de&&g(H))break;if(V(H))if(Re=D.line,_e=D.lineStart,Pe=D.lineIndent,G(D,!1,-1),D.lineIndent>=re){Ee=!0,H=D.input.charCodeAt(D.position);continue}else{D.position=ke,D.line=Re,D.lineStart=_e,D.lineIndent=Pe;break}}Ee&&(_(D,Be,ke,!1),X(D,D.line-Re),Be=ke=D.position,Ee=!1),C(H)||(ke=D.position+1),H=D.input.charCodeAt(++D.position)}return _(D,Be,ke,!1),D.result?!0:(D.kind=Ne,D.result=Se,!1)}function me(D,re){var de,Ce,pe;if(de=D.input.charCodeAt(D.position),de!==39)return!1;for(D.kind="scalar",D.result="",D.position++,Ce=pe=D.position;(de=D.input.charCodeAt(D.position))!==0;)if(de===39)if(_(D,Ce,D.position,!0),de=D.input.charCodeAt(++D.position),de===39)Ce=D.position,D.position++,pe=D.position;else return!0;else V(de)?(_(D,Ce,pe,!0),X(D,G(D,!1,re)),Ce=pe=D.position):D.position===D.lineStart&&oe(D)?M(D,"unexpected end of the document within a single quoted scalar"):(D.position++,pe=D.position);M(D,"unexpected end of the stream within a single quoted scalar")}function ne(D,re){var de,Ce,pe,Be,ke,Ee;if(Ee=D.input.charCodeAt(D.position),Ee!==34)return!1;for(D.kind="scalar",D.result="",D.position++,de=Ce=D.position;(Ee=D.input.charCodeAt(D.position))!==0;){if(Ee===34)return _(D,de,D.position,!0),D.position++,!0;if(Ee===92){if(_(D,de,D.position,!0),Ee=D.input.charCodeAt(++D.position),V(Ee))G(D,!1,re);else if(Ee<256&&A[Ee])D.result+=w[Ee],D.position++;else if((ke=x(Ee))>0){for(pe=ke,Be=0;pe>0;pe--)Ee=D.input.charCodeAt(++D.position),(ke=N(Ee))>=0?Be=(Be<<4)+ke:M(D,"expected hexadecimal character");D.result+=T(Be),D.position++}else M(D,"unknown escape sequence");de=Ce=D.position}else V(Ee)?(_(D,de,Ce,!0),X(D,G(D,!1,re)),de=Ce=D.position):D.position===D.lineStart&&oe(D)?M(D,"unexpected end of the document within a double quoted scalar"):(D.position++,Ce=D.position)}M(D,"unexpected end of the stream within a double quoted scalar")}function ce(D,re){var de=!0,Ce,pe,Be,ke=D.tag,Ee,Re=D.anchor,_e,Pe,Ne,Se,H,ue=Object.create(null),Ve,be,Le,we;if(we=D.input.charCodeAt(D.position),we===91)Pe=93,H=!1,Ee=[];else if(we===123)Pe=125,H=!0,Ee={};else return!1;for(D.anchor!==null&&(D.anchorMap[D.anchor]=Ee),we=D.input.charCodeAt(++D.position);we!==0;){if(G(D,!0,re),we=D.input.charCodeAt(D.position),we===Pe)return D.position++,D.tag=ke,D.anchor=Re,D.kind=H?"mapping":"sequence",D.result=Ee,!0;de?we===44&&M(D,"expected the node content, but found ','"):M(D,"missed comma between flow collection entries"),be=Ve=Le=null,Ne=Se=!1,we===63&&(_e=D.input.charCodeAt(D.position+1),h(_e)&&(Ne=Se=!0,D.position++,G(D,!0,re))),Ce=D.line,pe=D.lineStart,Be=D.position,te(D,re,S,!1,!0),be=D.tag,Ve=D.result,G(D,!0,re),we=D.input.charCodeAt(D.position),(Se||D.line===Ce)&&we===58&&(Ne=!0,we=D.input.charCodeAt(++D.position),G(D,!0,re),te(D,re,S,!1,!0),Le=D.result),H?W(D,Ee,ue,be,Ve,Le,Ce,pe,Be):Ne?Ee.push(W(D,null,ue,be,Ve,Le,Ce,pe,Be)):Ee.push(Ve),G(D,!0,re),we=D.input.charCodeAt(D.position),we===44?(de=!0,we=D.input.charCodeAt(++D.position)):de=!1}M(D,"unexpected end of the stream within a flow collection")}function q(D,re){var de,Ce,pe=p,Be=!1,ke=!1,Ee=re,Re=0,_e=!1,Pe,Ne;if(Ne=D.input.charCodeAt(D.position),Ne===124)Ce=!1;else if(Ne===62)Ce=!0;else return!1;for(D.kind="scalar",D.result="";Ne!==0;)if(Ne=D.input.charCodeAt(++D.position),Ne===43||Ne===45)p===pe?pe=Ne===43?c:i:M(D,"repeat of a chomping mode identifier");else if((Pe=B(Ne))>=0)Pe===0?M(D,"bad explicit indentation width of a block scalar; it cannot be less than one"):ke?M(D,"repeat of an indentation width identifier"):(Ee=re+Pe-1,ke=!0);else break;if(C(Ne)){do Ne=D.input.charCodeAt(++D.position);while(C(Ne));if(Ne===35)do Ne=D.input.charCodeAt(++D.position);while(!V(Ne)&&Ne!==0)}for(;Ne!==0;){for($(D),D.lineIndent=0,Ne=D.input.charCodeAt(D.position);(!ke||D.lineIndentEe&&(Ee=D.lineIndent),V(Ne)){Re++;continue}if(D.lineIndentre)&&Re!==0)M(D,"bad indentation of a sequence entry");else if(D.lineIndentre)&&(be&&(ke=D.line,Ee=D.lineStart,Re=D.position),te(D,re,b,!0,pe)&&(be?ue=D.result:Ve=D.result),be||(W(D,Ne,Se,H,ue,Ve,ke,Ee,Re),H=ue=Ve=null),G(D,!0,-1),we=D.input.charCodeAt(D.position)),(D.line===Be||D.lineIndent>re)&&we!==0)M(D,"bad indentation of a mapping entry");else if(D.lineIndentre?Re=1:D.lineIndent===re?Re=0:D.lineIndentre?Re=1:D.lineIndent===re?Re=0:D.lineIndent tag; it should be "scalar", not "'+D.kind+'"'),Ne=0,Se=D.implicitTypes.length;Ne"),D.result!==null&&ue.kind!==D.kind&&M(D,"unacceptable node kind for !<"+D.tag+'> tag; it should be "'+ue.kind+'", not "'+D.kind+'"'),ue.resolve(D.result,D.tag)?(D.result=ue.construct(D.result,D.tag),D.anchor!==null&&(D.anchorMap[D.anchor]=D.result)):M(D,"cannot resolve a node with !<"+D.tag+"> explicit tag")}return D.listener!==null&&D.listener("close",D),D.tag!==null||D.anchor!==null||Pe}function se(D){var re=D.position,de,Ce,pe,Be=!1,ke;for(D.version=null,D.checkLineBreaks=D.legacy,D.tagMap=Object.create(null),D.anchorMap=Object.create(null);(ke=D.input.charCodeAt(D.position))!==0&&(G(D,!0,-1),ke=D.input.charCodeAt(D.position),!(D.lineIndent>0||ke!==37));){for(Be=!0,ke=D.input.charCodeAt(++D.position),de=D.position;ke!==0&&!h(ke);)ke=D.input.charCodeAt(++D.position);for(Ce=D.input.slice(de,D.position),pe=[],Ce.length<1&&M(D,"directive name must not be less than one character in length");ke!==0;){for(;C(ke);)ke=D.input.charCodeAt(++D.position);if(ke===35){do ke=D.input.charCodeAt(++D.position);while(ke!==0&&!V(ke));break}if(V(ke))break;for(de=D.position;ke!==0&&!h(ke);)ke=D.input.charCodeAt(++D.position);pe.push(D.input.slice(de,D.position))}ke!==0&&$(D),m.call(F,Ce)?F[Ce](D,Ce,pe):R(D,'unknown document directive "'+Ce+'"')}if(G(D,!0,-1),D.lineIndent===0&&D.input.charCodeAt(D.position)===45&&D.input.charCodeAt(D.position+1)===45&&D.input.charCodeAt(D.position+2)===45?(D.position+=3,G(D,!0,-1)):Be&&M(D,"directives end mark is expected"),te(D,D.lineIndent-1,b,!1,!0),G(D,!0,-1),D.checkLineBreaks&&l.test(D.input.slice(re,D.position))&&R(D,"non-ASCII line breaks are interpreted as content"),D.documents.push(D.result),D.position===D.lineStart&&oe(D)){D.input.charCodeAt(D.position)===46&&(D.position+=3,G(D,!0,-1));return}if(D.positionc&&(p=" ... ",S=k-c+p.length),y-k>c&&(i=" ...",y=k+c-i.length),{str:p+m.slice(S,y).replace(/\t/g,"\u2192")+i,pos:k-S+p.length}}function t(m,S){return e.repeat(" ",S-m.length)+m}function o(m,S){if(S=Object.create(S||null),!m.buffer)return null;S.maxLength||(S.maxLength=79),typeof S.indent!="number"&&(S.indent=1),typeof S.linesBefore!="number"&&(S.linesBefore=3),typeof S.linesAfter!="number"&&(S.linesAfter=2);for(var y=/\r?\n|\r|\0/g,k=[0],b=[],p,i=-1;p=y.exec(m.buffer);)b.push(p.index),k.push(p.index+p[0].length),m.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var c="",s,l,d=Math.min(m.line+S.linesAfter,b.length).toString().length,f=S.maxLength-(S.indent+d+3);for(s=1;s<=S.linesBefore&&!(i-s<0);s++)l=a(m.buffer,k[i-s],b[i-s],m.position-(k[i]-k[i-s]),f),c=e.repeat(" ",S.indent)+t((m.line-s+1).toString(),d)+" | "+l.str+"\n"+c;for(l=a(m.buffer,k[i],b[i],m.position,f),c+=e.repeat(" ",S.indent)+t((m.line+1).toString(),d)+" | "+l.str+"\n",c+=e.repeat("-",S.indent+d+3+l.pos)+"^\n",s=1;s<=S.linesAfter&&!(i+s>=b.length);s++)l=a(m.buffer,k[i+s],b[i+s],m.position-(k[i]-k[i+s]),f),c+=e.repeat(" ",S.indent)+t((m.line+s+1).toString(),d)+" | "+l.str+"\n";return c.replace(/\n$/,"")}I.exports=o},92276:function(I,r,n){"use strict";var e=n(53127),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(S){var y={};return S!==null&&Object.keys(S).forEach(function(k){S[k].forEach(function(b){y[String(b)]=k})}),y}function m(S,y){if(y=y||{},Object.keys(y).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+S+'" YAML type.')}),this.options=y,this.tag=S,this.kind=y.kind||null,this.resolve=y.resolve||function(){return!0},this.construct=y.construct||function(k){return k},this.instanceOf=y.instanceOf||null,this.predicate=y.predicate||null,this.represent=y.represent||null,this.representName=y.representName||null,this.defaultStyle=y.defaultStyle||null,this.multi=y.multi||!1,this.styleAliases=o(y.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}I.exports=m},92806:function(I,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(y){if(y===null)return!1;var k,b,p=0,i=y.length,c=a;for(b=0;b64)){if(k<0)return!1;p+=6}return p%8===0}function o(y){var k,b,p=y.replace(/[\r\n=]/g,""),i=p.length,c=a,s=0,l=[];for(k=0;k>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|c.indexOf(p.charAt(k));return b=i%4*6,b===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):b===18?(l.push(s>>10&255),l.push(s>>2&255)):b===12&&l.push(s>>4&255),new Uint8Array(l)}function m(y){var k="",b=0,p,i,c=y.length,s=a;for(p=0;p>18&63],k+=s[b>>12&63],k+=s[b>>6&63],k+=s[b&63]),b=(b<<8)+y[p];return i=c%3,i===0?(k+=s[b>>18&63],k+=s[b>>12&63],k+=s[b>>6&63],k+=s[b&63]):i===2?(k+=s[b>>10&63],k+=s[b>>4&63],k+=s[b<<2&63],k+=s[64]):i===1&&(k+=s[b>>2&63],k+=s[b<<4&63],k+=s[64],k+=s[64]),k}function S(y){return Object.prototype.toString.call(y)==="[object Uint8Array]"}I.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:S,represent:m})},34015:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!1;var S=m.length;return S===4&&(m==="true"||m==="True"||m==="TRUE")||S===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}I.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(S){return S?"true":"false"}return m}(),uppercase:function(){function m(S){return S?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(S){return S?"True":"False"}return m}()},defaultStyle:"lowercase"})},14589:function(I,r,n){"use strict";var e=n(11017),a=n(92276),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(b){return!(b===null||!t.test(b)||b[b.length-1]==="_")}function m(b){var p,i;return p=b.replace(/_/g,"").toLowerCase(),i=p[0]==="-"?-1:1,"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:i*parseFloat(p,10)}var S=/^[-+]?[0-9]+e/;function y(b,p){var i;if(isNaN(b))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===b)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===b)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(b))return"-0.0";return i=b.toString(10),S.test(i)?i.replace("e",".e"):i}function k(b){return Object.prototype.toString.call(b)==="[object Number]"&&(b%1!==0||e.isNegativeZero(b))}I.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:k,represent:y,defaultStyle:"lowercase"})},72826:function(I,r,n){"use strict";var e=n(11017),a=n(92276);function t(b){return 48<=b&&b<=57||65<=b&&b<=70||97<=b&&b<=102}function o(b){return 48<=b&&b<=55}function m(b){return 48<=b&&b<=57}function S(b){if(b===null)return!1;var p=b.length,i=0,c=!1,s;if(!p)return!1;if(s=b[i],(s==="-"||s==="+")&&(s=b[++i]),s==="0"){if(i+1===p)return!0;if(s=b[++i],s==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return b}(),octal:function(){function b(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return b}(),decimal:function(){function b(p){return p.toString(10)}return b}(),hexadecimal:function(){function b(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return b}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89769:function(I,r,n){"use strict";var e=n(92276);I.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},36947:function(I,r,n){"use strict";var e=n(92276);function a(t){return t==="<<"||t===null}I.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},30534:function(I,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!0;var S=m.length;return S===1&&m==="~"||S===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}I.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},14250:function(I,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(S){if(S===null)return!0;var y=[],k,b,p,i,c,s=S;for(k=0,b=s.length;k=0;--U){var W=this.tryEntries[U],$=W.completion;if(W.tryLoc==="root")return _("end");if(W.tryLoc<=this.prev){var G=a.call(W,"catchLoc"),oe=a.call(W,"finallyLoc");if(G&&oe){if(this.prev=0;--_){var U=this.tryEntries[_];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--F){var _=this.tryEntries[F];if(_.finallyLoc===R)return this.complete(_.completion,_.afterLoc),w(_),f}}return M}(),catch:function(){function M(R){for(var F=this.tryEntries.length-1;F>=0;--F){var _=this.tryEntries[F];if(_.tryLoc===R){var U=_.completion;if(U.type==="throw"){var W=U.arg;w(_)}return W}}throw new Error("illegal catch attempt")}return M}(),delegateYield:function(){function M(R,F,_){return this.delegate={iterator:O(R),resultName:F,nextLoc:_},this.method==="next"&&(this.arg=o),f}return M}()},n}(I.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(I,r){return r=r||{},new Promise(function(n,e){var a=new XMLHttpRequest,t=[],o={},m=function(){function y(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){function k(){return Promise.resolve(a.responseText)}return k}(),json:function(){function k(){return Promise.resolve(a.responseText).then(JSON.parse)}return k}(),blob:function(){function k(){return Promise.resolve(new Blob([a.response]))}return k}(),clone:y,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(b){return[b,a.getResponseHeader(b)]})}return k}(),get:function(){function k(b){return a.getResponseHeader(b)}return k}(),has:function(){function k(b){return a.getResponseHeader(b)!=null}return k}()}}}return y}();for(var S in a.open(r.method||"get",I,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,k){o[k]||t.push(o[k]=k)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(S,r.headers[S]);a.send(r.body||null)})})},88510:function(I,r){"use strict";r.__esModule=!0,r.zipWith=r.zip=r.uniqBy=r.uniq=r.toKeyedArray=r.toArray=r.sortBy=r.sort=r.reduce=r.range=r.map=r.filterMap=r.filter=void 0;function n(u,v){var V=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(V)return(V=V.call(u)).next.bind(V);if(Array.isArray(u)||(V=e(u))||v&&u&&typeof u.length=="number"){V&&(u=V);var C=0;return function(){return C>=u.length?{done:!0}:{done:!1,value:u[C++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(u,v){if(u){if(typeof u=="string")return a(u,v);var V={}.toString.call(u).slice(8,-1);return V==="Object"&&u.constructor&&(V=u.constructor.name),V==="Map"||V==="Set"?Array.from(u):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?a(u,v):void 0}}function a(u,v){(v==null||v>u.length)&&(v=u.length);for(var V=0,C=Array(v);V0&&(0,a.round)(p.width)/y.offsetWidth||1,c=y.offsetHeight>0&&(0,a.round)(p.height)/y.offsetHeight||1);var s=(0,e.isElement)(y)?(0,t.default)(y):window,l=s.visualViewport,d=!(0,o.default)()&&V,f=(p.left+(d&&l?l.offsetLeft:0))/i,u=(p.top+(d&&l?l.offsetTop:0))/c,C=p.width/i,b=p.height/c;return{width:C,height:b,top:u,right:f+C,bottom:u+b,left:f,x:f,y:u}}},49035:function(L,r,n){"use strict";r.__esModule=!0,r.default=b;var e=n(46206),a=d(n(87991)),t=d(n(79752)),o=d(n(98309)),m=d(n(44896)),S=d(n(40600)),y=d(n(16599)),k=n(75573),V=d(n(37786)),p=d(n(57819)),i=d(n(4206)),c=d(n(12972)),s=d(n(81666)),l=n(63618);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,h){var g=(0,V.default)(v,!1,h==="fixed");return g.top=g.top+v.clientTop,g.left=g.left+v.clientLeft,g.bottom=g.top+v.clientHeight,g.right=g.left+v.clientWidth,g.width=v.clientWidth,g.height=v.clientHeight,g.x=g.left,g.y=g.top,g}function u(v,h,g){return h===e.viewport?(0,s.default)((0,a.default)(v,g)):(0,k.isElement)(h)?f(h,g):(0,s.default)((0,t.default)((0,S.default)(v)))}function C(v){var h=(0,o.default)((0,p.default)(v)),g=["absolute","fixed"].indexOf((0,y.default)(v).position)>=0,N=g&&(0,k.isHTMLElement)(v)?(0,m.default)(v):v;return(0,k.isElement)(N)?h.filter(function(x){return(0,k.isElement)(x)&&(0,i.default)(x,N)&&(0,c.default)(x)!=="body"}):[]}function b(v,h,g,N){var x=h==="clippingParents"?C(v):[].concat(h),B=[].concat(x,[g]),I=B[0],T=B.reduce(function(E,w){var A=u(v,w,N);return E.top=(0,l.max)(A.top,E.top),E.right=(0,l.min)(A.right,E.right),E.bottom=(0,l.min)(A.bottom,E.bottom),E.left=(0,l.max)(A.left,E.left),E},u(v,I,N));return T.width=T.right-T.left,T.height=T.bottom-T.top,T.x=T.left,T.y=T.top,T}},74758:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=V(n(37786)),a=V(n(13390)),t=V(n(12972)),o=n(75573),m=V(n(79697)),S=V(n(40600)),y=V(n(10798)),k=n(63618);function V(c){return c&&c.__esModule?c:{default:c}}function p(c){var s=c.getBoundingClientRect(),l=(0,k.round)(s.width)/c.offsetWidth||1,d=(0,k.round)(s.height)/c.offsetHeight||1;return l!==1||d!==1}function i(c,s,l){l===void 0&&(l=!1);var d=(0,o.isHTMLElement)(s),f=(0,o.isHTMLElement)(s)&&p(s),u=(0,S.default)(s),C=(0,e.default)(c,f,l),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(d||!d&&!l)&&(((0,t.default)(s)!=="body"||(0,y.default)(u))&&(b=(0,a.default)(s)),(0,o.isHTMLElement)(s)?(v=(0,e.default)(s,!0),v.x+=s.clientLeft,v.y+=s.clientTop):u&&(v.x=(0,m.default)(u))),{x:C.left+b.scrollLeft-v.x,y:C.top+b.scrollTop-v.y,width:C.width,height:C.height}}},16599:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return(0,e.default)(o).getComputedStyle(o)}},40600:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(75573);function a(t){return(((0,e.isElement)(t)?t.ownerDocument:t.document)||window.document).documentElement}},79752:function(L,r,n){"use strict";r.__esModule=!0,r.default=y;var e=S(n(40600)),a=S(n(16599)),t=S(n(79697)),o=S(n(43750)),m=n(63618);function S(k){return k&&k.__esModule?k:{default:k}}function y(k){var V,p=(0,e.default)(k),i=(0,o.default)(k),c=(V=k.ownerDocument)==null?void 0:V.body,s=(0,m.max)(p.scrollWidth,p.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),l=(0,m.max)(p.scrollHeight,p.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),d=-i.scrollLeft+(0,t.default)(k),f=-i.scrollTop;return(0,a.default)(c||p).direction==="rtl"&&(d+=(0,m.max)(p.clientWidth,c?c.clientWidth:0)-s),{width:s,height:l,x:d,y:f}}},3073:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},28811:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(37786));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=o.offsetWidth,y=o.offsetHeight;return Math.abs(m.width-S)<=1&&(S=m.width),Math.abs(m.height-y)<=1&&(y=m.height),{x:o.offsetLeft,y:o.offsetTop,width:S,height:y}}},12972:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e?(e.nodeName||"").toLowerCase():null}},13390:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(43750)),a=m(n(95115)),t=n(75573),o=m(n(3073));function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return y===(0,a.default)(y)||!(0,t.isHTMLElement)(y)?(0,e.default)(y):(0,o.default)(y)}},44896:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=k(n(95115)),a=k(n(12972)),t=k(n(16599)),o=n(75573),m=k(n(87031)),S=k(n(57819)),y=k(n(35366));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){return!(0,o.isHTMLElement)(c)||(0,t.default)(c).position==="fixed"?null:c.offsetParent}function p(c){var s=/firefox/i.test((0,y.default)()),l=/Trident/i.test((0,y.default)());if(l&&(0,o.isHTMLElement)(c)){var d=(0,t.default)(c);if(d.position==="fixed")return null}var f=(0,S.default)(c);for((0,o.isShadowRoot)(f)&&(f=f.host);(0,o.isHTMLElement)(f)&&["html","body"].indexOf((0,a.default)(f))<0;){var u=(0,t.default)(f);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||s&&u.willChange==="filter"||s&&u.filter&&u.filter!=="none")return f;f=f.parentNode}return null}function i(c){for(var s=(0,e.default)(c),l=V(c);l&&(0,m.default)(l)&&(0,t.default)(l).position==="static";)l=V(l);return l&&((0,a.default)(l)==="html"||(0,a.default)(l)==="body"&&(0,t.default)(l).position==="static")?s:l||p(c)||s}},57819:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(12972)),a=o(n(40600)),t=n(75573);function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)(S)==="html"?S:S.assignedSlot||S.parentNode||((0,t.isShadowRoot)(S)?S.host:null)||(0,a.default)(S)}},24426:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(57819)),a=m(n(10798)),t=m(n(12972)),o=n(75573);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){return["html","body","#document"].indexOf((0,t.default)(y))>=0?y.ownerDocument.body:(0,o.isHTMLElement)(y)&&(0,a.default)(y)?y:S((0,e.default)(y))}},87991:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(95115)),a=m(n(40600)),t=m(n(79697)),o=m(n(89331));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V=(0,e.default)(y),p=(0,a.default)(y),i=V.visualViewport,c=p.clientWidth,s=p.clientHeight,l=0,d=0;if(i){c=i.width,s=i.height;var f=(0,o.default)();(f||!f&&k==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:l+(0,t.default)(y),y:d}}},95115:function(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}},43750:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(95115));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.pageXOffset,y=m.pageYOffset;return{scrollLeft:S,scrollTop:y}}},79697:function(L,r,n){"use strict";r.__esModule=!0,r.default=m;var e=o(n(37786)),a=o(n(40600)),t=o(n(43750));function o(S){return S&&S.__esModule?S:{default:S}}function m(S){return(0,e.default)((0,a.default)(S)).left+(0,t.default)(S).scrollLeft}},75573:function(L,r,n){"use strict";r.__esModule=!0,r.isElement=t,r.isHTMLElement=o,r.isShadowRoot=m;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}function t(S){var y=(0,e.default)(S).Element;return S instanceof y||S instanceof Element}function o(S){var y=(0,e.default)(S).HTMLElement;return S instanceof y||S instanceof HTMLElement}function m(S){if(typeof ShadowRoot=="undefined")return!1;var y=(0,e.default)(S).ShadowRoot;return S instanceof y||S instanceof ShadowRoot}},89331:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(35366));function a(o){return o&&o.__esModule?o:{default:o}}function t(){return!/^((?!chrome|android).)*safari/i.test((0,e.default)())}},10798:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(16599));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){var m=(0,e.default)(o),S=m.overflow,y=m.overflowX,k=m.overflowY;return/auto|scroll|overlay|hidden/.test(S+k+y)}},87031:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(12972));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return["table","td","th"].indexOf((0,e.default)(o))>=0}},98309:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(24426)),a=m(n(57819)),t=m(n(95115)),o=m(n(10798));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){var V;k===void 0&&(k=[]);var p=(0,e.default)(y),i=p===((V=y.ownerDocument)==null?void 0:V.body),c=(0,t.default)(p),s=i?[c].concat(c.visualViewport||[],(0,o.default)(p)?p:[]):p,l=k.concat(s);return i?l:l.concat(S((0,a.default)(s)))}},46206:function(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],S=r.start="start",y=r.end="end",k=r.clippingParents="clippingParents",V=r.viewport="viewport",p=r.popper="popper",i=r.reference="reference",c=r.variationPlacements=m.reduce(function(x,B){return x.concat([B+"-"+S,B+"-"+y])},[]),s=r.placements=[].concat(m,[o]).reduce(function(x,B){return x.concat([B,B+"-"+S,B+"-"+y])},[]),l=r.beforeRead="beforeRead",d=r.read="read",f=r.afterRead="afterRead",u=r.beforeMain="beforeMain",C=r.main="main",b=r.afterMain="afterMain",v=r.beforeWrite="beforeWrite",h=r.write="write",g=r.afterWrite="afterWrite",N=r.modifierPhases=[l,d,f,u,C,b,v,h,g]},95996:function(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(46206);Object.keys(a).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===a[y]||(r[y]=a[y])});var t=n(39805);Object.keys(t).forEach(function(y){y==="default"||y==="__esModule"||Object.prototype.hasOwnProperty.call(e,y)||y in r&&r[y]===t[y]||(r[y]=t[y])});var o=n(96376);r.popperGenerator=o.popperGenerator,r.detectOverflow=o.detectOverflow,r.createPopperBase=o.createPopper;var m=n(83312);r.createPopper=m.createPopper;var S=n(2473);r.createPopperLite=S.createPopper},19975:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=t(n(12972)),a=n(75573);function t(y){return y&&y.__esModule?y:{default:y}}function o(y){var k=y.state;Object.keys(k.elements).forEach(function(V){var p=k.styles[V]||{},i=k.attributes[V]||{},c=k.elements[V];!(0,a.isHTMLElement)(c)||!(0,e.default)(c)||(Object.assign(c.style,p),Object.keys(i).forEach(function(s){var l=i[s];l===!1?c.removeAttribute(s):c.setAttribute(s,l===!0?"":l)}))})}function m(y){var k=y.state,V={popper:{position:k.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(k.elements.popper.style,V.popper),k.styles=V,k.elements.arrow&&Object.assign(k.elements.arrow.style,V.arrow),function(){Object.keys(k.elements).forEach(function(p){var i=k.elements[p],c=k.attributes[p]||{},s=Object.keys(k.styles.hasOwnProperty(p)?k.styles[p]:V[p]),l=s.reduce(function(d,f){return d[f]="",d},{});!(0,a.isHTMLElement)(i)||!(0,e.default)(i)||(Object.assign(i.style,l),Object.keys(c).forEach(function(d){i.removeAttribute(d)}))})}}var S=r.default={name:"applyStyles",enabled:!0,phase:"write",fn:o,effect:m,requires:["computeStyles"]}},52744:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=p(n(83104)),a=p(n(28811)),t=p(n(4206)),o=p(n(44896)),m=p(n(41199)),S=n(28595),y=p(n(43286)),k=p(n(81447)),V=n(46206);function p(d){return d&&d.__esModule?d:{default:d}}var i=function(){function d(f,u){return f=typeof f=="function"?f(Object.assign({},u.rects,{placement:u.placement})):f,(0,y.default)(typeof f!="number"?f:(0,k.default)(f,V.basePlacements))}return d}();function c(d){var f,u=d.state,C=d.name,b=d.options,v=u.elements.arrow,h=u.modifiersData.popperOffsets,g=(0,e.default)(u.placement),N=(0,m.default)(g),x=[V.left,V.right].indexOf(g)>=0,B=x?"height":"width";if(!(!v||!h)){var I=i(b.padding,u),T=(0,a.default)(v),E=N==="y"?V.top:V.left,w=N==="y"?V.bottom:V.right,A=u.rects.reference[B]+u.rects.reference[N]-h[N]-u.rects.popper[B],O=h[N]-u.rects.reference[N],M=(0,o.default)(v),P=M?N==="y"?M.clientHeight||0:M.clientWidth||0:0,R=A/2-O/2,F=I[E],_=P-T[B]-I[w],U=P/2-T[B]/2+R,W=(0,S.within)(F,U,_),$=N;u.modifiersData[C]=(f={},f[$]=W,f.centerOffset=W-U,f)}}function s(d){var f=d.state,u=d.options,C=u.element,b=C===void 0?"[data-popper-arrow]":C;b!=null&&(typeof b=="string"&&(b=f.elements.popper.querySelector(b),!b)||(0,t.default)(f.elements.popper,b)&&(f.elements.arrow=b))}var l=r.default={name:"arrow",enabled:!0,phase:"main",fn:c,effect:s,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},59894:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.mapToStyles=c;var e=n(46206),a=V(n(44896)),t=V(n(95115)),o=V(n(40600)),m=V(n(16599)),S=V(n(83104)),y=V(n(45)),k=n(63618);function V(d){return d&&d.__esModule?d:{default:d}}var p={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i(d,f){var u=d.x,C=d.y,b=f.devicePixelRatio||1;return{x:(0,k.round)(u*b)/b||0,y:(0,k.round)(C*b)/b||0}}function c(d){var f,u=d.popper,C=d.popperRect,b=d.placement,v=d.variation,h=d.offsets,g=d.position,N=d.gpuAcceleration,x=d.adaptive,B=d.roundOffsets,I=d.isFixed,T=h.x,E=T===void 0?0:T,w=h.y,A=w===void 0?0:w,O=typeof B=="function"?B({x:E,y:A}):{x:E,y:A};E=O.x,A=O.y;var M=h.hasOwnProperty("x"),P=h.hasOwnProperty("y"),R=e.left,F=e.top,_=window;if(x){var U=(0,a.default)(u),W="clientHeight",$="clientWidth";if(U===(0,t.default)(u)&&(U=(0,o.default)(u),(0,m.default)(U).position!=="static"&&g==="absolute"&&(W="scrollHeight",$="scrollWidth")),U=U,b===e.top||(b===e.left||b===e.right)&&v===e.end){F=e.bottom;var G=I&&U===_&&_.visualViewport?_.visualViewport.height:U[W];A-=G-C.height,A*=N?1:-1}if(b===e.left||(b===e.top||b===e.bottom)&&v===e.end){R=e.right;var oe=I&&U===_&&_.visualViewport?_.visualViewport.width:U[$];E-=oe-C.width,E*=N?1:-1}}var X=Object.assign({position:g},x&&p),Ce=B===!0?i({x:E,y:A},(0,t.default)(u)):{x:E,y:A};if(E=Ce.x,A=Ce.y,N){var me;return Object.assign({},X,(me={},me[F]=P?"0":"",me[R]=M?"0":"",me.transform=(_.devicePixelRatio||1)<=1?"translate("+E+"px, "+A+"px)":"translate3d("+E+"px, "+A+"px, 0)",me))}return Object.assign({},X,(f={},f[F]=P?A+"px":"",f[R]=M?E+"px":"",f.transform="",f))}function s(d){var f=d.state,u=d.options,C=u.gpuAcceleration,b=C===void 0?!0:C,v=u.adaptive,h=v===void 0?!0:v,g=u.roundOffsets,N=g===void 0?!0:g,x={placement:(0,S.default)(f.placement),variation:(0,y.default)(f.placement),popper:f.elements.popper,popperRect:f.rects.popper,gpuAcceleration:b,isFixed:f.options.strategy==="fixed"};f.modifiersData.popperOffsets!=null&&(f.styles.popper=Object.assign({},f.styles.popper,c(Object.assign({},x,{offsets:f.modifiersData.popperOffsets,position:f.options.strategy,adaptive:h,roundOffsets:N})))),f.modifiersData.arrow!=null&&(f.styles.arrow=Object.assign({},f.styles.arrow,c(Object.assign({},x,{offsets:f.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:N})))),f.attributes.popper=Object.assign({},f.attributes.popper,{"data-popper-placement":f.placement})}var l=r.default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:s,data:{}}},36692:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(95115));function a(S){return S&&S.__esModule?S:{default:S}}var t={passive:!0};function o(S){var y=S.state,k=S.instance,V=S.options,p=V.scroll,i=p===void 0?!0:p,c=V.resize,s=c===void 0?!0:c,l=(0,e.default)(y.elements.popper),d=[].concat(y.scrollParents.reference,y.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",k.update,t)}),s&&l.addEventListener("resize",k.update,t),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",k.update,t)}),s&&l.removeEventListener("resize",k.update,t)}}var m=r.default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){function S(){}return S}(),effect:o,data:{}}},23798:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=k(n(71376)),a=k(n(83104)),t=k(n(86459)),o=k(n(17633)),m=k(n(9041)),S=n(46206),y=k(n(45));function k(c){return c&&c.__esModule?c:{default:c}}function V(c){if((0,a.default)(c)===S.auto)return[];var s=(0,e.default)(c);return[(0,t.default)(c),s,(0,t.default)(s)]}function p(c){var s=c.state,l=c.options,d=c.name;if(!s.modifiersData[d]._skip){for(var f=l.mainAxis,u=f===void 0?!0:f,C=l.altAxis,b=C===void 0?!0:C,v=l.fallbackPlacements,h=l.padding,g=l.boundary,N=l.rootBoundary,x=l.altBoundary,B=l.flipVariations,I=B===void 0?!0:B,T=l.allowedAutoPlacements,E=s.options.placement,w=(0,a.default)(E),A=w===E,O=v||(A||!I?[(0,e.default)(E)]:V(E)),M=[E].concat(O).reduce(function(Z,te){return Z.concat((0,a.default)(te)===S.auto?(0,m.default)(s,{placement:te,boundary:g,rootBoundary:N,padding:h,flipVariations:I,allowedAutoPlacements:T}):te)},[]),P=s.rects.reference,R=s.rects.popper,F=new Map,_=!0,U=M[0],W=0;W=0,Ce=X?"width":"height",me=(0,o.default)(s,{placement:$,boundary:g,rootBoundary:N,altBoundary:x,padding:h}),ne=X?oe?S.right:S.left:oe?S.bottom:S.top;P[Ce]>R[Ce]&&(ne=(0,e.default)(ne));var ce=(0,e.default)(ne),q=[];if(u&&q.push(me[G]<=0),b&&q.push(me[ne]<=0,me[ce]<=0),q.every(function(Z){return Z})){U=$,_=!1;break}F.set($,q)}if(_)for(var ae=I?3:1,J=function(){function Z(te){var se=M.find(function(ye){var fe=F.get(ye);if(fe)return fe.slice(0,te).every(function(Le){return Le})});if(se)return U=se,"break"}return Z}(),Y=ae;Y>0;Y--){var Q=J(Y);if(Q==="break")break}s.placement!==U&&(s.modifiersData[d]._skip=!0,s.placement=U,s.reset=!0)}}var i=r.default={name:"flip",enabled:!0,phase:"main",fn:p,requiresIfExists:["offset"],data:{_skip:!1}}},83761:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=t(n(17633));function t(k){return k&&k.__esModule?k:{default:k}}function o(k,V,p){return p===void 0&&(p={x:0,y:0}),{top:k.top-V.height-p.y,right:k.right-V.width+p.x,bottom:k.bottom-V.height+p.y,left:k.left-V.width-p.x}}function m(k){return[e.top,e.right,e.bottom,e.left].some(function(V){return k[V]>=0})}function S(k){var V=k.state,p=k.name,i=V.rects.reference,c=V.rects.popper,s=V.modifiersData.preventOverflow,l=(0,a.default)(V,{elementContext:"reference"}),d=(0,a.default)(V,{altBoundary:!0}),f=o(l,i),u=o(d,c,s),C=m(f),b=m(u);V.modifiersData[p]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:C,hasPopperEscaped:b},V.attributes.popper=Object.assign({},V.attributes.popper,{"data-popper-reference-hidden":C,"data-popper-escaped":b})}var y=r.default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:S}},39805:function(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(19975));r.applyStyles=e.default;var a=p(n(52744));r.arrow=a.default;var t=p(n(59894));r.computeStyles=t.default;var o=p(n(36692));r.eventListeners=o.default;var m=p(n(23798));r.flip=m.default;var S=p(n(83761));r.hide=S.default;var y=p(n(61410));r.offset=y.default;var k=p(n(40107));r.popperOffsets=k.default;var V=p(n(75137));r.preventOverflow=V.default;function p(i){return i&&i.__esModule?i:{default:i}}},61410:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0,r.distanceAndSkiddingToXY=o;var e=t(n(83104)),a=n(46206);function t(y){return y&&y.__esModule?y:{default:y}}function o(y,k,V){var p=(0,e.default)(y),i=[a.left,a.top].indexOf(p)>=0?-1:1,c=typeof V=="function"?V(Object.assign({},k,{placement:y})):V,s=c[0],l=c[1];return s=s||0,l=(l||0)*i,[a.left,a.right].indexOf(p)>=0?{x:l,y:s}:{x:s,y:l}}function m(y){var k=y.state,V=y.options,p=y.name,i=V.offset,c=i===void 0?[0,0]:i,s=a.placements.reduce(function(u,C){return u[C]=o(C,k.rects,c),u},{}),l=s[k.placement],d=l.x,f=l.y;k.modifiersData.popperOffsets!=null&&(k.modifiersData.popperOffsets.x+=d,k.modifiersData.popperOffsets.y+=f),k.modifiersData[p]=s}var S=r.default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m}},40107:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=a(n(89951));function a(m){return m&&m.__esModule?m:{default:m}}function t(m){var S=m.state,y=m.name;S.modifiersData[y]=(0,e.default)({reference:S.rects.reference,element:S.rects.popper,strategy:"absolute",placement:S.placement})}var o=r.default={name:"popperOffsets",enabled:!0,phase:"read",fn:t,data:{}}},75137:function(L,r,n){"use strict";r.__esModule=!0,r.default=void 0;var e=n(46206),a=c(n(83104)),t=c(n(41199)),o=c(n(28066)),m=n(28595),S=c(n(28811)),y=c(n(44896)),k=c(n(17633)),V=c(n(45)),p=c(n(34780)),i=n(63618);function c(d){return d&&d.__esModule?d:{default:d}}function s(d){var f=d.state,u=d.options,C=d.name,b=u.mainAxis,v=b===void 0?!0:b,h=u.altAxis,g=h===void 0?!1:h,N=u.boundary,x=u.rootBoundary,B=u.altBoundary,I=u.padding,T=u.tether,E=T===void 0?!0:T,w=u.tetherOffset,A=w===void 0?0:w,O=(0,k.default)(f,{boundary:N,rootBoundary:x,padding:I,altBoundary:B}),M=(0,a.default)(f.placement),P=(0,V.default)(f.placement),R=!P,F=(0,t.default)(M),_=(0,o.default)(F),U=f.modifiersData.popperOffsets,W=f.rects.reference,$=f.rects.popper,G=typeof A=="function"?A(Object.assign({},f.rects,{placement:f.placement})):A,oe=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),X=f.modifiersData.offset?f.modifiersData.offset[f.placement]:null,Ce={x:0,y:0};if(U){if(v){var me,ne=F==="y"?e.top:e.left,ce=F==="y"?e.bottom:e.right,q=F==="y"?"height":"width",ae=U[F],J=ae+O[ne],Y=ae-O[ce],Q=E?-$[q]/2:0,Z=P===e.start?W[q]:$[q],te=P===e.start?-$[q]:-W[q],se=f.elements.arrow,ye=E&&se?(0,S.default)(se):{width:0,height:0},fe=f.modifiersData["arrow#persistent"]?f.modifiersData["arrow#persistent"].padding:(0,p.default)(),Le=fe[ne],D=fe[ce],re=(0,m.within)(0,W[q],ye[q]),de=R?W[q]/2-Q-re-Le-oe.mainAxis:Z-re-Le-oe.mainAxis,ve=R?-W[q]/2+Q+re+D+oe.mainAxis:te+re+D+oe.mainAxis,pe=f.elements.arrow&&(0,y.default)(f.elements.arrow),Be=pe?F==="y"?pe.clientTop||0:pe.clientLeft||0:0,ke=(me=X==null?void 0:X[F])!=null?me:0,Ee=ae+de-ke-Be,Re=ae+ve-ke,_e=(0,m.within)(E?(0,i.min)(J,Ee):J,ae,E?(0,i.max)(Y,Re):Y);U[F]=_e,Ce[F]=_e-ae}if(g){var Pe,Ne=F==="x"?e.top:e.left,Se=F==="x"?e.bottom:e.right,H=U[_],ue=_==="y"?"height":"width",Ve=H+O[Ne],be=H-O[Se],Ie=[e.top,e.left].indexOf(M)!==-1,we=(Pe=X==null?void 0:X[_])!=null?Pe:0,Me=Ie?Ve:H-W[ue]-$[ue]-we+oe.altAxis,Ae=Ie?H+W[ue]+$[ue]-we-oe.altAxis:be,De=E&&Ie?(0,m.withinMaxClamp)(Me,H,Ae):(0,m.within)(E?Me:Ve,H,E?Ae:be);U[_]=De,Ce[_]=De-H}f.modifiersData[C]=Ce}}var l=r.default={name:"preventOverflow",enabled:!0,phase:"main",fn:s,requiresIfExists:["offset"]}},2473:function(L,r,n){"use strict";r.__esModule=!0,r.defaultModifiers=r.createPopper=void 0;var e=n(96376);r.popperGenerator=e.popperGenerator,r.detectOverflow=e.detectOverflow;var a=S(n(36692)),t=S(n(40107)),o=S(n(59894)),m=S(n(19975));function S(V){return V&&V.__esModule?V:{default:V}}var y=r.defaultModifiers=[a.default,t.default,o.default,m.default],k=r.createPopper=(0,e.popperGenerator)({defaultModifiers:y})},83312:function(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(96376);r.popperGenerator=a.popperGenerator,r.detectOverflow=a.detectOverflow;var t=l(n(36692)),o=l(n(40107)),m=l(n(59894)),S=l(n(19975)),y=l(n(61410)),k=l(n(23798)),V=l(n(75137)),p=l(n(52744)),i=l(n(83761)),c=n(2473);r.createPopperLite=c.createPopper;var s=n(39805);Object.keys(s).forEach(function(u){u==="default"||u==="__esModule"||Object.prototype.hasOwnProperty.call(e,u)||u in r&&r[u]===s[u]||(r[u]=s[u])});function l(u){return u&&u.__esModule?u:{default:u}}var d=r.defaultModifiers=[t.default,o.default,m.default,S.default,y.default,k.default,V.default,p.default,i.default],f=r.createPopperLite=r.createPopper=(0,a.popperGenerator)({defaultModifiers:d})},9041:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(45)),a=n(46206),t=m(n(17633)),o=m(n(83104));function m(y){return y&&y.__esModule?y:{default:y}}function S(y,k){k===void 0&&(k={});var V=k,p=V.placement,i=V.boundary,c=V.rootBoundary,s=V.padding,l=V.flipVariations,d=V.allowedAutoPlacements,f=d===void 0?a.placements:d,u=(0,e.default)(p),C=u?l?a.variationPlacements:a.variationPlacements.filter(function(h){return(0,e.default)(h)===u}):a.basePlacements,b=C.filter(function(h){return f.indexOf(h)>=0});b.length===0&&(b=C);var v=b.reduce(function(h,g){return h[g]=(0,t.default)(y,{placement:g,boundary:i,rootBoundary:c,padding:s})[(0,o.default)(g)],h},{});return Object.keys(v).sort(function(h,g){return v[h]-v[g]})}},89951:function(L,r,n){"use strict";r.__esModule=!0,r.default=S;var e=m(n(83104)),a=m(n(45)),t=m(n(41199)),o=n(46206);function m(y){return y&&y.__esModule?y:{default:y}}function S(y){var k=y.reference,V=y.element,p=y.placement,i=p?(0,e.default)(p):null,c=p?(0,a.default)(p):null,s=k.x+k.width/2-V.width/2,l=k.y+k.height/2-V.height/2,d;switch(i){case o.top:d={x:s,y:k.y-V.height};break;case o.bottom:d={x:s,y:k.y+k.height};break;case o.right:d={x:k.x+k.width,y:l};break;case o.left:d={x:k.x-V.width,y:l};break;default:d={x:k.x,y:k.y}}var f=i?(0,t.default)(i):null;if(f!=null){var u=f==="y"?"height":"width";switch(c){case o.start:d[f]=d[f]-(k[u]/2-V[u]/2);break;case o.end:d[f]=d[f]+(k[u]/2-V[u]/2);break;default:}}return d}},10579:function(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}}},17633:function(L,r,n){"use strict";r.__esModule=!0,r.default=i;var e=p(n(49035)),a=p(n(40600)),t=p(n(37786)),o=p(n(89951)),m=p(n(81666)),S=n(46206),y=n(75573),k=p(n(43286)),V=p(n(81447));function p(c){return c&&c.__esModule?c:{default:c}}function i(c,s){s===void 0&&(s={});var l=s,d=l.placement,f=d===void 0?c.placement:d,u=l.strategy,C=u===void 0?c.strategy:u,b=l.boundary,v=b===void 0?S.clippingParents:b,h=l.rootBoundary,g=h===void 0?S.viewport:h,N=l.elementContext,x=N===void 0?S.popper:N,B=l.altBoundary,I=B===void 0?!1:B,T=l.padding,E=T===void 0?0:T,w=(0,k.default)(typeof E!="number"?E:(0,V.default)(E,S.basePlacements)),A=x===S.popper?S.reference:S.popper,O=c.rects.popper,M=c.elements[I?A:x],P=(0,e.default)((0,y.isElement)(M)?M:M.contextElement||(0,a.default)(c.elements.popper),v,g,C),R=(0,t.default)(c.elements.reference),F=(0,o.default)({reference:R,element:O,strategy:"absolute",placement:f}),_=(0,m.default)(Object.assign({},O,F)),U=x===S.popper?_:R,W={top:P.top-U.top+w.top,bottom:U.bottom-P.bottom+w.bottom,left:P.left-U.left+w.left,right:U.right-P.right+w.right},$=c.modifiersData.offset;if(x===S.popper&&$){var G=$[f];Object.keys(W).forEach(function(oe){var X=[S.right,S.bottom].indexOf(oe)>=0?1:-1,Ce=[S.top,S.bottom].indexOf(oe)>=0?"y":"x";W[oe]+=G[Ce]*X})}return W}},81447: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},{})}},28066:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e==="x"?"y":"x"}},83104:function(L,r,n){"use strict";r.__esModule=!0,r.default=a;var e=n(46206);function a(t){return t.split("-")[0]}},34780:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(){return{top:0,right:0,bottom:0,left:0}}},41199:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},71376: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]})}},86459: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]})}},45:function(L,r){"use strict";r.__esModule=!0,r.default=n;function n(e){return e.split("-")[1]}},63618: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},56500: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]})}},43286:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=a(n(34780));function a(o){return o&&o.__esModule?o:{default:o}}function t(o){return Object.assign({},(0,e.default)(),o)}},33118:function(L,r,n){"use strict";r.__esModule=!0,r.default=t;var e=n(46206);function a(o){var m=new Map,S=new Set,y=[];o.forEach(function(V){m.set(V.name,V)});function k(V){S.add(V.name);var p=[].concat(V.requires||[],V.requiresIfExists||[]);p.forEach(function(i){if(!S.has(i)){var c=m.get(i);c&&k(c)}}),y.push(V)}return o.forEach(function(V){S.has(V.name)||k(V)}),y}function t(o){var m=a(o);return e.modifierPhases.reduce(function(S,y){return S.concat(m.filter(function(k){return k.phase===y}))},[])}},81666:function(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})}},35366: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}},28595:function(L,r,n){"use strict";r.__esModule=!0,r.within=a,r.withinMaxClamp=t;var e=n(63618);function a(o,m,S){return(0,e.max)(o,(0,e.min)(m,S))}function t(o,m,S){var y=a(o,m,S);return y>S?S:y}},83331:function(L,r,n){"use strict";var e;function a(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(){function o(m){return typeof m}return o}():a=function(){function o(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m}return o}(),a(t)}(function(t){var o=arguments,m=function(){var i=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g;return function(l,d,f,u){if(o.length===1&&p(l)==="string"&&!/\d/.test(l)&&(d=l,l=void 0),l=l||l===0?l:new Date,l instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");d=String(m.masks[d]||d||m.masks.default);var C=d.slice(0,4);(C==="UTC:"||C==="GMT:")&&(d=d.slice(4),f=!0,C==="GMT:"&&(u=!0));var b=function(){function M(){return f?"getUTC":"get"}return M}(),v=function(){function M(){return l[b()+"Date"]()}return M}(),h=function(){function M(){return l[b()+"Day"]()}return M}(),g=function(){function M(){return l[b()+"Month"]()}return M}(),N=function(){function M(){return l[b()+"FullYear"]()}return M}(),x=function(){function M(){return l[b()+"Hours"]()}return M}(),B=function(){function M(){return l[b()+"Minutes"]()}return M}(),I=function(){function M(){return l[b()+"Seconds"]()}return M}(),T=function(){function M(){return l[b()+"Milliseconds"]()}return M}(),E=function(){function M(){return f?0:l.getTimezoneOffset()}return M}(),w=function(){function M(){return k(l)}return M}(),A=function(){function M(){return V(l)}return M}(),O={d:function(){function M(){return v()}return M}(),dd:function(){function M(){return S(v())}return M}(),ddd:function(){function M(){return m.i18n.dayNames[h()]}return M}(),DDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()],short:!0})}return M}(),dddd:function(){function M(){return m.i18n.dayNames[h()+7]}return M}(),DDDD:function(){function M(){return y({y:N(),m:g(),d:v(),_:b(),dayName:m.i18n.dayNames[h()+7]})}return M}(),m:function(){function M(){return g()+1}return M}(),mm:function(){function M(){return S(g()+1)}return M}(),mmm:function(){function M(){return m.i18n.monthNames[g()]}return M}(),mmmm:function(){function M(){return m.i18n.monthNames[g()+12]}return M}(),yy:function(){function M(){return String(N()).slice(2)}return M}(),yyyy:function(){function M(){return S(N(),4)}return M}(),h:function(){function M(){return x()%12||12}return M}(),hh:function(){function M(){return S(x()%12||12)}return M}(),H:function(){function M(){return x()}return M}(),HH:function(){function M(){return S(x())}return M}(),M:function(){function M(){return B()}return M}(),MM:function(){function M(){return S(B())}return M}(),s:function(){function M(){return I()}return M}(),ss:function(){function M(){return S(I())}return M}(),l:function(){function M(){return S(T(),3)}return M}(),L:function(){function M(){return S(Math.floor(T()/10))}return M}(),t:function(){function M(){return x()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]}return M}(),tt:function(){function M(){return x()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]}return M}(),T:function(){function M(){return x()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]}return M}(),TT:function(){function M(){return x()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]}return M}(),Z:function(){function M(){return u?"GMT":f?"UTC":(String(l).match(c)||[""]).pop().replace(s,"").replace(/GMT\+0000/g,"UTC")}return M}(),o:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60)*100+Math.abs(E())%60,4)}return M}(),p:function(){function M(){return(E()>0?"-":"+")+S(Math.floor(Math.abs(E())/60),2)+":"+S(Math.floor(Math.abs(E())%60),2)}return M}(),S:function(){function M(){return["th","st","nd","rd"][v()%10>3?0:(v()%100-v()%10!=10)*v()%10]}return M}(),W:function(){function M(){return w()}return M}(),WW:function(){function M(){return S(w())}return M}(),N:function(){function M(){return A()}return M}()};return d.replace(i,function(M){return M in O?O[M]():M.slice(1,M.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var S=function(){function i(c,s){for(c=String(c),s=s||2;c.length0?x(K.componentWillDisappear,T(j,z)):I(j,z,!1)}function w(j,z,K,ee,le,he,ge,xe){j.componentWillMove.push({dom:ee,fn:function(){function Te(){ge&4?K.componentWillMove(z,le,ee):ge&8&&K.onComponentWillMove(z,le,ee,xe)}return Te}(),next:he,parent:le})}function A(j,z,K,ee,le){var he,ge,xe=z.flags;do{var Te=z.flags;if(Te&1521){!a(he)&&(o(he.componentWillMove)||o(he.onComponentWillMove))?w(le,j,he,z.dom,K,ee,xe,ge):u(K,z.dom,ee);return}var Fe=z.children;if(Te&4)he=z.children,ge=z.props,z=Fe.$LI;else if(Te&8)he=z.ref,ge=z.props,z=Fe;else if(Te&8192)if(z.childFlags===2)z=Fe;else{for(var Oe=0,We=Fe.length;Oe0,Fe=y(xe),Oe=m(xe)&&xe[0]===W;Te||Fe||Oe?(K=K||z.slice(0,he),(Te||Oe)&&(ge=J(ge)),(Fe||Oe)&&(ge.key=W+he),K.push(ge)):K&&K.push(ge),ge.flags|=65536}}K=K||z,K.length===0?ee=1:ee=8}else K=z,K.flags|=65536,z.flags&81920&&(K=J(z)),ee=2;return j.children=K,j.childFlags=ee,j}function ye(j){return t(j)||e(j)?ne(j,null):n(j)?ce(j,0,null):j.flags&16384?J(j):j}var fe="http://www.w3.org/1999/xlink",Le="http://www.w3.org/XML/1998/namespace",D={"xlink:actuate":fe,"xlink:arcrole":fe,"xlink:href":fe,"xlink:role":fe,"xlink:show":fe,"xlink:title":fe,"xlink:type":fe,"xml:base":Le,"xml:lang":Le,"xml:space":Le};function re(j){return{onClick:j,onDblClick:j,onFocusIn:j,onFocusOut:j,onKeyDown:j,onKeyPress:j,onKeyUp:j,onMouseDown:j,onMouseMove:j,onMouseUp:j,onTouchEnd:j,onTouchMove:j,onTouchStart:j}}var de=re(0),ve=re(null),pe=re(!0);function Be(j,z){var K=z.$EV;return K||(K=z.$EV=re(null)),K[j]||++de[j]===1&&(ve[j]=be(j)),K}function ke(j,z){var K=z.$EV;K&&K[j]&&(--de[j]===0&&(document.removeEventListener(d(j),ve[j]),ve[j]=null),K[j]=null)}function Ee(j,z,K,ee){if(o(K))Be(j,ee)[j]=K;else if(i(K)){if(F(z,K))return;Be(j,ee)[j]=K}else ke(j,ee)}function Re(j){return o(j.composedPath)?j.composedPath()[0]:j.target}function _e(j,z,K,ee){var le=Re(j);do{if(z&&le.disabled)return;var he=le.$EV;if(he){var ge=he[K];if(ge&&(ee.dom=le,ge.event?ge.event(ge.data,j):ge(j),j.cancelBubble))return}le=le.parentNode}while(!y(le))}function Pe(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ne(){return this.defaultPrevented}function Se(){return this.cancelBubble}function H(j){var z={dom:document};return j.isDefaultPrevented=Ne,j.isPropagationStopped=Se,j.stopPropagation=Pe,Object.defineProperty(j,"currentTarget",{configurable:!0,get:function(){function K(){return z.dom}return K}()}),z}function ue(j){return function(z){if(z.button!==0){z.stopPropagation();return}_e(z,!0,j,H(z))}}function Ve(j){return function(z){_e(z,!1,j,H(z))}}function be(j){var z=j==="onClick"||j==="onDblClick"?ue(j):Ve(j);return document.addEventListener(d(j),z),z}function Ie(j,z){var K=document.createElement("i");return K.innerHTML=z,K.innerHTML===j.innerHTML}function we(j,z,K){if(j[z]){var ee=j[z];ee.event?ee.event(ee.data,K):ee(K)}else{var le=z.toLowerCase();j[le]&&j[le](K)}}function Me(j,z){var K=function(){function ee(le){var he=this.$V;if(he){var ge=he.props||c,xe=he.dom;if(m(j))we(ge,j,le);else for(var Te=0;Te-1&&z.options[he]&&(xe=z.options[he].value),K&&a(xe)&&(xe=j.defaultValue),qe(ee,xe)}}var Zt=Me("onInput",Tt),qt=Me("onChange");function en(j,z){Ae(j,"input",Zt),z.onChange&&Ae(j,"change",qt)}function Tt(j,z,K){var ee=j.value,le=z.value;if(a(ee)){if(K){var he=j.defaultValue;!a(he)&&he!==le&&(z.defaultValue=he,z.value=he)}}else le!==ee&&(z.defaultValue=ee,z.value=ee)}function wt(j,z,K,ee,le,he){j&64?lt(ee,K):j&256?Lt(ee,K,le,z):j&128&&Tt(ee,K,le),he&&(K.$V=z)}function tn(j,z,K){j&64?$e(z,K):j&256?Jt(z):j&128&&en(z,K)}function Et(j){return j.type&&De(j.type)?!a(j.checked):!a(j.value)}function nn(){return{current:null}}function on(j){var z={render:j};return z}function Ct(j){j&&!U(j,null)&&j.current&&(j.current=null)}function st(j,z,K){j&&(o(j)||j.current!==void 0)&&K.push(function(){!U(j,z)&&j.current!==void 0&&(j.current=z)})}function tt(j,z,K){ot(j,K),E(j,z,K)}function ot(j,z){var K=j.flags,ee=j.children,le;if(K&481){le=j.ref;var he=j.props;Ct(le);var ge=j.childFlags;if(!y(he))for(var xe=Object.keys(he),Te=0,Fe=xe.length;Te0?x(K.componentWillDisappear,rn(z,j)):j.textContent=""}function gt(j,z,K,ee){mt(K,ee),z.flags&8192?E(z,j,ee):vt(j,K,ee)}function At(j,z,K,ee,le){j.componentWillDisappear.push(function(he){ee&4?z.componentWillDisappear(K,he):ee&8&&z.onComponentWillDisappear(K,le,he)})}function an(j){var z=j.event;return function(K){z(j.data,K)}}function cn(j,z,K,ee){if(i(K)){if(F(z,K))return;K=an(K)}Ae(ee,d(j),K)}function un(j,z,K){if(a(z)){K.removeAttribute("style");return}var ee=K.style,le,he;if(m(z)){ee.cssText=z;return}if(!a(j)&&!m(j)){for(le in z)he=z[le],he!==j[le]&&ee.setProperty(le,he);for(le in j)a(z[le])&&ee.removeProperty(le)}else for(le in z)he=z[le],ee.setProperty(le,he)}function ln(j,z,K,ee,le){var he=j&&j.__html||"",ge=z&&z.__html||"";he!==ge&&!a(ge)&&!Ie(ee,ge)&&(y(K)||(K.childFlags&12?mt(K.children,le):K.childFlags===2&&ot(K.children,le),K.children=null,K.childFlags=1),ee.innerHTML=ge)}function bt(j,z,K,ee,le,he,ge,xe){switch(j){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":ee.autofocus=!!K;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":ee[j]=!!K;break;case"defaultChecked":case"value":case"volume":if(he&&j==="value")break;var Te=a(K)?"":K;ee[j]!==Te&&(ee[j]=Te);break;case"style":un(z,K,ee);break;case"dangerouslySetInnerHTML":ln(z,K,ge,ee,xe);break;default:pe[j]?Ee(j,z,K,ee):j.charCodeAt(0)===111&&j.charCodeAt(1)===110?cn(j,z,K,ee):a(K)?ee.removeAttribute(j):le&&D[j]?ee.setAttributeNS(D[j],j,K):ee.setAttribute(j,K);break}}function Mt(j,z,K,ee,le,he){var ge=!1,xe=(z&448)>0;xe&&(ge=Et(K),ge&&tn(z,ee,K));for(var Te in K)bt(Te,null,K[Te],ee,le,ge,null,he);xe&&wt(z,j,ee,K,!0,ge)}function Pt(j,z,K){var ee=ye(j.render(z,j.state,K)),le=K;return o(j.getChildContext)&&(le=V(K,j.getChildContext())),j.$CX=le,ee}function Ot(j,z,K,ee,le,he){var ge=new z(K,ee),xe=ge.$N=!!(z.getDerivedStateFromProps||ge.getSnapshotBeforeUpdate);if(ge.$SVG=le,ge.$L=he,j.children=ge,ge.$BS=!1,ge.context=ee,ge.props===c&&(ge.props=K),xe)ge.state=O(ge,K,ge.state);else if(o(ge.componentWillMount)){ge.$BR=!0,ge.componentWillMount();var Te=ge.$PS;if(!y(Te)){var Fe=ge.state;if(y(Fe))ge.state=Te;else for(var Oe in Te)Fe[Oe]=Te[Oe];ge.$PS=null}ge.$BR=!1}return ge.$LI=Pt(ge,K,ee),ge}function yt(j,z){var K=j.props||c;return j.flags&32768?j.type.render(K,j.ref,z):j.type(K,z)}function Xe(j,z,K,ee,le,he,ge){var xe=j.flags|=16384;xe&481?Rt(j,z,K,ee,le,he,ge):xe&4?mn(j,z,K,ee,le,he,ge):xe&8?fn(j,z,K,ee,le,he,ge):xe&16?Dt(j,z,le):xe&8192?sn(j,K,z,ee,le,he,ge):xe&1024&&dn(j,K,z,le,he,ge)}function dn(j,z,K,ee,le,he){Xe(j.children,j.ref,z,!1,null,le,he);var ge=Y();Dt(ge,K,ee),j.dom=ge.dom}function sn(j,z,K,ee,le,he,ge){var xe=j.children,Te=j.childFlags;Te&12&&xe.length===0&&(Te=j.childFlags=2,xe=j.children=Y()),Te===2?Xe(xe,K,z,ee,le,he,ge):dt(xe,K,z,ee,le,he,ge)}function Dt(j,z,K){var ee=j.dom=document.createTextNode(j.children);y(z)||u(z,ee,K)}function Rt(j,z,K,ee,le,he,ge){var xe=j.flags,Te=j.props,Fe=j.className,Oe=j.childFlags,We=j.dom=C(j.type,ee=ee||(xe&32)>0),je=j.children;if(!a(Fe)&&Fe!==""&&(ee?We.setAttribute("class",Fe):We.className=Fe),Oe===16)R(We,je);else if(Oe!==1){var Ue=ee&&j.type!=="foreignObject";Oe===2?(je.flags&16384&&(j.children=je=J(je)),Xe(je,We,K,Ue,null,he,ge)):(Oe===8||Oe===4)&&dt(je,We,K,Ue,null,he,ge)}y(z)||u(z,We,le),y(Te)||Mt(j,xe,Te,We,ee,ge),st(j.ref,We,he)}function dt(j,z,K,ee,le,he,ge){for(var xe=0;xeUe)&&(We=N(xe[Ue-1],!1).nextSibling)}St(Fe,Oe,xe,Te,K,ee,le,We,j,he,ge)}function Vn(j,z,K,ee,le){var he=j.ref,ge=z.ref,xe=z.children;if(St(j.childFlags,z.childFlags,j.children,xe,he,K,!1,null,j,ee,le),z.dom=j.dom,he!==ge&&!t(xe)){var Te=xe.dom;v(he,Te),f(ge,Te)}}function bn(j,z,K,ee,le,he,ge){var xe=z.dom=j.dom,Te=j.props,Fe=z.props,Oe=!1,We=!1,je;if(ee=ee||(le&32)>0,Te!==Fe){var Ue=Te||c;if(je=Fe||c,je!==c){Oe=(le&448)>0,Oe&&(We=Et(je));for(var Ge in je){var ze=Ue[Ge],Je=je[Ge];ze!==Je&&bt(Ge,ze,Je,xe,ee,We,j,ge)}}if(Ue!==c)for(var Ke in Ue)a(je[Ke])&&!a(Ue[Ke])&&bt(Ke,Ue[Ke],null,xe,ee,We,j,ge)}var it=z.children,et=z.className;j.className!==et&&(a(et)?xe.removeAttribute("class"):ee?xe.setAttribute("class",et):xe.className=et),le&4096?gn(xe,it):St(j.childFlags,z.childFlags,j.children,it,xe,K,ee&&z.type!=="foreignObject",null,j,he,ge),Oe&&wt(le,z,xe,je,!1,We);var ft=z.ref,nt=j.ref;nt!==ft&&(Ct(nt),st(ft,xe,he))}function yn(j,z,K,ee,le,he,ge){ot(j,ge),dt(z,K,ee,le,N(j,!0),he,ge),E(j,K,ge)}function St(j,z,K,ee,le,he,ge,xe,Te,Fe,Oe){switch(j){case 2:switch(z){case 2:rt(K,ee,le,he,ge,xe,Fe,Oe);break;case 1:tt(K,le,Oe);break;case 16:ot(K,Oe),R(le,ee);break;default:yn(K,ee,le,he,ge,Fe,Oe);break}break;case 1:switch(z){case 2:Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:break;case 16:R(le,ee);break;default:dt(ee,le,he,ge,xe,Fe,Oe);break}break;case 16:switch(z){case 16:vn(K,ee,le);break;case 2:vt(le,K,Oe),Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:vt(le,K,Oe);break;default:vt(le,K,Oe),dt(ee,le,he,ge,xe,Fe,Oe);break}break;default:switch(z){case 16:mt(K,Oe),R(le,ee);break;case 2:gt(le,Te,K,Oe),Xe(ee,le,he,ge,xe,Fe,Oe);break;case 1:gt(le,Te,K,Oe);break;default:var We=K.length|0,je=ee.length|0;We===0?je>0&&dt(ee,le,he,ge,xe,Fe,Oe):je===0?gt(le,Te,K,Oe):z===8&&j===8?Ln(K,ee,le,he,ge,We,je,xe,Te,Fe,Oe):In(K,ee,le,he,ge,We,je,xe,Fe,Oe);break}break}}function Sn(j,z,K,ee,le){le.push(function(){j.componentDidUpdate(z,K,ee)})}function Wt(j,z,K,ee,le,he,ge,xe,Te,Fe){var Oe=j.state,We=j.props,je=!!j.$N,Ue=o(j.shouldComponentUpdate);if(je&&(z=O(j,K,z!==Oe?V(Oe,z):z)),ge||!Ue||Ue&&j.shouldComponentUpdate(K,z,le)){!je&&o(j.componentWillUpdate)&&j.componentWillUpdate(K,z,le),j.props=K,j.state=z,j.context=le;var Ge=null,ze=Pt(j,K,le);je&&o(j.getSnapshotBeforeUpdate)&&(Ge=j.getSnapshotBeforeUpdate(We,Oe)),rt(j.$LI,ze,ee,j.$CX,he,xe,Te,Fe),j.$LI=ze,o(j.componentDidUpdate)&&Sn(j,We,Oe,Ge,Te)}else j.props=K,j.state=z,j.context=le}function kn(j,z,K,ee,le,he,ge,xe){var Te=z.children=j.children;if(!y(Te)){Te.$L=ge;var Fe=z.props||c,Oe=z.ref,We=j.ref,je=Te.state;if(!Te.$N){if(o(Te.componentWillReceiveProps)){if(Te.$BR=!0,Te.componentWillReceiveProps(Fe,ee),Te.$UN)return;Te.$BR=!1}y(Te.$PS)||(je=V(je,Te.$PS),Te.$PS=null)}Wt(Te,je,Fe,K,ee,le,!1,he,ge,xe),We!==Oe&&(Ct(We),st(Oe,Te,ge))}}function Bn(j,z,K,ee,le,he,ge,xe){var Te=!0,Fe=z.props||c,Oe=z.ref,We=j.props,je=!a(Oe),Ue=j.children;if(je&&o(Oe.onComponentShouldUpdate)&&(Te=Oe.onComponentShouldUpdate(We,Fe)),Te!==!1){je&&o(Oe.onComponentWillUpdate)&&Oe.onComponentWillUpdate(We,Fe);var Ge=ye(yt(z,ee));rt(Ue,Ge,K,ee,le,he,ge,xe),z.children=Ge,je&&o(Oe.onComponentDidUpdate)&&Oe.onComponentDidUpdate(We,Fe)}else z.children=Ue}function xn(j,z){var K=z.children,ee=z.dom=j.dom;K!==j.children&&(ee.nodeValue=K)}function In(j,z,K,ee,le,he,ge,xe,Te,Fe){for(var Oe=he>ge?ge:he,We=0,je,Ue;Wege)for(We=Oe;WeWe||Ue>je)break e;Ge=j[Ue],ze=z[Ue]}for(Ge=j[We],ze=z[je];Ge.key===ze.key;){if(ze.flags&16384&&(z[je]=ze=J(ze)),rt(Ge,ze,K,ee,le,xe,Fe,Oe),j[We]=ze,We--,je--,Ue>We||Ue>je)break e;Ge=j[We],ze=z[je]}}if(Ue>We){if(Ue<=je)for(Je=je+1,Ke=Jeje)for(;Ue<=We;)tt(j[Ue++],K,Oe);else Tn(j,z,ee,he,ge,We,je,Ue,K,le,xe,Te,Fe,Oe)}function Tn(j,z,K,ee,le,he,ge,xe,Te,Fe,Oe,We,je,Ue){var Ge,ze,Je=0,Ke=0,it=xe,et=xe,ft=he-xe+1,nt=ge-xe+1,pt=new Int32Array(nt+1),ct=ft===ee,Bt=!1,Ze=0,ht=0;if(le<4||(ft|nt)<32)for(Ke=it;Ke<=he;++Ke)if(Ge=j[Ke],htxe?Bt=!0:Ze=xe,ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht;break}!ct&&xe>ge&&tt(Ge,Te,Ue)}else ct||tt(Ge,Te,Ue);else{var Yt={};for(Ke=et;Ke<=ge;++Ke)Yt[z[Ke].key]=Ke;for(Ke=it;Ke<=he;++Ke)if(Ge=j[Ke],htit;)tt(j[it++],Te,Ue);pt[xe-et]=Ke+1,Ze>xe?Bt=!0:Ze=xe,ze=z[xe],ze.flags&16384&&(z[xe]=ze=J(ze)),rt(Ge,ze,Te,K,Fe,Oe,je,Ue),++ht}else ct||tt(Ge,Te,Ue);else ct||tt(Ge,Te,Ue)}if(ct)gt(Te,We,j,Ue),dt(z,Te,K,Fe,Oe,je,Ue);else if(Bt){var Qt=wn(pt);for(xe=Qt.length-1,Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0?(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,Je0&&B(Ue.componentWillMove)}else if(ht!==nt)for(Ke=nt-1;Ke>=0;Ke--)pt[Ke]===0&&(Ze=Ke+et,ze=z[Ze],ze.flags&16384&&(z[Ze]=ze=J(ze)),Je=Ze+1,Xe(ze,Te,K,Fe,JeUt&&(Ut=Te,at=new Int32Array(Te),Nt=new Int32Array(Te));K>1,j[at[xe]]0&&(Nt[K]=at[he-1]),at[he]=K)}he=le+1;var Fe=new Int32Array(he);for(ge=at[he-1];he-- >0;)Fe[he]=ge,ge=Nt[ge],at[he]=0;return Fe}var En=typeof document!="undefined";En&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);function Ht(j,z,K,ee){var le=[],he=new l,ge=z.$V;M.v=!0,a(ge)?a(j)||(j.flags&16384&&(j=J(j)),Xe(j,z,ee,!1,null,le,he),z.$V=j,ge=j):a(j)?(tt(ge,z,he),z.$V=null):(j.flags&16384&&(j=J(j)),rt(ge,j,z,ee,!1,null,le,he),ge=z.$V=j),h(le),x(he.componentDidAppear),M.v=!1,o(K)&&K(),o(P.renderComplete)&&P.renderComplete(ge,z)}function zt(j,z,K,ee){K===void 0&&(K=null),ee===void 0&&(ee=c),Ht(j,z,K,ee)}function An(j){return function(){function z(K,ee,le,he){j||(j=K),zt(ee,j,le,he)}return z}()}var Vt=[],Mn=typeof Promise!="undefined"?Promise.resolve().then.bind(Promise.resolve()):function(j){window.setTimeout(j,0)},kt=!1;function Kt(j,z,K,ee){var le=j.$PS;if(o(z)&&(z=z(le?V(j.state,le):j.state,j.props,j.context)),a(le))j.$PS=z;else for(var he in z)le[he]=z[he];if(j.$BR)o(K)&&j.$L.push(K.bind(j));else{if(!M.v&&Vt.length===0){Gt(j,ee),o(K)&&K.call(j);return}if(Vt.indexOf(j)===-1&&Vt.push(j),ee&&(j.$F=!0),kt||(kt=!0,Mn($t)),o(K)){var ge=j.$QU;ge||(ge=j.$QU=[]),ge.push(K)}}}function Pn(j){for(var z=j.$QU,K=0;K=55296&&Ve<=56319&&ue+1=56320&&be<=57343)?(Ve-55296)*1024+be-56320+65536:Ve}function J(H){var ue=/^\n* /;return ue.test(H)}var Y=1,Q=2,Z=3,te=4,se=5;function ye(H,ue,Ve,be,Ie,we,Me,Ae){var De,He=0,Ye=null,Qe=!1,$e=!1,lt=be!==-1,qe=-1,ut=ce(ae(H,0))&&q(ae(H,H.length-1));if(ue||Me)for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),!Ce(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}else{for(De=0;De=65536?De+=2:De++){if(He=ae(H,De),He===k)Qe=!0,lt&&($e=$e||De-qe-1>be&&H[qe+1]!==" ",qe=De);else if(!Ce(He))return se;ut=ut&&ne(He,Ye,Ae),Ye=He}$e=$e||lt&&De-qe-1>be&&H[qe+1]!==" "}return!Qe&&!$e?ut&&!Me&&!Ie(H)?Y:we===U?se:Q:Ve>9&&J(H)?se:Me?we===U?se:Q:$e?te:Z}function fe(H,ue,Ve,be,Ie){H.dump=function(){if(ue.length===0)return H.quotingType===U?'""':"''";if(!H.noCompatMode&&(M.indexOf(ue)!==-1||P.test(ue)))return H.quotingType===U?'"'+ue+'"':"'"+ue+"'";var we=H.indent*Math.max(1,Ve),Me=H.lineWidth===-1?-1:Math.max(Math.min(H.lineWidth,40),H.lineWidth-we),Ae=be||H.flowLevel>-1&&Ve>=H.flowLevel;function De(He){return oe(H,He)}switch(ye(ue,Ae,H.indent,Me,De,H.quotingType,H.forceQuotes&&!be,Ie)){case Y:return ue;case Q:return"'"+ue.replace(/'/g,"''")+"'";case Z:return"|"+Le(ue,H.indent)+D($(ue,we));case te:return">"+Le(ue,H.indent)+D($(re(ue,Me),we));case se:return'"'+ve(ue,Me)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Le(H,ue){var Ve=J(H)?String(ue):"",be=H[H.length-1]==="\n",Ie=be&&(H[H.length-2]==="\n"||H==="\n"),we=Ie?"+":be?"":"-";return Ve+we+"\n"}function D(H){return H[H.length-1]==="\n"?H.slice(0,-1):H}function re(H,ue){for(var Ve=/(\n+)([^\n]*)/g,be=function(){var He=H.indexOf("\n");return He=He!==-1?He:H.length,Ve.lastIndex=He,de(H.slice(0,He),ue)}(),Ie=H[0]==="\n"||H[0]===" ",we,Me;Me=Ve.exec(H);){var Ae=Me[1],De=Me[2];we=De[0]===" ",be+=Ae+(!Ie&&!we&&De!==""?"\n":"")+de(De,ue),Ie=we}return be}function de(H,ue){if(H===""||H[0]===" ")return H;for(var Ve=/ [^ ]/g,be,Ie=0,we,Me=0,Ae=0,De="";be=Ve.exec(H);)Ae=be.index,Ae-Ie>ue&&(we=Me>Ie?Me:Ae,De+="\n"+H.slice(Ie,we),Ie=we+1),Me=Ae;return De+="\n",H.length-Ie>ue&&Me>Ie?De+=H.slice(Ie,Me)+"\n"+H.slice(Me+1):De+=H.slice(Ie),De.slice(1)}function ve(H){for(var ue="",Ve=0,be,Ie=0;Ie=65536?Ie+=2:Ie++)Ve=ae(H,Ie),be=O[Ve],!be&&Ce(Ve)?(ue+=H[Ie],Ve>=65536&&(ue+=H[Ie+1])):ue+=be||F(Ve);return ue}function pe(H,ue,Ve){var be="",Ie=H.tag,we,Me,Ae;for(we=0,Me=Ve.length;we1024&&(Ye+="? "),Ye+=H.dump+(H.condenseFlow?'"':"")+":"+(H.condenseFlow?"":" "),_e(H,ue,He,!1,!1)&&(Ye+=H.dump,be+=Ye));H.tag=Ie,H.dump="{"+be+"}"}function Ee(H,ue,Ve,be){var Ie="",we=H.tag,Me=Object.keys(Ve),Ae,De,He,Ye,Qe,$e;if(H.sortKeys===!0)Me.sort();else if(typeof H.sortKeys=="function")Me.sort(H.sortKeys);else if(H.sortKeys)throw new a("sortKeys must be a boolean or a function");for(Ae=0,De=Me.length;Ae1024,Qe&&(H.dump&&k===H.dump.charCodeAt(0)?$e+="?":$e+="? "),$e+=H.dump,Qe&&($e+=G(H,ue)),_e(H,ue+1,Ye,!0,Qe)&&(H.dump&&k===H.dump.charCodeAt(0)?$e+=":":$e+=": ",$e+=H.dump,Ie+=$e));H.tag=we,H.dump=Ie||"{}"}function Re(H,ue,Ve){var be,Ie,we,Me,Ae,De;for(Ie=Ve?H.explicitTypes:H.implicitTypes,we=0,Me=Ie.length;we tag resolver accepts not "'+De+'" style');H.dump=be}return!0}return!1}function _e(H,ue,Ve,be,Ie,we,Me){H.tag=null,H.dump=Ve,Re(H,Ve,!1)||Re(H,Ve,!0);var Ae=o.call(H.dump),De=be,He;be&&(be=H.flowLevel<0||H.flowLevel>ue);var Ye=Ae==="[object Object]"||Ae==="[object Array]",Qe,$e;if(Ye&&(Qe=H.duplicates.indexOf(Ve),$e=Qe!==-1),(H.tag!==null&&H.tag!=="?"||$e||H.indent!==2&&ue>0)&&(Ie=!1),$e&&H.usedDuplicates[Qe])H.dump="*ref_"+Qe;else{if(Ye&&$e&&!H.usedDuplicates[Qe]&&(H.usedDuplicates[Qe]=!0),Ae==="[object Object]")be&&Object.keys(H.dump).length!==0?(Ee(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Qe+H.dump)):(ke(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object Array]")be&&H.dump.length!==0?(H.noArrayIndent&&!Me&&ue>0?Be(H,ue-1,H.dump,Ie):Be(H,ue,H.dump,Ie),$e&&(H.dump="&ref_"+Qe+H.dump)):(pe(H,ue,H.dump),$e&&(H.dump="&ref_"+Qe+" "+H.dump));else if(Ae==="[object String]")H.tag!=="?"&&fe(H,H.dump,ue,we,De);else{if(Ae==="[object Undefined]")return!1;if(H.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+Ae)}H.tag!==null&&H.tag!=="?"&&(He=encodeURI(H.tag[0]==="!"?H.tag.slice(1):H.tag).replace(/!/g,"%21"),H.tag[0]==="!"?He="!"+He:He.slice(0,18)==="tag:yaml.org,2002:"?He="!!"+He.slice(18):He="!<"+He+">",H.dump=He+" "+H.dump)}return!0}function Pe(H,ue){var Ve=[],be=[],Ie,we;for(Ne(H,Ve,be),Ie=0,we=be.length;Ie>10)+55296,(D-65536&1023)+56320)}for(var E=new Array(256),w=new Array(256),A=0;A<256;A++)E[A]=I(A)?1:0,w[A]=I(A);function O(D,re){this.input=D,this.filename=re.filename||null,this.schema=re.schema||o,this.onWarning=re.onWarning||null,this.legacy=re.legacy||!1,this.json=re.json||!1,this.listener=re.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=D.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M(D,re){var de={name:D.filename,buffer:D.input.slice(0,-1),position:D.position,line:D.line,column:D.position-D.lineStart};return de.snippet=t(de),new a(re,de)}function P(D,re){throw M(D,re)}function R(D,re){D.onWarning&&D.onWarning.call(null,M(D,re))}var F={YAML:function(){function D(re,de,ve){var pe,Be,ke;re.version!==null&&P(re,"duplication of %YAML directive"),ve.length!==1&&P(re,"YAML directive accepts exactly one argument"),pe=/^([0-9]+)\.([0-9]+)$/.exec(ve[0]),pe===null&&P(re,"ill-formed argument of the YAML directive"),Be=parseInt(pe[1],10),ke=parseInt(pe[2],10),Be!==1&&P(re,"unacceptable YAML version of the document"),re.version=ve[0],re.checkLineBreaks=ke<2,ke!==1&&ke!==2&&R(re,"unsupported YAML version of the document")}return D}(),TAG:function(){function D(re,de,ve){var pe,Be;ve.length!==2&&P(re,"TAG directive accepts exactly two arguments"),pe=ve[0],Be=ve[1],f.test(pe)||P(re,"ill-formed tag handle (first argument) of the TAG directive"),m.call(re.tagMap,pe)&&P(re,'there is a previously declared suffix for "'+pe+'" tag handle'),u.test(Be)||P(re,"ill-formed tag prefix (second argument) of the TAG directive");try{Be=decodeURIComponent(Be)}catch(ke){P(re,"tag prefix is malformed: "+Be)}re.tagMap[pe]=Be}return D}()};function _(D,re,de,ve){var pe,Be,ke,Ee;if(re1&&(D.result+=e.repeat("\n",re-1))}function Ce(D,re,de){var ve,pe,Be,ke,Ee,Re,_e,Pe,Ne=D.kind,Se=D.result,H;if(H=D.input.charCodeAt(D.position),h(H)||g(H)||H===35||H===38||H===42||H===33||H===124||H===62||H===39||H===34||H===37||H===64||H===96||(H===63||H===45)&&(pe=D.input.charCodeAt(D.position+1),h(pe)||de&&g(pe)))return!1;for(D.kind="scalar",D.result="",Be=ke=D.position,Ee=!1;H!==0;){if(H===58){if(pe=D.input.charCodeAt(D.position+1),h(pe)||de&&g(pe))break}else if(H===35){if(ve=D.input.charCodeAt(D.position-1),h(ve))break}else{if(D.position===D.lineStart&&oe(D)||de&&g(H))break;if(b(H))if(Re=D.line,_e=D.lineStart,Pe=D.lineIndent,G(D,!1,-1),D.lineIndent>=re){Ee=!0,H=D.input.charCodeAt(D.position);continue}else{D.position=ke,D.line=Re,D.lineStart=_e,D.lineIndent=Pe;break}}Ee&&(_(D,Be,ke,!1),X(D,D.line-Re),Be=ke=D.position,Ee=!1),v(H)||(ke=D.position+1),H=D.input.charCodeAt(++D.position)}return _(D,Be,ke,!1),D.result?!0:(D.kind=Ne,D.result=Se,!1)}function me(D,re){var de,ve,pe;if(de=D.input.charCodeAt(D.position),de!==39)return!1;for(D.kind="scalar",D.result="",D.position++,ve=pe=D.position;(de=D.input.charCodeAt(D.position))!==0;)if(de===39)if(_(D,ve,D.position,!0),de=D.input.charCodeAt(++D.position),de===39)ve=D.position,D.position++,pe=D.position;else return!0;else b(de)?(_(D,ve,pe,!0),X(D,G(D,!1,re)),ve=pe=D.position):D.position===D.lineStart&&oe(D)?P(D,"unexpected end of the document within a single quoted scalar"):(D.position++,pe=D.position);P(D,"unexpected end of the stream within a single quoted scalar")}function ne(D,re){var de,ve,pe,Be,ke,Ee;if(Ee=D.input.charCodeAt(D.position),Ee!==34)return!1;for(D.kind="scalar",D.result="",D.position++,de=ve=D.position;(Ee=D.input.charCodeAt(D.position))!==0;){if(Ee===34)return _(D,de,D.position,!0),D.position++,!0;if(Ee===92){if(_(D,de,D.position,!0),Ee=D.input.charCodeAt(++D.position),b(Ee))G(D,!1,re);else if(Ee<256&&E[Ee])D.result+=w[Ee],D.position++;else if((ke=x(Ee))>0){for(pe=ke,Be=0;pe>0;pe--)Ee=D.input.charCodeAt(++D.position),(ke=N(Ee))>=0?Be=(Be<<4)+ke:P(D,"expected hexadecimal character");D.result+=T(Be),D.position++}else P(D,"unknown escape sequence");de=ve=D.position}else b(Ee)?(_(D,de,ve,!0),X(D,G(D,!1,re)),de=ve=D.position):D.position===D.lineStart&&oe(D)?P(D,"unexpected end of the document within a double quoted scalar"):(D.position++,ve=D.position)}P(D,"unexpected end of the stream within a double quoted scalar")}function ce(D,re){var de=!0,ve,pe,Be,ke=D.tag,Ee,Re=D.anchor,_e,Pe,Ne,Se,H,ue=Object.create(null),Ve,be,Ie,we;if(we=D.input.charCodeAt(D.position),we===91)Pe=93,H=!1,Ee=[];else if(we===123)Pe=125,H=!0,Ee={};else return!1;for(D.anchor!==null&&(D.anchorMap[D.anchor]=Ee),we=D.input.charCodeAt(++D.position);we!==0;){if(G(D,!0,re),we=D.input.charCodeAt(D.position),we===Pe)return D.position++,D.tag=ke,D.anchor=Re,D.kind=H?"mapping":"sequence",D.result=Ee,!0;de?we===44&&P(D,"expected the node content, but found ','"):P(D,"missed comma between flow collection entries"),be=Ve=Ie=null,Ne=Se=!1,we===63&&(_e=D.input.charCodeAt(D.position+1),h(_e)&&(Ne=Se=!0,D.position++,G(D,!0,re))),ve=D.line,pe=D.lineStart,Be=D.position,te(D,re,S,!1,!0),be=D.tag,Ve=D.result,G(D,!0,re),we=D.input.charCodeAt(D.position),(Se||D.line===ve)&&we===58&&(Ne=!0,we=D.input.charCodeAt(++D.position),G(D,!0,re),te(D,re,S,!1,!0),Ie=D.result),H?W(D,Ee,ue,be,Ve,Ie,ve,pe,Be):Ne?Ee.push(W(D,null,ue,be,Ve,Ie,ve,pe,Be)):Ee.push(Ve),G(D,!0,re),we=D.input.charCodeAt(D.position),we===44?(de=!0,we=D.input.charCodeAt(++D.position)):de=!1}P(D,"unexpected end of the stream within a flow collection")}function q(D,re){var de,ve,pe=p,Be=!1,ke=!1,Ee=re,Re=0,_e=!1,Pe,Ne;if(Ne=D.input.charCodeAt(D.position),Ne===124)ve=!1;else if(Ne===62)ve=!0;else return!1;for(D.kind="scalar",D.result="";Ne!==0;)if(Ne=D.input.charCodeAt(++D.position),Ne===43||Ne===45)p===pe?pe=Ne===43?c:i:P(D,"repeat of a chomping mode identifier");else if((Pe=B(Ne))>=0)Pe===0?P(D,"bad explicit indentation width of a block scalar; it cannot be less than one"):ke?P(D,"repeat of an indentation width identifier"):(Ee=re+Pe-1,ke=!0);else break;if(v(Ne)){do Ne=D.input.charCodeAt(++D.position);while(v(Ne));if(Ne===35)do Ne=D.input.charCodeAt(++D.position);while(!b(Ne)&&Ne!==0)}for(;Ne!==0;){for($(D),D.lineIndent=0,Ne=D.input.charCodeAt(D.position);(!ke||D.lineIndentEe&&(Ee=D.lineIndent),b(Ne)){Re++;continue}if(D.lineIndentre)&&Re!==0)P(D,"bad indentation of a sequence entry");else if(D.lineIndentre)&&(be&&(ke=D.line,Ee=D.lineStart,Re=D.position),te(D,re,V,!0,pe)&&(be?ue=D.result:Ve=D.result),be||(W(D,Ne,Se,H,ue,Ve,ke,Ee,Re),H=ue=Ve=null),G(D,!0,-1),we=D.input.charCodeAt(D.position)),(D.line===Be||D.lineIndent>re)&&we!==0)P(D,"bad indentation of a mapping entry");else if(D.lineIndentre?Re=1:D.lineIndent===re?Re=0:D.lineIndentre?Re=1:D.lineIndent===re?Re=0:D.lineIndent tag; it should be "scalar", not "'+D.kind+'"'),Ne=0,Se=D.implicitTypes.length;Ne"),D.result!==null&&ue.kind!==D.kind&&P(D,"unacceptable node kind for !<"+D.tag+'> tag; it should be "'+ue.kind+'", not "'+D.kind+'"'),ue.resolve(D.result,D.tag)?(D.result=ue.construct(D.result,D.tag),D.anchor!==null&&(D.anchorMap[D.anchor]=D.result)):P(D,"cannot resolve a node with !<"+D.tag+"> explicit tag")}return D.listener!==null&&D.listener("close",D),D.tag!==null||D.anchor!==null||Pe}function se(D){var re=D.position,de,ve,pe,Be=!1,ke;for(D.version=null,D.checkLineBreaks=D.legacy,D.tagMap=Object.create(null),D.anchorMap=Object.create(null);(ke=D.input.charCodeAt(D.position))!==0&&(G(D,!0,-1),ke=D.input.charCodeAt(D.position),!(D.lineIndent>0||ke!==37));){for(Be=!0,ke=D.input.charCodeAt(++D.position),de=D.position;ke!==0&&!h(ke);)ke=D.input.charCodeAt(++D.position);for(ve=D.input.slice(de,D.position),pe=[],ve.length<1&&P(D,"directive name must not be less than one character in length");ke!==0;){for(;v(ke);)ke=D.input.charCodeAt(++D.position);if(ke===35){do ke=D.input.charCodeAt(++D.position);while(ke!==0&&!b(ke));break}if(b(ke))break;for(de=D.position;ke!==0&&!h(ke);)ke=D.input.charCodeAt(++D.position);pe.push(D.input.slice(de,D.position))}ke!==0&&$(D),m.call(F,ve)?F[ve](D,ve,pe):R(D,'unknown document directive "'+ve+'"')}if(G(D,!0,-1),D.lineIndent===0&&D.input.charCodeAt(D.position)===45&&D.input.charCodeAt(D.position+1)===45&&D.input.charCodeAt(D.position+2)===45?(D.position+=3,G(D,!0,-1)):Be&&P(D,"directives end mark is expected"),te(D,D.lineIndent-1,V,!1,!0),G(D,!0,-1),D.checkLineBreaks&&l.test(D.input.slice(re,D.position))&&R(D,"non-ASCII line breaks are interpreted as content"),D.documents.push(D.result),D.position===D.lineStart&&oe(D)){D.input.charCodeAt(D.position)===46&&(D.position+=3,G(D,!0,-1));return}if(D.positionc&&(p=" ... ",S=k-c+p.length),y-k>c&&(i=" ...",y=k+c-i.length),{str:p+m.slice(S,y).replace(/\t/g,"\u2192")+i,pos:k-S+p.length}}function t(m,S){return e.repeat(" ",S-m.length)+m}function o(m,S){if(S=Object.create(S||null),!m.buffer)return null;S.maxLength||(S.maxLength=79),typeof S.indent!="number"&&(S.indent=1),typeof S.linesBefore!="number"&&(S.linesBefore=3),typeof S.linesAfter!="number"&&(S.linesAfter=2);for(var y=/\r?\n|\r|\0/g,k=[0],V=[],p,i=-1;p=y.exec(m.buffer);)V.push(p.index),k.push(p.index+p[0].length),m.position<=p.index&&i<0&&(i=k.length-2);i<0&&(i=k.length-1);var c="",s,l,d=Math.min(m.line+S.linesAfter,V.length).toString().length,f=S.maxLength-(S.indent+d+3);for(s=1;s<=S.linesBefore&&!(i-s<0);s++)l=a(m.buffer,k[i-s],V[i-s],m.position-(k[i]-k[i-s]),f),c=e.repeat(" ",S.indent)+t((m.line-s+1).toString(),d)+" | "+l.str+"\n"+c;for(l=a(m.buffer,k[i],V[i],m.position,f),c+=e.repeat(" ",S.indent)+t((m.line+1).toString(),d)+" | "+l.str+"\n",c+=e.repeat("-",S.indent+d+3+l.pos)+"^\n",s=1;s<=S.linesAfter&&!(i+s>=V.length);s++)l=a(m.buffer,k[i+s],V[i+s],m.position-(k[i]-k[i+s]),f),c+=e.repeat(" ",S.indent)+t((m.line+s+1).toString(),d)+" | "+l.str+"\n";return c.replace(/\n$/,"")}L.exports=o},92276:function(L,r,n){"use strict";var e=n(53127),a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t=["scalar","sequence","mapping"];function o(S){var y={};return S!==null&&Object.keys(S).forEach(function(k){S[k].forEach(function(V){y[String(V)]=k})}),y}function m(S,y){if(y=y||{},Object.keys(y).forEach(function(k){if(a.indexOf(k)===-1)throw new e('Unknown option "'+k+'" is met in definition of "'+S+'" YAML type.')}),this.options=y,this.tag=S,this.kind=y.kind||null,this.resolve=y.resolve||function(){return!0},this.construct=y.construct||function(k){return k},this.instanceOf=y.instanceOf||null,this.predicate=y.predicate||null,this.represent=y.represent||null,this.representName=y.representName||null,this.defaultStyle=y.defaultStyle||null,this.multi=y.multi||!1,this.styleAliases=o(y.styleAliases||null),t.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}L.exports=m},92806:function(L,r,n){"use strict";var e=n(92276),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function t(y){if(y===null)return!1;var k,V,p=0,i=y.length,c=a;for(V=0;V64)){if(k<0)return!1;p+=6}return p%8===0}function o(y){var k,V,p=y.replace(/[\r\n=]/g,""),i=p.length,c=a,s=0,l=[];for(k=0;k>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|c.indexOf(p.charAt(k));return V=i%4*6,V===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):V===18?(l.push(s>>10&255),l.push(s>>2&255)):V===12&&l.push(s>>4&255),new Uint8Array(l)}function m(y){var k="",V=0,p,i,c=y.length,s=a;for(p=0;p>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]),V=(V<<8)+y[p];return i=c%3,i===0?(k+=s[V>>18&63],k+=s[V>>12&63],k+=s[V>>6&63],k+=s[V&63]):i===2?(k+=s[V>>10&63],k+=s[V>>4&63],k+=s[V<<2&63],k+=s[64]):i===1&&(k+=s[V>>2&63],k+=s[V<<4&63],k+=s[64],k+=s[64]),k}function S(y){return Object.prototype.toString.call(y)==="[object Uint8Array]"}L.exports=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:t,construct:o,predicate:S,represent:m})},34015:function(L,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!1;var S=m.length;return S===4&&(m==="true"||m==="True"||m==="TRUE")||S===5&&(m==="false"||m==="False"||m==="FALSE")}function t(m){return m==="true"||m==="True"||m==="TRUE"}function o(m){return Object.prototype.toString.call(m)==="[object Boolean]"}L.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{lowercase:function(){function m(S){return S?"true":"false"}return m}(),uppercase:function(){function m(S){return S?"TRUE":"FALSE"}return m}(),camelcase:function(){function m(S){return S?"True":"False"}return m}()},defaultStyle:"lowercase"})},14589:function(L,r,n){"use strict";var e=n(11017),a=n(92276),t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(V){return!(V===null||!t.test(V)||V[V.length-1]==="_")}function m(V){var p,i;return p=V.replace(/_/g,"").toLowerCase(),i=p[0]==="-"?-1:1,"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:i*parseFloat(p,10)}var S=/^[-+]?[0-9]+e/;function y(V,p){var i;if(isNaN(V))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===V)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===V)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(V))return"-0.0";return i=V.toString(10),S.test(i)?i.replace("e",".e"):i}function k(V){return Object.prototype.toString.call(V)==="[object Number]"&&(V%1!==0||e.isNegativeZero(V))}L.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:m,predicate:k,represent:y,defaultStyle:"lowercase"})},72826:function(L,r,n){"use strict";var e=n(11017),a=n(92276);function t(V){return 48<=V&&V<=57||65<=V&&V<=70||97<=V&&V<=102}function o(V){return 48<=V&&V<=55}function m(V){return 48<=V&&V<=57}function S(V){if(V===null)return!1;var p=V.length,i=0,c=!1,s;if(!p)return!1;if(s=V[i],(s==="-"||s==="+")&&(s=V[++i]),s==="0"){if(i+1===p)return!0;if(s=V[++i],s==="b"){for(i++;i=0?"0b"+p.toString(2):"-0b"+p.toString(2).slice(1)}return V}(),octal:function(){function V(p){return p>=0?"0o"+p.toString(8):"-0o"+p.toString(8).slice(1)}return V}(),decimal:function(){function V(p){return p.toString(10)}return V}(),hexadecimal:function(){function V(p){return p>=0?"0x"+p.toString(16).toUpperCase():"-0x"+p.toString(16).toUpperCase().slice(1)}return V}()},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89769:function(L,r,n){"use strict";var e=n(92276);L.exports=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(){function a(t){return t!==null?t:{}}return a}()})},36947:function(L,r,n){"use strict";var e=n(92276);function a(t){return t==="<<"||t===null}L.exports=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:a})},30534:function(L,r,n){"use strict";var e=n(92276);function a(m){if(m===null)return!0;var S=m.length;return S===1&&m==="~"||S===4&&(m==="null"||m==="Null"||m==="NULL")}function t(){return null}function o(m){return m===null}L.exports=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:a,construct:t,predicate:o,represent:{canonical:function(){function m(){return"~"}return m}(),lowercase:function(){function m(){return"null"}return m}(),uppercase:function(){function m(){return"NULL"}return m}(),camelcase:function(){function m(){return"Null"}return m}(),empty:function(){function m(){return""}return m}()},defaultStyle:"lowercase"})},14250:function(L,r,n){"use strict";var e=n(92276),a=Object.prototype.hasOwnProperty,t=Object.prototype.toString;function o(S){if(S===null)return!0;var y=[],k,V,p,i,c,s=S;for(k=0,V=s.length;k=0;--U){var W=this.tryEntries[U],$=W.completion;if(W.tryLoc==="root")return _("end");if(W.tryLoc<=this.prev){var G=a.call(W,"catchLoc"),oe=a.call(W,"finallyLoc");if(G&&oe){if(this.prev=0;--_){var U=this.tryEntries[_];if(U.tryLoc<=this.prev&&a.call(U,"finallyLoc")&&this.prev=0;--F){var _=this.tryEntries[F];if(_.finallyLoc===R)return this.complete(_.completion,_.afterLoc),w(_),f}}return P}(),catch:function(){function P(R){for(var F=this.tryEntries.length-1;F>=0;--F){var _=this.tryEntries[F];if(_.tryLoc===R){var U=_.completion;if(U.type==="throw"){var W=U.arg;w(_)}return W}}throw new Error("illegal catch attempt")}return P}(),delegateYield:function(){function P(R,F,_){return this.delegate={iterator:O(R),resultName:F,nextLoc:_},this.method==="next"&&(this.arg=o),f}return P}()},n}(L.exports);try{regeneratorRuntime=r}catch(n){typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},30236:function(){"use strict";self.fetch||(self.fetch=function(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 k(){return Promise.resolve(a.responseText)}return k}(),json:function(){function k(){return Promise.resolve(a.responseText).then(JSON.parse)}return k}(),blob:function(){function k(){return Promise.resolve(new Blob([a.response]))}return k}(),clone:y,headers:{keys:function(){function k(){return t}return k}(),entries:function(){function k(){return t.map(function(V){return[V,a.getResponseHeader(V)]})}return k}(),get:function(){function k(V){return a.getResponseHeader(V)}return k}(),has:function(){function k(V){return a.getResponseHeader(V)!=null}return k}()}}}return y}();for(var S in a.open(r.method||"get",L,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(y,k){o[k]||t.push(o[k]=k)}),n(m())},a.onerror=e,a.withCredentials=r.credentials=="include",r.headers)a.setRequestHeader(S,r.headers[S]);a.send(r.body||null)})})},88510:function(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(u,C){var b=typeof Symbol!="undefined"&&u[Symbol.iterator]||u["@@iterator"];if(b)return(b=b.call(u)).next.bind(b);if(Array.isArray(u)||(b=e(u))||C&&u&&typeof u.length=="number"){b&&(u=b);var v=0;return function(){return v>=u.length?{done:!0}:{done:!1,value:u[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(u,C){if(u){if(typeof u=="string")return a(u,C);var b={}.toString.call(u).slice(8,-1);return b==="Object"&&u.constructor&&(b=u.constructor.name),b==="Map"||b==="Set"?Array.from(u):b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?a(u,C):void 0}}function a(u,C){(C==null||C>u.length)&&(C=u.length);for(var b=0,v=Array(C);bB)return 1}return 0},b=r.sortBy=function(){function u(){for(var v=arguments.length,V=new Array(v),C=0;CB)return 1}return 0},V=r.sortBy=function(){function u(){for(var C=arguments.length,b=new Array(C),v=0;v=1-n)return _[U-1];var $=W%1,G=W|0;return P.lerp(_[G],_[G+1],$)}return R}(),P}(),a=function(M,R,F){return R===void 0&&(R=0),F===void 0&&(F=Math.pow(10,R)),Math.round(F*M)/F},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function P(M){return B(m(M))}return P}(),m=r.hexToRgba=function(){function P(M){return M[0]==="#"&&(M=M.substring(1)),M.length<6?{r:parseInt(M[0]+M[0],16),g:parseInt(M[1]+M[1],16),b:parseInt(M[2]+M[2],16),a:M.length===4?a(parseInt(M[3]+M[3],16)/255,2):1}:{r:parseInt(M.substring(0,2),16),g:parseInt(M.substring(2,4),16),b:parseInt(M.substring(4,6),16),a:M.length===8?a(parseInt(M.substring(6,8),16)/255,2):1}}return P}(),S=r.parseHue=function(){function P(M,R){return R===void 0&&(R="deg"),Number(M)*(t[R]||1)}return P}(),y=r.hslaStringToHsva=function(){function P(M){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(M);return F?b({h:S(F[1],F[2]),s:Number(F[3]),l:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return P}(),k=r.hslStringToHsva=y,b=r.hslaToHsva=function(){function P(M){var R=M.h,F=M.s,_=M.l,U=M.a;return F*=(_<50?_:100-_)/100,{h:R,s:F>0?2*F/(_+F)*100:0,v:_+F,a:U}}return P}(),p=r.hsvaToHex=function(){function P(M){return x(f(M))}return P}(),i=r.hsvaToHsla=function(){function P(M){var R=M.h,F=M.s,_=M.v,U=M.a,W=(200-F)*_/100;return{h:a(R),s:a(W>0&&W<200?F*_/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(U,2)}}return P}(),c=r.hsvaToHslString=function(){function P(M){var R=i(M),F=R.h,_=R.s,U=R.l;return"hsl("+F+", "+_+"%, "+U+"%)"}return P}(),s=r.hsvaToHsvString=function(){function P(M){var R=L(M),F=R.h,_=R.s,U=R.v;return"hsv("+F+", "+_+"%, "+U+"%)"}return P}(),l=r.hsvaToHsvaString=function(){function P(M){var R=L(M),F=R.h,_=R.s,U=R.v,W=R.a;return"hsva("+F+", "+_+"%, "+U+"%, "+W+")"}return P}(),d=r.hsvaToHslaString=function(){function P(M){var R=i(M),F=R.h,_=R.s,U=R.l,W=R.a;return"hsla("+F+", "+_+"%, "+U+"%, "+W+")"}return P}(),f=r.hsvaToRgba=function(){function P(M){var R=M.h,F=M.s,_=M.v,U=M.a;R=R/360*6,F=F/100,_=_/100;var W=Math.floor(R),$=_*(1-F),G=_*(1-(R-W)*F),oe=_*(1-(1-R+W)*F),X=W%6;return{r:[_,G,$,$,oe,_][X]*255,g:[oe,_,_,G,$,$][X]*255,b:[$,$,oe,_,_,G][X]*255,a:a(U,2)}}return P}(),u=r.hsvaToRgbString=function(){function P(M){var R=f(M),F=R.r,_=R.g,U=R.b;return"rgb("+a(F)+", "+a(_)+", "+a(U)+")"}return P}(),v=r.hsvaToRgbaString=function(){function P(M){var R=f(M),F=R.r,_=R.g,U=R.b,W=R.a;return"rgba("+a(F)+", "+a(_)+", "+a(U)+", "+a(W,2)+")"}return P}(),V=r.hsvaStringToHsva=function(){function P(M){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(M);return F?L({h:S(F[1],F[2]),s:Number(F[3]),v:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return P}(),C=r.hsvStringToHsva=V,h=r.rgbaStringToHsva=function(){function P(M){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(M);return F?B({r:Number(F[1])/(F[2]?100/255:1),g:Number(F[3])/(F[4]?100/255:1),b:Number(F[5])/(F[6]?100/255:1),a:F[7]===void 0?1:Number(F[7])/(F[8]?100:1)}):{h:0,s:0,v:0,a:1}}return P}(),g=r.rgbStringToHsva=h,N=function(M){var R=M.toString(16);return R.length<2?"0"+R:R},x=r.rgbaToHex=function(){function P(M){var R=M.r,F=M.g,_=M.b,U=M.a,W=U<1?N(a(U*255)):"";return"#"+N(a(R))+N(a(F))+N(a(_))+W}return P}(),B=r.rgbaToHsva=function(){function P(M){var R=M.r,F=M.g,_=M.b,U=M.a,W=Math.max(R,F,_),$=W-Math.min(R,F,_),G=$?W===R?(F-_)/$:W===F?2+(_-R)/$:4+(R-F)/$:0;return{h:60*(G<0?G+6:G),s:W?$/W*100:0,v:W/255*100,a:U}}return P}(),L=r.roundHsva=function(){function P(M){return{h:a(M.h),s:a(M.s),v:a(M.v),a:a(M.a,2)}}return P}(),T=r.rgbaToRgb=function(){function P(M){var R=M.r,F=M.g,_=M.b;return{r:R,g:F,b:_}}return P}(),A=r.hslaToHsl=function(){function P(M){var R=M.h,F=M.s,_=M.l;return{h:R,s:F,l:_}}return P}(),w=r.hsvaToHsv=function(){function P(M){var R=L(M),F=R.h,_=R.s,U=R.v;return{h:F,s:_,v:U}}return P}(),E=/^#?([0-9A-F]{3,8})$/i,O=r.validHex=function(){function P(M,R){var F=E.exec(M),_=F?F[1].length:0;return _===3||_===6||!!R&&_===4||!!R&&_===8}return P}()},92868:function(I,r){"use strict";r.__esModule=!0,r.EventEmitter=void 0;/** + */var n=1e-4,e=r.Color=function(){function M(R,F,_,U){R===void 0&&(R=0),F===void 0&&(F=0),_===void 0&&(_=0),U===void 0&&(U=1),this.r=void 0,this.g=void 0,this.b=void 0,this.a=void 0,this.r=R,this.g=F,this.b=_,this.a=U}var P=M.prototype;return P.toString=function(){function R(){return"rgba("+(this.r|0)+", "+(this.g|0)+", "+(this.b|0)+", "+(this.a|0)+")"}return R}(),M.fromHex=function(){function R(F){return new M(parseInt(F.substr(1,2),16),parseInt(F.substr(3,2),16),parseInt(F.substr(5,2),16))}return R}(),M.lerp=function(){function R(F,_,U){return new M((_.r-F.r)*U+F.r,(_.g-F.g)*U+F.g,(_.b-F.b)*U+F.b,(_.a-F.a)*U+F.a)}return R}(),M.lookup=function(){function R(F,_){_===void 0&&(_=[]);var U=_.length;if(U<2)throw new Error("Needs at least two colors!");var W=F*(U-1);if(F=1-n)return _[U-1];var $=W%1,G=W|0;return M.lerp(_[G],_[G+1],$)}return R}(),M}(),a=function(P,R,F){return R===void 0&&(R=0),F===void 0&&(F=Math.pow(10,R)),Math.round(F*P)/F},t={grad:360/400,turn:360,rad:360/(Math.PI*2)},o=r.hexToHsva=function(){function M(P){return B(m(P))}return M}(),m=r.hexToRgba=function(){function M(P){return P[0]==="#"&&(P=P.substring(1)),P.length<6?{r:parseInt(P[0]+P[0],16),g:parseInt(P[1]+P[1],16),b:parseInt(P[2]+P[2],16),a:P.length===4?a(parseInt(P[3]+P[3],16)/255,2):1}:{r:parseInt(P.substring(0,2),16),g:parseInt(P.substring(2,4),16),b:parseInt(P.substring(4,6),16),a:P.length===8?a(parseInt(P.substring(6,8),16)/255,2):1}}return M}(),S=r.parseHue=function(){function M(P,R){return R===void 0&&(R="deg"),Number(P)*(t[R]||1)}return M}(),y=r.hslaStringToHsva=function(){function M(P){var R=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?V({h:S(F[1],F[2]),s:Number(F[3]),l:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),k=r.hslStringToHsva=y,V=r.hslaToHsva=function(){function M(P){var R=P.h,F=P.s,_=P.l,U=P.a;return F*=(_<50?_:100-_)/100,{h:R,s:F>0?2*F/(_+F)*100:0,v:_+F,a:U}}return M}(),p=r.hsvaToHex=function(){function M(P){return x(f(P))}return M}(),i=r.hsvaToHsla=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a,W=(200-F)*_/100;return{h:a(R),s:a(W>0&&W<200?F*_/100/(W<=100?W:200-W)*100:0),l:a(W/2),a:a(U,2)}}return M}(),c=r.hsvaToHslString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l;return"hsl("+F+", "+_+"%, "+U+"%)"}return M}(),s=r.hsvaToHsvString=function(){function M(P){var R=I(P),F=R.h,_=R.s,U=R.v;return"hsv("+F+", "+_+"%, "+U+"%)"}return M}(),l=r.hsvaToHsvaString=function(){function M(P){var R=I(P),F=R.h,_=R.s,U=R.v,W=R.a;return"hsva("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),d=r.hsvaToHslaString=function(){function M(P){var R=i(P),F=R.h,_=R.s,U=R.l,W=R.a;return"hsla("+F+", "+_+"%, "+U+"%, "+W+")"}return M}(),f=r.hsvaToRgba=function(){function M(P){var R=P.h,F=P.s,_=P.v,U=P.a;R=R/360*6,F=F/100,_=_/100;var W=Math.floor(R),$=_*(1-F),G=_*(1-(R-W)*F),oe=_*(1-(1-R+W)*F),X=W%6;return{r:[_,G,$,$,oe,_][X]*255,g:[oe,_,_,G,$,$][X]*255,b:[$,$,oe,_,_,G][X]*255,a:a(U,2)}}return M}(),u=r.hsvaToRgbString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b;return"rgb("+a(F)+", "+a(_)+", "+a(U)+")"}return M}(),C=r.hsvaToRgbaString=function(){function M(P){var R=f(P),F=R.r,_=R.g,U=R.b,W=R.a;return"rgba("+a(F)+", "+a(_)+", "+a(U)+", "+a(W,2)+")"}return M}(),b=r.hsvaStringToHsva=function(){function M(P){var R=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?I({h:S(F[1],F[2]),s:Number(F[3]),v:Number(F[4]),a:F[5]===void 0?1:Number(F[5])/(F[6]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),v=r.hsvStringToHsva=b,h=r.rgbaStringToHsva=function(){function M(P){var R=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i,F=R.exec(P);return F?B({r:Number(F[1])/(F[2]?100/255:1),g:Number(F[3])/(F[4]?100/255:1),b:Number(F[5])/(F[6]?100/255:1),a:F[7]===void 0?1:Number(F[7])/(F[8]?100:1)}):{h:0,s:0,v:0,a:1}}return M}(),g=r.rgbStringToHsva=h,N=function(P){var R=P.toString(16);return R.length<2?"0"+R:R},x=r.rgbaToHex=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=U<1?N(a(U*255)):"";return"#"+N(a(R))+N(a(F))+N(a(_))+W}return M}(),B=r.rgbaToHsva=function(){function M(P){var R=P.r,F=P.g,_=P.b,U=P.a,W=Math.max(R,F,_),$=W-Math.min(R,F,_),G=$?W===R?(F-_)/$:W===F?2+(_-R)/$:4+(R-F)/$:0;return{h:60*(G<0?G+6:G),s:W?$/W*100:0,v:W/255*100,a:U}}return M}(),I=r.roundHsva=function(){function M(P){return{h:a(P.h),s:a(P.s),v:a(P.v),a:a(P.a,2)}}return M}(),T=r.rgbaToRgb=function(){function M(P){var R=P.r,F=P.g,_=P.b;return{r:R,g:F,b:_}}return M}(),E=r.hslaToHsl=function(){function M(P){var R=P.h,F=P.s,_=P.l;return{h:R,s:F,l:_}}return M}(),w=r.hsvaToHsv=function(){function M(P){var R=I(P),F=R.h,_=R.s,U=R.v;return{h:F,s:_,v:U}}return M}(),A=/^#?([0-9A-F]{3,8})$/i,O=r.validHex=function(){function M(P,R){var F=A.exec(P),_=F?F[1].length:0;return _===3||_===6||!!R&&_===4||!!R&&_===8}return M}()},92868:function(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 S=this.listeners[o];if(!S)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=S.filter(function(y){return y!==m})}return t}(),a.emit=function(){function t(o){var m=this.listeners[o];if(m){for(var S=arguments.length,y=new Array(S>1?S-1:0),k=1;k1?S-1:0),k=1;k1?k-1:0),p=1;p1?b-1:0),i=1;i1?k-1:0),p=1;p1?V-1:0),i=1;i=10&&S<=20)return m;var y=S%10;return y===1?t:y>=2&&y<=4?o:m}return e}()},44879:function(I,r){"use strict";r.__esModule=!0,r.toFixed=r.scale=r.round=r.rad2deg=r.keyOfMatchingRange=r.inRange=r.clamp01=r.clamp=void 0;/** + */var n=r.KEY_BACKSPACE=8,e=r.KEY_TAB=9,a=r.KEY_ENTER=13,t=r.KEY_SHIFT=16,o=r.KEY_CTRL=17,m=r.KEY_ALT=18,S=r.KEY_PAUSE=19,y=r.KEY_CAPSLOCK=20,k=r.KEY_ESCAPE=27,V=r.KEY_SPACE=32,p=r.KEY_PAGEUP=33,i=r.KEY_PAGEDOWN=34,c=r.KEY_END=35,s=r.KEY_HOME=36,l=r.KEY_LEFT=37,d=r.KEY_UP=38,f=r.KEY_RIGHT=39,u=r.KEY_DOWN=40,C=r.KEY_INSERT=45,b=r.KEY_DELETE=46,v=r.KEY_0=48,h=r.KEY_1=49,g=r.KEY_2=50,N=r.KEY_3=51,x=r.KEY_4=52,B=r.KEY_5=53,I=r.KEY_6=54,T=r.KEY_7=55,E=r.KEY_8=56,w=r.KEY_9=57,A=r.KEY_A=65,O=r.KEY_B=66,M=r.KEY_C=67,P=r.KEY_D=68,R=r.KEY_E=69,F=r.KEY_F=70,_=r.KEY_G=71,U=r.KEY_H=72,W=r.KEY_I=73,$=r.KEY_J=74,G=r.KEY_K=75,oe=r.KEY_L=76,X=r.KEY_M=77,Ce=r.KEY_N=78,me=r.KEY_O=79,ne=r.KEY_P=80,ce=r.KEY_Q=81,q=r.KEY_R=82,ae=r.KEY_S=83,J=r.KEY_T=84,Y=r.KEY_U=85,Q=r.KEY_V=86,Z=r.KEY_W=87,te=r.KEY_X=88,se=r.KEY_Y=89,ye=r.KEY_Z=90,fe=r.KEY_NUMPAD_0=96,Le=r.KEY_NUMPAD_1=97,D=r.KEY_NUMPAD_2=98,re=r.KEY_NUMPAD_3=99,de=r.KEY_NUMPAD_4=100,ve=r.KEY_NUMPAD_5=101,pe=r.KEY_NUMPAD_6=102,Be=r.KEY_NUMPAD_7=103,ke=r.KEY_NUMPAD_8=104,Ee=r.KEY_NUMPAD_9=105,Re=r.KEY_F1=112,_e=r.KEY_F2=113,Pe=r.KEY_F3=114,Ne=r.KEY_F4=115,Se=r.KEY_F5=116,H=r.KEY_F6=117,ue=r.KEY_F7=118,Ve=r.KEY_F8=119,be=r.KEY_F9=120,Ie=r.KEY_F10=121,we=r.KEY_F11=122,Me=r.KEY_F12=123,Ae=r.KEY_SEMICOLON=186,De=r.KEY_EQUAL=187,He=r.KEY_COMMA=188,Ye=r.KEY_MINUS=189,Qe=r.KEY_PERIOD=190,$e=r.KEY_SLASH=191,lt=r.KEY_LEFT_BRACKET=219,qe=r.KEY_BACKSLASH=220,ut=r.KEY_RIGHT_BRACKET=221,It=r.KEY_QUOTE=222},70611:function(L,r){"use strict";r.__esModule=!0,r.KEY=void 0;var n=r.KEY=function(e){return e.Alt="Alt",e.Backspace="Backspace",e.Control="Control",e.Delete="Delete",e.Down="Down",e.End="End",e.Enter="Enter",e.Escape="Esc",e.Home="Home",e.Insert="Insert",e.Left="Left",e.PageDown="PageDown",e.PageUp="PageUp",e.Right="Right",e.Shift="Shift",e.Space=" ",e.Tab="Tab",e.Up="Up",e}({})},41260:function(L,r){"use strict";r.__esModule=!0,r.declensionRu=void 0;var n=r.declensionRu=function(){function e(a,t,o,m){var S=a%100;if(S>=10&&S<=20)return m;var y=S%10;return y===1?t:y>=2&&y<=4?o:m}return e}()},44879:function(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 k(b,p,i){return bi?i:b}return k}(),e=r.clamp01=function(){function k(b){return b<0?0:b>1?1:b}return k}(),a=r.scale=function(){function k(b,p,i){return(b-p)/(i-p)}return k}(),t=r.round=function(){function k(b,p){if(!b||isNaN(b))return b;var i,c,s,l;return p|=0,i=Math.pow(10,p),b*=i,l=+(b>0)|-(b<0),s=Math.abs(b%1)>=.4999999999854481,c=Math.floor(b),s&&(b=c+(l>0)),(s?b:Math.round(b))/i}return k}(),o=r.toFixed=function(){function k(b,p){return p===void 0&&(p=0),Number(b).toFixed(Math.max(p,0))}return k}(),m=r.inRange=function(){function k(b,p){return p&&b>=p[0]&&b<=p[1]}return k}(),S=r.keyOfMatchingRange=function(){function k(b,p){for(var i=0,c=Object.keys(p);ii?i:V}return k}(),e=r.clamp01=function(){function k(V){return V<0?0:V>1?1:V}return k}(),a=r.scale=function(){function k(V,p,i){return(V-p)/(i-p)}return k}(),t=r.round=function(){function k(V,p){if(!V||isNaN(V))return V;var i,c,s,l;return p|=0,i=Math.pow(10,p),V*=i,l=+(V>0)|-(V<0),s=Math.abs(V%1)>=.4999999999854481,c=Math.floor(V),s&&(V=c+(l>0)),(s?V:Math.round(V))/i}return k}(),o=r.toFixed=function(){function k(V,p){return p===void 0&&(p=0),Number(V).toFixed(Math.max(p,0))}return k}(),m=r.inRange=function(){function k(V,p){return p&&V>=p[0]&&V<=p[1]}return k}(),S=r.keyOfMatchingRange=function(){function k(V,p){for(var i=0,c=Object.keys(p);i1?l-1:0),f=1;f1?N-1:0),B=1;B=0;--ye){var fe=this.tryEntries[ye],Ie=fe.completion;if(fe.tryLoc==="root")return se("end");if(fe.tryLoc<=this.prev){var D=g.call(fe,"catchLoc"),re=g.call(fe,"finallyLoc");if(D&&re){if(this.prev=0;--se){var ye=this.tryEntries[se];if(ye.tryLoc<=this.prev&&g.call(ye,"finallyLoc")&&this.prev=0;--te){var se=this.tryEntries[te];if(se.finallyLoc===Z)return this.complete(se.completion,se.afterLoc),ae(se),F}}return Q}(),catch:function(){function Q(Z){for(var te=this.tryEntries.length-1;te>=0;--te){var se=this.tryEntries[te];if(se.tryLoc===Z){var ye=se.completion;if(ye.type==="throw"){var fe=ye.arg;ae(se)}return fe}}throw Error("illegal catch attempt")}return Q}(),delegateYield:function(){function Q(Z,te,se){return this.delegate={iterator:Y(Z),resultName:te,nextLoc:se},this.method==="next"&&(this.arg=V),F}return Q}()},C}function e(V,C,h,g,N,x,B){try{var L=V[x](B),T=L.value}catch(A){return void h(A)}L.done?C(T):Promise.resolve(T).then(g,N)}function a(V){return function(){var C=this,h=arguments;return new Promise(function(g,N){var x=V.apply(C,h);function B(T){e(x,g,N,B,L,"next",T)}function L(T){e(x,g,N,B,L,"throw",T)}B(void 0)})}}/** + */var a=r.createStore=function(){function k(V,p){if(p)return p(a)(V);var i,c=[],s=function(){function f(){return i}return f}(),l=function(){function f(u){c.push(u)}return f}(),d=function(){function f(u){i=V(i,u);for(var C=0;C1?l-1:0),f=1;f1?N-1:0),B=1;B=0;--ye){var fe=this.tryEntries[ye],Le=fe.completion;if(fe.tryLoc==="root")return se("end");if(fe.tryLoc<=this.prev){var D=g.call(fe,"catchLoc"),re=g.call(fe,"finallyLoc");if(D&&re){if(this.prev=0;--se){var ye=this.tryEntries[se];if(ye.tryLoc<=this.prev&&g.call(ye,"finallyLoc")&&this.prev=0;--te){var se=this.tryEntries[te];if(se.finallyLoc===Z)return this.complete(se.completion,se.afterLoc),ae(se),F}}return Q}(),catch:function(){function Q(Z){for(var te=this.tryEntries.length-1;te>=0;--te){var se=this.tryEntries[te];if(se.tryLoc===Z){var ye=se.completion;if(ye.type==="throw"){var fe=ye.arg;ae(se)}return fe}}throw Error("illegal catch attempt")}return Q}(),delegateYield:function(){function Q(Z,te,se){return this.delegate={iterator:Y(Z),resultName:te,nextLoc:se},this.method==="next"&&(this.arg=b),F}return Q}()},v}function e(b,v,h,g,N,x,B){try{var I=b[x](B),T=I.value}catch(E){return void h(E)}I.done?v(T):Promise.resolve(T).then(g,N)}function a(b){return function(){var v=this,h=arguments;return new Promise(function(g,N){var x=b.apply(v,h);function B(T){e(x,g,N,B,I,"next",T)}function I(T){e(x,g,N,B,I,"throw",T)}B(void 0)})}}/** * Browser-agnostic abstraction of key-value web storage. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.IMPL_MEMORY=0,o=r.IMPL_HUB_STORAGE=1,m=r.IMPL_INDEXED_DB=2,S=1,y="para-tgui",k="storage-v1",b="readonly",p="readwrite",i=function(C){return function(){try{return!!C()}catch(h){return!1}}},c=i(function(){return window.hubStorage&&window.hubStorage.getItem}),s=i(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),l=function(){function V(){this.impl=t,this.store={}}var C=V.prototype;return C.get=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.store[x]);case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.set=function(){var h=a(n().mark(function(){function N(x,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:this.store[x]=B;case 1:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),C.remove=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:this.store[x]=void 0;case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.clear=function(){var h=a(n().mark(function(){function N(){return n().wrap(function(){function x(B){for(;;)switch(B.prev=B.next){case 0:this.store={};case 1:case"end":return B.stop()}}return x}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),V}(),d=function(){function V(){this.impl=o}var C=V.prototype;return C.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,window.hubStorage.getItem("paradise-"+x);case 2:if(B=T.sent,typeof B!="string"){T.next=5;break}return T.abrupt("return",JSON.parse(B));case 5:case"end":return T.stop()}}return L}(),N)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.set=function(){var h=a(n().mark(function(){function N(x,B){return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:window.hubStorage.setItem("paradise-"+x,JSON.stringify(B));case 1:case"end":return T.stop()}}return L}(),N)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),C.remove=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:window.hubStorage.removeItem("paradise-"+x);case 1:case"end":return L.stop()}}return B}(),N)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.clear=function(){var h=a(n().mark(function(){function N(){return n().wrap(function(){function x(B){for(;;)switch(B.prev=B.next){case 0:window.hubStorage.clear();case 1:case"end":return B.stop()}}return x}(),N)}return N}()));function g(){return h.apply(this,arguments)}return g}(),V}(),f=function(){function V(){this.impl=m,this.dbPromise=new Promise(function(h,g){var N=window.indexedDB||window.msIndexedDB,x=N.open(y,S);x.onupgradeneeded=function(){try{x.result.createObjectStore(k)}catch(B){g(new Error("Failed to upgrade IDB: "+x.error))}},x.onsuccess=function(){return h(x.result)},x.onerror=function(){g(new Error("Failed to open IDB: "+x.error))}})}var C=V.prototype;return C.getStore=function(){var h=a(n().mark(function(){function N(x){return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.abrupt("return",this.dbPromise.then(function(T){return T.transaction(k,x).objectStore(k)}));case 1:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(b);case 2:return B=T.sent,T.abrupt("return",new Promise(function(A,w){var E=B.get(x);E.onsuccess=function(){return A(E.result)},E.onerror=function(){return w(E.error)}}));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.set=function(){var h=a(n().mark(function(){function N(x,B){var L;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.getStore(p);case 2:L=A.sent,L.put(B,x);case 4:case"end":return A.stop()}}return T}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),C.remove=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.getStore(p);case 2:B=T.sent,B.delete(x);case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.clear=function(){var h=a(n().mark(function(){function N(){var x;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.getStore(p);case 2:x=L.sent,x.clear();case 4:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),V}(),u=function(){function V(){this.backendPromise=a(n().mark(function(){function h(){var g;return n().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:if(!(!Byond.TRIDENT&&c())){x.next=2;break}return x.abrupt("return",new d);case 2:if(!s()){x.next=12;break}return x.prev=3,g=new f,x.next=7,g.dbPromise;case 7:return x.abrupt("return",g);case 10:x.prev=10,x.t0=x.catch(3);case 12:return x.abrupt("return",new l);case 13:case"end":return x.stop()}}return N}(),h,null,[[3,10]])}return h}()))()}var C=V.prototype;return C.get=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.get(x));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.set=function(){var h=a(n().mark(function(){function N(x,B){var L;return n().wrap(function(){function T(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.backendPromise;case 2:return L=A.sent,A.abrupt("return",L.set(x,B));case 4:case"end":return A.stop()}}return T}(),N,this)}return N}()));function g(N,x){return h.apply(this,arguments)}return g}(),C.remove=function(){var h=a(n().mark(function(){function N(x){var B;return n().wrap(function(){function L(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.backendPromise;case 2:return B=T.sent,T.abrupt("return",B.remove(x));case 4:case"end":return T.stop()}}return L}(),N,this)}return N}()));function g(N){return h.apply(this,arguments)}return g}(),C.clear=function(){var h=a(n().mark(function(){function N(){var x;return n().wrap(function(){function B(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,this.backendPromise;case 2:return x=L.sent,L.abrupt("return",x.clear());case 4:case"end":return L.stop()}}return B}(),N,this)}return N}()));function g(){return h.apply(this,arguments)}return g}(),V}(),v=r.storage=new u},25328:function(I,r){"use strict";r.__esModule=!0,r.toTitleCase=r.multiline=r.decodeHtmlEntities=r.createSearch=r.createGlobPattern=r.capitalize=r.buildQueryString=void 0;function n(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=e(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(p,i):void 0}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(p,i){if(p){if(typeof p=="string")return a(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?a(p,i):void 0}}function a(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return s[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var f=parseInt(d,10);return String.fromCharCode(f)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var f=parseInt(d,16);return String.fromCharCode(f)})}return p}(),b=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},69214:function(I,r){"use strict";r.__esModule=!0,r.throttle=r.sleep=r.debounce=void 0;/** + */var t=r.multiline=function(){function p(i){if(Array.isArray(i))return t(i.join(""));for(var c=i.split("\n"),s,l=n(c),d;!(d=l()).done;)for(var f=d.value,u=0;u",apos:"'"};return i.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(l,d){return s[d]}).replace(/&#?([0-9]+);/gi,function(l,d){var f=parseInt(d,10);return String.fromCharCode(f)}).replace(/&#x?([0-9a-f]+);/gi,function(l,d){var f=parseInt(d,16);return String.fromCharCode(f)})}return p}(),V=r.buildQueryString=function(){function p(i){return Object.keys(i).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(i[c])}).join("&")}return p}()},69214:function(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,S){S===void 0&&(S=!1);var y;return function(){for(var k=arguments.length,b=new Array(k),p=0;p=m)o.apply(null,p),S=c;else{var s;y=setTimeout(function(){return k.apply(void 0,p)},m-(c-((s=S)!=null?s:0)))}}return k}()}return t}()},90286:function(I,r){"use strict";r.__esModule=!0,r.createUuid=void 0;/** + */var n=r.debounce=function(){function t(o,m,S){S===void 0&&(S=!1);var y;return function(){for(var k=arguments.length,V=new Array(k),p=0;p=m)o.apply(null,p),S=c;else{var s;y=setTimeout(function(){return k.apply(void 0,p)},m-(c-((s=S)!=null?s:0)))}}return k}()}return t}()},90286:function(L,r){"use strict";r.__esModule=!0,r.createUuid=void 0;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=r.createUuid=function(){function e(){var a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var o=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?o:o&3|8).toString(16)})}return e}()},97450:function(I,r,n){"use strict";r.__esModule=!0,r.vecSubtract=r.vecScale=r.vecNormalize=r.vecMultiply=r.vecLength=r.vecInverse=r.vecDivide=r.vecAdd=void 0;var e=n(88510);/** + */var n=r.createUuid=function(){function e(){var a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var o=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?o:o&3|8).toString(16)})}return e}()},97450: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(88510);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -66,11 +66,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=function(d,f){return d+f},t=function(d,f){return d-f},o=function(d,f){return d*f},m=function(d,f){return d/f},S=r.vecAdd=function(){function l(){for(var d=arguments.length,f=new Array(d),u=0;u0&&(g.style=w),g}return C}(),v=r.computeBoxClassName=function(){function C(h){var g=h.textColor||h.color,N=h.backgroundColor;return(0,e.classes)([p(g)&&"color-"+g,p(N)&&"color-bg-"+N])}return C}(),V=r.Box=function(){function C(h){var g=h.as,N=g===void 0?"div":g,x=h.className,B=h.children,L=S(h,m);if(typeof B=="function")return B(u(h));var T=typeof x=="string"?x+" "+v(L):v(L),A=u(L);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,N,T,B,t.ChildFlags.UnknownChildren,A)}return C}();V.defaultHooks=e.pureComponentHooks},94798:function(I,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),m=n(55937),S=n(1331),y=n(62147),k=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],b=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** + */function S(v,h){if(v==null)return{};var g={};for(var N in v)if({}.hasOwnProperty.call(v,N)){if(h.includes(N))continue;g[N]=v[N]}return g}var y=r.unit=function(){function v(h){if(typeof h=="string")return h.endsWith("px")?parseFloat(h)/12+"rem":h;if(typeof h=="number")return h+"rem"}return v}(),k=r.halfUnit=function(){function v(h){if(typeof h=="string")return y(h);if(typeof h=="number")return y(h*.5)}return v}(),V=function(h){return!p(h)},p=function(h){if(typeof h=="string")return o.CSS_COLORS.includes(h)},i=function(h){return function(g,N){(typeof N=="number"||typeof N=="string")&&(g[h]=N)}},c=function(h,g){return function(N,x){(typeof x=="number"||typeof x=="string")&&(N[h]=g(x))}},s=function(h,g){return function(N,x){x&&(N[h]=g)}},l=function(h,g,N){return function(x,B){if(typeof B=="number"||typeof B=="string")for(var I=0;I0&&(g.style=w),g}return v}(),C=r.computeBoxClassName=function(){function v(h){var g=h.textColor||h.color,N=h.backgroundColor;return(0,e.classes)([p(g)&&"color-"+g,p(N)&&"color-bg-"+N])}return v}(),b=r.Box=function(){function v(h){var g=h.as,N=g===void 0?"div":g,x=h.className,B=h.children,I=S(h,m);if(typeof B=="function")return B(u(h));var T=typeof x=="string"?x+" "+C(I):C(I),E=u(I);return(0,a.createVNode)(t.VNodeFlags.HtmlElement,N,T,B,t.ChildFlags.UnknownChildren,E)}return v}();b.defaultHooks=e.pureComponentHooks},94798:function(L,r,n){"use strict";r.__esModule=!0,r.ButtonInput=r.ButtonConfirm=r.ButtonCheckbox=r.Button=void 0;var e=n(89005),a=n(35840),t=n(92986),o=n(9394),m=n(55937),S=n(1331),y=n(62147),k=["className","fluid","icon","iconRotation","iconSpin","color","textColor","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","iconColor","iconRight","iconStyle","children","onclick","onClick","multiLine"],V=["checked"],p=["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"],i=["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","disabled","placeholder","maxLength","multiLine"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function c(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C,s(C,h)}function s(C,h){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,N){return g.__proto__=N,g},s(C,h)}function l(C,h){if(C==null)return{};var g={};for(var N in C)if({}.hasOwnProperty.call(C,N)){if(h.includes(N))continue;g[N]=C[N]}return g}var d=(0,o.createLogger)("Button"),f=r.Button=function(){function C(h){var g=h.className,N=h.fluid,x=h.icon,B=h.iconRotation,L=h.iconSpin,T=h.color,A=h.textColor,w=h.disabled,E=h.selected,O=h.tooltip,P=h.tooltipPosition,M=h.ellipsis,R=h.compact,F=h.circular,_=h.content,U=h.iconColor,W=h.iconRight,$=h.iconStyle,G=h.children,oe=h.onclick,X=h.onClick,ve=h.multiLine,me=l(h,k),ne=!!(_||G);oe&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),me.onClick=function(q){!w&&X&&X(q)};var ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",N&&"Button--fluid",w&&"Button--disabled",E&&"Button--selected",ne&&"Button--hasContent",M&&"Button--ellipsis",F&&"Button--circular",R&&"Button--compact",W&&"Button--iconRight",ve&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",g]),tabIndex:!w&&"0",color:A,onKeyDown:function(){function q(ae){var J=window.event?ae.which:ae.keyCode;if(J===t.KEY_SPACE||J===t.KEY_ENTER){ae.preventDefault(),!w&&X&&X(ae);return}if(J===t.KEY_ESCAPE){ae.preventDefault();return}}return q}()},me,{children:[x&&!W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$}),_,G,x&&W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:L,style:$})]})));return O&&(ce=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:P,children:ce})),ce}return C}();f.defaultHooks=a.pureComponentHooks;var u=r.ButtonCheckbox=function(){function C(h){var g=h.checked,N=l(h,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},N)))}return C}();f.Checkbox=u;var v=r.ButtonConfirm=function(C){function h(){var N;return N=C.call(this)||this,N.state={clickedOnce:!1},N.handleClick=function(){N.state.clickedOnce&&N.setClickedOnce(!1)},N}c(h,C);var g=h.prototype;return g.setClickedOnce=function(){function N(x){var B=this;this.setState({clickedOnce:x}),x?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.confirmContent,T=L===void 0?"Confirm?":L,A=B.confirmColor,w=A===void 0?"bad":A,E=B.confirmIcon,O=B.icon,P=B.color,M=B.content,R=B.onClick,F=l(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?T:M,icon:this.state.clickedOnce?E:O,color:this.state.clickedOnce?w:P,onClick:function(){function _(){return x.state.clickedOnce?R():x.setClickedOnce(!0)}return _}()},F)))}return N}(),h}(e.Component);f.Confirm=v;var V=r.ButtonInput=function(C){function h(){var N;return N=C.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={inInput:!1},N}c(h,C);var g=h.prototype;return g.setInInput=function(){function N(x){var B=this.props.disabled;if(!B&&(this.setState({inInput:x}),this.inputRef)){var L=this.inputRef.current;if(x){L.value=this.props.currentValue||"";try{L.focus(),L.select()}catch(T){}}}}return N}(),g.commitResult=function(){function N(x){if(this.inputRef){var B=this.inputRef.current,L=B.value!=="";if(L){this.props.onCommit(x,B.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(x,this.props.defaultValue)}}}return N}(),g.render=function(){function N(){var x=this,B=this.props,L=B.fluid,T=B.content,A=B.icon,w=B.iconRotation,E=B.iconSpin,O=B.tooltip,P=B.tooltipPosition,M=B.color,R=M===void 0?"default":M,F=B.disabled,_=B.placeholder,U=B.maxLength,W=B.multiLine,$=l(B,i),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",L&&"Button--fluid",F&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},$,{onClick:function(){function oe(){return x.setInInput(!0)}return oe}(),children:[A&&(0,e.createComponentVNode)(2,S.Icon,{name:A,rotation:w,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 oe(X){x.state.inInput&&(x.setInInput(!1),x.commitResult(X))}return oe}(),onKeyDown:function(){function oe(X){if(X.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return oe}()},null,this.inputRef)]})));return O&&(G=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:P,children:G})),G}return N}(),h}(e.Component);f.Input=V},18982:function(I,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),m=n(55937),S=["params"],y=["params"],k=["parent","params"];function b(v,V){if(v==null)return{};var C={};for(var h in v)if({}.hasOwnProperty.call(v,h)){if(V.includes(h))continue;C[h]=v[h]}return C}function p(v,V){v.prototype=Object.create(V.prototype),v.prototype.constructor=v,i(v,V)}function i(v,V){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,h){return C.__proto__=h,C},i(v,V)}/** + */function c(v,h){v.prototype=Object.create(h.prototype),v.prototype.constructor=v,s(v,h)}function s(v,h){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,N){return g.__proto__=N,g},s(v,h)}function l(v,h){if(v==null)return{};var g={};for(var N in v)if({}.hasOwnProperty.call(v,N)){if(h.includes(N))continue;g[N]=v[N]}return g}var d=(0,o.createLogger)("Button"),f=r.Button=function(){function v(h){var g=h.className,N=h.fluid,x=h.icon,B=h.iconRotation,I=h.iconSpin,T=h.color,E=h.textColor,w=h.disabled,A=h.selected,O=h.tooltip,M=h.tooltipPosition,P=h.ellipsis,R=h.compact,F=h.circular,_=h.content,U=h.iconColor,W=h.iconRight,$=h.iconStyle,G=h.children,oe=h.onclick,X=h.onClick,Ce=h.multiLine,me=l(h,k),ne=!!(_||G);oe&&d.warn("Lowercase 'onclick' is not supported on Button and lowercase prop names are discouraged in general. Please use a camelCase'onClick' instead and read: https://infernojs.org/docs/guides/event-handling"),me.onClick=function(q){!w&&X&&X(q)};var ce=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",N&&"Button--fluid",w&&"Button--disabled",A&&"Button--selected",ne&&"Button--hasContent",P&&"Button--ellipsis",F&&"Button--circular",R&&"Button--compact",W&&"Button--iconRight",Ce&&"Button--multiLine",T&&typeof T=="string"?"Button--color--"+T:"Button--color--default",g]),tabIndex:!w&&"0",color:E,onKeyDown:function(){function q(ae){var J=window.event?ae.which:ae.keyCode;if(J===t.KEY_SPACE||J===t.KEY_ENTER){ae.preventDefault(),!w&&X&&X(ae);return}if(J===t.KEY_ESCAPE){ae.preventDefault();return}}return q}()},me,{children:[x&&!W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:I,style:$}),_,G,x&&W&&(0,e.createComponentVNode)(2,S.Icon,{name:x,color:U,rotation:B,spin:I,style:$})]})));return O&&(ce=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:ce})),ce}return v}();f.defaultHooks=a.pureComponentHooks;var u=r.ButtonCheckbox=function(){function v(h){var g=h.checked,N=l(h,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({color:"transparent",icon:g?"check-square-o":"square-o",selected:g},N)))}return v}();f.Checkbox=u;var C=r.ButtonConfirm=function(v){function h(){var N;return N=v.call(this)||this,N.state={clickedOnce:!1},N.handleClick=function(){N.state.clickedOnce&&N.setClickedOnce(!1)},N}c(h,v);var g=h.prototype;return g.setClickedOnce=function(){function N(x){var B=this;this.setState({clickedOnce:x}),x?setTimeout(function(){return window.addEventListener("click",B.handleClick)}):window.removeEventListener("click",this.handleClick)}return N}(),g.render=function(){function N(){var x=this,B=this.props,I=B.confirmContent,T=I===void 0?"Confirm?":I,E=B.confirmColor,w=E===void 0?"bad":E,A=B.confirmIcon,O=B.icon,M=B.color,P=B.content,R=B.onClick,F=l(B,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,f,Object.assign({content:this.state.clickedOnce?T:P,icon:this.state.clickedOnce?A:O,color:this.state.clickedOnce?w:M,onClick:function(){function _(){return x.state.clickedOnce?R():x.setClickedOnce(!0)}return _}()},F)))}return N}(),h}(e.Component);f.Confirm=C;var b=r.ButtonInput=function(v){function h(){var N;return N=v.call(this)||this,N.inputRef=(0,e.createRef)(),N.state={inInput:!1},N}c(h,v);var g=h.prototype;return g.setInInput=function(){function N(x){var B=this.props.disabled;if(!B&&(this.setState({inInput:x}),this.inputRef)){var I=this.inputRef.current;if(x){I.value=this.props.currentValue||"";try{I.focus(),I.select()}catch(T){}}}}return N}(),g.commitResult=function(){function N(x){if(this.inputRef){var B=this.inputRef.current,I=B.value!=="";if(I){this.props.onCommit(x,B.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(x,this.props.defaultValue)}}}return N}(),g.render=function(){function N(){var x=this,B=this.props,I=B.fluid,T=B.content,E=B.icon,w=B.iconRotation,A=B.iconSpin,O=B.tooltip,M=B.tooltipPosition,P=B.color,R=P===void 0?"default":P,F=B.disabled,_=B.placeholder,U=B.maxLength,W=B.multiLine,$=l(B,i),G=(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Box,Object.assign({className:(0,a.classes)(["Button",I&&"Button--fluid",F&&"Button--disabled","Button--color--"+R,W+"Button--multiLine"])},$,{onClick:function(){function oe(){return x.setInInput(!0)}return oe}(),children:[E&&(0,e.createComponentVNode)(2,S.Icon,{name:E,rotation:w,spin:A}),(0,e.createVNode)(1,"div",null,T,0),(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:this.state.inInput?void 0:"none","text-align":"left"},onBlur:function(){function oe(X){x.state.inInput&&(x.setInInput(!1),x.commitResult(X))}return oe}(),onKeyDown:function(){function oe(X){if(X.keyCode===t.KEY_ENTER){x.setInInput(!1),x.commitResult(X);return}X.keyCode===t.KEY_ESCAPE&&x.setInInput(!1)}return oe}()},null,this.inputRef)]})));return O&&(G=(0,e.createComponentVNode)(2,y.Tooltip,{content:O,position:M,children:G})),G}return N}(),h}(e.Component);f.Input=b},18982:function(L,r,n){"use strict";r.__esModule=!0,r.ByondUi=void 0;var e=n(89005),a=n(35840),t=n(69214),o=n(9394),m=n(55937),S=["params"],y=["params"],k=["parent","params"];function V(C,b){if(C==null)return{};var v={};for(var h in C)if({}.hasOwnProperty.call(C,h)){if(b.includes(h))continue;v[h]=C[h]}return v}function p(C,b){C.prototype=Object.create(b.prototype),C.prototype.constructor=C,i(C,b)}function i(C,b){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,h){return v.__proto__=h,v},i(C,b)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var c=(0,o.createLogger)("ByondUi"),s=[],l=function(V){var C=s.length;s.push(null);var h=V||"byondui_"+C;return c.log("allocated '"+h+"'"),{render:function(){function g(N){c.log("unmounting '"+h+"'"),s[C]=null,Byond.winset(h,{parent:""}),c.log("rendering '"+h+"'"),s[C]=h,Byond.winset(h,N)}return g}(),unmount:function(){function g(){c.log("unmounting '"+h+"'"),s[C]=null,Byond.winset(h,{parent:""})}return g}()}};window.addEventListener("beforeunload",function(){for(var v=0;v0){var M=P[0],R=P[P.length-1];P.push([O[0]+w,R[1]]),P.push([O[0]+w,-w]),P.push([-w,-w]),P.push([-w,M[1]])}var F=p(P);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},E,{children:function(){function _(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:B,stroke:T,"stroke-width":w,points:F}),2,{viewBox:"0 0 "+O[0]+" "+O[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,v.ref))}return _}()})))}return u}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},s=r.Chart={Line:i}},4796:function(I,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(94798),o=["children","color","title","buttons"];function m(b,p){if(b==null)return{};var i={};for(var c in b)if({}.hasOwnProperty.call(b,c)){if(p.includes(c))continue;i[c]=b[c]}return i}function S(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,y(b,p)}function y(b,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(b,p)}/** +*/var V=function(d,f,u,C){if(d.length===0)return[];var b=(0,a.zipWith)(Math.min).apply(void 0,d),v=(0,a.zipWith)(Math.max).apply(void 0,d);u!==void 0&&(b[0]=u[0],v[0]=u[1]),C!==void 0&&(b[1]=C[0],v[1]=C[1]);var h=(0,a.map)(function(g){return(0,a.zipWith)(function(N,x,B,I){return(N-x)/(B-x)*I})(g,b,v,f)})(d);return h},p=function(d){for(var f="",u=0;u0){var P=M[0],R=M[M.length-1];M.push([O[0]+w,R[1]]),M.push([O[0]+w,-w]),M.push([-w,-w]),M.push([-w,P[1]])}var F=p(M);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({position:"relative"},A,{children:function(){function _(U){return(0,e.normalizeProps)((0,e.createVNode)(1,"div",null,(0,e.createVNode)(32,"svg",null,(0,e.createVNode)(32,"polyline",null,null,1,{transform:"scale(1, -1) translate(0, -"+O[1]+")",fill:B,stroke:T,"stroke-width":w,points:F}),2,{viewBox:"0 0 "+O[0]+" "+O[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"}}),2,Object.assign({},U),null,C.ref))}return _}()})))}return u}(),d}(e.Component);i.defaultHooks=t.pureComponentHooks;var c=function(d){return null},s=r.Chart={Line:i}},4796:function(L,r,n){"use strict";r.__esModule=!0,r.Collapsible=void 0;var e=n(89005),a=n(55937),t=n(94798),o=["children","color","title","buttons"];function m(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}function S(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,y(V,p)}function y(V,p){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},y(V,p)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=r.Collapsible=function(b){function p(c){var s;s=b.call(this,c)||this;var l=c.open;return s.state={open:l||!1},s}S(p,b);var i=p.prototype;return i.render=function(){function c(){var s=this,l=this.props,d=this.state.open,f=l.children,u=l.color,v=u===void 0?"default":u,V=l.title,C=l.buttons,h=m(l,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:v,icon:d?"chevron-down":"chevron-right",onClick:function(){function g(){return s.setState({open:!d})}return g}()},h,{children:V}))),2),C&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",C,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:f})]})}return c}(),p}(e.Component)},88894:function(I,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** +*/var k=r.Collapsible=function(V){function p(c){var s;s=V.call(this,c)||this;var l=c.open;return s.state={open:l||!1},s}S(p,V);var i=p.prototype;return i.render=function(){function c(){var s=this,l=this.props,d=this.state.open,f=l.children,u=l.color,C=u===void 0?"default":u,b=l.title,v=l.buttons,h=m(l,o);return(0,e.createComponentVNode)(2,a.Box,{className:"Collapsible",children:[(0,e.createVNode)(1,"div","Table",[(0,e.createVNode)(1,"div","Table__cell",(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({fluid:!0,color:C,icon:d?"chevron-down":"chevron-right",onClick:function(){function g(){return s.setState({open:!d})}return g}()},h,{children:b}))),2),v&&(0,e.createVNode)(1,"div","Table__cell Table__cell--collapsing",v,0)],0),d&&(0,e.createComponentVNode)(2,a.Box,{mt:1,children:f})]})}return c}(),p}(e.Component)},88894:function(L,r,n){"use strict";r.__esModule=!0,r.ColorBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["content","children","className","color","backgroundColor"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,k){if(y==null)return{};var b={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;b[p]=y[p]}return b}var S=r.ColorBox=function(){function y(k){var b=k.content,p=k.children,i=k.className,c=k.color,s=k.backgroundColor,l=m(k,o);return l.color=b?null:"transparent",l.backgroundColor=c||s,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),b||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return y}();S.defaultHooks=a.pureComponentHooks},73379:function(I,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(k,b){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(b.includes(i))continue;p[i]=k[i]}return p}function m(k,b){k.prototype=Object.create(b.prototype),k.prototype.constructor=k,S(k,b)}function S(k,b){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},S(k,b)}var y=r.Countdown=function(k){function b(i){var c;return c=k.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}m(b,k);var p=b.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(s){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var s=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(s.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,s=c.format,l=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:s?s(this.state.value,d):d})))}return i}(),b}(e.Component);y.defaultProps={rate:1e3}},61940:function(I,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** + */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.ColorBox=function(){function y(k){var V=k.content,p=k.children,i=k.className,c=k.color,s=k.backgroundColor,l=m(k,o);return l.color=V?null:"transparent",l.backgroundColor=c||s,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["ColorBox",i,(0,t.computeBoxClassName)(l)]),V||".",0,Object.assign({},(0,t.computeBoxProps)(l))))}return y}();S.defaultHooks=a.pureComponentHooks},73379:function(L,r,n){"use strict";r.__esModule=!0,r.Countdown=void 0;var e=n(89005),a=n(55937),t=["format"];function o(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}function m(k,V){k.prototype=Object.create(V.prototype),k.prototype.constructor=k,S(k,V)}function S(k,V){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},S(k,V)}var y=r.Countdown=function(k){function V(i){var c;return c=k.call(this,i)||this,c.timer=null,c.state={value:Math.max(i.timeLeft*100,0)},c}m(V,k);var p=V.prototype;return p.tick=function(){function i(){var c=Math.max(this.state.value-this.props.rate,0);c<=0&&clearInterval(this.timer),this.setState(function(s){return{value:c}})}return i}(),p.componentDidMount=function(){function i(){var c=this;this.timer=setInterval(function(){return c.tick()},this.props.rate)}return i}(),p.componentWillUnmount=function(){function i(){clearInterval(this.timer)}return i}(),p.componentDidUpdate=function(){function i(c){var s=this;this.props.current!==c.current&&this.setState(function(l){return{value:Math.max(s.props.timeLeft*100,0)}}),this.timer||this.componentDidMount()}return i}(),p.render=function(){function i(){var c=this.props,s=c.format,l=o(c,t),d=new Date(this.state.value).toISOString().slice(11,19);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({as:"span"},l,{children:s?s(this.state.value,d):d})))}return i}(),V}(e.Component);y.defaultProps={rate:1e3}},61940:function(L,r,n){"use strict";r.__esModule=!0,r.Dimmer=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,k){if(y==null)return{};var b={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;b[p]=y[p]}return b}var S=r.Dimmer=function(){function y(k){var b=k.className,p=k.children,i=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(b))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return y}()},13605:function(I,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** + */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.Dimmer=function(){function y(k){var V=k.className,p=k.children,i=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Dimmer"].concat(V))},i,{children:(0,e.createVNode)(1,"div","Dimmer__inner",p,0)})))}return y}()},13605:function(L,r,n){"use strict";r.__esModule=!0,r.Divider=void 0;var e=n(89005),a=n(35840);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.Divider=function(){function o(m){var S=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",S?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(I,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),m=["className","direction","fallback","frame","icon_state","movement"];function S(d,f){if(d==null)return{};var u={};for(var v in d)if({}.hasOwnProperty.call(d,v)){if(f.includes(v))continue;u[v]=d[v]}return u}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return f};var d,f={},u=Object.prototype,v=u.hasOwnProperty,V=Object.defineProperty||function(q,ae,J){q[ae]=J.value},C=typeof Symbol=="function"?Symbol:{},h=C.iterator||"@@iterator",g=C.asyncIterator||"@@asyncIterator",N=C.toStringTag||"@@toStringTag";function x(q,ae,J){return Object.defineProperty(q,ae,{value:J,enumerable:!0,configurable:!0,writable:!0}),q[ae]}try{x({},"")}catch(q){x=function(J,Y,Q){return J[Y]=Q}}function B(q,ae,J,Y){var Q=ae&&ae.prototype instanceof P?ae:P,Z=Object.create(Q.prototype),te=new ne(Y||[]);return V(Z,"_invoke",{value:oe(q,J,te)}),Z}function L(q,ae,J){try{return{type:"normal",arg:q.call(ae,J)}}catch(Y){return{type:"throw",arg:Y}}}f.wrap=B;var T="suspendedStart",A="suspendedYield",w="executing",E="completed",O={};function P(){}function M(){}function R(){}var F={};x(F,h,function(){return this});var _=Object.getPrototypeOf,U=_&&_(_(ce([])));U&&U!==u&&v.call(U,h)&&(F=U);var W=R.prototype=P.prototype=Object.create(F);function $(q){["next","throw","return"].forEach(function(ae){x(q,ae,function(J){return this._invoke(ae,J)})})}function G(q,ae){function J(Q,Z,te,se){var ye=L(q[Q],q,Z);if(ye.type!=="throw"){var fe=ye.arg,Ie=fe.value;return Ie&&typeof Ie=="object"&&v.call(Ie,"__await")?ae.resolve(Ie.__await).then(function(D){J("next",D,te,se)},function(D){J("throw",D,te,se)}):ae.resolve(Ie).then(function(D){fe.value=D,te(fe)},function(D){return J("throw",D,te,se)})}se(ye.arg)}var Y;V(this,"_invoke",{value:function(){function Q(Z,te){function se(){return new ae(function(ye,fe){J(Z,te,ye,fe)})}return Y=Y?Y.then(se,se):se()}return Q}()})}function oe(q,ae,J){var Y=T;return function(Q,Z){if(Y===w)throw Error("Generator is already running");if(Y===E){if(Q==="throw")throw Z;return{value:d,done:!0}}for(J.method=Q,J.arg=Z;;){var te=J.delegate;if(te){var se=X(te,J);if(se){if(se===O)continue;return se}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(Y===T)throw Y=E,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);Y=w;var ye=L(q,ae,J);if(ye.type==="normal"){if(Y=J.done?E:A,ye.arg===O)continue;return{value:ye.arg,done:J.done}}ye.type==="throw"&&(Y=E,J.method="throw",J.arg=ye.arg)}}}function X(q,ae){var J=ae.method,Y=q.iterator[J];if(Y===d)return ae.delegate=null,J==="throw"&&q.iterator.return&&(ae.method="return",ae.arg=d,X(q,ae),ae.method==="throw")||J!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+J+"' method")),O;var Q=L(Y,q.iterator,ae.arg);if(Q.type==="throw")return ae.method="throw",ae.arg=Q.arg,ae.delegate=null,O;var Z=Q.arg;return Z?Z.done?(ae[q.resultName]=Z.value,ae.next=q.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=d),ae.delegate=null,O):Z:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,O)}function ve(q){var ae={tryLoc:q[0]};1 in q&&(ae.catchLoc=q[1]),2 in q&&(ae.finallyLoc=q[2],ae.afterLoc=q[3]),this.tryEntries.push(ae)}function me(q){var ae=q.completion||{};ae.type="normal",delete ae.arg,q.completion=ae}function ne(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(ve,this),this.reset(!0)}function ce(q){if(q||q===""){var ae=q[h];if(ae)return ae.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var J=-1,Y=function(){function Q(){for(;++J=0;--Q){var Z=this.tryEntries[Q],te=Z.completion;if(Z.tryLoc==="root")return Y("end");if(Z.tryLoc<=this.prev){var se=v.call(Z,"catchLoc"),ye=v.call(Z,"finallyLoc");if(se&&ye){if(this.prev=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&v.call(Q,"finallyLoc")&&this.prev=0;--J){var Y=this.tryEntries[J];if(Y.finallyLoc===ae)return this.complete(Y.completion,Y.afterLoc),me(Y),O}}return q}(),catch:function(){function q(ae){for(var J=this.tryEntries.length-1;J>=0;--J){var Y=this.tryEntries[J];if(Y.tryLoc===ae){var Q=Y.completion;if(Q.type==="throw"){var Z=Q.arg;me(Y)}return Z}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(ae,J,Y){return this.delegate={iterator:ce(ae),resultName:J,nextLoc:Y},this.method==="next"&&(this.arg=d),O}return q}()},f}function k(d,f,u,v,V,C,h){try{var g=d[C](h),N=g.value}catch(x){return void u(x)}g.done?f(N):Promise.resolve(N).then(v,V)}function b(d){return function(){var f=this,u=arguments;return new Promise(function(v,V){var C=d.apply(f,u);function h(N){k(C,v,V,h,g,"next",N)}function g(N){k(C,v,V,h,g,"throw",N)}h(void 0)})}}function p(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,i(d,f)}function i(d,f){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,v){return u.__proto__=v,u},i(d,f)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),s,l=r.DmIcon=function(d){function f(v){var V;return V=d.call(this,v)||this,V.state={iconRef:""},V}p(f,d);var u=f.prototype;return u.fetchRefMap=function(){var v=b(y().mark(function(){function C(){var h,g;return y().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return h=x.sent,x.next=6,h.json();case 6:g=x.sent,s=g,this.setState({iconRef:g[this.props.icon]||""}),x.next=14;break;case 11:return x.prev=11,x.t0=x.catch(0),x.abrupt("return");case 14:case"end":return x.stop()}}return N}(),C,this,[[0,11]])}return C}()));function V(){return v.apply(this,arguments)}return V}(),u.componentDidMount=function(){function v(){s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap()}return v}(),u.componentDidUpdate=function(){function v(V){V.icon!==this.props.icon&&(s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap())}return v}(),u.render=function(){function v(){var V=this.props,C=V.className,h=V.direction,g=h===void 0?c.SOUTH:h,N=V.fallback,x=V.frame,B=x===void 0?1:x,L=V.icon_state,T=V.movement,A=T===void 0?!1:T,w=S(V,m),E=this.state.iconRef,O=E+"?state="+L+"&dir="+g+"&movement="+!!A+"&frame="+B;return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:O},w))):N||null}return v}(),f}(e.Component)},20342:function(I,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function m(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},S(p,i)}var y=400,k=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},b=r.DraggableControl=function(p){function i(s){var l;return l=p.call(this,s)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:s.value,value:s.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var f=l.props,u=f.value,v=f.dragMatrix,V=f.disabled,C=l.state.editing;C||V||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:u,dragging:!1,value:u,origin:k(d,v)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,g=h.dragging,N=h.value,x=l.props.onDrag;g&&x&&x(d,N)},l.props.updateRate||y),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var f,u=l.props,v=u.minValue,V=u.maxValue,C=u.step,h=u.dragMatrix,g=u.disabled;if(!g){var N=l.ref.offsetWidth/((V-v)/C),x=(f=l.props.stepPixelSize)!=null?f:N;typeof x=="function"&&(x=x(N)),l.setState(function(B){var L=Object.assign({},B),T=B.origin,A=k(d,h)-T;if(B.dragging){var w=Math.trunc(A/x);L.value=(0,a.clamp)(Math.floor(L.originalValue/C)*C+w*C,v,V)}else Math.abs(A)>4&&(L.dragging=!0);return L})}},l.handleDragEnd=function(d){var f=l.props,u=f.onChange,v=f.onDrag,V=l.state,C=V.dragging,h=V.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!C,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),C)l.suppressFlicker(),u&&u(d,h),v&&v(d,h);else if(l.inputRef){var g=l.inputRef.current;g.value=h;try{g.focus(),g.select()}catch(N){}}},l}m(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,v=d.value,V=d.suppressingFlicker,C=this.props,h=C.animated,g=C.value,N=C.unit,x=C.minValue,B=C.maxValue,L=C.format,T=C.onChange,A=C.onDrag,w=C.children,E=C.height,O=C.lineHeight,P=C.fontSize,M=C.disabled,R=g;(f||V)&&(R=v);var F=function(){function W($){return $+(N?" "+N:"")}return W}(),_=h&&!f&&!V&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:L,children:F})||F(L?L(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!u||M?"none":void 0,height:E,"line-height":O,"font-size":P},onBlur:function(){function W($){if(u){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),A&&A($,G)}}return W}(),onKeyDown:function(){function W($){if($.keyCode===13){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),A&&A($,G);return}if($.keyCode===27){l.setState({editing:!1});return}}return W}(),disabled:M},null,this.inputRef);return w({dragging:f,editing:u,value:g,displayValue:R,displayElement:_,inputElement:U,handleDragStart:this.handleDragStart})}return s}(),i}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(I,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),m=n(1331),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],k;function b(u,v){if(u==null)return{};var V={};for(var C in u)if({}.hasOwnProperty.call(u,C)){if(v.includes(C))continue;V[C]=u[C]}return V}function p(u,v){u.prototype=Object.create(v.prototype),u.prototype.constructor=u,i(u,v)}function i(u,v){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,C){return V.__proto__=C,V},i(u,v)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},s={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function u(){return null}return u}()},l="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",f=r.Dropdown=function(u){function v(C){var h;return h=u.call(this,C)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(v,u);var V=v.prototype;return V.getDOMNode=function(){function C(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return C}(),V.componentDidMount=function(){function C(){var h=this.getDOMNode()}return C}(),V.openMenu=function(){function C(){var h=v.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),v.renderedMenu=h);var g=this.getDOMNode();v.currentOpenMenu=g,h.scrollTop=0,h.style.width=this.props.menuWidth||g.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var N;(N=v.renderedMenu)==null||N.focus()},400),this.renderMenuContent()}return C}(),V.closeMenu=function(){function C(){v.currentOpenMenu===this.getDOMNode()&&(v.currentOpenMenu=void 0,v.renderedMenu.style.opacity="0",v.renderedMenu.style.pointerEvents="none")}return C}(),V.componentWillUnmount=function(){function C(){this.closeMenu(),this.setOpen(!1)}return C}(),V.renderMenuContent=function(){function C(){var h=this,g=v.renderedMenu;if(g){g.offsetHeight>200?g.className=d:g.className=l;var N=this.props.options,x=N===void 0?[]:N,B=x.map(function(T){var A,w;return typeof T=="string"?(w=T,A=T):T!==null&&(w=T.displayText,A=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===A&&"selected"]),w,0,{onClick:function(){function E(){h.setSelected(A)}return E}()},A)}),L=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,L,0),g,function(){var T=v.singletonPopper;T===void 0?(T=(0,a.createPopper)(v.virtualElement,g,Object.assign({},c,{placement:"bottom-start"})),v.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return C}(),V.setOpen=function(){function C(h){var g=this;this.setState(function(N){return Object.assign({},N,{open:h})}),h?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return C}(),V.setSelected=function(){function C(h){this.setState(function(g){return Object.assign({},g,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return C}(),V.render=function(){function C(){var h=this,g=this.props,N=g.icon,x=g.iconRotation,B=g.iconSpin,L=g.clipSelectedText,T=L===void 0?!0:L,A=g.color,w=A===void 0?"default":A,E=g.dropdownStyle,O=g.over,P=g.nochevron,M=g.width,R=g.onClick,F=g.onSelected,_=g.selected,U=g.disabled,W=g.displayText,$=b(g,S),G=$.className,oe=b($,y),X=O?!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--"+w,U&&"Button--disabled",G]),onClick:function(){function ve(me){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(me))}return ve}()},oe,{children:[N&&(0,e.createComponentVNode)(2,m.Icon,{name:N,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",W||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),P||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return C}(),v}(e.Component);k=f,f.renderedMenu=void 0,f.singletonPopper=void 0,f.currentOpenMenu=void 0,f.virtualElement={getBoundingClientRect:function(){function u(){var v,V;return(v=(V=k.currentOpenMenu)==null?void 0:V.getBoundingClientRect())!=null?v:s}return u}()}},39473:function(I,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline"],m=["className"],S=["className","style","grow","order","shrink","basis","align"],y=["className"];/** + */var t=r.Divider=function(){function o(m){var S=m.vertical,y=m.hidden;return(0,e.createVNode)(1,"div",(0,a.classes)(["Divider",y&&"Divider--hidden",S?"Divider--vertical":"Divider--horizontal"]))}return o}()},60218:function(L,r,n){"use strict";r.__esModule=!0,r.DmIcon=void 0;var e=n(89005),a=n(79140),t=n(46085),o=n(91225),m=["className","direction","fallback","frame","icon_state","movement"];function S(d,f){if(d==null)return{};var u={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;u[C]=d[C]}return u}function y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return f};var d,f={},u=Object.prototype,C=u.hasOwnProperty,b=Object.defineProperty||function(q,ae,J){q[ae]=J.value},v=typeof Symbol=="function"?Symbol:{},h=v.iterator||"@@iterator",g=v.asyncIterator||"@@asyncIterator",N=v.toStringTag||"@@toStringTag";function x(q,ae,J){return Object.defineProperty(q,ae,{value:J,enumerable:!0,configurable:!0,writable:!0}),q[ae]}try{x({},"")}catch(q){x=function(J,Y,Q){return J[Y]=Q}}function B(q,ae,J,Y){var Q=ae&&ae.prototype instanceof M?ae:M,Z=Object.create(Q.prototype),te=new ne(Y||[]);return b(Z,"_invoke",{value:oe(q,J,te)}),Z}function I(q,ae,J){try{return{type:"normal",arg:q.call(ae,J)}}catch(Y){return{type:"throw",arg:Y}}}f.wrap=B;var T="suspendedStart",E="suspendedYield",w="executing",A="completed",O={};function M(){}function P(){}function R(){}var F={};x(F,h,function(){return this});var _=Object.getPrototypeOf,U=_&&_(_(ce([])));U&&U!==u&&C.call(U,h)&&(F=U);var W=R.prototype=M.prototype=Object.create(F);function $(q){["next","throw","return"].forEach(function(ae){x(q,ae,function(J){return this._invoke(ae,J)})})}function G(q,ae){function J(Q,Z,te,se){var ye=I(q[Q],q,Z);if(ye.type!=="throw"){var fe=ye.arg,Le=fe.value;return Le&&typeof Le=="object"&&C.call(Le,"__await")?ae.resolve(Le.__await).then(function(D){J("next",D,te,se)},function(D){J("throw",D,te,se)}):ae.resolve(Le).then(function(D){fe.value=D,te(fe)},function(D){return J("throw",D,te,se)})}se(ye.arg)}var Y;b(this,"_invoke",{value:function(){function Q(Z,te){function se(){return new ae(function(ye,fe){J(Z,te,ye,fe)})}return Y=Y?Y.then(se,se):se()}return Q}()})}function oe(q,ae,J){var Y=T;return function(Q,Z){if(Y===w)throw Error("Generator is already running");if(Y===A){if(Q==="throw")throw Z;return{value:d,done:!0}}for(J.method=Q,J.arg=Z;;){var te=J.delegate;if(te){var se=X(te,J);if(se){if(se===O)continue;return se}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(Y===T)throw Y=A,J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);Y=w;var ye=I(q,ae,J);if(ye.type==="normal"){if(Y=J.done?A:E,ye.arg===O)continue;return{value:ye.arg,done:J.done}}ye.type==="throw"&&(Y=A,J.method="throw",J.arg=ye.arg)}}}function X(q,ae){var J=ae.method,Y=q.iterator[J];if(Y===d)return ae.delegate=null,J==="throw"&&q.iterator.return&&(ae.method="return",ae.arg=d,X(q,ae),ae.method==="throw")||J!=="return"&&(ae.method="throw",ae.arg=new TypeError("The iterator does not provide a '"+J+"' method")),O;var Q=I(Y,q.iterator,ae.arg);if(Q.type==="throw")return ae.method="throw",ae.arg=Q.arg,ae.delegate=null,O;var Z=Q.arg;return Z?Z.done?(ae[q.resultName]=Z.value,ae.next=q.nextLoc,ae.method!=="return"&&(ae.method="next",ae.arg=d),ae.delegate=null,O):Z:(ae.method="throw",ae.arg=new TypeError("iterator result is not an object"),ae.delegate=null,O)}function Ce(q){var ae={tryLoc:q[0]};1 in q&&(ae.catchLoc=q[1]),2 in q&&(ae.finallyLoc=q[2],ae.afterLoc=q[3]),this.tryEntries.push(ae)}function me(q){var ae=q.completion||{};ae.type="normal",delete ae.arg,q.completion=ae}function ne(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(Ce,this),this.reset(!0)}function ce(q){if(q||q===""){var ae=q[h];if(ae)return ae.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var J=-1,Y=function(){function Q(){for(;++J=0;--Q){var Z=this.tryEntries[Q],te=Z.completion;if(Z.tryLoc==="root")return Y("end");if(Z.tryLoc<=this.prev){var se=C.call(Z,"catchLoc"),ye=C.call(Z,"finallyLoc");if(se&&ye){if(this.prev=0;--Y){var Q=this.tryEntries[Y];if(Q.tryLoc<=this.prev&&C.call(Q,"finallyLoc")&&this.prev=0;--J){var Y=this.tryEntries[J];if(Y.finallyLoc===ae)return this.complete(Y.completion,Y.afterLoc),me(Y),O}}return q}(),catch:function(){function q(ae){for(var J=this.tryEntries.length-1;J>=0;--J){var Y=this.tryEntries[J];if(Y.tryLoc===ae){var Q=Y.completion;if(Q.type==="throw"){var Z=Q.arg;me(Y)}return Z}}throw Error("illegal catch attempt")}return q}(),delegateYield:function(){function q(ae,J,Y){return this.delegate={iterator:ce(ae),resultName:J,nextLoc:Y},this.method==="next"&&(this.arg=d),O}return q}()},f}function k(d,f,u,C,b,v,h){try{var g=d[v](h),N=g.value}catch(x){return void u(x)}g.done?f(N):Promise.resolve(N).then(C,b)}function V(d){return function(){var f=this,u=arguments;return new Promise(function(C,b){var v=d.apply(f,u);function h(N){k(v,C,b,h,g,"next",N)}function g(N){k(v,C,b,h,g,"throw",N)}h(void 0)})}}function p(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,i(d,f)}function i(d,f){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,C){return u.__proto__=C,u},i(d,f)}var c=function(d){return d[d.NORTH=1]="NORTH",d[d.SOUTH=2]="SOUTH",d[d.EAST=4]="EAST",d[d.WEST=8]="WEST",d[d.NORTHEAST=5]="NORTHEAST",d[d.NORTHWEST=9]="NORTHWEST",d[d.SOUTHEAST=6]="SOUTHEAST",d[d.SOUTHWEST=10]="SOUTHWEST",d}(c||{}),s,l=r.DmIcon=function(d){function f(C){var b;return b=d.call(this,C)||this,b.state={iconRef:""},b}p(f,d);var u=f.prototype;return u.fetchRefMap=function(){var C=V(y().mark(function(){function v(){var h,g;return y().wrap(function(){function N(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,(0,t.fetchRetry)((0,a.resolveAsset)("icon_ref_map.json"));case 3:return h=x.sent,x.next=6,h.json();case 6:g=x.sent,s=g,this.setState({iconRef:g[this.props.icon]||""}),x.next=14;break;case 11:return x.prev=11,x.t0=x.catch(0),x.abrupt("return");case 14:case"end":return x.stop()}}return N}(),v,this,[[0,11]])}return v}()));function b(){return C.apply(this,arguments)}return b}(),u.componentDidMount=function(){function C(){s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap()}return C}(),u.componentDidUpdate=function(){function C(b){b.icon!==this.props.icon&&(s?this.setState({iconRef:s[this.props.icon]}):this.fetchRefMap())}return C}(),u.render=function(){function C(){var b=this.props,v=b.className,h=b.direction,g=h===void 0?c.SOUTH:h,N=b.fallback,x=b.frame,B=x===void 0?1:x,I=b.icon_state,T=b.movement,E=T===void 0?!1:T,w=S(b,m),A=this.state.iconRef,O=A+"?state="+I+"&dir="+g+"&movement="+!!E+"&frame="+B;return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Image,Object.assign({fixErrors:!0,src:O},w))):N||null}return C}(),f}(e.Component)},20342:function(L,r,n){"use strict";r.__esModule=!0,r.DraggableControl=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474);function m(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,S(p,i)}function S(p,i){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},S(p,i)}var y=400,k=function(i,c){return i.screenX*c[0]+i.screenY*c[1]},V=r.DraggableControl=function(p){function i(s){var l;return l=p.call(this,s)||this,l.inputRef=(0,e.createRef)(),l.state={originalValue:s.value,value:s.value,dragging:!1,editing:!1,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var d=l.props.suppressFlicker;d>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},d))},l.handleDragStart=function(d){var f=l.props,u=f.value,C=f.dragMatrix,b=f.disabled,v=l.state.editing;v||b||(document.body.style["pointer-events"]="none",l.ref=d.currentTarget,l.setState({originalValue:u,dragging:!1,value:u,origin:k(d,C)}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var h=l.state,g=h.dragging,N=h.value,x=l.props.onDrag;g&&x&&x(d,N)},l.props.updateRate||y),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(d){var f,u=l.props,C=u.minValue,b=u.maxValue,v=u.step,h=u.dragMatrix,g=u.disabled;if(!g){var N=l.ref.offsetWidth/((b-C)/v),x=(f=l.props.stepPixelSize)!=null?f:N;typeof x=="function"&&(x=x(N)),l.setState(function(B){var I=Object.assign({},B),T=B.origin,E=k(d,h)-T;if(B.dragging){var w=Math.trunc(E/x);I.value=(0,a.clamp)(Math.floor(I.originalValue/v)*v+w*v,C,b)}else Math.abs(E)>4&&(I.dragging=!0);return I})}},l.handleDragEnd=function(d){var f=l.props,u=f.onChange,C=f.onDrag,b=l.state,v=b.dragging,h=b.value;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({originalValue:null,dragging:!1,editing:!v,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),v)l.suppressFlicker(),u&&u(d,h),C&&C(d,h);else if(l.inputRef){var g=l.inputRef.current;g.value=h;try{g.focus(),g.select()}catch(N){}}},l}m(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.animated,g=v.value,N=v.unit,x=v.minValue,B=v.maxValue,I=v.format,T=v.onChange,E=v.onDrag,w=v.children,A=v.height,O=v.lineHeight,M=v.fontSize,P=v.disabled,R=g;(f||b)&&(R=C);var F=function(){function W($){return $+(N?" "+N:"")}return W}(),_=h&&!f&&!b&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:R,format:I,children:F})||F(I?I(R):R),U=(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:!u||P?"none":void 0,height:A,"line-height":O,"font-size":M},onBlur:function(){function W($){if(u){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),E&&E($,G)}}return W}(),onKeyDown:function(){function W($){if($.keyCode===13){var G=(0,a.clamp)(parseFloat($.target.value),x,B);if(Number.isNaN(G)){l.setState({editing:!1});return}l.setState({editing:!1,value:G}),l.suppressFlicker(),T&&T($,G),E&&E($,G);return}if($.keyCode===27){l.setState({editing:!1});return}}return W}(),disabled:P},null,this.inputRef);return w({dragging:f,editing:u,value:g,displayValue:R,displayElement:_,inputElement:U,handleDragStart:this.handleDragStart})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,suppressFlicker:50,dragMatrix:[1,0]}},87099:function(L,r,n){"use strict";r.__esModule=!0,r.Dropdown=void 0;var e=n(89005),a=n(95996),t=n(35840),o=n(55937),m=n(1331),S=["icon","iconRotation","iconSpin","clipSelectedText","color","dropdownStyle","over","nochevron","width","onClick","onSelected","selected","disabled","displayText"],y=["className"],k;function V(u,C){if(u==null)return{};var b={};for(var v in u)if({}.hasOwnProperty.call(u,v)){if(C.includes(v))continue;b[v]=u[v]}return b}function p(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,i(u,C)}function i(u,C){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},i(u,C)}var c={placement:"left-start",modifiers:[{name:"eventListeners",enabled:!1}]},s={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function u(){return null}return u}()},l="Layout Dropdown__menu",d="Layout Dropdown__menu-scroll",f=r.Dropdown=function(u){function C(v){var h;return h=u.call(this,v)||this,h.menuContents=void 0,h.handleClick=function(){h.state.open&&h.setOpen(!1)},h.state={open:!1,selected:h.props.selected},h.menuContents=null,h}p(C,u);var b=C.prototype;return b.getDOMNode=function(){function v(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return v}(),b.componentDidMount=function(){function v(){var h=this.getDOMNode()}return v}(),b.openMenu=function(){function v(){var h=C.renderedMenu;h===void 0&&(h=document.createElement("div"),h.className=l,document.body.appendChild(h),C.renderedMenu=h);var g=this.getDOMNode();C.currentOpenMenu=g,h.scrollTop=0,h.style.width=this.props.menuWidth||g.offsetWidth+"px",h.style.opacity="1",h.style.pointerEvents="auto",setTimeout(function(){var N;(N=C.renderedMenu)==null||N.focus()},400),this.renderMenuContent()}return v}(),b.closeMenu=function(){function v(){C.currentOpenMenu===this.getDOMNode()&&(C.currentOpenMenu=void 0,C.renderedMenu.style.opacity="0",C.renderedMenu.style.pointerEvents="none")}return v}(),b.componentWillUnmount=function(){function v(){this.closeMenu(),this.setOpen(!1)}return v}(),b.renderMenuContent=function(){function v(){var h=this,g=C.renderedMenu;if(g){g.offsetHeight>200?g.className=d:g.className=l;var N=this.props.options,x=N===void 0?[]:N,B=x.map(function(T){var E,w;return typeof T=="string"?(w=T,E=T):T!==null&&(w=T.displayText,E=T.value),(0,e.createVNode)(1,"div",(0,t.classes)(["Dropdown__menuentry",h.state.selected===E&&"selected"]),w,0,{onClick:function(){function A(){h.setSelected(E)}return A}()},E)}),I=B.length?B:"No Options Found";(0,e.render)((0,e.createVNode)(1,"div",null,I,0),g,function(){var T=C.singletonPopper;T===void 0?(T=(0,a.createPopper)(C.virtualElement,g,Object.assign({},c,{placement:"bottom-start"})),C.singletonPopper=T):(T.setOptions(Object.assign({},c,{placement:"bottom-start"})),T.update())},this.context)}}return v}(),b.setOpen=function(){function v(h){var g=this;this.setState(function(N){return Object.assign({},N,{open:h})}),h?setTimeout(function(){g.openMenu(),window.addEventListener("click",g.handleClick)}):(this.closeMenu(),window.removeEventListener("click",this.handleClick))}return v}(),b.setSelected=function(){function v(h){this.setState(function(g){return Object.assign({},g,{selected:h})}),this.setOpen(!1),this.props.onSelected&&this.props.onSelected(h)}return v}(),b.render=function(){function v(){var h=this,g=this.props,N=g.icon,x=g.iconRotation,B=g.iconSpin,I=g.clipSelectedText,T=I===void 0?!0:I,E=g.color,w=E===void 0?"default":E,A=g.dropdownStyle,O=g.over,M=g.nochevron,P=g.width,R=g.onClick,F=g.onSelected,_=g.selected,U=g.disabled,W=g.displayText,$=V(g,S),G=$.className,oe=V($,y),X=O?!this.state.open:this.state.open;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({width:P,className:(0,t.classes)(["Dropdown__control","Button","Button--color--"+w,U&&"Button--disabled",G]),onClick:function(){function Ce(me){U&&!h.state.open||(h.setOpen(!h.state.open),R&&R(me))}return Ce}()},oe,{children:[N&&(0,e.createComponentVNode)(2,m.Icon,{name:N,rotation:x,spin:B,mr:1}),(0,e.createVNode)(1,"span","Dropdown__selected-text",W||this.state.selected,0,{style:{overflow:T?"hidden":"visible"}}),M||(0,e.createVNode)(1,"span","Dropdown__arrow-button",(0,e.createComponentVNode)(2,m.Icon,{name:X?"chevron-up":"chevron-down"}),2)]})))}return v}(),C}(e.Component);k=f,f.renderedMenu=void 0,f.singletonPopper=void 0,f.currentOpenMenu=void 0,f.virtualElement={getBoundingClientRect:function(){function u(){var C,b;return(C=(b=k.currentOpenMenu)==null?void 0:b.getBoundingClientRect())!=null?C:s}return u}()}},39473:function(L,r,n){"use strict";r.__esModule=!0,r.computeFlexProps=r.computeFlexItemProps=r.computeFlexItemClassName=r.computeFlexClassName=r.Flex=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","direction","wrap","align","justify","inline"],m=["className"],S=["className","style","grow","order","shrink","basis","align"],y=["className"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(d,f){if(d==null)return{};var u={};for(var v in d)if({}.hasOwnProperty.call(d,v)){if(f.includes(v))continue;u[v]=d[v]}return u}var b=r.computeFlexClassName=function(){function d(f){return(0,a.classes)(["Flex",f.inline&&"Flex--inline",(0,t.computeBoxClassName)(f)])}return d}(),p=r.computeFlexProps=function(){function d(f){var u=f.className,v=f.direction,V=f.wrap,C=f.align,h=f.justify,g=f.inline,N=k(f,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N.style,{"flex-direction":v,"flex-wrap":V===!0?"wrap":V,"align-items":C,"justify-content":h})},N))}return d}(),i=r.Flex=function(){function d(f){var u=f.className,v=k(f,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,b(v)]),null,1,Object.assign({},p(v))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(f){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(f)])}return d}(),s=r.computeFlexItemProps=function(){function d(f){var u=f.className,v=f.style,V=f.grow,C=f.order,h=f.shrink,g=f.basis,N=g===void 0?f.width:g,x=f.align,B=k(f,S);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},v,{"flex-grow":V!==void 0&&Number(V),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(N),order:C,"align-self":x})},B))}return d}(),l=function(f){var u=f.className,v=k(f,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,c(f)]),null,1,Object.assign({},s(v))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(I,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],m=["size","style"];/** + */function k(d,f){if(d==null)return{};var u={};for(var C in d)if({}.hasOwnProperty.call(d,C)){if(f.includes(C))continue;u[C]=d[C]}return u}var V=r.computeFlexClassName=function(){function d(f){return(0,a.classes)(["Flex",f.inline&&"Flex--inline",(0,t.computeBoxClassName)(f)])}return d}(),p=r.computeFlexProps=function(){function d(f){var u=f.className,C=f.direction,b=f.wrap,v=f.align,h=f.justify,g=f.inline,N=k(f,o);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},N.style,{"flex-direction":C,"flex-wrap":b===!0?"wrap":b,"align-items":v,"justify-content":h})},N))}return d}(),i=r.Flex=function(){function d(f){var u=f.className,C=k(f,m);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,V(C)]),null,1,Object.assign({},p(C))))}return d}();i.defaultHooks=a.pureComponentHooks;var c=r.computeFlexItemClassName=function(){function d(f){return(0,a.classes)(["Flex__item",(0,t.computeBoxClassName)(f)])}return d}(),s=r.computeFlexItemProps=function(){function d(f){var u=f.className,C=f.style,b=f.grow,v=f.order,h=f.shrink,g=f.basis,N=g===void 0?f.width:g,x=f.align,B=k(f,S);return(0,t.computeBoxProps)(Object.assign({style:Object.assign({},C,{"flex-grow":b!==void 0&&Number(b),"flex-shrink":h!==void 0&&Number(h),"flex-basis":(0,t.unit)(N),order:v,"align-self":x})},B))}return d}(),l=function(f){var u=f.className,C=k(f,y);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)([u,c(f)]),null,1,Object.assign({},s(C))))};l.defaultHooks=a.pureComponentHooks,i.Item=l},79646:function(L,r,n){"use strict";r.__esModule=!0,r.GridColumn=r.Grid=void 0;var e=n(89005),a=n(36352),t=n(35840),o=["children"],m=["size","style"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(b,p){if(b==null)return{};var i={};for(var c in b)if({}.hasOwnProperty.call(b,c)){if(p.includes(c))continue;i[c]=b[c]}return i}var y=r.Grid=function(){function b(p){var i=p.children,c=S(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return b}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function b(p){var i=p.size,c=i===void 0?1:i,s=p.style,l=S(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},s)},l)))}return b}();y.defaultHooks=t.pureComponentHooks,y.Column=k},1331:function(I,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** + */function S(V,p){if(V==null)return{};var i={};for(var c in V)if({}.hasOwnProperty.call(V,c)){if(p.includes(c))continue;i[c]=V[c]}return i}var y=r.Grid=function(){function V(p){var i=p.children,c=S(p,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table,Object.assign({},c,{children:(0,e.createComponentVNode)(2,a.Table.Row,{children:i})})))}return V}();y.defaultHooks=t.pureComponentHooks;var k=r.GridColumn=function(){function V(p){var i=p.size,c=i===void 0?1:i,s=p.style,l=S(p,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Table.Cell,Object.assign({style:Object.assign({width:c+"%"},s)},l)))}return V}();y.defaultHooks=t.pureComponentHooks,y.Column=k},1331:function(L,r,n){"use strict";r.__esModule=!0,r.IconStack=r.Icon=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["name","size","spin","className","style","rotation","inverse"],m=["className","style","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y=/-o$/,k=r.Icon=function(){function p(i){var c=i.name,s=i.size,l=i.spin,d=i.className,f=i.style,u=f===void 0?{}:f,v=i.rotation,V=i.inverse,C=S(i,o);s&&(u["font-size"]=s*100+"%"),typeof v=="number"&&(u.transform="rotate("+v+"deg)");var h=y.test(c),g=c.replace(y,"");return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"i",className:(0,a.classes)(["Icon",d,h?"far":"fas","fa-"+g,l&&"fa-spin"]),style:u},C)))}return p}();k.defaultHooks=a.pureComponentHooks;var b=r.IconStack=function(){function p(i){var c=i.className,s=i.style,l=s===void 0?{}:s,d=i.children,f=S(i,m);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({as:"span",class:(0,a.classes)(["IconStack",c]),style:l},f,{children:d})))}return p}();k.Stack=b},91225:function(I,r,n){"use strict";r.__esModule=!0,r.Image=void 0;var e=n(89005),a=n(55937),t=["fixBlur","fixErrors","objectFit","src"];function o(b,p){if(b==null)return{};var i={};for(var c in b)if({}.hasOwnProperty.call(b,c)){if(p.includes(c))continue;i[c]=b[c]}return i}function m(b,p){b.prototype=Object.create(p.prototype),b.prototype.constructor=b,S(b,p)}function S(b,p){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},S(b,p)}var y=5,k=r.Image=function(b){function p(){for(var c,s=arguments.length,l=new Array(s),d=0;d0;d&&(l=c.containerRef)!=null&&l.current?c.props.onMove(S(c.containerRef.current,s)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(s){var l=s.which||s.keyCode;l<37||l>40||(s.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(b,k);var p=b.prototype;return p.toggleDocumentEvents=function(){function i(c){var s,l=(s=this.containerRef)==null?void 0:s.current,d=m(l),f=c?d.addEventListener:d.removeEventListener;f("mousemove",this.handleMove),f("mouseup",this.handleMoveEnd)}return i}(),p.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),p.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),p.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),b}(e.Component)},76334:function(I,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),m=n(20342),S=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** +*/var p=r.toInputValue=function(){function c(s){return typeof s!="number"&&typeof s!="string"?"":String(s)}return c}(),i=r.Input=function(c){function s(){var d;return d=c.call(this)||this,d.inputRef=(0,e.createRef)(),d.state={editing:!1},d.handleInput=function(f){var u=d.state.editing,C=d.props.onInput;u||d.setEditing(!0),C&&C(f,f.target.value)},d.handleFocus=function(f){var u=d.state.editing;u||d.setEditing(!0)},d.handleBlur=function(f){var u=d.state.editing,C=d.props.onChange;u&&(d.setEditing(!1),C&&C(f,f.target.value))},d.handleKeyDown=function(f){var u=d.props,C=u.onInput,b=u.onChange,v=u.onEnter;if(f.keyCode===o.KEY_ENTER){d.setEditing(!1),b&&b(f,f.target.value),C&&C(f,f.target.value),v&&v(f,f.target.value),d.props.selfClear?f.target.value="":f.target.blur();return}if(f.keyCode===o.KEY_ESCAPE){d.setEditing(!1),f.target.value=p(d.props.value),f.target.blur();return}},d}k(s,c);var l=s.prototype;return l.componentDidMount=function(){function d(){var f=this,u=this.props.value,C=this.inputRef.current;C&&(C.value=p(u),C.selectionStart=0,C.selectionEnd=C.value.length),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),f.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(f,u){var C=this.state.editing,b=f.value,v=this.props.value,h=this.inputRef.current;h&&!C&&b!==v&&(h.value=p(v))}return d}(),l.setEditing=function(){function d(f){this.setState({editing:f})}return d}(),l.render=function(){function d(){var f=this.props,u=f.selfClear,C=f.onInput,b=f.onChange,v=f.onEnter,h=f.value,g=f.maxLength,N=f.placeholder,x=f.autofocus,B=f.disabled,I=f.multiline,T=f.cols,E=T===void 0?32:T,w=f.rows,A=w===void 0?4:w,O=y(f,m),M=O.className,P=O.fluid,R=O.monospace,F=y(O,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["Input",P&&"Input--fluid",R&&"Input--monospace",B&&"Input--disabled",M])},F,{children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),I?(0,e.createVNode)(128,"textarea","Input__textarea",null,1,{placeholder:N,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:g,cols:E,rows:A,disabled:B},null,this.inputRef):(0,e.createVNode)(64,"input","Input__input",null,1,{placeholder:N,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:g,disabled:B},null,this.inputRef)]})))}return d}(),s}(e.Component)},4454:function(L,r,n){"use strict";r.__esModule=!0,r.Interactive=void 0;var e=n(89005),a=n(44879);function t(k,V){k.prototype=Object.create(V.prototype),k.prototype.constructor=k,o(k,V)}function o(k,V){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,i){return p.__proto__=i,p},o(k,V)}var m=function(V){return V&&V.ownerDocument.defaultView||self},S=function(V,p){var i=V.getBoundingClientRect(),c=p;return{left:(0,a.clamp)((c.pageX-(i.left+m(V).pageXOffset))/i.width,0,1),top:(0,a.clamp)((c.pageY-(i.top+m(V).pageYOffset))/i.height,0,1)}},y=r.Interactive=function(k){function V(i){var c;return c=k.call(this)||this,c.containerRef=void 0,c.props=void 0,c.handleMoveStart=function(s){var l,d=(l=c.containerRef)==null?void 0:l.current;d&&(s.preventDefault(),d.focus(),c.props.onMove(S(d,s)),c.toggleDocumentEvents(!0))},c.handleMove=function(s){var l;s.preventDefault();var d=s.buttons>0;d&&(l=c.containerRef)!=null&&l.current?c.props.onMove(S(c.containerRef.current,s)):c.toggleDocumentEvents(!1)},c.handleMoveEnd=function(){c.toggleDocumentEvents(!1)},c.handleKeyDown=function(s){var l=s.which||s.keyCode;l<37||l>40||(s.preventDefault(),c.props.onKey({left:l===39?.05:l===37?-.05:0,top:l===40?.05:l===38?-.05:0}))},c.props=i,c.containerRef=(0,e.createRef)(),c}t(V,k);var p=V.prototype;return p.toggleDocumentEvents=function(){function i(c){var s,l=(s=this.containerRef)==null?void 0:s.current,d=m(l),f=c?d.addEventListener:d.removeEventListener;f("mousemove",this.handleMove),f("mouseup",this.handleMoveEnd)}return i}(),p.componentDidMount=function(){function i(){this.toggleDocumentEvents(!0)}return i}(),p.componentWillUnmount=function(){function i(){this.toggleDocumentEvents(!1)}return i}(),p.render=function(){function i(){return(0,e.normalizeProps)((0,e.createVNode)(1,"div","react-colorful__interactive",this.props.children,0,Object.assign({},this.props,{style:this.props.style,onMouseDown:this.handleMoveStart,onKeyDown:this.handleKeyDown,tabIndex:0,role:"slider"}),null,this.containerRef))}return i}(),V}(e.Component)},76334:function(L,r,n){"use strict";r.__esModule=!0,r.Knob=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(55937),m=n(20342),S=n(59263),y=["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children","popUpPosition"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function k(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var b=r.Knob=function(){function p(i){var c=i.animated,s=i.format,l=i.maxValue,d=i.minValue,f=i.onChange,u=i.onDrag,v=i.step,V=i.stepPixelSize,C=i.suppressFlicker,h=i.unit,g=i.value,N=i.className,x=i.style,B=i.fillValue,L=i.color,T=i.ranges,A=T===void 0?{}:T,w=i.size,E=w===void 0?1:w,O=i.bipolar,P=i.children,M=i.popUpPosition,R=k(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:s,maxValue:l,minValue:d,onChange:f,onDrag:u,step:v,stepPixelSize:V,suppressFlicker:C,unit:h,value:g},{children:function(){function F(_){var U=_.dragging,W=_.editing,$=_.value,G=_.displayValue,oe=_.displayElement,X=_.inputElement,ve=_.handleDragStart,me=(0,a.scale)(B!=null?B:G,d,l),ne=(0,a.scale)(G,d,l),ce=L||(0,a.keyOfMatchingRange)(B!=null?B:$,A)||"default",q=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+ce,O&&"Knob--bipolar",N,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",M&&"Knob__popupValue--"+M]),oe,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((O?2.75:2)-me*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":E+"em"},x)},R)),{onMouseDown:ve})))}return F}()})))}return p}()},78621:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** + */function k(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var V=r.Knob=function(){function p(i){var c=i.animated,s=i.format,l=i.maxValue,d=i.minValue,f=i.onChange,u=i.onDrag,C=i.step,b=i.stepPixelSize,v=i.suppressFlicker,h=i.unit,g=i.value,N=i.className,x=i.style,B=i.fillValue,I=i.color,T=i.ranges,E=T===void 0?{}:T,w=i.size,A=w===void 0?1:w,O=i.bipolar,M=i.children,P=i.popUpPosition,R=k(i,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:s,maxValue:l,minValue:d,onChange:f,onDrag:u,step:C,stepPixelSize:b,suppressFlicker:v,unit:h,value:g},{children:function(){function F(_){var U=_.dragging,W=_.editing,$=_.value,G=_.displayValue,oe=_.displayElement,X=_.inputElement,Ce=_.handleDragStart,me=(0,a.scale)(B!=null?B:G,d,l),ne=(0,a.scale)(G,d,l),ce=I||(0,a.keyOfMatchingRange)(B!=null?B:$,E)||"default",q=(ne-.5)*270;return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,t.classes)(["Knob","Knob--color--"+ce,O&&"Knob--bipolar",N,(0,o.computeBoxClassName)(R)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+q+"deg)"}}),2),U&&(0,e.createVNode)(1,"div",(0,t.classes)(["Knob__popupValue",P&&"Knob__popupValue--"+P]),oe,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":((O?2.75:2)-me*1.5)*Math.PI*50},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),X],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":A+"em"},x)},R)),{onMouseDown:Ce})))}return F}()})))}return p}()},78621:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledControls=void 0;var e=n(89005),a=n(39473),t=["children"],o=["label","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(k,b){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(b.includes(i))continue;p[i]=k[i]}return p}var S=r.LabeledControls=function(){function k(b){var p=b.children,i=m(b,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return k}(),y=function(b){var p=b.label,i=b.children,c=m(b,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};S.Item=y},29319:function(I,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),m=n(62147);/** + */function m(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}var S=r.LabeledControls=function(){function k(V){var p=V.children,i=m(V,t);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({mx:-.5,align:"stretch",justify:"space-between"},i,{children:p})))}return k}(),y=function(V){var p=V.label,i=V.children,c=m(V,o);return(0,e.createComponentVNode)(2,a.Flex.Item,{mx:1,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Flex,Object.assign({minWidth:"52px",height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},c,{children:[(0,e.createComponentVNode)(2,a.Flex.Item),(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),(0,e.createComponentVNode)(2,a.Flex.Item,{color:"label",children:p})]})))})};S.Item=y},29319:function(L,r,n){"use strict";r.__esModule=!0,r.LabeledList=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(13605),m=n(62147);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var S=r.LabeledList=function(){function b(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return b}();S.defaultHooks=a.pureComponentHooks;var y=function(p){var i=p.className,c=p.label,s=p.labelColor,l=s===void 0?"label":s,d=p.color,f=p.textAlign,u=p.buttons,v=p.tooltip,V=p.content,C=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:f,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[V,C]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0);return v&&(h=(0,e.createComponentVNode)(2,m.Tooltip,{content:v,children:h})),h};y.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};k.defaultHooks=a.pureComponentHooks,S.Item=y,S.Divider=k},36077:function(I,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),m=["className","children","onEnter"];/** + */var S=r.LabeledList=function(){function V(p){var i=p.children;return(0,e.createVNode)(1,"table","LabeledList",i,0)}return V}();S.defaultHooks=a.pureComponentHooks;var y=function(p){var i=p.className,c=p.label,s=p.labelColor,l=s===void 0?"label":s,d=p.color,f=p.textAlign,u=p.buttons,C=p.tooltip,b=p.content,v=p.children,h=(0,e.createVNode)(1,"tr",(0,a.classes)(["LabeledList__row",i]),[(0,e.createComponentVNode)(2,t.Box,{as:"td",color:l,className:(0,a.classes)(["LabeledList__cell","LabeledList__label"]),children:c?c+":":null}),(0,e.createComponentVNode)(2,t.Box,{as:"td",color:d,textAlign:f,className:(0,a.classes)(["LabeledList__cell","LabeledList__content"]),colSpan:u?void 0:2,children:[b,v]}),u&&(0,e.createVNode)(1,"td","LabeledList__cell LabeledList__buttons",u,0)],0);return C&&(h=(0,e.createComponentVNode)(2,m.Tooltip,{content:C,children:h})),h};y.defaultHooks=a.pureComponentHooks;var k=function(p){var i=p.size?(0,t.unit)(Math.max(0,p.size-1)):0;return(0,e.createVNode)(1,"tr","LabeledList__row",(0,e.createVNode)(1,"td",null,(0,e.createComponentVNode)(2,o.Divider),2,{colSpan:3,style:{"padding-top":i,"padding-bottom":i}}),2)};k.defaultHooks=a.pureComponentHooks,S.Item=y,S.Divider=k},36077:function(L,r,n){"use strict";r.__esModule=!0,r.Modal=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(61940),m=["className","children","onEnter"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function S(k,b){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(b.includes(i))continue;p[i]=k[i]}return p}var y=r.Modal=function(){function k(b){var p=b.className,i=b.children,c=b.onEnter,s=S(b,m),l;return c&&(l=function(){function d(f){f.keyCode===13&&c(f)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(s)]),i,0,Object.assign({},(0,t.computeBoxProps)(s))))})}return k}()},73280:function(I,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),m=n(79911),S=n(79140);function y(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,k(l,d)}function k(l,d){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,u){return f.__proto__=u,f},k(l,d)}var b=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(l){function d(u){var v;v=l.call(this,u)||this;var V=window.innerWidth/2-256,C=window.innerHeight/2-256;return v.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},v.handleDragStart=function(h){v.ref=h.target,v.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",v.handleDragMove),document.addEventListener("mouseup",v.handleDragEnd),b(h)},v.handleDragMove=function(h){v.setState(function(g){var N=Object.assign({},g),x=h.screenX-N.originX,B=h.screenY-N.originY;return g.dragging?(N.offsetX+=x,N.offsetY+=B,N.originX=h.screenX,N.originY=h.screenY):N.dragging=!0,N}),b(h)},v.handleDragEnd=function(h){v.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",v.handleDragMove),document.removeEventListener("mouseup",v.handleDragEnd),b(h)},v.handleZoom=function(h,g){v.setState(function(N){var x=Math.min(Math.max(g,1),8),B=(x-N.zoom)*1.5;return N.zoom=x,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,u.onZoom&&u.onZoom(N.zoom),N})},v.handleZChange=function(h){u.setZCurrent(h)},v}y(d,l);var f=d.prototype;return f.render=function(){function u(){var v=(0,t.useBackend)(this.context),V=v.config,C=this.state,h=C.dragging,g=C.offsetX,N=C.offsetY,x=C.zoom,B=x===void 0?1:x,L=this.props.children,T=V.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",A=510*B+"px",w={width:A,height:A,"margin-top":N+"px","margin-left":g+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},E={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:w,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)(T),style:E}),(0,e.createComponentVNode)(2,a.Box,{children:L})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,s,{z_current:this.props.z_current,z_levels:this.props.zLevels,z_names:this.props.zNames,onZChange:this.handleZChange})]})}return u}(),d}(e.Component),i=function(d,f){var u=d.x,v=d.y,V=d.z,C=d.z_current,h=d.zoom,g=h===void 0?1:h,N=d.icon,x=d.tooltip,B=d.color,L=d.bordered,T=d.onClick;if(C!==V)return null;var A=u*2*g-g-3,w=v*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:L?"NanoMap__marker__bordered":"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:A+"px",onClick:T,children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(d,f){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function u(v){return v+"x"}return u}(),value:d.zoom,onDrag:function(){function u(v,V){return d.onZoom(v,V)}return u}()})})})})};p.Zoomer=c;var s=function(d){if(d.z_levels.length!==1)return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zlevel",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Z-level",children:(0,e.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:d.z_names[d.z_levels.indexOf(d.z_current)],options:d.z_names,onSelected:function(){function f(u){return d.onZChange(d.z_levels[d.z_names.indexOf(u)])}return f}()})})})})}},74733:function(I,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** + */function S(k,V){if(k==null)return{};var p={};for(var i in k)if({}.hasOwnProperty.call(k,i)){if(V.includes(i))continue;p[i]=k[i]}return p}var y=r.Modal=function(){function k(V){var p=V.className,i=V.children,c=V.onEnter,s=S(V,m),l;return c&&(l=function(){function d(f){f.keyCode===13&&c(f)}return d}()),(0,e.createComponentVNode)(2,o.Dimmer,{onKeyDown:l,children:(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Modal",p,(0,t.computeBoxClassName)(s)]),i,0,Object.assign({},(0,t.computeBoxProps)(s))))})}return k}()},73280:function(L,r,n){"use strict";r.__esModule=!0,r.NanoMap=void 0;var e=n(89005),a=n(36036),t=n(72253),o=n(29319),m=n(79911),S=n(79140);function y(l,d){l.prototype=Object.create(d.prototype),l.prototype.constructor=l,k(l,d)}function k(l,d){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(f,u){return f.__proto__=u,f},k(l,d)}var V=function(d){return d.stopPropagation&&d.stopPropagation(),d.preventDefault&&d.preventDefault(),d.cancelBubble=!0,d.returnValue=!1,!1},p=r.NanoMap=function(l){function d(u){var C;C=l.call(this,u)||this;var b=window.innerWidth/2-256,v=window.innerHeight/2-256;return C.state={offsetX:128,offsetY:48,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},C.handleDragStart=function(h){C.ref=h.target,C.setState({dragging:!1,originX:h.screenX,originY:h.screenY}),document.addEventListener("mousemove",C.handleDragMove),document.addEventListener("mouseup",C.handleDragEnd),V(h)},C.handleDragMove=function(h){C.setState(function(g){var N=Object.assign({},g),x=h.screenX-N.originX,B=h.screenY-N.originY;return g.dragging?(N.offsetX+=x,N.offsetY+=B,N.originX=h.screenX,N.originY=h.screenY):N.dragging=!0,N}),V(h)},C.handleDragEnd=function(h){C.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",C.handleDragMove),document.removeEventListener("mouseup",C.handleDragEnd),V(h)},C.handleZoom=function(h,g){C.setState(function(N){var x=Math.min(Math.max(g,1),8),B=(x-N.zoom)*1.5;return N.zoom=x,N.offsetX=N.offsetX-262*B,N.offsetY=N.offsetY-256*B,u.onZoom&&u.onZoom(N.zoom),N})},C.handleZChange=function(h){u.setZCurrent(h)},C}y(d,l);var f=d.prototype;return f.render=function(){function u(){var C=(0,t.useBackend)(this.context),b=C.config,v=this.state,h=v.dragging,g=v.offsetX,N=v.offsetY,x=v.zoom,B=x===void 0?1:x,I=this.props.children,T=b.map+"_nanomap_z"+(this.props.zLevels.indexOf(this.props.z_current)+1)+".png",E=510*B+"px",w={width:E,height:E,"margin-top":N+"px","margin-left":g+"px",overflow:"hidden",position:"relative","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:h?"move":"auto"},A={width:"100%",height:"100%",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"};return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__container",children:[(0,e.createComponentVNode)(2,a.Box,{style:w,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,S.resolveAsset)(T),style:A}),(0,e.createComponentVNode)(2,a.Box,{children:I})]}),(0,e.createComponentVNode)(2,c,{zoom:B,onZoom:this.handleZoom}),(0,e.createComponentVNode)(2,s,{z_current:this.props.z_current,z_levels:this.props.zLevels,z_names:this.props.zNames,onZChange:this.handleZChange})]})}return u}(),d}(e.Component),i=function(d,f){var u=d.x,C=d.y,b=d.z,v=d.z_current,h=d.zoom,g=h===void 0?1:h,N=d.icon,x=d.tooltip,B=d.color,I=d.bordered,T=d.onClick;if(v!==b)return null;var E=u*2*g-g-3,w=C*2*g-g-3;return(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,a.Tooltip,{content:x,children:(0,e.createComponentVNode)(2,a.Box,{position:"absolute",className:I?"NanoMap__marker__bordered":"NanoMap__marker",lineHeight:"0",bottom:w+"px",left:E+"px",onClick:T,children:(0,e.createComponentVNode)(2,a.Icon,{name:N,color:B,fontSize:"6px"})})}),2)};p.Marker=i;var c=function(d,f){return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zoomer",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Zoom",children:(0,e.createComponentVNode)(2,m.Slider,{minValue:1,maxValue:8,stepPixelSize:10,format:function(){function u(C){return C+"x"}return u}(),value:d.zoom,onDrag:function(){function u(C,b){return d.onZoom(C,b)}return u}()})})})})};p.Zoomer=c;var s=function(d){if(d.z_levels.length!==1)return(0,e.createComponentVNode)(2,a.Box,{className:"NanoMap__zlevel",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Z-level",children:(0,e.createComponentVNode)(2,a.Dropdown,{width:"100%",selected:d.z_names[d.z_levels.indexOf(d.z_current)],options:d.z_names,onSelected:function(){function f(u){return d.onZChange(d.z_levels[d.z_names.indexOf(u)])}return f}()})})})})}},74733:function(L,r,n){"use strict";r.__esModule=!0,r.NoticeBox=void 0;var e=n(89005),a=n(35840),t=n(55937),o=["className","color","info","warning","success","danger"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(y,k){if(y==null)return{};var b={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;b[p]=y[p]}return b}var S=r.NoticeBox=function(){function y(k){var b=k.className,p=k.color,i=k.info,c=k.warning,s=k.success,l=k.danger,d=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",s&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",b])},d)))}return y}();S.defaultHooks=a.pureComponentHooks},59263:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),m=n(55937);function S(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,y(p,i)}function y(p,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},y(p,i)}/** + */function m(y,k){if(y==null)return{};var V={};for(var p in y)if({}.hasOwnProperty.call(y,p)){if(k.includes(p))continue;V[p]=y[p]}return V}var S=r.NoticeBox=function(){function y(k){var V=k.className,p=k.color,i=k.info,c=k.warning,s=k.success,l=k.danger,d=m(k,o);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["NoticeBox",p&&"NoticeBox--color--"+p,i&&"NoticeBox--type--info",s&&"NoticeBox--type--success",l&&"NoticeBox--type--danger",V])},d)))}return y}();S.defaultHooks=a.pureComponentHooks},59263:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInput=void 0;var e=n(89005),a=n(44879),t=n(35840),o=n(9474),m=n(55937);function S(p,i){p.prototype=Object.create(i.prototype),p.prototype.constructor=p,y(p,i)}function y(p,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,s){return c.__proto__=s,c},y(p,i)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var k=400,b=r.NumberInput=function(p){function i(s){var l;l=p.call(this,s)||this;var d=s.value;return l.inputRef=(0,e.createRef)(),l.state={value:d,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},l.flickerTimer=null,l.suppressFlicker=function(){var f=l.props.suppressFlicker;f>0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},f))},l.handleDragStart=function(f){var u=l.props.value,v=l.state.editing;v||(document.body.style["pointer-events"]="none",l.ref=f.target,l.setState({dragging:!1,origin:f.screenY,value:u,internalValue:u}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var V=l.state,C=V.dragging,h=V.value,g=l.props.onDrag;C&&g&&g(f,h)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(f){var u=l.props,v=u.minValue,V=u.maxValue,C=u.step,h=u.stepPixelSize;l.setState(function(g){var N=Object.assign({},g),x=N.origin-f.screenY;if(g.dragging){var B=Number.isFinite(v)?v%C:0;N.internalValue=(0,a.clamp)(N.internalValue+x*C/h,v-C,V+C),N.value=(0,a.clamp)(N.internalValue-N.internalValue%C+B,v,V),N.origin=f.screenY}else Math.abs(x)>4&&(N.dragging=!0);return N})},l.handleDragEnd=function(f){var u=l.props,v=u.onChange,V=u.onDrag,C=l.state,h=C.dragging,g=C.value,N=C.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),v&&v(f,g),V&&V(f,g);else if(l.inputRef){var x=l.inputRef.current;x.value=N;try{x.focus(),x.select()}catch(B){}}},l}S(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,v=d.value,V=d.suppressingFlicker,C=this.props,h=C.className,g=C.fluid,N=C.animated,x=C.value,B=C.unit,L=C.minValue,T=C.maxValue,A=C.height,w=C.width,E=C.lineHeight,O=C.fontSize,P=C.format,M=C.onChange,R=C.onDrag,F=x;(f||V)&&(F=v);var _=(0,e.createVNode)(1,"div","NumberInput__content",[N&&!f&&!V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:P}):P?P(F):F,B?" "+B:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",h]),minWidth:w,minHeight:A,lineHeight:E,fontSize:O,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((F-L)/(T-L)*100,0,100)+"%"}}),2),_,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?void 0:"none",height:A,"line-height":E,"font-size":O},onBlur:function(){function U(W){if(u){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(W,$),R&&R(W,$)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var $=(0,a.clamp)(parseFloat(W.target.value),L,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),M&&M(W,$),R&&R(W,$);return}if(W.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return s}(),i}(e.Component);b.defaultHooks=t.pureComponentHooks,b.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(I,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(m){var S=m.className,y=m.color,k=m.left,b=m.top,p=b===void 0?.5:b,i=(0,a.classes)(["react-colorful__pointer",S]),c={top:p*100+"%",left:k*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(I,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,o(S,y)}function o(S,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,b){return k.__proto__=b,k},o(S,y)}var m=r.Popper=function(S){function y(){var b;return b=S.call(this)||this,b.renderedContent=void 0,b.popperInstance=void 0,y.id+=1,b}t(y,S);var k=y.prototype;return k.componentDidMount=function(){function b(){var p=this,i=this.props,c=i.additionalStyles,s=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);l0&&(l.setState({suppressingFlicker:!0}),clearTimeout(l.flickerTimer),l.flickerTimer=setTimeout(function(){return l.setState({suppressingFlicker:!1})},f))},l.handleDragStart=function(f){var u=l.props.value,C=l.state.editing;C||(document.body.style["pointer-events"]="none",l.ref=f.target,l.setState({dragging:!1,origin:f.screenY,value:u,internalValue:u}),l.timer=setTimeout(function(){l.setState({dragging:!0})},250),l.dragInterval=setInterval(function(){var b=l.state,v=b.dragging,h=b.value,g=l.props.onDrag;v&&g&&g(f,h)},l.props.updateRate||k),document.addEventListener("mousemove",l.handleDragMove),document.addEventListener("mouseup",l.handleDragEnd))},l.handleDragMove=function(f){var u=l.props,C=u.minValue,b=u.maxValue,v=u.step,h=u.stepPixelSize;l.setState(function(g){var N=Object.assign({},g),x=N.origin-f.screenY;if(g.dragging){var B=Number.isFinite(C)?C%v:0;N.internalValue=(0,a.clamp)(N.internalValue+x*v/h,C-v,b+v),N.value=(0,a.clamp)(N.internalValue-N.internalValue%v+B,C,b),N.origin=f.screenY}else Math.abs(x)>4&&(N.dragging=!0);return N})},l.handleDragEnd=function(f){var u=l.props,C=u.onChange,b=u.onDrag,v=l.state,h=v.dragging,g=v.value,N=v.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(l.timer),clearInterval(l.dragInterval),l.setState({dragging:!1,editing:!h,origin:null}),document.removeEventListener("mousemove",l.handleDragMove),document.removeEventListener("mouseup",l.handleDragEnd),h)l.suppressFlicker(),C&&C(f,g),b&&b(f,g);else if(l.inputRef){var x=l.inputRef.current;x.value=N;try{x.focus(),x.select()}catch(B){}}},l}S(i,p);var c=i.prototype;return c.render=function(){function s(){var l=this,d=this.state,f=d.dragging,u=d.editing,C=d.value,b=d.suppressingFlicker,v=this.props,h=v.className,g=v.fluid,N=v.animated,x=v.value,B=v.unit,I=v.minValue,T=v.maxValue,E=v.height,w=v.width,A=v.lineHeight,O=v.fontSize,M=v.format,P=v.onChange,R=v.onDrag,F=x;(f||b)&&(F=C);var _=(0,e.createVNode)(1,"div","NumberInput__content",[N&&!f&&!b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:F,format:M}):M?M(F):F,B?" "+B:""],0);return(0,e.createComponentVNode)(2,m.Box,{className:(0,t.classes)(["NumberInput",g&&"NumberInput--fluid",h]),minWidth:w,minHeight:E,lineHeight:A,fontSize:O,onMouseDown:this.handleDragStart,children:[(0,e.createVNode)(1,"div","NumberInput__barContainer",(0,e.createVNode)(1,"div","NumberInput__bar",null,1,{style:{height:(0,a.clamp)((F-I)/(T-I)*100,0,100)+"%"}}),2),_,(0,e.createVNode)(64,"input","NumberInput__input",null,1,{style:{display:u?void 0:"none",height:E,"line-height":A,"font-size":O},onBlur:function(){function U(W){if(u){var $=(0,a.clamp)(parseFloat(W.target.value),I,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),P&&P(W,$),R&&R(W,$)}}return U}(),onKeyDown:function(){function U(W){if(W.keyCode===13){var $=(0,a.clamp)(parseFloat(W.target.value),I,T);if(Number.isNaN($)){l.setState({editing:!1});return}l.setState({editing:!1,value:$}),l.suppressFlicker(),P&&P(W,$),R&&R(W,$);return}if(W.keyCode===27){l.setState({editing:!1});return}}return U}()},null,this.inputRef)]})}return s}(),i}(e.Component);V.defaultHooks=t.pureComponentHooks,V.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50}},33337:function(L,r,n){"use strict";r.__esModule=!0,r.Pointer=void 0;var e=n(89005),a=n(35840),t=r.Pointer=function(){function o(m){var S=m.className,y=m.color,k=m.left,V=m.top,p=V===void 0?.5:V,i=(0,a.classes)(["react-colorful__pointer",S]),c={top:p*100+"%",left:k*100+"%"};return(0,e.createVNode)(1,"div",i,(0,e.createVNode)(1,"div","react-colorful__pointer-fill",null,1,{style:{"background-color":y}}),2,{style:c})}return o}()},50186:function(L,r,n){"use strict";r.__esModule=!0,r.Popper=void 0;var e=n(95996),a=n(89005);function t(S,y){S.prototype=Object.create(y.prototype),S.prototype.constructor=S,o(S,y)}function o(S,y){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,V){return k.__proto__=V,k},o(S,y)}var m=r.Popper=function(S){function y(){var V;return V=S.call(this)||this,V.renderedContent=void 0,V.popperInstance=void 0,y.id+=1,V}t(y,S);var k=y.prototype;return k.componentDidMount=function(){function V(){var p=this,i=this.props,c=i.additionalStyles,s=i.options;if(this.renderedContent=document.createElement("div"),c)for(var l=0,d=Object.entries(c);ls)return"in the future";c=c/10,s=s/10;var l=s-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var f=Math.round(l/60);return f+" minute"+(f===1?"":"s")+" ago"}else{var u=Math.round(l);return u+" second"+(u===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** +*/var i=r.TextArea=function(c){function s(d,f){var u;u=c.call(this,d,f)||this,u.textareaRef=d.innerRef||(0,e.createRef)(),u.fillerRef=(0,e.createRef)(),u.state={editing:!1};var C=d.dontUseTabForIndent,b=C===void 0?!1:C;return u.handleOnInput=function(v){var h=u.state.editing,g=u.props.onInput;h||u.setEditing(!0),g&&g(v,v.target.value)},u.handleOnChange=function(v){var h=u.state.editing,g=u.props.onChange;h&&u.setEditing(!1),g&&g(v,v.target.value)},u.handleKeyPress=function(v){var h=u.state.editing,g=u.props.onKeyPress;h||u.setEditing(!0),g&&g(v,v.target.value)},u.handleKeyDown=function(v){var h=u.state.editing,g=u.props,N=g.onChange,x=g.onInput,B=g.onEnter,I=g.onKeyDown;if(v.keyCode===m.KEY_ENTER){u.setEditing(!1),N&&N(v,v.target.value),x&&x(v,v.target.value),B&&B(v,v.target.value),u.props.selfClear&&(v.target.value="",v.target.blur());return}if(v.keyCode===m.KEY_ESCAPE){u.props.onEscape&&u.props.onEscape(v),u.setEditing(!1),u.props.selfClear?v.target.value="":(v.target.value=(0,o.toInputValue)(u.props.value),v.target.blur());return}if(h||u.setEditing(!0),I&&I(v,v.target.value),!b){var T=v.keyCode||v.which;if(T===m.KEY_TAB){v.preventDefault();var E=v.target,w=E.value,A=E.selectionStart,O=E.selectionEnd;v.target.value=w.substring(0,A)+" "+w.substring(O),v.target.selectionEnd=A+1}}},u.handleFocus=function(v){var h=u.state.editing;h||u.setEditing(!0)},u.handleBlur=function(v){var h=u.state.editing,g=u.props.onChange;h&&(u.setEditing(!1),g&&g(v,v.target.value))},u}V(s,c);var l=s.prototype;return l.componentDidMount=function(){function d(){var f=this,u=this.props.value,C=this.textareaRef.current;C&&(C.value=(0,o.toInputValue)(u)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){C.focus(),f.props.autoSelect&&C.select()},1)}return d}(),l.componentDidUpdate=function(){function d(f,u){var C=f.value,b=this.props.value,v=this.textareaRef.current;v&&typeof b=="string"&&C!==b&&(v.value=(0,o.toInputValue)(b))}return d}(),l.setEditing=function(){function d(f){this.setState({editing:f})}return d}(),l.getValue=function(){function d(){return this.textareaRef.current&&this.textareaRef.current.value}return d}(),l.render=function(){function d(){var f=this.props,u=f.onChange,C=f.onKeyDown,b=f.onKeyPress,v=f.onInput,h=f.onFocus,g=f.onBlur,N=f.onEnter,x=f.value,B=f.maxLength,I=f.placeholder,T=k(f,S),E=T.className,w=T.fluid,A=k(T,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({className:(0,a.classes)(["TextArea",w&&"TextArea--fluid",E])},A,{children:(0,e.createVNode)(128,"textarea","TextArea__textarea",null,1,{placeholder:I,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,maxLength:B},null,this.textareaRef)})))}return d}(),s}(e.Component)},5169:function(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(S){return S.length<2?"0"+S:S}).join(":")},e=r.TimeDisplay=function(){function a(t){var o=t.totalSeconds,m=o===void 0?0:o;return n(m)}return a}()},62147:function(L,r,n){"use strict";r.__esModule=!0,r.Tooltip=void 0;var e=n(89005),a=n(95996),t;function o(V,p){V.prototype=Object.create(p.prototype),V.prototype.constructor=V,m(V,p)}function m(V,p){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,c){return i.__proto__=c,i},m(V,p)}var S={modifiers:[{name:"eventListeners",enabled:!1}]},y={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){function V(){return null}return V}()},k=r.Tooltip=function(V){function p(){return V.apply(this,arguments)||this}o(p,V);var i=p.prototype;return i.getDOMNode=function(){function c(){return(0,e.findDOMFromVNode)(this.$LI,!0)}return c}(),i.componentDidMount=function(){function c(){var s=this,l=this.getDOMNode();l&&(l.addEventListener("mouseenter",function(){var d=p.renderedTooltip;d===void 0&&(d=document.createElement("div"),d.className="Tooltip",document.body.appendChild(d),p.renderedTooltip=d),p.currentHoveredElement=l,d.style.opacity="1",s.renderPopperContent()}),l.addEventListener("mouseleave",function(){s.fadeOut()}))}return c}(),i.fadeOut=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&(p.currentHoveredElement=void 0,p.renderedTooltip.style.opacity="0")}return c}(),i.renderPopperContent=function(){function c(){var s=this,l=p.renderedTooltip;l&&(0,e.render)((0,e.createVNode)(1,"span",null,this.props.content,0),l,function(){var d=p.singletonPopper;d===void 0?(d=(0,a.createPopper)(p.virtualElement,l,Object.assign({},S,{placement:s.props.position||"auto"})),p.singletonPopper=d):(d.setOptions(Object.assign({},S,{placement:s.props.position||"auto"})),d.update())},this.context)}return c}(),i.componentDidUpdate=function(){function c(){p.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()}return c}(),i.componentWillUnmount=function(){function c(){this.fadeOut()}return c}(),i.render=function(){function c(){return this.props.children}return c}(),p}(e.Component);t=k,k.renderedTooltip=void 0,k.singletonPopper=void 0,k.currentHoveredElement=void 0,k.virtualElement={getBoundingClientRect:function(){function V(){var p,i;return(p=(i=t.currentHoveredElement)==null?void 0:i.getBoundingClientRect())!=null?p:y}return V}()}},36036:function(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.Pointer=r.NumberInput=r.NoticeBox=r.NanoMap=r.Modal=r.LabeledList=r.LabeledControls=r.Knob=r.Interactive=r.Input=r.ImageButtonTS=r.ImageButton=r.Image=r.Icon=r.Grid=r.Flex=r.Dropdown=r.DraggableControl=r.DmIcon=r.Divider=r.Dimmer=r.Countdown=r.ColorBox=r.Collapsible=r.Chart=r.ByondUi=r.Button=r.Box=r.BlockQuote=r.Blink=r.Autofocus=r.AnimatedNumber=void 0;var e=n(9474);r.AnimatedNumber=e.AnimatedNumber;var a=n(27185);r.Autofocus=a.Autofocus;var t=n(5814);r.Blink=t.Blink;var o=n(61773);r.BlockQuote=o.BlockQuote;var m=n(55937);r.Box=m.Box;var S=n(94798);r.Button=S.Button;var y=n(18982);r.ByondUi=y.ByondUi;var k=n(66820);r.Chart=k.Chart;var V=n(4796);r.Collapsible=V.Collapsible;var p=n(88894);r.ColorBox=p.ColorBox;var i=n(73379);r.Countdown=i.Countdown;var c=n(61940);r.Dimmer=c.Dimmer;var s=n(13605);r.Divider=s.Divider;var l=n(60218);r.DmIcon=l.DmIcon;var d=n(20342);r.DraggableControl=d.DraggableControl;var f=n(87099);r.Dropdown=f.Dropdown;var u=n(39473);r.Flex=u.Flex;var C=n(79646);r.Grid=C.Grid;var b=n(91225);r.Image=b.Image;var v=n(4454);r.Interactive=v.Interactive;var h=n(1331);r.Icon=h.Icon;var g=n(66393);r.ImageButton=g.ImageButton;var N=n(61470);r.ImageButtonTS=N.ImageButtonTS;var x=n(79652);r.Input=x.Input;var B=n(76334);r.Knob=B.Knob;var I=n(78621);r.LabeledControls=I.LabeledControls;var T=n(29319);r.LabeledList=T.LabeledList;var E=n(36077);r.Modal=E.Modal;var w=n(73280);r.NanoMap=w.NanoMap;var A=n(74733);r.NoticeBox=A.NoticeBox;var O=n(59263);r.NumberInput=O.NumberInput;var M=n(33337);r.Pointer=M.Pointer;var P=n(50186);r.Popper=P.Popper;var R=n(92704);r.ProgressBar=R.ProgressBar;var F=n(9075);r.RestrictedInput=F.RestrictedInput;var _=n(11441);r.RoundGauge=_.RoundGauge;var U=n(97079);r.Section=U.Section;var W=n(79911);r.Slider=W.Slider;var $=n(96690);r.Stack=$.Stack;var G=n(36352);r.Table=G.Table;var oe=n(85138);r.Tabs=oe.Tabs;var X=n(44868);r.TextArea=X.TextArea;var Ce=n(5169);r.TimeDisplay=Ce.TimeDisplay;var me=n(62147);r.Tooltip=me.Tooltip},76910: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",procedure:"#E3027A",other:"#C38312"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"}},m=r.CSS_COLORS=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],S=r.RADIO_CHANNELS=[{name:"Syndicate",freq:1213,color:"#a52a2a"},{name:"SyndTeam",freq:1244,color:"#a52a2a"},{name:"Red Team",freq:1215,color:"#ff4444"},{name:"Blue Team",freq:1217,color:"#3434fd"},{name:"Response Team",freq:1345,color:"#2681a5"},{name:"Special Ops",freq:1341,color:"#2681a5"},{name:"Supply",freq:1347,color:"#b88646"},{name:"Service",freq:1349,color:"#6ca729"},{name:"Science",freq:1351,color:"#c68cfa"},{name:"Command",freq:1353,color:"#5177ff"},{name:"Procedure",freq:1339,color:"#F70285"},{name:"Medical",freq:1355,color:"#57b8f0"},{name:"Medical(I)",freq:1485,color:"#57b8f0"},{name:"Engineering",freq:1357,color:"#f37746"},{name:"Security",freq:1359,color:"#dd3535"},{name:"Security(I)",freq:1475,color:"#dd3535"},{name:"AI Private",freq:1343,color:"#d65d95"},{name:"Common",freq:1459,color:"#1ecc43"},{name:"SyndTaipan",freq:1227,color:"#ffec8b"},{name:"Soviet",freq:1217,color:"#ffec8b"},{name:"Spider Clan",freq:1265,color:"#1ecc43"},{name:"Alpha wave",freq:1522,color:"#88910f"},{name:"Beta wave",freq:1532,color:"#1d83f7"},{name:"Gamma wave",freq:1542,color:"#d46549"},{name:"Spy Spider",freq:1251,color:"#776f96"}],y=[{id:"o2",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"n2",name:"Nitrogen",label:"N\u2082",color:"red"},{id:"co2",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"plasma",name:"Plasma",label:"Plasma",color:"pink"},{id:"water_vapor",name:"Water Vapor",label:"H\u2082O",color:"grey"},{id:"nob",name:"Hyper-noblium",label:"Hyper-nob",color:"teal"},{id:"n2o",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"no2",name:"Nitryl",label:"NO\u2082",color:"brown"},{id:"tritium",name:"Tritium",label:"Tritium",color:"green"},{id:"bz",name:"BZ",label:"BZ",color:"purple"},{id:"stim",name:"Stimulum",label:"Stimulum",color:"purple"},{id:"pluox",name:"Pluoxium",label:"Pluoxium",color:"blue"},{id:"miasma",name:"Miasma",label:"Miasma",color:"olive"},{id:"hydrogen",name:"Hydrogen",label:"H\u2082",color:"white"},{id:"ab",name:"Agent B",label:"Agent B",color:"purple"}],k=r.getGasLabel=function(){function i(c,s){var l=String(c).toLowerCase(),d=y.find(function(f){return f.id===l||f.name.toLowerCase()===l});return d&&d.label||s||c}return i}(),V=r.getGasColor=function(){function i(c){var s=String(c).toLowerCase(),l=y.find(function(d){return d.id===s||d.name.toLowerCase()===s});return l&&l.color}return i}(),p=r.timeAgo=function(){function i(c,s){if(c>s)return"in the future";c=c/10,s=s/10;var l=s-c;if(l>3600){var d=Math.round(l/3600);return d+" hour"+(d===1?"":"s")+" ago"}else if(l>60){var f=Math.round(l/60);return f+" minute"+(f===1?"":"s")+" ago"}else{var u=Math.round(l);return u+" second"+(u===1?"":"s")+" ago"}return"just now"}return i}()},40944:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=n(4085),S=function(){return m.keys().map(function(b){return m(b)})},y=r.KitchenSink=function(){function k(b,p){var i=b.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),s=c[0],l=(0,a.useLocalState)(p,"pageIndex",0),d=l[0],f=l[1],u=S(),v=u[d],V=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,V,{title:"Kitchen Sink",width:600,height:500,theme:s,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:u.map(function(C,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function g(){return f(h)}return g}(),children:C.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,V.Content,{scrollable:!0,children:v.meta.render()})})]})})}return k}()},77384:function(I,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** + */var m=n(4085),S=function(){return m.keys().map(function(V){return m(V)})},y=r.KitchenSink=function(){function k(V,p){var i=V.panel,c=(0,a.useLocalState)(p,"kitchenSinkTheme"),s=c[0],l=(0,a.useLocalState)(p,"pageIndex",0),d=l[0],f=l[1],u=S(),C=u[d],b=i?o.Pane:o.Window;return(0,e.createComponentVNode)(2,b,{title:"Kitchen Sink",width:600,height:500,theme:s,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{m:1,mr:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:u.map(function(v,h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{color:"transparent",selected:h===d,onClick:function(){function g(){return f(h)}return g}(),children:v.meta.title},h)})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{position:"relative",grow:1,children:(0,e.createComponentVNode)(2,b.Content,{scrollable:!0,children:C.meta.render()})})]})})}return k}()},77384:function(L,r,n){"use strict";r.__esModule=!0,r.toggleKitchenSink=r.toggleDebugLayout=r.openExternalBrowser=void 0;var e=n(85307);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */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")},92731:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** + */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")},92731:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=void 0;var e=n(85307),a=n(27709);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},99851:function(I,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(I,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** + */var t=r.useDebug=function(){function o(m){return(0,e.useSelector)(m,a.selectDebug)}return o}()},99851:function(L,r,n){"use strict";r.__esModule=!0,r.useDebug=r.relayMiddleware=r.debugReducer=r.debugMiddleware=r.KitchenSink=void 0;var e=n(92731);r.useDebug=e.useDebug;var a=n(40944);r.KitchenSink=a.KitchenSink;var t=n(3583);r.debugMiddleware=t.debugMiddleware,r.relayMiddleware=t.relayMiddleware;var o=n(19147);r.debugReducer=o.debugReducer},3583:function(L,r,n){"use strict";r.__esModule=!0,r.relayMiddleware=r.debugMiddleware=void 0;var e=n(92986),a=n(24826),t=n(56518),o=n(77384);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var m=["backend/update","chat/message"],S=r.debugMiddleware=function(){function k(b){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&b.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&b.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(p){return function(i){return p(i)}}}return k}(),y=r.relayMiddleware=function(){function k(b){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(c){var s=c.type,l=c.payload;s==="relay"&&l.windowId===Byond.windowId&&b.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&b.dispatch((0,o.openExternalBrowser)())})),function(c){return function(s){var l=s.type,d=s.payload,f=s.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(l)&&!f&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:s}}),c(s)}}}return k}()},19147:function(I,r){"use strict";r.__esModule=!0,r.debugReducer=void 0;/** + */var m=["backend/update","chat/message"],S=r.debugMiddleware=function(){function k(V){return(0,t.acquireHotKey)(e.KEY_F11),(0,t.acquireHotKey)(e.KEY_F12),a.globalEvents.on("keydown",function(p){p.code===e.KEY_F11&&V.dispatch((0,o.toggleDebugLayout)()),p.code===e.KEY_F12&&V.dispatch((0,o.toggleKitchenSink)()),p.ctrl&&p.alt&&p.code===e.KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(p){return function(i){return p(i)}}}return k}(),y=r.relayMiddleware=function(){function k(V){var p=n(7435),i=location.search==="?external";return i?p.subscribe(function(c){var s=c.type,l=c.payload;s==="relay"&&l.windowId===Byond.windowId&&V.dispatch(Object.assign({},l.action,{relayed:!0}))}):((0,t.acquireHotKey)(e.KEY_F10),a.globalEvents.on("keydown",function(c){c===e.KEY_F10&&V.dispatch((0,o.openExternalBrowser)())})),function(c){return function(s){var l=s.type,d=s.payload,f=s.relayed;if(l===o.openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return m.includes(l)&&!f&&!i&&p.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:s}}),c(s)}}}return k}()},19147:function(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}()},27709:function(I,r){"use strict";r.__esModule=!0,r.selectDebug=void 0;/** + */var n=r.debugReducer=function(){function e(a,t){a===void 0&&(a={});var o=t.type,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}()},27709: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}()},35421:function(I,r,n){"use strict";r.__esModule=!0,r.setupDrag=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394),o;/** + */var n=r.selectDebug=function(){function e(a){return a.debug}return e}()},35421:function(L,r,n){"use strict";r.__esModule=!0,r.setupDrag=r.setWindowKey=r.resizeStartHandler=r.recallWindowGeometry=r.dragStartHandler=void 0;var e=n(27108),a=n(97450),t=n(9394),o;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return W};var U,W={},$=Object.prototype,G=$.hasOwnProperty,oe=Object.defineProperty||function(Ne,Se,H){Ne[Se]=H.value},X=typeof Symbol=="function"?Symbol:{},ve=X.iterator||"@@iterator",me=X.asyncIterator||"@@asyncIterator",ne=X.toStringTag||"@@toStringTag";function ce(Ne,Se,H){return Object.defineProperty(Ne,Se,{value:H,enumerable:!0,configurable:!0,writable:!0}),Ne[Se]}try{ce({},"")}catch(Ne){ce=function(H,ue,Ve){return H[ue]=Ve}}function q(Ne,Se,H,ue){var Ve=Se&&Se.prototype instanceof se?Se:se,be=Object.create(Ve.prototype),Le=new _e(ue||[]);return oe(be,"_invoke",{value:Be(Ne,H,Le)}),be}function ae(Ne,Se,H){try{return{type:"normal",arg:Ne.call(Se,H)}}catch(ue){return{type:"throw",arg:ue}}}W.wrap=q;var J="suspendedStart",Y="suspendedYield",Q="executing",Z="completed",te={};function se(){}function ye(){}function fe(){}var Ie={};ce(Ie,ve,function(){return this});var D=Object.getPrototypeOf,re=D&&D(D(Pe([])));re&&re!==$&&G.call(re,ve)&&(Ie=re);var de=fe.prototype=se.prototype=Object.create(Ie);function Ce(Ne){["next","throw","return"].forEach(function(Se){ce(Ne,Se,function(H){return this._invoke(Se,H)})})}function pe(Ne,Se){function H(Ve,be,Le,we){var Me=ae(Ne[Ve],Ne,be);if(Me.type!=="throw"){var Ae=Me.arg,De=Ae.value;return De&&typeof De=="object"&&G.call(De,"__await")?Se.resolve(De.__await).then(function(He){H("next",He,Le,we)},function(He){H("throw",He,Le,we)}):Se.resolve(De).then(function(He){Ae.value=He,Le(Ae)},function(He){return H("throw",He,Le,we)})}we(Me.arg)}var ue;oe(this,"_invoke",{value:function(){function Ve(be,Le){function we(){return new Se(function(Me,Ae){H(be,Le,Me,Ae)})}return ue=ue?ue.then(we,we):we()}return Ve}()})}function Be(Ne,Se,H){var ue=J;return function(Ve,be){if(ue===Q)throw Error("Generator is already running");if(ue===Z){if(Ve==="throw")throw be;return{value:U,done:!0}}for(H.method=Ve,H.arg=be;;){var Le=H.delegate;if(Le){var we=ke(Le,H);if(we){if(we===te)continue;return we}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ue===J)throw ue=Z,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ue=Q;var Me=ae(Ne,Se,H);if(Me.type==="normal"){if(ue=H.done?Z:Y,Me.arg===te)continue;return{value:Me.arg,done:H.done}}Me.type==="throw"&&(ue=Z,H.method="throw",H.arg=Me.arg)}}}function ke(Ne,Se){var H=Se.method,ue=Ne.iterator[H];if(ue===U)return Se.delegate=null,H==="throw"&&Ne.iterator.return&&(Se.method="return",Se.arg=U,ke(Ne,Se),Se.method==="throw")||H!=="return"&&(Se.method="throw",Se.arg=new TypeError("The iterator does not provide a '"+H+"' method")),te;var Ve=ae(ue,Ne.iterator,Se.arg);if(Ve.type==="throw")return Se.method="throw",Se.arg=Ve.arg,Se.delegate=null,te;var be=Ve.arg;return be?be.done?(Se[Ne.resultName]=be.value,Se.next=Ne.nextLoc,Se.method!=="return"&&(Se.method="next",Se.arg=U),Se.delegate=null,te):be:(Se.method="throw",Se.arg=new TypeError("iterator result is not an object"),Se.delegate=null,te)}function Ee(Ne){var Se={tryLoc:Ne[0]};1 in Ne&&(Se.catchLoc=Ne[1]),2 in Ne&&(Se.finallyLoc=Ne[2],Se.afterLoc=Ne[3]),this.tryEntries.push(Se)}function Re(Ne){var Se=Ne.completion||{};Se.type="normal",delete Se.arg,Ne.completion=Se}function _e(Ne){this.tryEntries=[{tryLoc:"root"}],Ne.forEach(Ee,this),this.reset(!0)}function Pe(Ne){if(Ne||Ne===""){var Se=Ne[ve];if(Se)return Se.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var H=-1,ue=function(){function Ve(){for(;++H=0;--Ve){var be=this.tryEntries[Ve],Le=be.completion;if(be.tryLoc==="root")return ue("end");if(be.tryLoc<=this.prev){var we=G.call(be,"catchLoc"),Me=G.call(be,"finallyLoc");if(we&&Me){if(this.prev=0;--ue){var Ve=this.tryEntries[ue];if(Ve.tryLoc<=this.prev&&G.call(Ve,"finallyLoc")&&this.prev=0;--H){var ue=this.tryEntries[H];if(ue.finallyLoc===Se)return this.complete(ue.completion,ue.afterLoc),Re(ue),te}}return Ne}(),catch:function(){function Ne(Se){for(var H=this.tryEntries.length-1;H>=0;--H){var ue=this.tryEntries[H];if(ue.tryLoc===Se){var Ve=ue.completion;if(Ve.type==="throw"){var be=Ve.arg;Re(ue)}return be}}throw Error("illegal catch attempt")}return Ne}(),delegateYield:function(){function Ne(Se,H,ue){return this.delegate={iterator:Pe(Se),resultName:H,nextLoc:ue},this.method==="next"&&(this.arg=U),te}return Ne}()},W}function S(U,W,$,G,oe,X,ve){try{var me=U[X](ve),ne=me.value}catch(ce){return void $(ce)}me.done?W(ne):Promise.resolve(ne).then(G,oe)}function y(U){return function(){var W=this,$=arguments;return new Promise(function(G,oe){var X=U.apply(W,$);function ve(ne){S(X,G,oe,ve,me,"next",ne)}function me(ne){S(X,G,oe,ve,me,"throw",ne)}ve(void 0)})}}var k=(0,t.createLogger)("drag"),b=(o=window.devicePixelRatio)!=null?o:1,p=Byond.windowId,i=!1,c=!1,s=[0,0],l,d,f,u,v,V=r.setWindowKey=function(){function U(W){p=W}return U}(),C=function(){return[window.screenLeft*b,window.screenTop*b]},h=function(){return[window.innerWidth*b,window.innerHeight*b]},g=function(W){var $=(0,a.vecAdd)(W,s);return Byond.winset(Byond.windowId,{pos:$[0]+","+$[1]})},N=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},x=function(){return[0-s[0],0-s[1]]},B=function(){return[window.screen.availWidth*b,window.screen.availHeight*b]},L=function(W,$,G){G===void 0&&(G=50);for(var oe=[$],X,ve=0;vece&&(X[me]=ce-$[me],ve=!0)}return[ve,X]},O=r.dragStartHandler=function(){function U(W){k.log("drag start"),i=!0;var $=C();d=(0,a.vecSubtract)([W.screenX,W.screenY],C()),document.addEventListener("mousemove",M),document.addEventListener("mouseup",P),M(W)}return U}(),P=function(W){k.log("drag end"),M(W),document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",P),i=!1,T()},M=function(W){i&&(W.preventDefault(),g((0,a.vecSubtract)([W.screenX,W.screenY],d)))},R=r.resizeStartHandler=function(){function U(W,$){return function(G){f=[W,$],k.log("resize start",f),c=!0,d=(0,a.vecSubtract)([G.screenX,G.screenY],C()),u=h(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",F),_(G)}}return U}(),F=function(W){k.log("resize end",v),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",F),c=!1,T()},_=function(W){if(c){W.preventDefault();var $=(0,a.vecSubtract)([W.screenX,W.screenY],C()),G=(0,a.vecSubtract)($,d);v=(0,a.vecAdd)(u,(0,a.vecMultiply)(f,G),[1,1]),v[0]=Math.max(v[0],150*b),v[1]=Math.max(v[1],50*b),N(v)}}},24826:function(I,r,n){"use strict";r.__esModule=!0,r.setupGlobalEvents=r.removeScrollableNode=r.globalEvents=r.canStealFocus=r.addScrollableNode=r.KeyEvent=void 0;var e=n(92868),a=n(92986);/** + */function m(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */m=function(){return W};var U,W={},$=Object.prototype,G=$.hasOwnProperty,oe=Object.defineProperty||function(Ne,Se,H){Ne[Se]=H.value},X=typeof Symbol=="function"?Symbol:{},Ce=X.iterator||"@@iterator",me=X.asyncIterator||"@@asyncIterator",ne=X.toStringTag||"@@toStringTag";function ce(Ne,Se,H){return Object.defineProperty(Ne,Se,{value:H,enumerable:!0,configurable:!0,writable:!0}),Ne[Se]}try{ce({},"")}catch(Ne){ce=function(H,ue,Ve){return H[ue]=Ve}}function q(Ne,Se,H,ue){var Ve=Se&&Se.prototype instanceof se?Se:se,be=Object.create(Ve.prototype),Ie=new _e(ue||[]);return oe(be,"_invoke",{value:Be(Ne,H,Ie)}),be}function ae(Ne,Se,H){try{return{type:"normal",arg:Ne.call(Se,H)}}catch(ue){return{type:"throw",arg:ue}}}W.wrap=q;var J="suspendedStart",Y="suspendedYield",Q="executing",Z="completed",te={};function se(){}function ye(){}function fe(){}var Le={};ce(Le,Ce,function(){return this});var D=Object.getPrototypeOf,re=D&&D(D(Pe([])));re&&re!==$&&G.call(re,Ce)&&(Le=re);var de=fe.prototype=se.prototype=Object.create(Le);function ve(Ne){["next","throw","return"].forEach(function(Se){ce(Ne,Se,function(H){return this._invoke(Se,H)})})}function pe(Ne,Se){function H(Ve,be,Ie,we){var Me=ae(Ne[Ve],Ne,be);if(Me.type!=="throw"){var Ae=Me.arg,De=Ae.value;return De&&typeof De=="object"&&G.call(De,"__await")?Se.resolve(De.__await).then(function(He){H("next",He,Ie,we)},function(He){H("throw",He,Ie,we)}):Se.resolve(De).then(function(He){Ae.value=He,Ie(Ae)},function(He){return H("throw",He,Ie,we)})}we(Me.arg)}var ue;oe(this,"_invoke",{value:function(){function Ve(be,Ie){function we(){return new Se(function(Me,Ae){H(be,Ie,Me,Ae)})}return ue=ue?ue.then(we,we):we()}return Ve}()})}function Be(Ne,Se,H){var ue=J;return function(Ve,be){if(ue===Q)throw Error("Generator is already running");if(ue===Z){if(Ve==="throw")throw be;return{value:U,done:!0}}for(H.method=Ve,H.arg=be;;){var Ie=H.delegate;if(Ie){var we=ke(Ie,H);if(we){if(we===te)continue;return we}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(ue===J)throw ue=Z,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);ue=Q;var Me=ae(Ne,Se,H);if(Me.type==="normal"){if(ue=H.done?Z:Y,Me.arg===te)continue;return{value:Me.arg,done:H.done}}Me.type==="throw"&&(ue=Z,H.method="throw",H.arg=Me.arg)}}}function ke(Ne,Se){var H=Se.method,ue=Ne.iterator[H];if(ue===U)return Se.delegate=null,H==="throw"&&Ne.iterator.return&&(Se.method="return",Se.arg=U,ke(Ne,Se),Se.method==="throw")||H!=="return"&&(Se.method="throw",Se.arg=new TypeError("The iterator does not provide a '"+H+"' method")),te;var Ve=ae(ue,Ne.iterator,Se.arg);if(Ve.type==="throw")return Se.method="throw",Se.arg=Ve.arg,Se.delegate=null,te;var be=Ve.arg;return be?be.done?(Se[Ne.resultName]=be.value,Se.next=Ne.nextLoc,Se.method!=="return"&&(Se.method="next",Se.arg=U),Se.delegate=null,te):be:(Se.method="throw",Se.arg=new TypeError("iterator result is not an object"),Se.delegate=null,te)}function Ee(Ne){var Se={tryLoc:Ne[0]};1 in Ne&&(Se.catchLoc=Ne[1]),2 in Ne&&(Se.finallyLoc=Ne[2],Se.afterLoc=Ne[3]),this.tryEntries.push(Se)}function Re(Ne){var Se=Ne.completion||{};Se.type="normal",delete Se.arg,Ne.completion=Se}function _e(Ne){this.tryEntries=[{tryLoc:"root"}],Ne.forEach(Ee,this),this.reset(!0)}function Pe(Ne){if(Ne||Ne===""){var Se=Ne[Ce];if(Se)return Se.call(Ne);if(typeof Ne.next=="function")return Ne;if(!isNaN(Ne.length)){var H=-1,ue=function(){function Ve(){for(;++H=0;--Ve){var be=this.tryEntries[Ve],Ie=be.completion;if(be.tryLoc==="root")return ue("end");if(be.tryLoc<=this.prev){var we=G.call(be,"catchLoc"),Me=G.call(be,"finallyLoc");if(we&&Me){if(this.prev=0;--ue){var Ve=this.tryEntries[ue];if(Ve.tryLoc<=this.prev&&G.call(Ve,"finallyLoc")&&this.prev=0;--H){var ue=this.tryEntries[H];if(ue.finallyLoc===Se)return this.complete(ue.completion,ue.afterLoc),Re(ue),te}}return Ne}(),catch:function(){function Ne(Se){for(var H=this.tryEntries.length-1;H>=0;--H){var ue=this.tryEntries[H];if(ue.tryLoc===Se){var Ve=ue.completion;if(Ve.type==="throw"){var be=Ve.arg;Re(ue)}return be}}throw Error("illegal catch attempt")}return Ne}(),delegateYield:function(){function Ne(Se,H,ue){return this.delegate={iterator:Pe(Se),resultName:H,nextLoc:ue},this.method==="next"&&(this.arg=U),te}return Ne}()},W}function S(U,W,$,G,oe,X,Ce){try{var me=U[X](Ce),ne=me.value}catch(ce){return void $(ce)}me.done?W(ne):Promise.resolve(ne).then(G,oe)}function y(U){return function(){var W=this,$=arguments;return new Promise(function(G,oe){var X=U.apply(W,$);function Ce(ne){S(X,G,oe,Ce,me,"next",ne)}function me(ne){S(X,G,oe,Ce,me,"throw",ne)}Ce(void 0)})}}var k=(0,t.createLogger)("drag"),V=(o=window.devicePixelRatio)!=null?o:1,p=Byond.windowId,i=!1,c=!1,s=[0,0],l,d,f,u,C,b=r.setWindowKey=function(){function U(W){p=W}return U}(),v=function(){return[window.screenLeft*V,window.screenTop*V]},h=function(){return[window.innerWidth*V,window.innerHeight*V]},g=function(W){var $=(0,a.vecAdd)(W,s);return Byond.winset(Byond.windowId,{pos:$[0]+","+$[1]})},N=function(W){return Byond.winset(Byond.windowId,{size:W[0]+"x"+W[1]})},x=function(){return[0-s[0],0-s[1]]},B=function(){return[window.screen.availWidth*V,window.screen.availHeight*V]},I=function(W,$,G){G===void 0&&(G=50);for(var oe=[$],X,Ce=0;Cece&&(X[me]=ce-$[me],Ce=!0)}return[Ce,X]},O=r.dragStartHandler=function(){function U(W){k.log("drag start"),i=!0;var $=v();d=(0,a.vecSubtract)([W.screenX,W.screenY],v()),document.addEventListener("mousemove",P),document.addEventListener("mouseup",M),P(W)}return U}(),M=function(W){k.log("drag end"),P(W),document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",M),i=!1,T()},P=function(W){i&&(W.preventDefault(),g((0,a.vecSubtract)([W.screenX,W.screenY],d)))},R=r.resizeStartHandler=function(){function U(W,$){return function(G){f=[W,$],k.log("resize start",f),c=!0,d=(0,a.vecSubtract)([G.screenX,G.screenY],v()),u=h(),document.addEventListener("mousemove",_),document.addEventListener("mouseup",F),_(G)}}return U}(),F=function(W){k.log("resize end",C),_(W),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",F),c=!1,T()},_=function(W){if(c){W.preventDefault();var $=(0,a.vecSubtract)([W.screenX,W.screenY],v()),G=(0,a.vecSubtract)($,d);C=(0,a.vecAdd)(u,(0,a.vecMultiply)(f,G),[1,1]),C[0]=Math.max(C[0],150*V),C[1]=Math.max(C[1],50*V),N(C)}}},24826:function(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(92868),a=n(92986);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function h(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return h}(),S,y=!0,k=function(g,N){if(o){y=!0;return}if(S&&(clearTimeout(S),S=null),N){S=setTimeout(function(){return k(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},b=null,p=r.canStealFocus=function(){function h(g){var N=String(g.tagName).toLowerCase();return N==="input"||N==="textarea"}return h}(),i=function(g){c(),b=g,b.addEventListener("blur",c)},c=function(){b&&(b.removeEventListener("blur",c),b=null)},s=null,l=null,d=[],f=r.addScrollableNode=function(){function h(g){d.push(g)}return h}(),u=r.removeScrollableNode=function(){function h(g){var N=d.indexOf(g);N>=0&&d.splice(N,1)}return h}(),v=function(g){if(!(b||!y))for(var N=document.body;g&&g!==N;){if(d.includes(g)){if(g.contains(s))return;s=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(h){var g=h.target;g!==l&&(l=g,v(g))}),window.addEventListener("focusin",function(h){if(l=null,s=h.target,k(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){l=null,k(!1,!0)}),window.addEventListener("blur",function(h){l=null,k(!1,!0)}),window.addEventListener("beforeunload",function(h){k(!1)});var V={},C=r.KeyEvent=function(){function h(N,x,B){this.event=N,this.type=x,this.code=window.event?N.which:N.keyCode,this.ctrl=N.ctrlKey,this.shift=N.shiftKey,this.alt=N.altKey,this.repeat=!!B}var g=h.prototype;return g.hasModifierKeys=function(){function N(){return this.ctrl||this.alt||this.shift}return N}(),g.isModifierKey=function(){function N(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return N}(),g.isDown=function(){function N(){return this.type==="keydown"}return N}(),g.isUp=function(){function N(){return this.type==="keyup"}return N}(),g.toString=function(){function N(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return N}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var g=h.keyCode,N=new C(h,"keydown",V[g]);t.emit("keydown",N),t.emit("key",N),V[g]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var g=h.keyCode,N=new C(h,"keyup");t.emit("keyup",N),t.emit("key",N),V[g]=!1}})},87695:function(I,r){"use strict";r.__esModule=!0,r.focusWindow=r.focusMap=void 0;/** + */var t=r.globalEvents=new e.EventEmitter,o=!1,m=r.setupGlobalEvents=function(){function h(g){g===void 0&&(g={}),o=!!g.ignoreWindowFocus}return h}(),S,y=!0,k=function(g,N){if(o){y=!0;return}if(S&&(clearTimeout(S),S=null),N){S=setTimeout(function(){return k(g)});return}y!==g&&(y=g,t.emit(g?"window-focus":"window-blur"),t.emit("window-focus-change",g))},V=null,p=r.canStealFocus=function(){function h(g){var N=String(g.tagName).toLowerCase();return N==="input"||N==="textarea"}return h}(),i=function(g){c(),V=g,V.addEventListener("blur",c)},c=function(){V&&(V.removeEventListener("blur",c),V=null)},s=null,l=null,d=[],f=r.addScrollableNode=function(){function h(g){d.push(g)}return h}(),u=r.removeScrollableNode=function(){function h(g){var N=d.indexOf(g);N>=0&&d.splice(N,1)}return h}(),C=function(g){if(!(V||!y))for(var N=document.body;g&&g!==N;){if(d.includes(g)){if(g.contains(s))return;s=g,g.focus();return}g=g.parentNode}};window.addEventListener("mousemove",function(h){var g=h.target;g!==l&&(l=g,C(g))}),window.addEventListener("focusin",function(h){if(l=null,s=h.target,k(!0),p(h.target)){i(h.target);return}}),window.addEventListener("focusout",function(h){l=null,k(!1,!0)}),window.addEventListener("blur",function(h){l=null,k(!1,!0)}),window.addEventListener("beforeunload",function(h){k(!1)});var b={},v=r.KeyEvent=function(){function h(N,x,B){this.event=N,this.type=x,this.code=window.event?N.which:N.keyCode,this.ctrl=N.ctrlKey,this.shift=N.shiftKey,this.alt=N.altKey,this.repeat=!!B}var g=h.prototype;return g.hasModifierKeys=function(){function N(){return this.ctrl||this.alt||this.shift}return N}(),g.isModifierKey=function(){function N(){return this.code===a.KEY_CTRL||this.code===a.KEY_SHIFT||this.code===a.KEY_ALT}return N}(),g.isDown=function(){function N(){return this.type==="keydown"}return N}(),g.isUp=function(){function N(){return this.type==="keyup"}return N}(),g.toString=function(){function N(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.KEY_F1&&this.code<=a.KEY_F12?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)}return N}(),h}();document.addEventListener("keydown",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keydown",b[g]);t.emit("keydown",N),t.emit("key",N),b[g]=!0}}),document.addEventListener("keyup",function(h){if(!p(h.target)){var g=h.keyCode,N=new v(h,"keyup");t.emit("keyup",N),t.emit("key",N),b[g]=!1}})},87695:function(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("mapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(I,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** + */var n=r.focusMap=function(){function a(){Byond.winset("mapwindow.map",{focus:!0})}return a}(),e=r.focusWindow=function(){function a(){Byond.winset(Byond.windowId,{focus:!0})}return a}()},49968:function(L,r,n){"use strict";r.__esModule=!0,r.formatSiUnit=r.formatPower=r.formatMoney=r.formatDb=void 0;var e=n(44879);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function k(b,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof b!="number"||!Number.isFinite(b))return b;var c=Math.floor(Math.log10(b)),s=Math.floor(Math.max(p*3,c)),l=Math.floor(c/3),d=Math.floor(s/3),f=(0,e.clamp)(t+d,0,a.length),u=a[f],v=b/Math.pow(1e3,d),V=l>p?2+d*3-s:0,C=(0,e.toFixed)(v,V)+" "+u+i;return C.trim()}return k}(),m=r.formatPower=function(){function k(b,p){return p===void 0&&(p=0),o(b,p,"W")}return k}(),S=r.formatMoney=function(){function k(b,p){if(p===void 0&&(p=0),!Number.isFinite(b))return b;var i=(0,e.round)(b,p);p>0&&(i=(0,e.toFixed)(b,p)),i=String(i);var c=i.length,s=i.indexOf(".");s===-1&&(s=c);for(var l="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return k}()},56518:function(I,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(92986)),a=n(24826),t=n(9394);function o(f){if(typeof WeakMap!="function")return null;var u=new WeakMap,v=new WeakMap;return(o=function(C){return C?v:u})(f)}function m(f,u){if(!u&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=o(u);if(v&&v.has(f))return v.get(f);var V={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in f)if(h!=="default"&&{}.hasOwnProperty.call(f,h)){var g=C?Object.getOwnPropertyDescriptor(f,h):null;g&&(g.get||g.set)?Object.defineProperty(V,h,g):V[h]=f[h]}return V.default=f,v&&v.set(f,V),V}/** + */var a=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y"],t=a.indexOf(" "),o=r.formatSiUnit=function(){function k(V,p,i){if(p===void 0&&(p=-t),i===void 0&&(i=""),typeof V!="number"||!Number.isFinite(V))return V;var c=Math.floor(Math.log10(V)),s=Math.floor(Math.max(p*3,c)),l=Math.floor(c/3),d=Math.floor(s/3),f=(0,e.clamp)(t+d,0,a.length),u=a[f],C=V/Math.pow(1e3,d),b=l>p?2+d*3-s:0,v=(0,e.toFixed)(C,b)+" "+u+i;return v.trim()}return k}(),m=r.formatPower=function(){function k(V,p){return p===void 0&&(p=0),o(V,p,"W")}return k}(),S=r.formatMoney=function(){function k(V,p){if(p===void 0&&(p=0),!Number.isFinite(V))return V;var i=(0,e.round)(V,p);p>0&&(i=(0,e.toFixed)(V,p)),i=String(i);var c=i.length,s=i.indexOf(".");s===-1&&(s=c);for(var l="",d=0;d0&&d=0?"+":p<0?"\u2013":"",c=Math.abs(p);return c===1/0?c="Inf":c=(0,e.toFixed)(c,2),i+c+" dB"}return k}()},56518:function(L,r,n){"use strict";r.__esModule=!0,r.setupHotKeys=r.releaseHotKey=r.releaseHeldKeys=r.acquireHotKey=void 0;var e=m(n(92986)),a=n(24826),t=n(9394);function o(f){if(typeof WeakMap!="function")return null;var u=new WeakMap,C=new WeakMap;return(o=function(v){return v?C:u})(f)}function m(f,u){if(!u&&f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var C=o(u);if(C&&C.has(f))return C.get(f);var b={__proto__:null},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in f)if(h!=="default"&&{}.hasOwnProperty.call(f,h)){var g=v?Object.getOwnPropertyDescriptor(f,h):null;g&&(g.get||g.set)?Object.defineProperty(b,h,g):b[h]=f[h]}return b.default=f,C&&C.set(f,b),b}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var S=(0,t.createLogger)("hotkeys"),y={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],b={},p=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var v=String(u);if(v==="Ctrl+F5"||v==="Ctrl+R"){location.reload();return}if(v!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||k.includes(u.code))){v==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var V=p(u.code);if(V){var C=y[V];if(C)return S.debug("macro",C),Byond.command(C);if(u.isDown()&&!b[V]){b[V]=!0;var h='KeyDown "'+V+'"';return S.debug(h),Byond.command(h)}if(u.isUp()&&b[V]){b[V]=!1;var g='KeyUp "'+V+'"';return S.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function f(u){k.push(u)}return f}(),s=r.releaseHotKey=function(){function f(u){var v=k.indexOf(u);v>=0&&k.splice(v,1)}return f}(),l=r.releaseHeldKeys=function(){function f(){for(var u=0,v=Object.keys(b);u0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(S){return S.json()}).then(function(S){return Byond.iconRefMap=S}).catch(function(S){return t.logger.log(S)})}return m}()},1090:function(I,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AICard=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(s,l){return(0,e.createComponentVNode)(2,t.Box,{children:s},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function s(){return p("wireless")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function s(){return p("radio")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function s(){return p("wipe")}return s}()})})]})})})]})})})}return S}()},39454:function(I,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AIFixer=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var s=null;i.integrity>=75?s="green":i.integrity>=25?s="yellow":s="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,f){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},f)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return S}()},88422:function(I,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return p}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},b=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.locked&&!d.siliconUser,u=d.normallyLocked,v=y[d.externalPower]||y[0],V=y[d.chargingStatus]||y[0],C=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:v.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!f,color:d.isOperating?"":"bad",disabled:f,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",v.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:V.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:f,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",V.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(N.status===1||N.status===3),disabled:f,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&N.status===2,disabled:f,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&N.status===0,disabled:f,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return l(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(I,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ATM=function(){function l(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.view_screen,h=V.authenticated_account,g=V.ticks_left_locked_down,N=V.linked_db,x;if(g>0)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(C){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,k);break;case 3:x=(0,e.createComponentVNode)(2,c);break;case 4:x=(0,e.createComponentVNode)(2,b);break;default:x=(0,e.createComponentVNode)(2,p)}else x=(0,e.createComponentVNode)(2,i);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),S=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.machine_id,h=V.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function g(){return v("insert_card")}return g}()})})})]})},y=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:C===0,onClick:function(){function h(){return v("change_security_level",{new_security_level:0})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:C===1,onClick:function(){function h(){return v("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:C===2,onClick:function(){function h(){return v("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},k=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=(0,a.useLocalState)(f,"targetAccNumber",0),h=C[0],g=C[1],N=(0,a.useLocalState)(f,"fundsAmount",0),x=N[0],B=N[1],L=(0,a.useLocalState)(f,"purpose",0),T=L[0],A=L[1],w=V.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",w]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function E(O,P){return g(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function E(O,P){return B(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function E(O,P){return A(P)}return E}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function E(){return v("transfer",{target_acc_number:h,funds_amount:x,purpose:T})}return E}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},b=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:C==="None",onClick:function(){function h(){return v("change_insurance_type",{new_insurance_type:"None"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:C==="Bugetary",onClick:function(){function h(){return v("change_insurance_type",{new_insurance_type:"Bugetary"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:C==="Standart",onClick:function(){function h(){return v("change_insurance_type",{new_insurance_type:"Standart"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:C==="Deluxe",onClick:function(){function h(){return v("change_insurance_type",{new_insurance_type:"Deluxe"})}return h}()})]})}),(0,e.createComponentVNode)(2,s)]})},p=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=(0,a.useLocalState)(f,"fundsAmount",0),h=C[0],g=C[1],N=(0,a.useLocalState)(f,"insuranceAmount",0),x=N[0],B=N[1],L=V.owner_name,T=V.money,A=V.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+L,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function w(){return v("logout")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(E,O){return g(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function w(){return v("withdrawal",{funds_amount:h})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",A]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(E,O){return B(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function w(){return v("insurance",{insurance_amount:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function w(){return v("insurance_replenishment",{})}return w}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function w(){return v("view_screen",{view_screen:1})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function w(){return v("view_screen",{view_screen:2})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function w(){return v("view_screen",{view_screen:3})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function w(){return v("view_screen",{view_screen:4})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function w(){return v("balance_statement")}return w}()})})]})],4)},i=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=(0,a.useLocalState)(f,"accountID",null),h=C[0],g=C[1],N=(0,a.useLocalState)(f,"accountPin",null),x=N[0],B=N[1],L=V.machine_id,T=V.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(w,E){return g(E)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function A(w,E){return B(E)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function A(){return v("attempt_auth",{account_num:h,account_pin:x})}return A}()})})]})})},c=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),C.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},s=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function C(){return v("view_screen",{view_screen:0})}return C}()})}},86423:function(I,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(36352),S=n(98595),y=n(321),k=n(5485),b=r.AccountsUplinkTerminal=function(){function d(f,u){var v=(0,t.useBackend)(u),V=v.act,C=v.data,h=C.loginState,g=C.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,s):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(f,u){var v=(0,t.useBackend)(u),V=v.act,C=v.data,h=C.accounts,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(u,"sortId","owner_name"),L=B[0],T=B[1],A=(0,t.useLocalState)(u,"sortOrder",!0),w=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,P){var M=w?1:-1;return O[L].localeCompare(P[L])*M}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function P(){return V("view_account_detail",{index:O.account_index})}return P}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(f,u){var v=(0,t.useLocalState)(u,"sortId","name"),V=v[0],C=v[1],h=(0,t.useLocalState)(u,"sortOrder",!0),g=h[0],N=h[1],x=f.id,B=f.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:V!==x&&"transparent",width:"100%",onClick:function(){function L(){V===x?N(!g):(C(x),N(!0))}return L}(),children:[B,V===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},c=function(f,u){var v=(0,t.useBackend)(u),V=v.act,C=v.data,h=C.is_printing,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return V("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return V("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(L,T){return x(T)}return B}()})})]})},s=function(f,u){var v=(0,t.useBackend)(u),V=v.act,C=v.data,h=C.account_number,g=C.owner_name,N=C.money,x=C.suspended,B=C.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function L(){return V("back")}return L}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function L(){return V("toggle_suspension")}return L}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(L){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:L.is_deposit?"green":"red",children:["$",L.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:L.target_name})]},L)})]})})})]})},l=function(f,u){var v=(0,t.useBackend)(u),V=v.act,C=v.data,h=(0,t.useLocalState)(u,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(u,"accDeposit",""),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return V("back")}return T}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function T(A,w){return N(w)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(A,w){return L(w)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return V("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},79571:function(I,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.AgentCard=function(){function p(i,c){var s=(0,t.useLocalState)(c,"tabIndex",0),l=s[0],d=s[1],f=function(){function u(v){switch(v){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,b);default:return(0,e.createComponentVNode)(2,y)}}return u}();return(0,e.createComponentVNode)(2,m.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function u(){return d(0)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function u(){return d(1)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function u(){return d(2)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),f(l)]})})})}return p}(),y=r.AgentCardInfo=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.registered_name,u=d.sex,v=d.age,V=d.assignment,C=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:f||"[UNSET]",onClick:function(){function L(){return l("change_name")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:u||"[UNSET]",onClick:function(){function L(){return l("change_sex")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function L(){return l("change_age")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:V||"[UNSET]",onClick:function(){function L(){return l("change_occupation")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function L(){return l("change_fingerprints")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function L(){return l("change_blood_type")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function L(){return l("change_dna_hash")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function L(){return l("change_money_account")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function L(){return l("change_photo")}return L}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function L(){return l("delete_info")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function L(){return l("clear_access")}return L}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function L(){return l("change_ai_tracking")}return L}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:f.map(function(u){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:u,vertical:!0,asset:!0,style:{margin:"1px"},image:u,imageAsset:"id_card64x64",onclick:function(){function v(){return l("change_appearance_new",{new_appearance:u})}return v}()},u)})})}return p}(),b=r.AgentCardSLSlots=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:f.map(function(u){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:u.registered_name?u.registered_name+", "+u.assignment:"Slot "+u.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function v(){return l("clear_slot",{slot:u.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function v(){return l("save_slot",{slot:u.id})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!u.registered_name,onClick:function(){function v(){return l("load_slot",{slot:u.id})}return v}()})],4)},u.id)})})})}return p}()},56793:function(I,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},S=r.AiAirlock=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=m[c.power.main]||m[0],l=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function f(){return i("disrupt-main")}return f}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function f(){return i("disrupt-backup")}return f}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function f(){return i("shock-restore")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function f(){return i("shock-temp")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function f(){return i("shock-perm")}return f}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function f(){return i("idscan-toggle")}return f}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function f(){return i("emergency-toggle")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function f(){return i("bolt-toggle")}return f}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function f(){return i("light-toggle")}return f}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function f(){return i("safe-toggle")}return f}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function f(){return i("speed-toggle")}return f}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function f(){return i("open-close")}return f}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(I,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.AirAlarm=function(){function d(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),y=function(f){return f===0?"green":f===1?"orange":"red"},k=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.air,g=C.mode,N=C.atmos_alarm,x=C.locked,B=C.alarmActivated,L=C.rcon,T=C.target_temp,A;return h.danger.overall===0?N===0?A="Optimal":A="Caution: Atmos alert in area":h.danger.overall===1?A="Caution":A="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function w(){return V("mode",{mode:g===3?1:3})}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function w(){return V("temperature")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function w(){return V("thermostat_state")}return w}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.overall),children:[A,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function w(){return V(B?"atmos_reset":"atmos_alarm")}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:L===1,onClick:function(){function w(){return V("set_rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:L===2,onClick:function(){function w(){return V("set_rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:L===3,onClick:function(){function w(){return V("set_rcon",{rcon:3})}return w}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},b=function(f,u){var v=(0,a.useLocalState)(u,"tabIndex",0),V=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===0,onClick:function(){function h(){return C(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:V===1,onClick:function(){function h(){return C(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:V===2,onClick:function(){function h(){return C(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:V===3,onClick:function(){function h(){return C(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(f,u){var v=(0,a.useLocalState)(u,"tabIndex",0),V=v[0],C=v[1];switch(V){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return V("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return V("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return V("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},c=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return V("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return V("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return V("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return V("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return V("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return V("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return V("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return V("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},s=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.modes,g=C.presets,N=C.emagged,x=C.mode,B=C.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(L){return(!L.emagonly||L.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===x,onClick:function(){function T(){return V("mode",{mode:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(L){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:L.name,icon:"cog",selected:L.id===B,onClick:function(){function T(){return V("preset",{preset:L.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:L.desc})]},L.name)})})]})],4)},l=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return V("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AirlockAccessController=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.exterior_status,s=i.interior_status,l=i.processing,d,f;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return p("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return p("cycle_ext_door")}return u}()}),s==="open"?f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:s==="open"?"red":l?"yellow":null,onClick:function(){function u(){return p("force_int")}return u}()}):f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return p("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:s==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,f]})})]})})}return S}()},28736:function(I,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49148),S=1,y=2,k=4,b=8,p=r.AirlockElectronics=function(){function s(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),i=function(l,d){var f=(0,a.useBackend)(d),u=f.act,v=f.data,V=v.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:V&k?"selected":null,onClick:function(){function C(){return u("unrestricted_access",{unres_dir:k})}return C}()})}),(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:V&y?"selected":null,onClick:function(){function C(){return u("unrestricted_access",{unres_dir:y})}return C}()})}),(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:V&b?"selected":null,onClick:function(){function C(){return u("unrestricted_access",{unres_dir:b})}return C}()})}),(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:V&S?"selected":null,onClick:function(){function C(){return u("unrestricted_access",{unres_dir:S})}return C}()})})]})]})})},c=function(l,d){var f=(0,a.useBackend)(d),u=f.act,v=f.data,V=v.selected_accesses,C=v.one_access,h=v.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:C,content:"One",onClick:function(){function g(){return u("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!C,content:"All",onClick:function(){function g(){return u("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:V,accessMod:function(){function g(N){return u("set",{access:N})}return g}(),grantAll:function(){function g(){return u("grant_all")}return g}(),denyAll:function(){function g(){return u("clear_all")}return g}(),grantDep:function(){function g(N){return u("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return u("deny_region",{region:N})}return g}()})}},47365:function(I,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),m=n(36036),S=n(98595),y=-1,k=1,b=r.AlertModal=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=u.autofocus,V=u.buttons,C=V===void 0?[]:V,h=u.large_buttons,g=u.message,N=g===void 0?"":g,x=u.timeout,B=u.title,L=(0,t.useLocalState)(l,"selected",0),T=L[0],A=L[1],w=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),E=325+(C.length>2?100:0),O=function(){function P(M){T===0&&M===y?A(C.length-1):T===C.length-1&&M===k?A(0):A(T+M)}return P}();return(0,e.createComponentVNode)(2,S.Window,{title:B,height:w,width:E,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function P(M){var R=window.event?M.which:M.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?f("choose",{choice:C[T]}):R===o.KEY_ESCAPE?f("cancel"):R===o.KEY_LEFT?(M.preventDefault(),O(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(M.preventDefault(),O(k))}return P}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!v&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(s,l){var d=(0,t.useBackend)(l),f=d.data,u=f.buttons,v=u===void 0?[]:u,V=f.large_buttons,C=f.swapped_buttons,h=s.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:C?"row":"row-reverse",justify:"space-around",wrap:!0,children:v==null?void 0:v.map(function(g,N){return V&&v.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:V?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=u.large_buttons,V=s.button,C=s.selected,h=V.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:v?1:0,pt:v?.33:0,content:V,fluid:!!v,onClick:function(){function g(){return f("choose",{choice:V})}return g}(),selected:C,textAlign:"center",height:!!v&&2,width:!v&&h})}},71824:function(I,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AppearanceChanger=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.change_race,l=c.species,d=c.specimen,f=c.change_gender,u=c.gender,v=c.has_gender,V=c.change_eye_color,C=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,N=c.change_hair_color,x=c.change_secondary_hair_color,B=c.change_facial_hair_color,L=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,A=c.change_body_marking_color,w=c.change_tail_marking_color,E=c.change_head_accessory,O=c.head_accessory_styles,P=c.head_accessory_style,M=c.change_hair,R=c.hair_styles,F=c.hair_style,_=c.change_hair_gradient,U=c.change_facial_hair,W=c.facial_hair_styles,$=c.facial_hair_style,G=c.change_head_markings,oe=c.head_marking_styles,X=c.head_marking_style,ve=c.change_body_markings,me=c.body_marking_styles,ne=c.body_marking_style,ce=c.change_tail_markings,q=c.tail_marking_styles,ae=c.tail_marking_style,J=c.change_body_accessory,Y=c.body_accessory_styles,Q=c.body_accessory_style,Z=c.change_alt_head,te=c.alt_head_styles,se=c.alt_head_style,ye=!1;return(V||C||h||g||N||x||B||L||T||A||w)&&(ye=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.specimen,selected:fe.specimen===d,onClick:function(){function Ie(){return i("race",{race:fe.specimen})}return Ie}()},fe.specimen)})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function fe(){return i("gender",{gender:"male"})}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function fe(){return i("gender",{gender:"female"})}return fe}()}),!v&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function fe(){return i("gender",{gender:"plural"})}return fe}()})]}),!!ye&&(0,e.createComponentVNode)(2,S),!!E&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headaccessorystyle,selected:fe.headaccessorystyle===P,onClick:function(){function Ie(){return i("head_accessory",{head_accessory:fe.headaccessorystyle})}return Ie}()},fe.headaccessorystyle)})}),!!M&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.hairstyle,selected:fe.hairstyle===F,onClick:function(){function Ie(){return i("hair",{hair:fe.hairstyle})}return Ie}()},fe.hairstyle)})}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function fe(){return i("hair_gradient")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function fe(){return i("hair_gradient_offset")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function fe(){return i("hair_gradient_colour")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function fe(){return i("hair_gradient_alpha")}return fe}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.facialhairstyle,selected:fe.facialhairstyle===$,onClick:function(){function Ie(){return i("facial_hair",{facial_hair:fe.facialhairstyle})}return Ie}()},fe.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:oe.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headmarkingstyle,selected:fe.headmarkingstyle===X,onClick:function(){function Ie(){return i("head_marking",{head_marking:fe.headmarkingstyle})}return Ie}()},fe.headmarkingstyle)})}),!!ve&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:me.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodymarkingstyle,selected:fe.bodymarkingstyle===ne,onClick:function(){function Ie(){return i("body_marking",{body_marking:fe.bodymarkingstyle})}return Ie}()},fe.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.tailmarkingstyle,selected:fe.tailmarkingstyle===ae,onClick:function(){function Ie(){return i("tail_marking",{tail_marking:fe.tailmarkingstyle})}return Ie}()},fe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Y.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodyaccessorystyle,selected:fe.bodyaccessorystyle===Q,onClick:function(){function Ie(){return i("body_accessory",{body_accessory:fe.bodyaccessorystyle})}return Ie}()},fe.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.altheadstyle,selected:fe.altheadstyle===se,onClick:function(){function Ie(){return i("alt_head",{alt_head:fe.altheadstyle})}return Ie}()},fe.altheadstyle)})})]})})})}return y}(),S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:s.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},72285:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosAlertConsole=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.priority||[],s=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)}),s.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return S}()},65805:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),m=n(98595),S=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},k=r.AtmosControl=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=(0,a.useLocalState)(s,"tabIndex",0),v=u[0],V=u[1],C=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,b);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:v===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return V(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return V(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),C(v)]})})})}return i}(),b=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:v.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:S(v.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function V(){return d("open_alarm",{aref:v.ref})}return V}()})})]},v.name)})]})})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms,v=f.stationLevelNum,V=f.stationLevelName,C=(0,a.useLocalState)(s,"zoom",1),h=C[0],g=C[1],N=(0,a.useLocalState)(s,"z_current",v[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function L(T){return g(T)}return L}(),zLevels:v,zNames:V,z_current:x,setZCurrent:B,children:u.map(function(L){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:L.x,y:L.y,z:L.z,z_current:x,zoom:h,icon:"circle",tooltip:L.name,color:y(L.danger),onClick:function(){function T(){return d("open_alarm",{aref:L.ref})}return T}()},L.ref)})})})}},87816:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosFilter=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.on,s=i.pressure,l=i.max_pressure,d=i.filter_type,f=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:s,onDrag:function(){function u(v,V){return p("custom_pressure",{pressure:V})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function v(){return p("set_filter",{filter:u.gas_type})}return v}()},u.label)})})]})})})})}return S}()},52977:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosMixer=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.on,l=c.pressure,d=c.max_pressure,f=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function v(){return i("min_pressure")}return v}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function v(V,C){return i("custom_pressure",{pressure:C})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function v(){return i("max_pressure")}return v}()})]}),(0,e.createComponentVNode)(2,S,{node_name:"Node 1",node_ref:f}),(0,e.createComponentVNode)(2,S,{node_name:"Node 2",node_ref:u})]})})})})}return y}(),S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=k.node_name,l=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(f,u){return i("set_node",{node_name:s,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l+10)/100})}return d}()})]})}},11748:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosPump=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.on,s=i.rate,l=i.max_rate,d=i.gas_unit,f=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:l,value:s,onDrag:function(){function u(v,V){return p("custom_rate",{rate:V})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_rate")}return u}()})]})]})})})})}return S}()},76511:function(I,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(39473),S=r.AutoDoc=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.HasTray,l=c.TguiIcons,d=c.occupant,f=c.isHealing,u=c.fixtimer,v=c.healtimer,V=(0,a.useLocalState)(b,"ChoosePart","chest"),C=V[0],h=V[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,m.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[C],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,m.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===C,onClick:function(){function N(){return h(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:s?"Eject Tray":"Reject Tray",locked:f,onClick:function(){function g(){return i("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[C]&&d[C].extOrgan)&&d[C].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[C]&&d[C].intOrgan)&&d[C].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return i("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return i("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!u&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),u],0),!!v&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),v],0)]})})})]})})})}return y}()},59179:function(I,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=function(i,c,s,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>s)},b=r.Autolathe=function(){function p(i,c){var s=(0,o.useBackend)(c),l=s.act,d=s.data,f=d.total_amount,u=d.max_amount,v=d.metal_amount,V=d.glass_amount,C=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,L=d.categories,T=(0,o.useSharedState)(c,"category",0),A=T[0],w=T[1];A===0&&(A="Tools");var E=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=(0,o.useSharedState)(c,"search_text",""),R=M[0],F=M[1],_=(0,y.createSearch)(R,function(G){return G.name}),U="";x>0&&(U=N.map(function(G,oe){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:N[oe][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return X}()},G)},oe)}));var W=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(A)>-1||R)&&(d.showhacked||!G.hacked)}),R&&(0,t.filter)(_),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),$="Build";return R?$="Results for: '"+R+"':":A&&($="Build ("+A+")"),(0,e.createComponentVNode)(2,S.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:L,selected:A,onSelected:function(){function G(oe){return w(oe)}return G}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(oe,X){return F(X)}return G}(),mb:1}),W.map(function(G){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+G.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===1,disabled:!k(G,d.metal_amount,d.glass_amount,1),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:1})}return oe}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===10,disabled:!k(G,d.metal_amount,d.glass_amount,10),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:10})}return oe}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===25,disabled:!k(G,d.metal_amount,d.glass_amount,25),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:25})}return oe}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===G.max_multiplier,disabled:!k(G,d.metal_amount,d.glass_amount,G.max_multiplier),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:G.max_multiplier})}return oe}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(oe){return(0,y.toTitleCase)(oe)+": "+G.requirements[oe]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:E}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:P}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:C?"green":"",children:C||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return l("clear_queue")}return G}()})]})]})]})})})}return p}()},64273:function(I,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(62411),S=r.Biogenerator=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data,d=s.config,f=l.container,u=l.processing,v=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:u,name:v}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,b)]})})})}return p}(),y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.container,v=d.container_curr_reagents,V=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:f}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),u?(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,maxValue:V,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:v+" / "+V+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.has_plants,u=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!f,tooltip:f?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function v(){return l("activate")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!u,tooltip:u?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function v(){return l("detach_container")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!f,tooltip:f?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function v(){return l("eject_plants")}return v}()})})]})})},b=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.product_list,v=d.container,V=(0,a.useSharedState)(c,"vendAmount",1),C=V[0],h=V[1],g=Object.entries(u).map(function(N,x){var B=Object.entries(N[1]).map(function(L){return L[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(L){return(0,e.createComponentVNode)(2,t.Stack,{py:"2px",className:"candystripe",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",ml:"2px",children:L.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[L.cost*C,(0,e.createComponentVNode)(2,t.Icon,{ml:"5px",name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"40%",children:L.needs_container&&!v?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:f0?Math.floor(A/l):0,P=s?"@?%%!\u2116@"+l:l,M=A>=l,R=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:E===0?"bad":E<100?"average":"good",value:T,maxValue:L,mt:1,mb:2,children:[E<=100?E:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:A?M?"good":"average":"bad",as:"span",children:Math.floor(A)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+P+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+R+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!M||d>0,onClick:function(){function F(){return i("probe",{rift_id:x})}return F}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:w?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:w||E<100,onClick:function(){function F(){return i("reward",{rift_id:x})}return F}(),mt:1.4})]})]})}return g}(),C=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(L,T){return(0,e.createComponentVNode)(2,t.Box,{children:[L.riftName," \u2014 ",Math.floor(L.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,L=N.scanStatus,T=N.canSwitch,A=N.switching,w=m[L],E=function(){function P(){if(w==="OFF")return[" ","silver"];if(w==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(w==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(w==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return P}(),O=E();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[A?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:w==="OFF"?"bad":"good",onClick:function(){function P(){return i("toggle_scanner",{scanner_id:x})}return P}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:w==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),w!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f&&f.map(function(g){return V(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:v&&v.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u&&u.map(function(g){return C(g)})})})]})})}return y}()},27629:function(I,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.BluespaceTap=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.product||[],l=c.desiredLevel,d=c.inputLevel,f=c.points,u=c.totalPoints,v=c.powerUse,V=c.availablePower,C=c.maxLevel,h=c.emagged,g=c.safeLevels,N=c.nextLevelPower,x=l>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:C,stepPixelSize:20,step:1,onChange:function(){function B(L,T){return i("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===C,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===C,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:C})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(v)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(V)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=f,onClick:function(){function L(){return i("vend",{target:B.key})}return L}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(I,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),m=n(36036),S=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],b=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var L=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,L){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,m.Box,{children:L},L)],0)},null):null},s=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},l=r.BodyScanner=function(){function N(x,B){var L=(0,o.useBackend)(B),T=L.data,A=T.occupied,w=T.occupant,E=w===void 0?{}:w,O=A?(0,e.createComponentVNode)(2,d,{occupant:E}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,S.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,f,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,v,{occupant:B}),(0,e.createComponentVNode)(2,C,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},f=function(x,B){var L=(0,o.useBackend)(B),T=L.act,A=L.data,w=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:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function E(){return T("insurance")}return E}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("eject_id")}return E}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function E(){return T("ejectify")}return E}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[w.stat][0],children:y[w.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:w.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:w.implant.map(function(E){return E.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:k.map(function(L,T){if(B[L[0]])return(0,e.createComponentVNode)(2,m.Box,{color:L[1],bold:L[1]==="bad",children:L[2]},L[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},v=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(b,function(L,T,A){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[L[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,V,{value:B[L[1]],marginBottom:A100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:L>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,s(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!B.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(B.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},L)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,L){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:L>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:L>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([s(B.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([B.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},L)})]})})},g=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42570:function(I,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BorgPanel=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.borg||{},s=i.cell||{},l=s.charge/s.maxcharge,d=i.channels||[],f=i.modules||[],u=i.upgrades||[],v=i.ais||[],V=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function C(){return p("rename")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.emagged?"check-square-o":"square-o",content:"Emagged",selected:c.emagged,onClick:function(){function C(){return p("toggle_emagged")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:c.lockdown,onClick:function(){function C(){return p("toggle_lockdown")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:c.scrambledcodes,onClick:function(){function C(){return p("toggle_scrambledcodes")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function C(){return p("reset_module")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[s.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:s.charge+" / "+s.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function C(){return p("set_charge")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function C(){return p("change_cell")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function C(){return p("remove_cell")}return C}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_radio",{channel:C.name})}return h}()},C.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:c.active_module===C.name?"check-square-o":"square-o",content:C.name+" module",selected:c.active_module===C.name,onClick:function(){function h(){return p("setmodule",{module:C.name})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:u.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.installed?"check-square-o":"square-o",content:C.name,selected:C.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:C.type})}return h}()},C.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:v.map(function(C){return(0,e.createComponentVNode)(2,t.Button,{icon:C.connected?"check-square-o":"square-o",content:C.name,selected:C.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:C.ref})}return h}()},C.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:c.lawmanager,onClick:function(){function C(){return p("lawmanager")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:c.lawupdate,onClick:function(){function C(){return p("toggle_lawupdate")}return C}()})],4),children:V.map(function(C){return(0,e.createComponentVNode)(2,t.Box,{children:C},C)})})]})})}return S}()},20464:function(I,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotClean=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,v=i.emagged,V=i.remote_disabled,C=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:s,onClick:function(){function g(){return p("blood")}return g}()})}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:s,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return S}()},74439:function(I,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotSecurity=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,v=i.emagged,V=i.remote_disabled,C=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function L(){return p("power")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function L(){return p("autopatrol")}return L}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:v?"bad":"good",children:v?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:v?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function L(){return p("hack")}return L}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!V,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function L(){return p("disableremote")}return L}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:s,onClick:function(){function L(){return p("authid")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:s,onClick:function(){function L(){return p("authweapon")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:s,onClick:function(){function L(){return p("authwarrant")}return L}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:s,onClick:function(){function L(){return p("arrtype")}return L}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:s,onClick:function(){function L(){return p("arrdeclare")}return L}()})]}),C&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:C,disabled:s,onClick:function(){function L(){return p("ejectpai")}return L}()})})]})})}return S}()},10833:function(I,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),m=function(b,p){var i=b.cell,c=(0,o.useBackend)(p),s=c.act,l=i.cell_id,d=i.occupant,f=i.crimes,u=i.brigged_by,v=i.time_left_seconds,V=i.time_set_seconds,C=i.ref,h="";v>0&&(h+=" BrigCells__listRow--active");var g=function(){s("release",{ref:C})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:V})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:v})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},S=function(b){var p=b.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function k(b,p){var i=(0,o.useBackend)(p),c=i.act,s=i.data,l=s.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,S,{cells:l})})})})})}return k}()},45761:function(I,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BrigTimer=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var s=[],l=0;for(l=0;l60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return S}()},26300:function(I,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),m=n(25328),S=n(72253),y=n(36036),k=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var b=function(f,u){var v,V;if(!u)return[];var C=f.findIndex(function(h){return h.name===u.name});return[(v=f[C-1])==null?void 0:v.name,(V=f[C+1])==null?void 0:V.name]},p=function(f,u){u===void 0&&(u="");var v=(0,m.createSearch)(u,function(V){return V.name});return(0,t.flow)([(0,a.filter)(function(V){return V==null?void 0:V.name}),u&&(0,a.filter)(v),(0,a.sortBy)(function(V){return V.name})])(f)},i=r.CameraConsole=function(){function d(f,u){var v=(0,S.useLocalState)(u,"tabIndex",0),V=v[0],C=v[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===0,onClick:function(){function g(){return C(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:V===1,onClick:function(){function g(){return C(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),h(V)]})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(f,u){var v=(0,S.useBackend)(u),V=v.act,C=v.data,h=p(C.cameras),g=(0,S.useLocalState)(u,"zoom",1),N=g[0],x=g[1],B=C.mapRef,L=C.activeCamera,T=C.stationLevelNum,A=C.stationLevelName,w=(0,S.useLocalState)(u,"z_current",T[0]),E=w[0],O=w[1],P=b(h,L),M=P[0],R=P[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function F(_){return x(_)}return F}(),zLevels:T,zNames:A,z_current:E,setZCurrent:O,children:h.map(function(F){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:E,zoom:N,icon:"box",tooltip:F.name,color:F.status?"blue":"red",bordered:!0,onClick:function(){function _(){return V("switch_camera",{name:F.name})}return _}()},F.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),L&&L.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!M,onClick:function(){function F(){return V("switch_camera",{name:M})}return F}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!R,onClick:function(){function F(){return V("switch_camera",{name:R})}return F}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),s=r.CameraConsoleOldContent=function(){function d(f,u){var v=(0,S.useBackend)(u),V=v.act,C=v.data,h=v.config,g=C.mapRef,N=C.activeCamera,x=(0,S.useLocalState)(u,"searchText",""),B=x[0],L=p(C.cameras,B),T=b(L,N),A=T[0],w=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!A,onClick:function(){function E(){return V("switch_camera",{name:A})}return E}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!w,onClick:function(){function E(){return V("switch_camera",{name:w})}return E}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(f,u){var v=(0,S.useBackend)(u),V=v.act,C=v.data,h=(0,S.useLocalState)(u,"searchText",""),g=h[0],N=h[1],x=C.activeCamera,B=p(C.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function L(T,A){return N(A)}return L}()})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,m:0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:B.map(function(L){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&L.name===x.name&&"Button--selected"]),L.name,0,{title:L.name,onClick:function(){function T(){return V("switch_camera",{name:L.name})}return T}()},L.name)})})})]})}return d}()},52927:function(I,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(49968),S=n(98595),y=r.Canister=function(){function k(b,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.portConnected,d=s.tankPressure,f=s.releasePressure,u=s.defaultReleasePressure,v=s.minReleasePressure,V=s.maxReleasePressure,C=s.valveOpen,h=s.name,g=s.canLabel,N=s.colorContainer,x=s.color_index,B=s.hasHoldingTank,L=s.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var A="";x.sec&&(A=N.sec.options[x.sec].name);var w="";x.ter&&(w=N.ter.options[x.ter].name);var E="";x.quart&&(E=N.quart.options[x.quart].name);var O=[],P=[],M=[],R=[],F=0;for(F=0;Fh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!h.can_close,onClick:function(){function g(){return f("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!h.can_open,onClick:function(){function g(){return f("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:u.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return f("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):C=(0,e.createComponentVNode)(2,k);break;case 2:!u.authenticated||!u.scan_name?C=(0,e.createComponentVNode)(2,k):u.modify_name?C=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function h(g){return f("set",{access:g})}return h}(),grantAll:function(){function h(){return f("grant_all")}return h}(),denyAll:function(){function h(){return f("clear_all")}return h}(),grantDep:function(){function h(g){return f("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return f("deny_region",{region:g})}return h}()}):C=(0,e.createComponentVNode)(2,b);break;case 3:u.authenticated?u.records.length?C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function h(){return f("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function h(){return f("wipe_my_logs")}return h}()})})]}):C=(0,e.createComponentVNode)(2,p):C=(0,e.createComponentVNode)(2,k);break;case 4:!u.authenticated||!u.scan_name?C=(0,e.createComponentVNode)(2,k):C=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return f("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:C=(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:V}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:v}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:C})]})})})}return c}()},64083:function(I,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=r.CargoConsole=function(){function s(l,d){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),b=function(l,d){var f=(0,o.useLocalState)(d,"contentsModal",null),u=f[0],v=f[1],V=(0,o.useLocalState)(d,"contentsModalTitle",null),C=V[0],h=V[1];if(u!==null&&C!==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,[C,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:u.map(function(g){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function g(){v(null),h(null)}return g}()})})]})},p=function(l,d){var f=(0,o.useBackend)(d),u=f.act,v=f.data,V=v.is_public,C=v.points,h=v.credits,g=v.timeleft,N=v.moving,x=v.at_station,B,L;return!N&&!x?(B="Docked off-station",L="Call Shuttle"):!N&&x?(B="Docked at the station",L="Return Shuttle"):N&&(L="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Points Available",children:C}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:B}),V===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:L,disabled:N,onClick:function(){function T(){return u("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return u("showMessages")}return T}()})]})]})})})},i=function(l,d){var f=(0,o.useBackend)(d),u=f.act,v=f.data,V=v.categories,C=v.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],L=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),A=T[0],w=T[1],E=(0,o.useLocalState)(d,"contentsModalTitle",null),O=E[0],P=E[1],M=(0,y.createSearch)(B,function(_){return _.name}),R=(0,a.flow)([(0,t.filter)(function(_){return _.cat===V.filter(function(U){return U.name===g})[0].category||B}),B&&(0,t.filter)(M),(0,t.sortBy)(function(_){return _.name.toLowerCase()})])(C),F="Crate Catalogue";return B?F="Results for '"+B+"':":g&&(F="Browsing "+g),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:F,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:V.map(function(_){return _.name}),selected:g,onSelected:function(){function _(U){return N(U)}return _}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function _(U,W){return L(W)}return _}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:R.map(function(_){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,m.Box,{color:_.has_sale?"good":"default",children:[_.name," (",_.cost?_.cost+" Points":"",_.creditsCost&&_.cost?" ":"",_.creditsCost?_.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:0})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:1})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function U(){w(_.contents),P(_.name)}return U}()})]})]},_.name)})})})]})})},c=function(l,d){var f=(0,o.useBackend)(d),u=f.act,v=f.data,V=v.requests,C=v.canapprove,h=v.orders;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:V.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!C,onClick:function(){function N(){return u("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function N(){return u("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(I,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.DelayHelper=function(){function S(y,k){var b=(0,t.useBackend)(k),p=b.act,i=b.data,c=i.delays,s=i.rev_delays,l=y.delay_list,d=y.reverse,f=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(u,v){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:u.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(f?s[v+1]:c[v+1])/10>10?"orange":"default",format:function(){function V(C){return(0,a.toFixed)(C,2)}return V}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function V(C,h){p("editTiming",{reverse:f,timer:""+(v+1),value:Math.max(h,0)})}return V}(),size:1,step:.02,unclamped:!0,unit:"s",value:(f?s[v+1]:c[v+1])/10})},v)})})}return S}()},23749:function(I,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodBays=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function s(){return p("clearBay")}return s}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return p("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:c===""+(l+1),tooltipPosition:"bottom-end",children:s.title},l)})})}return S}()},8507:function(I,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),m=r.PodLaunch=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.giveLauncher,s=(0,o.useCompact)(k),l=s[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return p("giveLauncher")}return d}(),selected:c,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return S}()},15802:function(I,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodSounds=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.defaultSoundVolume,s=i.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return p("soundVolume")}return l}(),selected:s!==c,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+s}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return p(l.act)}return f}(),selected:i[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return S}()},94577:function(I,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.PodStatusPage=function(){function b(p,i){var c=(0,m.useCompact)(i),s=c[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!s&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(f,u){return(0,e.createComponentVNode)(2,y,{effect:f,hasMargin:l.list.length>1,index:u},u)})})]}),d=0;--J){var Y=this.tryEntries[J],Q=Y.completion;if(Y.tryLoc==="root")return ae("end");if(Y.tryLoc<=this.prev){var Z=f.call(Y,"catchLoc"),te=f.call(Y,"finallyLoc");if(Z&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&f.call(J,"finallyLoc")&&this.prev=0;--q){var ae=this.tryEntries[q];if(ae.finallyLoc===ce)return this.complete(ae.completion,ae.afterLoc),X(ae),w}}return ne}(),catch:function(){function ne(ce){for(var q=this.tryEntries.length-1;q>=0;--q){var ae=this.tryEntries[q];if(ae.tryLoc===ce){var J=ae.completion;if(J.type==="throw"){var Y=J.arg;X(ae)}return Y}}throw Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ce,q,ae){return this.delegate={iterator:me(ce),resultName:q,nextLoc:ae},this.method==="next"&&(this.arg=s),w}return ne}()},l}function k(s,l,d,f,u,v,V){try{var C=s[v](V),h=C.value}catch(g){return void d(g)}C.done?l(h):Promise.resolve(h).then(f,u)}function b(s){return function(){var l=this,d=arguments;return new Promise(function(f,u){var v=s.apply(l,d);function V(h){k(v,f,u,V,C,"next",h)}function C(h){k(v,f,u,V,C,"throw",h)}V(void 0)})}}var p=function(){var s=b(y().mark(function(){function l(d,f){return y().wrap(function(){function u(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,a.storage.set("podlauncher_preset_"+d,f);case 2:case"end":return v.stop()}}return u}(),l)}return l}()));return function(){function l(d,f){return s.apply(this,arguments)}return l}()}(),i=function(l,d){var f=(0,o.useBackend)(d),u=f.data,v=l.editing,V=l.deletePreset,C=l.loadPreset,h=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!v&&(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!v)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return p(h.toString(),u)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){C(h)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return V(h)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},c=r.PresetsPage=function(){function s(l,d){var f=(0,o.useBackend)(d),u=f.act,v=f.data,V=(0,o.useLocalState)(d,"editing",!1),C=V[0],h=V[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),L=B[0],T=B[1],A=(0,o.useLocalState)(d,"presetID",0),w=A[0],E=A[1],O=(0,o.useLocalState)(d,"presets",[]),P=O[0],M=O[1],R=function(){var W=b(y().mark(function(){function $(G){var oe,X;return y().wrap(function(){function ve(me){for(;;)switch(me.prev=me.next){case 0:oe=[].concat(P),X=0;case 2:if(!(X=l.length-2?f%2===1?"top-start":"top-end":f%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return S}()},8179:function(I,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:s?s.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),m=r.TabBay=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=(0,a.useLocalState)(b,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportCentcom"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),S=r.TabDrop=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=(0,a.useLocalState)(b,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportDropoff"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(I,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(22794),S=r.Timing=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.custom_rev_delay,l=c.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return i("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:s===1?"toggle-on":"toggle-off",onClick:function(){function d(){return i("toggleRevDelays")}return d}(),selected:s,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:s?(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(I,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.ViewTabHolder=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.mapRef,l=c.customDropoff,d=c.effectReverse,f=c.renderLighting,u=(0,m.useTab)(b),v=u[0],V=u[1],C=o.TABPAGES[v].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function h(){V(2),i("tabSwitch",{tabIndex:2})}return h}(),selected:v===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function h(){V(0),i("tabSwitch",{tabIndex:0})}return h}(),selected:v===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function h(){V(1),i("tabSwitch",{tabIndex:1})}return h}(),selected:v===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function h(){i("renderLighting"),i("refreshView")}return h}(),selected:f,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function h(){V(v),i("refreshView")}return h}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:s,type:"map",zoom:0}})})]})})}return y}()},7144:function(I,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],m=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],S=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],k=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],b=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],p=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],i=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],c=r.EFFECTS_ALL=[{list:b,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:p,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:i,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(I,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(m){return(0,e.useLocalState)(m,"compact",!1)}return o}(),t=r.useTab=function(){function o(m){return(0,e.useLocalState)(m,"tab",1)}return o}()},65875:function(I,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),m=n(23749),S=n(8507),y=n(15802),k=n(94577),b=n(30590),p=n(72932),i=n(68569),c=n(18885),s=n(76417),l=r.CentcomPodLauncher=function(){function d(f,u){var v=(0,o.useCompact)(u),V=v[0];return(0,e.createComponentVNode)(2,t.Window,{height:V?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:V?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,k.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,S.PodLaunch)})})]})}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,s.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,m.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c.Timing)}),!V&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,i.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(I,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(79140),y=b(n(83331)),k=b(n(52754));function b(u){return u&&u.__esModule?u:{default:u}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return v};var u,v={},V=Object.prototype,C=V.hasOwnProperty,h=Object.defineProperty||function(J,Y,Q){J[Y]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function L(J,Y,Q){return Object.defineProperty(J,Y,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[Y]}try{L({},"")}catch(J){L=function(Q,Z,te){return Q[Z]=te}}function T(J,Y,Q,Z){var te=Y&&Y.prototype instanceof R?Y:R,se=Object.create(te.prototype),ye=new q(Z||[]);return h(se,"_invoke",{value:ve(J,Q,ye)}),se}function A(J,Y,Q){try{return{type:"normal",arg:J.call(Y,Q)}}catch(Z){return{type:"throw",arg:Z}}}v.wrap=T;var w="suspendedStart",E="suspendedYield",O="executing",P="completed",M={};function R(){}function F(){}function _(){}var U={};L(U,N,function(){return this});var W=Object.getPrototypeOf,$=W&&W(W(ae([])));$&&$!==V&&C.call($,N)&&(U=$);var G=_.prototype=R.prototype=Object.create(U);function oe(J){["next","throw","return"].forEach(function(Y){L(J,Y,function(Q){return this._invoke(Y,Q)})})}function X(J,Y){function Q(te,se,ye,fe){var Ie=A(J[te],J,se);if(Ie.type!=="throw"){var D=Ie.arg,re=D.value;return re&&typeof re=="object"&&C.call(re,"__await")?Y.resolve(re.__await).then(function(de){Q("next",de,ye,fe)},function(de){Q("throw",de,ye,fe)}):Y.resolve(re).then(function(de){D.value=de,ye(D)},function(de){return Q("throw",de,ye,fe)})}fe(Ie.arg)}var Z;h(this,"_invoke",{value:function(){function te(se,ye){function fe(){return new Y(function(Ie,D){Q(se,ye,Ie,D)})}return Z=Z?Z.then(fe,fe):fe()}return te}()})}function ve(J,Y,Q){var Z=w;return function(te,se){if(Z===O)throw Error("Generator is already running");if(Z===P){if(te==="throw")throw se;return{value:u,done:!0}}for(Q.method=te,Q.arg=se;;){var ye=Q.delegate;if(ye){var fe=me(ye,Q);if(fe){if(fe===M)continue;return fe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(Z===w)throw Z=P,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);Z=O;var Ie=A(J,Y,Q);if(Ie.type==="normal"){if(Z=Q.done?P:E,Ie.arg===M)continue;return{value:Ie.arg,done:Q.done}}Ie.type==="throw"&&(Z=P,Q.method="throw",Q.arg=Ie.arg)}}}function me(J,Y){var Q=Y.method,Z=J.iterator[Q];if(Z===u)return Y.delegate=null,Q==="throw"&&J.iterator.return&&(Y.method="return",Y.arg=u,me(J,Y),Y.method==="throw")||Q!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),M;var te=A(Z,J.iterator,Y.arg);if(te.type==="throw")return Y.method="throw",Y.arg=te.arg,Y.delegate=null,M;var se=te.arg;return se?se.done?(Y[J.resultName]=se.value,Y.next=J.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=u),Y.delegate=null,M):se:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,M)}function ne(J){var Y={tryLoc:J[0]};1 in J&&(Y.catchLoc=J[1]),2 in J&&(Y.finallyLoc=J[2],Y.afterLoc=J[3]),this.tryEntries.push(Y)}function ce(J){var Y=J.completion||{};Y.type="normal",delete Y.arg,J.completion=Y}function q(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(ne,this),this.reset(!0)}function ae(J){if(J||J===""){var Y=J[N];if(Y)return Y.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,Z=function(){function te(){for(;++Q=0;--te){var se=this.tryEntries[te],ye=se.completion;if(se.tryLoc==="root")return Z("end");if(se.tryLoc<=this.prev){var fe=C.call(se,"catchLoc"),Ie=C.call(se,"finallyLoc");if(fe&&Ie){if(this.prev=0;--Z){var te=this.tryEntries[Z];if(te.tryLoc<=this.prev&&C.call(te,"finallyLoc")&&this.prev=0;--Q){var Z=this.tryEntries[Q];if(Z.finallyLoc===Y)return this.complete(Z.completion,Z.afterLoc),ce(Z),M}}return J}(),catch:function(){function J(Y){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var Z=this.tryEntries[Q];if(Z.tryLoc===Y){var te=Z.completion;if(te.type==="throw"){var se=te.arg;ce(Z)}return se}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(Y,Q,Z){return this.delegate={iterator:ae(Y),resultName:Q,nextLoc:Z},this.method==="next"&&(this.arg=u),M}return J}()},v}function i(u,v,V,C,h,g,N){try{var x=u[g](N),B=x.value}catch(L){return void V(L)}x.done?v(B):Promise.resolve(B).then(C,h)}function c(u){return function(){var v=this,V=arguments;return new Promise(function(C,h){var g=u.apply(v,V);function N(B){i(g,C,h,N,x,"next",B)}function x(B){i(g,C,h,N,x,"throw",B)}N(void 0)})}}function s(u,v){u.prototype=Object.create(v.prototype),u.prototype.constructor=u,l(u,v)}function l(u,v){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,C){return V.__proto__=C,V},l(u,v)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},f=r.Changelog=function(u){function v(){var C;return C=u.call(this)||this,C.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(C.context),x=N.act,B=C,L=6;if(g>L)return C.setData("Failed to load data after "+L+" attempts");x("get_month",{date:h}),fetch((0,S.resolveAsset)(h+".yml")).then(function(){var T=c(p().mark(function(){function A(w){var E,O,P;return p().wrap(function(){function M(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,w.text();case 2:E=R.sent,O=/^Cannot find/,O.test(E)?(P=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},P)):B.setData(k.default.load(E,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return R.stop()}}return M}(),A)}return A}()));return function(A){return T.apply(this,arguments)}}())},C.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},C.dateChoices=[],C}s(v,u);var V=v.prototype;return V.setData=function(){function C(h){this.setState({data:h})}return C}(),V.setSelectedDate=function(){function C(h){this.setState({selectedDate:h})}return C}(),V.setSelectedIndex=function(){function C(h){this.setState({selectedIndex:h})}return C}(),V.componentDidMount=function(){function C(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return C}(),V.render=function(){function C(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,L=(0,t.useBackend)(this.context),T=L.data.dates,A=this.dateChoices,w=A.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function R(){var F=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(A[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:A,onSelected:function(){function R(F){var _=A.indexOf(F);return h.setData("Loading changelog data..."),h.setSelectedIndex(_),h.setSelectedDate(F),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[_])}return R}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===A.length-1,icon:"chevron-right",onClick:function(){function R(){var F=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(A[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})})]}),E=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),w]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[w,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),P=/#\d+/,M=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(R){var F=R[0],_=R[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(F,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(_).map(function(U){var W=U[0],$=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:$.map(function(G){var oe=Object.keys(G)[0],X=G[oe],ve=X.match(P),me=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[oe]?d[oe].color:d.unknown.color,name:d[oe]?d[oe].icon:d.unknown.icon})});return ve!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",X.charAt(0).toUpperCase()+X.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+ve[0].substring(1)})})]},oe+X)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:X})]},oe+X)})})})],4,W)})})},F)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[E,M,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return C}(),v}(e.Component)},91360:function(I,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(98595),y=r.CheckboxListInputModal=function(){function b(p,i){var c=(0,m.useBackend)(i),s=c.act,l=c.data,d=l.items,f=d===void 0?[]:d,u=l.message,v=u===void 0?"":u,V=l.init_value,C=l.timeout,h=l.title,g=(0,m.useLocalState)(i,"edittedItems",f),N=g[0],x=g[1],B=330+Math.ceil(v.length/3),L=function(){function T(A){A===void 0&&(A=null);var w=[].concat(N);w=w.map(function(E){return E.key===A.key?Object.assign({},E,{checked:!A.checked}):E}),x(w)}return T}();return(0,e.createComponentVNode)(2,S.Window,{title:h,width:325,height:B,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{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:N,onClick:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return b}(),k=function(p,i){var c=p.filteredItems,s=p.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function f(){return s(l)}return f}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(f){return f.toUpperCase()})},d)})})}},36108:function(I,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),m=n(98595),S=[1,5,10,20,30,50,100],y=[1,5,10],k=r.ChemDispenser=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,v=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:460,height:400+v.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,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),b=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,v=u.amount,V=u.energy,C=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:V,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[V," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:S.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:v===h,content:h,onClick:function(){function N(){return f("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(s,l){for(var d=(0,a.useBackend)(l),f=d.act,u=d.data,v=u.chemicals,V=v===void 0?[]:v,C=[],h=0;h<(V.length+1)%3;h++)C.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[V.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return f("dispense",{reagent:g.id})}return x}()},N)}),C.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,v=u.isBeakerLoaded,V=u.beakerCurrentVolume,C=u.beakerMaxVolume,h=u.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!v&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[V," / ",C," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!v,onClick:function(){function N(){return f("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:v,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,L){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return f("remove",{reagent:x.id,amount:B})}return T}()},L)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(I,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(85870),S=n(98595),y=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,S.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,b)]})})})}return p}(),k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.targetTemp,u=d.targetTempReached,v=d.autoEject,V=d.isActive,C=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:v?"toggle-on":"toggle-off",selected:v,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:V?"On":"Off",icon:"power-off",selected:V,disabled:!h,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(f,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:C,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},b=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.isBeakerLoaded,u=d.beakerCurrentVolume,v=d.beakerMaxVolume,V=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!f&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",v," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function C(){return l("eject_beaker")}return C}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:f,beakerContents:V})})})}},56541:function(I,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(85870),S=n(3939),y=n(35840),k=["icon"];function b(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}function p(B,L){B.prototype=Object.create(L.prototype),B.prototype.constructor=B,i(B,L)}function i(B,L){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},i(B,L)}var c=[1,5,10],s=function(L,T){var A=(0,a.useBackend)(T),w=A.act,E=A.data,O=L.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!E.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){function P(){return w("print",{idx:O.idx,beaker:L.args.beaker})}return P}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(L,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),f=function(L,T){var A=(0,a.useBackend)(T),w=A.act,E=A.data,O=E.beaker,P=E.beaker_reagents,M=E.buffer_reagents,R=M.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}),children:O?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function F(_,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:P,buttons:function(){function M(R,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0&&(R=M.map(function(F){var _=F.id,U=F.sprite;return(0,e.createComponentVNode)(2,g,{icon:U,color:"translucent",onClick:function(){function W(){return w("set_sprite_style",{production_mode:O,style:_})}return W}(),selected:P===_},_)})),(0,e.createComponentVNode)(2,h,{productionData:L.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},x=function(L,T){var A=(0,a.useBackend)(T),w=A.act,E=A.data,O=E.loaded_pill_bottle_style,P=E.containerstyles,M=E.loaded_pill_bottle,R={width:"20px",height:"20px"},F=P.map(function(_){var U=_.color,W=_.name,$=O===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return w("set_container_style",{style:U})}return G}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!$&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!M,content:"Eject Container",onClick:function(){function _(){return w("ejectp")}return _}()}),children:M?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function _(){return w("clear_container_style")}return _}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),F]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,S.modalRegisterBodyOverride)("analyze",s)},37173:function(I,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(76910),S=n(3939),y=n(98595),k=n(79140),b=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=v.args,x=N.activerecord,B=N.realname,L=N.health,T=N.unidentity,A=N.strucenzymes,w=L.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:w.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:w[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:w[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:w[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:w[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:A}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function E(){return h("disk",{option:"load"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ui"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"ue"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function E(){return h("disk",{option:"save",savetype:"se"})}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function E(){return h("clone",{ref:x})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function E(){return h("del_rec")}return E}()})]})]})})},p=r.CloningConsole=function(){function u(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.menu;return(0,S.modalRegisterBodyOverride)("view_rec",b),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,S.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,c)})]})]})}return u}(),i=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},c=function(v,V){var C=(0,t.useBackend)(V),h=C.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,s):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},s=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.loading,x=g.scantemp,B=g.occupant,L=g.locked,T=g.can_brainscan,A=g.scan_mode,w=g.numberofpods,E=g.pods,O=g.selected_pod,P=L&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Engaged":"Disengaged",onClick:function(){function M(){return h("lock")}return M}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:P||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function M(){return h("eject")}return M}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"brain":"male",content:A?"Brain":"Body",onClick:function(){function M(){return h("toggle_mode")}return M}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function M(){return h("scan")}return M}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:w?E.map(function(M,R){var F;return M.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:M.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(M.progress,0)+"%"})}):M.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:O===M.pod,icon:O===M.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function _(){return h("selectpod",{ref:M.pod})}return _}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+M.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",R+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:M.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:M.biomass>=150?"circle":"circle-o"}),"\xA0",M.biomass]}),F]},R)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},l=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function L(){return h("view_rec",{ref:x.record})}return L}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(v,V){var C,h=(0,t.useBackend)(V),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(C={},C[x.style]=!0,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function L(){return g("cleartemp")}return L}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},f=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,L=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:L?"Enabled":"Disabled",onClick:function(){function A(){return h("autoprocess",{on:L?0:1})}return A}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"Eject Disk",onClick:function(){function A(){return h("disk",{option:"eject"})}return A}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},18259:function(I,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.CoinMint=function(){function y(k,b){var p=(0,t.useBackend)(b),i=p.act,c=p.data,s=c.materials,l=c.moneyBag,d=c.moneyBagContent,f=c.moneyBagMaxContent,u=(l?210:138)+Math.ceil(s.length/4)*64;return(0,e.createComponentVNode)(2,m.Window,{width:256,height:u,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function v(){return i("activate")}return v}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function v(){return i("ejectMat")}return v}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:s.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:v.id===c.chosenMaterial,tooltip:v.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",v.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v.amount})]}),onClick:function(){function V(){return i("selectMaterial",{material:v.id})}return V}()},v.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:c.active,onClick:function(){function v(){return i("ejectBag")}return v}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:f,value:d,children:[d," / ",f]})})})]})})})}return y}()},93858:function(I,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),m=n(98595),S=n(44879),y=n(14448),k=n(4454),b=n(35840),p=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** + */var S=(0,t.createLogger)("hotkeys"),y={},k=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT],V={},p=function(u){if(u===16)return"Shift";if(u===17)return"Ctrl";if(u===18)return"Alt";if(u===33)return"Northeast";if(u===34)return"Southeast";if(u===35)return"Southwest";if(u===36)return"Northwest";if(u===37)return"West";if(u===38)return"North";if(u===39)return"East";if(u===40)return"South";if(u===45)return"Insert";if(u===46)return"Delete";if(u>=48&&u<=57||u>=65&&u<=90)return String.fromCharCode(u);if(u>=96&&u<=105)return"Numpad"+(u-96);if(u>=112&&u<=123)return"F"+(u-111);if(u===188)return",";if(u===189)return"-";if(u===190)return"."},i=function(u){var C=String(u);if(C==="Ctrl+F5"||C==="Ctrl+R"){location.reload();return}if(C!=="Ctrl+F"&&!(u.event.defaultPrevented||u.isModifierKey()||k.includes(u.code))){C==="F5"&&(u.event.preventDefault(),u.event.returnValue=!1);var b=p(u.code);if(b){var v=y[b];if(v)return S.debug("macro",v),Byond.command(v);if(u.isDown()&&!V[b]){V[b]=!0;var h='KeyDown "'+b+'"';return S.debug(h),Byond.command(h)}if(u.isUp()&&V[b]){V[b]=!1;var g='KeyUp "'+b+'"';return S.debug(g),Byond.command(g)}}}},c=r.acquireHotKey=function(){function f(u){k.push(u)}return f}(),s=r.releaseHotKey=function(){function f(u){var C=k.indexOf(u);C>=0&&k.splice(C,1)}return f}(),l=r.releaseHeldKeys=function(){function f(){for(var u=0,C=Object.keys(V);u0||(0,a.fetchRetry)((0,e.resolveAsset)("icon_ref_map.json")).then(function(S){return S.json()}).then(function(S){return Byond.iconRefMap=S}).catch(function(S){return t.logger.log(S)})}return m}()},1090:function(L,r,n){"use strict";r.__esModule=!0,r.AICard=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AICard=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.has_ai===0)return(0,e.createComponentVNode)(2,o.Window,{width:250,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createVNode)(1,"h3",null,"No AI detected.",16)})})})});var c=null;return i.integrity>=75?c="green":i.integrity>=25?c="yellow":c="red",(0,e.createComponentVNode)(2,o.Window,{width:600,height:420,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.name,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:c,value:i.integrity/100})})}),(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h2",null,i.flushing===1?"Wipe of AI in progress...":"",0)})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(s,l){return(0,e.createComponentVNode)(2,t.Box,{children:s},l)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.wireless?"check":"times",content:i.wireless?"Enabled":"Disabled",color:i.wireless?"green":"red",onClick:function(){function s(){return p("wireless")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{width:10,icon:i.radio?"check":"times",content:i.radio?"Enabled":"Disabled",color:i.radio?"green":"red",onClick:function(){function s(){return p("radio")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wipe",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{width:10,icon:"trash-alt",confirmIcon:"trash-alt",disabled:i.flushing||i.integrity===0,confirmColor:"red",content:"Wipe AI",onClick:function(){function s(){return p("wipe")}return s}()})})]})})})]})})})}return S}()},39454:function(L,r,n){"use strict";r.__esModule=!0,r.AIFixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AIFixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.occupant===null)return(0,e.createComponentVNode)(2,o.Window,{width:550,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Stored AI",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"robot",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No Artificial Intelligence detected.",16)]})})})})});var c=!0;(i.stat===2||i.stat===null)&&(c=!1);var s=null;i.integrity>=75?s="green":i.integrity>=25?s="yellow":s="red";var l=!0;return i.integrity>=100&&i.stat!==2&&(l=!1),(0,e.createComponentVNode)(2,o.Window,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:i.occupant,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:s,value:i.integrity/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:c?"green":"red",children:c?"Functional":"Non-Functional"})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Laws",children:!!i.has_laws&&(0,e.createComponentVNode)(2,t.Box,{children:i.laws.map(function(d,f){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:d},f)})})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:(0,e.createVNode)(1,"h3",null,"No laws detected.",16)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Wireless Activity",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.wireless?"times":"check",content:i.wireless?"Disabled":"Enabled",color:i.wireless?"red":"green",onClick:function(){function d(){return p("wireless")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subspace Transceiver",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.radio?"times":"check",content:i.radio?"Disabled":"Enabled",color:i.radio?"red":"green",onClick:function(){function d(){return p("radio")}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Start Repairs",children:(0,e.createComponentVNode)(2,t.Button,{icon:"wrench",disabled:!l||i.active,content:!l||i.active?"Already Repaired":"Repair",onClick:function(){function d(){return p("fix")}return d}()})})]}),(0,e.createComponentVNode)(2,t.Box,{color:"green",lineHeight:2,children:i.active?"Reconstruction in progress.":""})]})})]})})})}return S}()},88422:function(L,r,n){"use strict";r.__esModule=!0,r.APC=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.APC=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:510,height:435,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),y={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},k={1:{icon:"terminal",content:"Override Programming",action:"hack"},2:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"},3:{icon:"caret-square-left",content:"Return to Main Core",action:"deoccupy"},4:{icon:"caret-square-down",content:"Shunt Core Process",action:"occupy"}},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.locked&&!d.siliconUser,u=d.normallyLocked,C=y[d.externalPower]||y[0],b=y[d.chargingStatus]||y[0],v=d.powerChannels||[],h=k[d.malfStatus]||k[0],g=d.powerCellStatus/100;return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main Breaker",color:C.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.isOperating?"power-off":"times",content:d.isOperating?"On":"Off",selected:d.isOperating&&!f,color:d.isOperating?"":"bad",disabled:f,onClick:function(){function N(){return l("breaker")}return N}()}),children:["[ ",C.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power Cell",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"good",value:g})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d.chargeMode?"sync":"times",content:d.chargeMode?"Auto":"Off",selected:d.chargeMode,disabled:f,onClick:function(){function N(){return l("charge")}return N}()}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Power Channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.map(function(N){var x=N.topicParams;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:2,color:N.status>=2?"good":"bad",children:N.status>=2?"On":"Off"}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:!f&&(N.status===1||N.status===3),disabled:f,onClick:function(){function B(){return l("channel",x.auto)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:"On",selected:!f&&N.status===2,disabled:f,onClick:function(){function B(){return l("channel",x.on)}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:!f&&N.status===0,disabled:f,onClick:function(){function B(){return l("channel",x.off)}return B}()})],4),children:[N.powerLoad," W"]},N.title)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Load",children:(0,e.createVNode)(1,"b",null,[d.totalLoad,(0,e.createTextVNode)(" W")],0)})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Misc",buttons:!!d.siliconUser&&(0,e.createFragment)([!!d.malfStatus&&(0,e.createComponentVNode)(2,t.Button,{icon:h.icon,content:h.content,color:"bad",onClick:function(){function N(){return l(h.action)}return N}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:"Overload",onClick:function(){function N(){return l("overload")}return N}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cover Lock",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.4,icon:d.coverLocked?"lock":"unlock",content:d.coverLocked?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("cover")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Night Shift Lighting",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"lightbulb-o",content:d.nightshiftLights?"Enabled":"Disabled",onClick:function(){function N(){return l("toggle_nightshift")}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Lighting Fallback",buttons:(0,e.createComponentVNode)(2,t.Button,{mt:.4,icon:"lightbulb-o",content:d.emergencyLights?"Engaged":"Disengaged",disabled:f,onClick:function(){function N(){return l("emergency_lighting")}return N}()})})]})})],4)}},99660:function(L,r,n){"use strict";r.__esModule=!0,r.ATM=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ATM=function(){function l(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.view_screen,h=b.authenticated_account,g=b.ticks_left_locked_down,N=b.linked_db,x;if(g>0)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Maximum number of pin attempts exceeded! Access to this ATM has been temporarily disabled."]});else if(!N)x=(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-triangle"}),"Unable to connect to accounts database, please retry and if the issue persists contact Nanotrasen IT support."]});else if(h)switch(v){case 1:x=(0,e.createComponentVNode)(2,y);break;case 2:x=(0,e.createComponentVNode)(2,k);break;case 3:x=(0,e.createComponentVNode)(2,c);break;case 4:x=(0,e.createComponentVNode)(2,V);break;default:x=(0,e.createComponentVNode)(2,p)}else x=(0,e.createComponentVNode)(2,i);return(0,e.createComponentVNode)(2,o.Window,{width:550,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Section,{children:x})]})})}return l}(),S=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.machine_id,h=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Nanotrasen Automatic Teller Machine",children:[(0,e.createComponentVNode)(2,t.Box,{children:"For all your monetary needs!"}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Card",children:(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"eject",onClick:function(){function g(){return C("insert_card")}return g}()})})})]})},y=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.security_level;return(0,e.createComponentVNode)(2,t.Section,{title:"Select a new security level for this account",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Number",icon:"unlock",selected:v===0,onClick:function(){function h(){return C("change_security_level",{new_security_level:0})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"Either the account number or card is required to access this account. EFTPOS transactions will require a card."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Account Pin",icon:"unlock",selected:v===1,onClick:function(){function h(){return C("change_security_level",{new_security_level:1})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number and pin must be manually entered to access this account and process transactions."}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:(0,e.createComponentVNode)(2,t.Button,{content:"Card and Account Pin",icon:"unlock",selected:v===2,onClick:function(){function h(){return C("change_security_level",{new_security_level:2})}return h}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:"An account number, pin and card are required to access this account and process transactions."})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},k=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"targetAccNumber",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"fundsAmount",0),x=N[0],B=N[1],I=(0,a.useLocalState)(f,"purpose",0),T=I[0],E=I[1],w=b.money;return(0,e.createComponentVNode)(2,t.Section,{title:"Transfer Fund",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",w]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Account Number",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"7 Digit Number",onInput:function(){function A(O,M){return g(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Funds to Transfer",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function A(O,M){return B(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transaction Purpose",children:(0,e.createComponentVNode)(2,t.Input,{fluid:!0,onInput:function(){function A(O,M){return E(M)}return A}()})})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Button,{content:"Transfer",icon:"sign-out-alt",onClick:function(){function A(){return C("transfer",{target_acc_number:h,funds_amount:x,purpose:T})}return A}()}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},V=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.insurance_type;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0442\u0438\u043F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F",children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u041D\u0435\u0442 (0)",icon:"unlock",selected:v==="None",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"None"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u044E\u0434\u0436\u0435\u0442\u043D\u0430\u044F (0)",icon:"unlock",selected:v==="Bugetary",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Bugetary"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u0430\u044F (500)",icon:"unlock",selected:v==="Standart",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Standart"})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0435\u043B\u044E\u043A\u0441 (2000)",icon:"unlock",selected:v==="Deluxe",onClick:function(){function h(){return C("change_insurance_type",{new_insurance_type:"Deluxe"})}return h}()})]})}),(0,e.createComponentVNode)(2,s)]})},p=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"fundsAmount",0),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"insuranceAmount",0),x=N[0],B=N[1],I=b.owner_name,T=b.money,E=b.insurance;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Welcome, "+I,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Logout",icon:"sign-out-alt",onClick:function(){function w(){return C("logout")}return w}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account Balance",children:["$",T]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Withdrawal Amount",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return g(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Withdraw Funds",icon:"sign-out-alt",onClick:function(){function w(){return C("withdrawal",{funds_amount:h})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Insurance Points",children:["$",E]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Adding Insurance",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function w(A,O){return B(O)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add insurance points",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance",{insurance_amount:x})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Toggle auto-replenishment of insurance",icon:"sign-out-alt",onClick:function(){function w(){return C("insurance_replenishment",{})}return w}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Menu",children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change account security level",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:1})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Make transfer",icon:"exchange-alt",onClick:function(){function w(){return C("view_screen",{view_screen:2})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View transaction log",icon:"list",onClick:function(){function w(){return C("view_screen",{view_screen:3})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Change type of insurance",icon:"lock",onClick:function(){function w(){return C("view_screen",{view_screen:4})}return w}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print balance statement",icon:"print",onClick:function(){function w(){return C("balance_statement")}return w}()})})]})],4)},i=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=(0,a.useLocalState)(f,"accountID",null),h=v[0],g=v[1],N=(0,a.useLocalState)(f,"accountPin",null),x=N[0],B=N[1],I=b.machine_id,T=b.held_card_name;return(0,e.createComponentVNode)(2,t.Section,{title:"Insert card or enter ID and pin to login",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Account ID",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return g(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pin",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"6 Digit Number",onInput:function(){function E(w,A){return B(A)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Login",icon:"sign-in-alt",onClick:function(){function E(){return C("attempt_auth",{account_num:h,account_pin:x})}return E}()})})]})})},c=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.transaction_log;return(0,e.createComponentVNode)(2,t.Section,{title:"Transactions",children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Terminal"})]}),v.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.purpose}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:h.is_deposit?"green":"red",children:["$",h.amount]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.target_name})]},h)})]}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,s)]})},s=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data;return(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"sign-out-alt",onClick:function(){function v(){return C("view_screen",{view_screen:0})}return v}()})}},86423:function(L,r,n){"use strict";r.__esModule=!0,r.AccountsUplinkTerminal=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(36352),S=n(98595),y=n(321),k=n(5485),V=r.AccountsUplinkTerminal=function(){function d(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.loginState,g=v.currentPage,N;if(h.logged_in)g===1?N=(0,e.createComponentVNode)(2,p):g===2?N=(0,e.createComponentVNode)(2,s):g===3&&(N=(0,e.createComponentVNode)(2,l));else return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,k.LoginScreen)})})});return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:N})]})})})}return d}(),p=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.accounts,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1],B=(0,t.useLocalState)(u,"sortId","owner_name"),I=B[0],T=B[1],E=(0,t.useLocalState)(u,"sortOrder",!0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"AccountsUplinkTerminal__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,i,{id:"owner_name",children:"Account Holder"}),(0,e.createComponentVNode)(2,i,{id:"account_number",children:"Account Number"}),(0,e.createComponentVNode)(2,i,{id:"suspended",children:"Account Status"}),(0,e.createComponentVNode)(2,i,{id:"money",children:"Account Balance"})]}),h.filter((0,a.createSearch)(N,function(O){return O.owner_name+"|"+O.account_number+"|"+O.suspended+"|"+O.money})).sort(function(O,M){var P=w?1:-1;return O[I].localeCompare(M[I])*P}).map(function(O){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"AccountsUplinkTerminal__listRow--"+O.suspended,onClick:function(){function M(){return b("view_account_detail",{index:O.account_index})}return M}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.owner_name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:["#",O.account_number]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.suspended}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:O.money})]},O.account_number)})]})})})]})},i=function(f,u){var C=(0,t.useLocalState)(u,"sortId","name"),b=C[0],v=C[1],h=(0,t.useLocalState)(u,"sortOrder",!0),g=h[0],N=h[1],x=f.id,B=f.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:b!==x&&"transparent",width:"100%",onClick:function(){function I(){b===x?N(!g):(v(x),N(!0))}return I}(),children:[B,b===x&&(0,e.createComponentVNode)(2,o.Icon,{name:g?"sort-up":"sort-down",ml:"0.25rem;"})]})})},c=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.is_printing,g=(0,t.useLocalState)(u,"searchText",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Button,{content:"New Account",icon:"plus",onClick:function(){function B(){return b("create_new_account")}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"print",content:"Print Account List",disabled:h,ml:"0.25rem",onClick:function(){function B(){return b("print_records")}return B}()})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by account holder, number, status",width:"100%",onInput:function(){function B(I,T){return x(T)}return B}()})})]})},s=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=v.account_number,g=v.owner_name,N=v.money,x=v.suspended,B=v.transactions;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"#"+h+" / "+g,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function I(){return b("back")}return I}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Number",children:["#",h]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:g}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Balance",children:N}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Status",color:x?"red":"green",children:[x?"Suspended":"Active",(0,e.createComponentVNode)(2,o.Button,{ml:1,content:x?"Unsuspend":"Suspend",icon:x?"unlock":"lock",onClick:function(){function I(){return b("toggle_suspension")}return I}()})]})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Transactions",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Timestamp"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Reason"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Value"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Terminal"})]}),B.map(function(I){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.time}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.purpose}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:I.is_deposit?"green":"red",children:["$",I.amount]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.target_name})]},I)})]})})})]})},l=function(f,u){var C=(0,t.useBackend)(u),b=C.act,v=C.data,h=(0,t.useLocalState)(u,"accName",""),g=h[0],N=h[1],x=(0,t.useLocalState)(u,"accDeposit",""),B=x[0],I=x[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Create Account",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-left",content:"Back",onClick:function(){function T(){return b("back")}return T}()}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Account Holder",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Name Here",onChange:function(){function T(E,w){return N(w)}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Initial Deposit",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"0",onChange:function(){function T(E,w){return I(w)}return T}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,content:"Create Account",onClick:function(){function T(){return b("finalise_create_account",{holder_name:g,starting_funds:B})}return T}()})]})}},79571:function(L,r,n){"use strict";r.__esModule=!0,r.AgentCardSLSlots=r.AgentCardInfo=r.AgentCardAppearances=r.AgentCard=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.AgentCard=function(){function p(i,c){var s=(0,t.useLocalState)(c,"tabIndex",0),l=s[0],d=s[1],f=function(){function u(C){switch(C){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return(0,e.createComponentVNode)(2,y)}}return u}();return(0,e.createComponentVNode)(2,m.Window,{width:500,height:475,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===0,onClick:function(){function u(){return d(0)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"table"})," Card Info"]},"Card Info"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===1,onClick:function(){function u(){return d(1)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"id-card"})," Appearance"]},"Appearance"),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:l===2,onClick:function(){function u(){return d(2)}return u}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"arrow-down"})," Save/Load Card Info"]},"Save/Load Card Info")]}),f(l)]})})})}return p}(),y=r.AgentCardInfo=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.registered_name,u=d.sex,C=d.age,b=d.assignment,v=d.associated_account_number,h=d.blood_type,g=d.dna_hash,N=d.fingerprint_hash,x=d.photo,B=d.ai_tracking;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Card Info",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Button,{content:f||"[UNSET]",onClick:function(){function I(){return l("change_name")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sex",children:(0,e.createComponentVNode)(2,o.Button,{iconRight:!1,content:u||"[UNSET]",onClick:function(){function I(){return l("change_sex")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Age",children:(0,e.createComponentVNode)(2,o.Button,{content:C||"[UNSET]",onClick:function(){function I(){return l("change_age")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Rank",children:(0,e.createComponentVNode)(2,o.Button,{content:b||"[UNSET]",onClick:function(){function I(){return l("change_occupation")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Fingerprints",children:(0,e.createComponentVNode)(2,o.Button,{content:N||"[UNSET]",onClick:function(){function I(){return l("change_fingerprints")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Type",children:(0,e.createComponentVNode)(2,o.Button,{content:h||"[UNSET]",onClick:function(){function I(){return l("change_blood_type")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"DNA Hash",children:(0,e.createComponentVNode)(2,o.Button,{content:g||"[UNSET]",onClick:function(){function I(){return l("change_dna_hash")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Money Account",children:(0,e.createComponentVNode)(2,o.Button,{content:v||"[UNSET]",onClick:function(){function I(){return l("change_money_account")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo",children:(0,e.createComponentVNode)(2,o.Button,{content:x?"Update":"[UNSET]",onClick:function(){function I(){return l("change_photo")}return I}()})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Card Settings",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Card Info",children:(0,e.createComponentVNode)(2,o.Button,{content:"Delete Card Info",onClick:function(){function I(){return l("delete_info")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Access",children:(0,e.createComponentVNode)(2,o.Button,{content:"Reset Access",onClick:function(){function I(){return l("clear_access")}return I}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"AI Tracking",children:(0,e.createComponentVNode)(2,o.Button,{content:B?"Untrackable":"Trackable",onClick:function(){function I(){return l("change_ai_tracking")}return I}()})})]})})],4)}return p}(),k=r.AgentCardAppearances=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.appearances;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Card Appearance",children:f.map(function(u){return(0,e.createComponentVNode)(2,o.ImageButton,{tooltip:u,vertical:!0,asset:!0,style:{margin:"1px"},image:u,imageAsset:"id_card64x64",onclick:function(){function C(){return l("change_appearance_new",{new_appearance:u})}return C}()},u)})})}return p}(),V=r.AgentCardSLSlots=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.saved_info;return(0,e.createComponentVNode)(2,o.Section,{title:"Save/Load Manager",style:{"line-height":"25px"},children:(0,e.createComponentVNode)(2,o.LabeledList,{children:f.map(function(u){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:u.registered_name?u.registered_name+", "+u.assignment:"Slot "+u.id,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Clear",onClick:function(){function C(){return l("clear_slot",{slot:u.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Save",onClick:function(){function C(){return l("save_slot",{slot:u.id})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Load",disabled:!u.registered_name,onClick:function(){function C(){return l("load_slot",{slot:u.id})}return C}()})],4)},u.id)})})})}return p}()},56793:function(L,r,n){"use strict";r.__esModule=!0,r.AiAirlock=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={2:{color:"good",localStatusText:"Offline"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Optimal"}},S=r.AiAirlock=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=m[c.power.main]||m[0],l=m[c.power.backup]||m[0],d=m[c.shock]||m[0];return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Power Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Main",color:s.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.main,content:"Disrupt",onClick:function(){function f(){return i("disrupt-main")}return f}()}),children:[c.power.main?"Online":"Offline"," ",!c.wires.main_power&&"[Wires have been cut!]"||c.power.main_timeleft>0&&"["+c.power.main_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Backup",color:l.color,buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:"lightbulb-o",disabled:!c.power.backup,content:"Disrupt",onClick:function(){function f(){return i("disrupt-backup")}return f}()}),children:[c.power.backup?"Online":"Offline"," ",!c.wires.backup_power&&"[Wires have been cut!]"||c.power.backup_timeleft>0&&"["+c.power.backup_timeleft+"s]"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Electrify",color:d.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"wrench",disabled:!(c.wires.shock&&c.shock!==2),content:"Restore",onClick:function(){function f(){return i("shock-restore")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{mr:.5,icon:"bolt",disabled:!c.wires.shock,content:"Temporary",onClick:function(){function f(){return i("shock-temp")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bolt",disabled:!c.wires.shock||c.shock===0,content:"Permanent",onClick:function(){function f(){return i("shock-perm")}return f}()})],4),children:[c.shock===2?"Safe":"Electrified"," ",!c.wires.shock&&"[Wires have been cut!]"||c.shock_timeleft>0&&"["+c.shock_timeleft+"s]"||c.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Access and Door Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Scan",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.id_scanner?"power-off":"times",content:c.id_scanner?"Enabled":"Disabled",selected:c.id_scanner,disabled:!c.wires.id_scanner,onClick:function(){function f(){return i("idscan-toggle")}return f}()}),children:!c.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Access",buttons:(0,e.createComponentVNode)(2,t.Button,{width:6.5,icon:c.emergency?"power-off":"times",content:c.emergency?"Enabled":"Disabled",selected:c.emergency,onClick:function(){function f(){return i("emergency-toggle")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,icon:c.locked?"lock":"unlock",content:c.locked?"Lowered":"Raised",selected:c.locked,disabled:!c.wires.bolts,onClick:function(){function f(){return i("bolt-toggle")}return f}()}),children:!c.wires.bolts&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.lights?"power-off":"times",content:c.lights?"Enabled":"Disabled",selected:c.lights,disabled:!c.wires.lights,onClick:function(){function f(){return i("light-toggle")}return f}()}),children:!c.wires.lights&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.safe?"power-off":"times",content:c.safe?"Enabled":"Disabled",selected:c.safe,disabled:!c.wires.safe,onClick:function(){function f(){return i("safe-toggle")}return f}()}),children:!c.wires.safe&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{mb:.5,width:6.5,icon:c.speed?"power-off":"times",content:c.speed?"Enabled":"Disabled",selected:c.speed,disabled:!c.wires.timing,onClick:function(){function f(){return i("speed-toggle")}return f}()}),children:!c.wires.timing&&"[Wires have been cut!]"}),(0,e.createComponentVNode)(2,t.LabeledList.Divider),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Door Control",color:"bad",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c.opened?"sign-out-alt":"sign-in-alt",content:c.opened?"Open":"Closed",selected:c.opened,disabled:c.locked||c.welded,onClick:function(){function f(){return i("open-close")}return f}()}),children:!!(c.locked||c.welded)&&(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)("[Door is "),c.locked?"bolted":"",c.locked&&c.welded?" and ":"",c.welded?"welded":"",(0,e.createTextVNode)("!]")],0)})]})})]})})}return y}()},72475:function(L,r,n){"use strict";r.__esModule=!0,r.AirAlarm=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(195),S=r.AirAlarm=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.locked;return(0,e.createComponentVNode)(2,o.Window,{width:570,height:h?310:755,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,m.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,k),!h&&(0,e.createFragment)([(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)],4)]})})}return d}(),y=function(f){return f===0?"green":f===1?"orange":"red"},k=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.air,g=v.mode,N=v.atmos_alarm,x=v.locked,B=v.alarmActivated,I=v.rcon,T=v.target_temp,E;return h.danger.overall===0?N===0?E="Optimal":E="Caution: Atmos alert in area":h.danger.overall===1?E="Caution":E="DANGER: Internals Required",(0,e.createComponentVNode)(2,t.Section,{title:"Air Status",children:h?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.pressure),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.pressure})," kPa",!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:g===3?"Deactivate Panic Siphon":"Activate Panic Siphon",selected:g===3,icon:"exclamation-triangle",onClick:function(){function w(){return b("mode",{mode:g===3?1:3})}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.oxygen/100,fractionDigits:"1",color:y(h.danger.oxygen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.nitrogen/100,fractionDigits:"1",color:y(h.danger.nitrogen)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.co2/100,fractionDigits:"1",color:y(h.danger.co2)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxins",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.plasma/100,fractionDigits:"1",color:y(h.danger.plasma)})}),h.contents.n2o>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.n2o/100,fractionDigits:"1",color:y(h.danger.n2o)})}),h.contents.other>.1&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:h.contents.other/100,fractionDigits:"1",color:y(h.danger.other)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.temperature),children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature})," K /"," ",(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:h.temperature_c})," C\xA0",(0,e.createComponentVNode)(2,t.Button,{icon:"thermometer-full",content:T+" C",onClick:function(){function w(){return b("temperature")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:h.thermostat_state?"On":"Off",selected:h.thermostat_state,icon:"power-off",onClick:function(){function w(){return b("thermostat_state")}return w}()})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Local Status",children:(0,e.createComponentVNode)(2,t.Box,{color:y(h.danger.overall),children:[E,!x&&(0,e.createFragment)([(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,t.Button,{content:B?"Reset Alarm":"Activate Alarm",selected:B,onClick:function(){function w(){return b(B?"atmos_reset":"atmos_alarm")}return w}()})],4)]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remote Control Settings",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Off",selected:I===1,onClick:function(){function w(){return b("set_rcon",{rcon:1})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Auto",selected:I===2,onClick:function(){function w(){return b("set_rcon",{rcon:2})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{content:"On",selected:I===3,onClick:function(){function w(){return b("set_rcon",{rcon:3})}return w}()})]})]}):(0,e.createComponentVNode)(2,t.Box,{children:"Unable to acquire air sample!"})})},V=function(f,u){var C=(0,a.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===0,onClick:function(){function h(){return v(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-out-alt"})," Vent Control"]},"Vents"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===1,onClick:function(){function h(){return v(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"sign-in-alt"})," Scrubber Control"]},"Scrubbers"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===2,onClick:function(){function h(){return v(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog"})," Mode"]},"Mode"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:b===3,onClick:function(){function h(){return v(3)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"tachometer-alt"})," Thresholds"]},"Thresholds")]})},p=function(f,u){var C=(0,a.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1];switch(b){case 0:return(0,e.createComponentVNode)(2,i);case 1:return(0,e.createComponentVNode)(2,c);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,l);default:return"WE SHOULDN'T BE HERE!"}},i=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.vents;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.direction==="release"?"Blowing":"Siphoning",icon:g.direction==="release"?"sign-out-alt":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"direction",val:g.direction==="release"?0:1,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure Checks",children:[(0,e.createComponentVNode)(2,t.Button,{content:"External",selected:g.checks===1,onClick:function(){function N(){return b("command",{cmd:"checks",val:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Internal",selected:g.checks===2,onClick:function(){function N(){return b("command",{cmd:"checks",val:2,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Pressure Target",children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:g.external})," kPa\xA0",(0,e.createComponentVNode)(2,t.Button,{content:"Set",icon:"cog",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset",icon:"redo-alt",onClick:function(){function N(){return b("command",{cmd:"set_external_pressure",val:101.325,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},c=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.scrubbers;return h.map(function(g){return(0,e.createComponentVNode)(2,t.Section,{title:g.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{content:g.power?"On":"Off",selected:g.power,icon:"power-off",onClick:function(){function N(){return b("command",{cmd:"power",val:g.power===1?0:1,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g.scrubbing?"Scrubbing":"Siphoning",icon:g.scrubbing?"filter":"sign-in-alt",onClick:function(){function N(){return b("command",{cmd:"scrubbing",val:g.scrubbing===0?1:0,id_tag:g.id_tag})}return N}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,t.Button,{content:g.widenet?"Extended":"Normal",selected:g.widenet,icon:"expand-arrows-alt",onClick:function(){function N(){return b("command",{cmd:"widenet",val:g.widenet===0?1:0,id_tag:g.id_tag})}return N}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filtering",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Carbon Dioxide",selected:g.filter_co2,onClick:function(){function N(){return b("command",{cmd:"co2_scrub",val:g.filter_co2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Plasma",selected:g.filter_toxins,onClick:function(){function N(){return b("command",{cmd:"tox_scrub",val:g.filter_toxins===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrous Oxide",selected:g.filter_n2o,onClick:function(){function N(){return b("command",{cmd:"n2o_scrub",val:g.filter_n2o===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Oxygen",selected:g.filter_o2,onClick:function(){function N(){return b("command",{cmd:"o2_scrub",val:g.filter_o2===0?1:0,id_tag:g.id_tag})}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Nitrogen",selected:g.filter_n2,onClick:function(){function N(){return b("command",{cmd:"n2_scrub",val:g.filter_n2===0?1:0,id_tag:g.id_tag})}return N}()})]})]})},g.name)})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.modes,g=v.presets,N=v.emagged,x=v.mode,B=v.preset;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"System Mode",children:(0,e.createComponentVNode)(2,t.Table,{children:h.map(function(I){return(!I.emagonly||I.emagonly&&!!N)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"right",width:1,children:(0,e.createComponentVNode)(2,t.Button,{content:I.name,icon:"cog",selected:I.id===x,onClick:function(){function T(){return b("mode",{mode:I.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.desc})]},I.name)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"System Presets",children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"After making a selection, the system will automatically cycle in order to remove contaminants."}),(0,e.createComponentVNode)(2,t.Table,{mt:1,children:g.map(function(I){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:I.name,icon:"cog",selected:I.id===B,onClick:function(){function T(){return b("preset",{preset:I.id})}return T}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:I.desc})]},I.name)})})]})],4)},l=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.thresholds;return(0,e.createComponentVNode)(2,t.Section,{title:"Alarm Thresholds",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Value"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Min"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"orange",width:"20%",children:"Warning Max"}),(0,e.createComponentVNode)(2,t.Table.Cell,{color:"red",width:"20%",children:"Danger Max"})]}),h.map(function(g){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:g.name}),g.settings.map(function(N){return(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:N.selected===-1?"Off":N.selected,onClick:function(){function x(){return b("command",{cmd:"set_threshold",env:N.env,var:N.val})}return x}()})},N.val)})]},g.name)})]})})}},12333:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockAccessController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AirlockAccessController=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.exterior_status,s=i.interior_status,l=i.processing,d,f;return c==="open"?d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Lock Exterior Door",icon:"exclamation-triangle",disabled:l,onClick:function(){function u(){return p("force_ext")}return u}()}):d=(0,e.createComponentVNode)(2,t.Button,{width:"50%",content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:l,onClick:function(){function u(){return p("cycle_ext_door")}return u}()}),s==="open"?f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Lock Interior Door",icon:"exclamation-triangle",disabled:l,color:s==="open"?"red":l?"yellow":null,onClick:function(){function u(){return p("force_int")}return u}()}):f=(0,e.createComponentVNode)(2,t.Button,{width:"49%",content:"Cycle to Interior",icon:"arrow-circle-right",disabled:l,onClick:function(){function u(){return p("cycle_int_door")}return u}()}),(0,e.createComponentVNode)(2,o.Window,{width:330,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"External Door Status",children:c==="closed"?"Locked":"Open"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Door Status",children:s==="closed"?"Locked":"Open"})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:(0,e.createComponentVNode)(2,t.Box,{children:[d,f]})})]})})}return S}()},28736:function(L,r,n){"use strict";r.__esModule=!0,r.AirlockElectronics=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49148),S=1,y=2,k=4,V=8,p=r.AirlockElectronics=function(){function s(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:565,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),i=function(l,d){var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.unrestricted_dir;return(0,e.createComponentVNode)(2,t.Section,{title:"Access Control",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,mb:1,children:"Unrestricted Access From:"}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-left",content:"East",selected:b&k?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:k})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-up",content:"South",selected:b&y?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:y})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-right",content:"West",selected:b&V?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:V})}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"arrow-down",content:"North",selected:b&S?"selected":null,onClick:function(){function v(){return u("unrestricted_access",{unres_dir:S})}return v}()})})]})]})})},c=function(l,d){var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.selected_accesses,v=C.one_access,h=C.regions;return(0,e.createComponentVNode)(2,m.AccessList,{usedByRcd:1,rcdButtons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:v,content:"One",onClick:function(){function g(){return u("set_one_access",{access:"one"})}return g}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!v,content:"All",onClick:function(){function g(){return u("set_one_access",{access:"all"})}return g}()})],4),accesses:h,selectedList:b,accessMod:function(){function g(N){return u("set",{access:N})}return g}(),grantAll:function(){function g(){return u("grant_all")}return g}(),denyAll:function(){function g(){return u("clear_all")}return g}(),grantDep:function(){function g(N){return u("grant_region",{region:N})}return g}(),denyDep:function(){function g(N){return u("deny_region",{region:N})}return g}()})}},47365:function(L,r,n){"use strict";r.__esModule=!0,r.AlertModal=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(92986),m=n(36036),S=n(98595),y=-1,k=1,V=r.AlertModal=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.autofocus,b=u.buttons,v=b===void 0?[]:b,h=u.large_buttons,g=u.message,N=g===void 0?"":g,x=u.timeout,B=u.title,I=(0,t.useLocalState)(l,"selected",0),T=I[0],E=I[1],w=110+(N.length>30?Math.ceil(N.length/4):0)+(N.length&&h?5:0),A=325+(v.length>2?100:0),O=function(){function M(P){T===0&&P===y?E(v.length-1):T===v.length-1&&P===k?E(0):E(T+P)}return M}();return(0,e.createComponentVNode)(2,S.Window,{title:B,height:w,width:A,children:[!!x&&(0,e.createComponentVNode)(2,a.Loader,{value:x}),(0,e.createComponentVNode)(2,S.Window.Content,{onKeyDown:function(){function M(P){var R=window.event?P.which:P.keyCode;R===o.KEY_SPACE||R===o.KEY_ENTER?f("choose",{choice:v[T]}):R===o.KEY_ESCAPE?f("cancel"):R===o.KEY_LEFT?(P.preventDefault(),O(y)):(R===o.KEY_TAB||R===o.KEY_RIGHT)&&(P.preventDefault(),O(k))}return M}(),children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,m:1,children:(0,e.createComponentVNode)(2,m.Box,{color:"label",overflow:"hidden",children:N})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:[!!C&&(0,e.createComponentVNode)(2,m.Autofocus),(0,e.createComponentVNode)(2,p,{selected:T})]})]})})})]})}return c}(),p=function(s,l){var d=(0,t.useBackend)(l),f=d.data,u=f.buttons,C=u===void 0?[]:u,b=f.large_buttons,v=f.swapped_buttons,h=s.selected;return(0,e.createComponentVNode)(2,m.Flex,{fill:!0,align:"center",direction:v?"row":"row-reverse",justify:"space-around",wrap:!0,children:C==null?void 0:C.map(function(g,N){return b&&C.length<3?(0,e.createComponentVNode)(2,m.Flex.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N):(0,e.createComponentVNode)(2,m.Flex.Item,{grow:b?1:0,children:(0,e.createComponentVNode)(2,i,{button:g,id:N.toString(),selected:h===N})},N)})})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.large_buttons,b=s.button,v=s.selected,h=b.length>7?"100%":7;return(0,e.createComponentVNode)(2,m.Button,{mx:C?1:0,pt:C?.33:0,content:b,fluid:!!C,onClick:function(){function g(){return f("choose",{choice:b})}return g}(),selected:v,textAlign:"center",height:!!C&&2,width:!C&&h})}},71824:function(L,r,n){"use strict";r.__esModule=!0,r.AppearanceChanger=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AppearanceChanger=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.change_race,l=c.species,d=c.specimen,f=c.change_gender,u=c.gender,C=c.has_gender,b=c.change_eye_color,v=c.change_skin_tone,h=c.change_skin_color,g=c.change_head_accessory_color,N=c.change_hair_color,x=c.change_secondary_hair_color,B=c.change_facial_hair_color,I=c.change_secondary_facial_hair_color,T=c.change_head_marking_color,E=c.change_body_marking_color,w=c.change_tail_marking_color,A=c.change_head_accessory,O=c.head_accessory_styles,M=c.head_accessory_style,P=c.change_hair,R=c.hair_styles,F=c.hair_style,_=c.change_hair_gradient,U=c.change_facial_hair,W=c.facial_hair_styles,$=c.facial_hair_style,G=c.change_head_markings,oe=c.head_marking_styles,X=c.head_marking_style,Ce=c.change_body_markings,me=c.body_marking_styles,ne=c.body_marking_style,ce=c.change_tail_markings,q=c.tail_marking_styles,ae=c.tail_marking_style,J=c.change_body_accessory,Y=c.body_accessory_styles,Q=c.body_accessory_style,Z=c.change_alt_head,te=c.alt_head_styles,se=c.alt_head_style,ye=!1;return(b||v||h||g||N||x||B||I||T||E||w)&&(ye=!0),(0,e.createComponentVNode)(2,o.Window,{width:800,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Species",children:l.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.specimen,selected:fe.specimen===d,onClick:function(){function Le(){return i("race",{race:fe.specimen})}return Le}()},fe.specimen)})}),!!f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Gender",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Male",selected:u==="male",onClick:function(){function fe(){return i("gender",{gender:"male"})}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Female",selected:u==="female",onClick:function(){function fe(){return i("gender",{gender:"female"})}return fe}()}),!C&&(0,e.createComponentVNode)(2,t.Button,{content:"Genderless",selected:u==="plural",onClick:function(){function fe(){return i("gender",{gender:"plural"})}return fe}()})]}),!!ye&&(0,e.createComponentVNode)(2,S),!!A&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head accessory",children:O.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headaccessorystyle,selected:fe.headaccessorystyle===M,onClick:function(){function Le(){return i("head_accessory",{head_accessory:fe.headaccessorystyle})}return Le}()},fe.headaccessorystyle)})}),!!P&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair",children:R.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.hairstyle,selected:fe.hairstyle===F,onClick:function(){function Le(){return i("hair",{hair:fe.hairstyle})}return Le}()},fe.hairstyle)})}),!!_&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hair Gradient",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Change Style",onClick:function(){function fe(){return i("hair_gradient")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Offset",onClick:function(){function fe(){return i("hair_gradient_offset")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Color",onClick:function(){function fe(){return i("hair_gradient_colour")}return fe}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Change Alpha",onClick:function(){function fe(){return i("hair_gradient_alpha")}return fe}()})]}),!!U&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Facial hair",children:W.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.facialhairstyle,selected:fe.facialhairstyle===$,onClick:function(){function Le(){return i("facial_hair",{facial_hair:fe.facialhairstyle})}return Le}()},fe.facialhairstyle)})}),!!G&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Head markings",children:oe.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.headmarkingstyle,selected:fe.headmarkingstyle===X,onClick:function(){function Le(){return i("head_marking",{head_marking:fe.headmarkingstyle})}return Le}()},fe.headmarkingstyle)})}),!!Ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body markings",children:me.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodymarkingstyle,selected:fe.bodymarkingstyle===ne,onClick:function(){function Le(){return i("body_marking",{body_marking:fe.bodymarkingstyle})}return Le}()},fe.bodymarkingstyle)})}),!!ce&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tail markings",children:q.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.tailmarkingstyle,selected:fe.tailmarkingstyle===ae,onClick:function(){function Le(){return i("tail_marking",{tail_marking:fe.tailmarkingstyle})}return Le}()},fe.tailmarkingstyle)})}),!!J&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Body accessory",children:Y.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.bodyaccessorystyle,selected:fe.bodyaccessorystyle===Q,onClick:function(){function Le(){return i("body_accessory",{body_accessory:fe.bodyaccessorystyle})}return Le}()},fe.bodyaccessorystyle)})}),!!Z&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alternate head",children:te.map(function(fe){return(0,e.createComponentVNode)(2,t.Button,{content:fe.altheadstyle,selected:fe.altheadstyle===se,onClick:function(){function Le(){return i("alt_head",{alt_head:fe.altheadstyle})}return Le}()},fe.altheadstyle)})})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=[{key:"change_eye_color",text:"Change eye color",action:"eye_color"},{key:"change_skin_tone",text:"Change skin tone",action:"skin_tone"},{key:"change_skin_color",text:"Change skin color",action:"skin_color"},{key:"change_head_accessory_color",text:"Change head accessory color",action:"head_accessory_color"},{key:"change_hair_color",text:"Change hair color",action:"hair_color"},{key:"change_secondary_hair_color",text:"Change secondary hair color",action:"secondary_hair_color"},{key:"change_facial_hair_color",text:"Change facial hair color",action:"facial_hair_color"},{key:"change_secondary_facial_hair_color",text:"Change secondary facial hair color",action:"secondary_facial_hair_color"},{key:"change_head_marking_color",text:"Change head marking color",action:"head_marking_color"},{key:"change_body_marking_color",text:"Change body marking color",action:"body_marking_color"},{key:"change_tail_marking_color",text:"Change tail marking color",action:"tail_marking_color"}];return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Colors",children:s.map(function(l){return!!c[l.key]&&(0,e.createComponentVNode)(2,t.Button,{content:l.text,onClick:function(){function d(){return i(l.action)}return d}()},l.key)})})}},72285:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosAlertConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.priority||[],s=i.minor||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Alarms",children:(0,e.createVNode)(1,"ul",null,[c.length===0&&(0,e.createVNode)(1,"li","color-good","No Priority Alerts",16),c.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"bad",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)}),s.length===0&&(0,e.createVNode)(1,"li","color-good","No Minor Alerts",16),s.map(function(l){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l,color:"average",onClick:function(){function d(){return p("clear",{zone:l})}return d}()}),2,null,l)})],0)})})})}return S}()},65805:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(36352),m=n(98595),S=function(c){if(c===0)return(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Good"});if(c===1)return(0,e.createComponentVNode)(2,t.Box,{color:"orange",bold:!0,children:"Warning"});if(c===2)return(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"DANGER"})},y=function(c){if(c===0)return"green";if(c===1)return"orange";if(c===2)return"red"},k=r.AtmosControl=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=(0,a.useLocalState)(s,"tabIndex",0),C=u[0],b=u[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,V);case 1:return(0,e.createComponentVNode)(2,p);default:return"WE SHOULDN'T BE HERE!"}}return h}();return(0,e.createComponentVNode)(2,m.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:C===0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),v(C)]})})})}return i}(),V=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Access"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,o.TableCell,{children:C.name}),(0,e.createComponentVNode)(2,o.TableCell,{children:S(C.danger)}),(0,e.createComponentVNode)(2,o.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Access",onClick:function(){function b(){return d("open_alarm",{aref:C.ref})}return b}()})})]},C.name)})]})})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.alarms,C=f.stationLevelNum,b=f.stationLevelName,v=(0,a.useLocalState)(s,"zoom",1),h=v[0],g=v[1],N=(0,a.useLocalState)(s,"z_current",C[0]),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,t.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,t.NanoMap,{onZoom:function(){function I(T){return g(T)}return I}(),zLevels:C,zNames:b,z_current:x,setZCurrent:B,children:u.map(function(I){return(0,e.createComponentVNode)(2,t.NanoMap.Marker,{x:I.x,y:I.y,z:I.z,z_current:x,zoom:h,icon:"circle",tooltip:I.name,color:y(I.danger),onClick:function(){function T(){return d("open_alarm",{aref:I.ref})}return T}()},I.ref)})})})}},87816:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosFilter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosFilter=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,l=i.max_pressure,d=i.filter_type,f=i.filter_type_list;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:140,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_pressure")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:l,value:s,onDrag:function(){function u(C,b){return p("custom_pressure",{pressure:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_pressure")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Filter",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{selected:u.gas_type===d,content:u.label,onClick:function(){function C(){return p("set_filter",{filter:u.gas_type})}return C}()},u.label)})})]})})})})}return S}()},52977:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosMixer=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.on,l=c.pressure,d=c.max_pressure,f=c.node1_concentration,u=c.node2_concentration;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:165,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:s?"On":"Off",color:s?null:"red",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:l===0,width:2.2,onClick:function(){function C(){return i("min_pressure")}return C}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"kPa",width:6.1,lineHeight:1.5,step:10,minValue:0,maxValue:d,value:l,onDrag:function(){function C(b,v){return i("custom_pressure",{pressure:v})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:l===d,width:2.2,onClick:function(){function C(){return i("max_pressure")}return C}()})]}),(0,e.createComponentVNode)(2,S,{node_name:"Node 1",node_ref:f}),(0,e.createComponentVNode)(2,S,{node_name:"Node 2",node_ref:u})]})})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=k.node_name,l=k.node_ref;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:s,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",width:2.2,disabled:l===0,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l-10)/100})}return d}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:"%",width:6.1,lineHeight:1.5,stepPixelSize:10,minValue:0,maxValue:100,value:l,onChange:function(){function d(f,u){return i("set_node",{node_name:s,concentration:u/100})}return d}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",width:2.2,disabled:l===100,onClick:function(){function d(){return i("set_node",{node_name:s,concentration:(l+10)/100})}return d}()})]})}},11748:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosPump=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.AtmosPump=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.rate,l=i.max_rate,d=i.gas_unit,f=i.step;return(0,e.createComponentVNode)(2,o.Window,{width:330,height:110,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",content:c?"On":"Off",color:c?null:"red",selected:c,onClick:function(){function u(){return p("power")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rate",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",textAlign:"center",disabled:s===0,width:2.2,onClick:function(){function u(){return p("min_rate")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,unit:d,width:6.1,lineHeight:1.5,step:f,minValue:0,maxValue:l,value:s,onDrag:function(){function u(C,b){return p("custom_rate",{rate:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",textAlign:"center",disabled:s===l,width:2.2,onClick:function(){function u(){return p("max_rate")}return u}()})]})]})})})})}return S}()},76511:function(L,r,n){"use strict";r.__esModule=!0,r.AutoDoc=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(39473),S=r.AutoDoc=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.HasTray,l=c.TguiIcons,d=c.occupant,f=c.isHealing,u=c.fixtimer,C=c.healtimer,b=(0,a.useLocalState)(V,"ChoosePart","chest"),v=b[0],h=b[1];return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,m.FlexItem,{basis:"30%",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l.human,style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+l[v],style:{position:"absolute","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})]}),(0,e.createComponentVNode)(2,m.FlexItem,{basis:"70%",children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",buttons:(0,e.createFragment)([Object.keys(l).map(function(g){return g!=="human"&&(0,e.createComponentVNode)(2,t.Button,{content:g,selected:g===v,onClick:function(){function N(){return h(g)}return N}(),z:!0},g)}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:s?"Eject Tray":"Reject Tray",locked:f,onClick:function(){function g(){return i("ChangeTrayState")}return g}()})],0),children:(0,e.createComponentVNode)(2,t.Box,{children:[!!(d[v]&&d[v].extOrgan)&&d[v].extOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createVNode)(1,"br"),g.open?"opened":"",g.broken?"broken":"",!!g.broken&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"fracture"})}return N}()}),(0,e.createVNode)(1,"br")],4),g.internalBleeding?"bleeding":"",!!g.internalBleeding&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Fix",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"bleeding"})}return N}()}),(0,e.createVNode)(1,"br")],4),(0,e.createTextVNode)("Internals:"),(0,e.createComponentVNode)(2,t.Button,{content:"Complete",style:{"margin-left":"10px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"completeInternal"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.totalLoss:"",(0,e.createVNode)(1,"br")],0,g.name)}),!!(d[v]&&d[v].intOrgan)&&d[v].intOrgan.map(function(g){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,g.name,0),(0,e.createComponentVNode)(2,t.Button,{content:"Remove",style:{"margin-left":"1.5rem"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"remove"})}return N}()}),(0,e.createVNode)(1,"br"),g.dead?"dead":"",!!g.dead&&(0,e.createVNode)(1,"br"),g.germ_level?"Germ level is "+g.germ_level:"",!!g.germ_level&&(0,e.createVNode)(1,"br"),g.totalLoss?"Total damage is "+g.damage:"",!!g.totalLoss&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Heal",style:{"margin-left":"30px"},locked:f,onClick:function(){function N(){return i("FixOrgan",{organ:g.name,type:"damage"})}return N}()}),(0,e.createVNode)(1,"br")],4)],0,g.name)}),!!d.TotalBruteBurn&&(0,e.createFragment)([(0,e.createTextVNode)("Total external damage is "),d.TotalBruteBurn,(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Start Healing",onClick:function(){function g(){return i("HealBruteBurn")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{style:{"margin-left":"30px"},content:"Reattach externals",onClick:function(){function g(){return i("CompleteExternal")}return g}()})],0),(0,e.createVNode)(1,"br"),!!u&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Fixing organ: "),u],0),!!C&&(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Healing external damage: "),C],0)]})})})]})})})}return y}()},59179:function(L,r,n){"use strict";r.__esModule=!0,r.Autolathe=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=function(i,c,s,l){return i.requirements===null?!0:!(i.requirements.metal*l>c||i.requirements.glass*l>s)},V=r.Autolathe=function(){function p(i,c){var s=(0,o.useBackend)(c),l=s.act,d=s.data,f=d.total_amount,u=d.max_amount,C=d.metal_amount,b=d.glass_amount,v=d.busyname,h=d.busyamt,g=d.showhacked,N=d.buildQueue,x=d.buildQueueLen,B=d.recipes,I=d.categories,T=(0,o.useSharedState)(c,"category",0),E=T[0],w=T[1];E===0&&(E="Tools");var A=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),O=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),M=f.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),P=(0,o.useSharedState)(c,"search_text",""),R=P[0],F=P[1],_=(0,y.createSearch)(R,function(G){return G.name}),U="";x>0&&(U=N.map(function(G,oe){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"times",color:"transparent",content:N[oe][0],onClick:function(){function X(){return l("remove_from_queue",{remove_from_queue:N.indexOf(G)+1})}return X}()},G)},oe)}));var W=(0,a.flow)([(0,t.filter)(function(G){return(G.category.indexOf(E)>-1||R)&&(d.showhacked||!G.hacked)}),R&&(0,t.filter)(_),(0,t.sortBy)(function(G){return G.name.toLowerCase()})])(B),$="Build";return R?$="Results for: '"+R+"':":E&&($="Build ("+E+")"),(0,e.createComponentVNode)(2,S.Window,{width:750,height:525,children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,horizontal:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{width:"70%",children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:$,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"150px",options:I,selected:E,onSelected:function(){function G(oe){return w(oe)}return G}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function G(oe,X){return F(X)}return G}(),mb:1}),W.map(function(G){return(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.DmIcon,{icon:G.icon,icon_state:G.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===1,disabled:!k(G,d.metal_amount,d.glass_amount,1),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:1})}return oe}(),children:(0,y.toTitleCase)(G.name)}),G.max_multiplier>=10&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===10,disabled:!k(G,d.metal_amount,d.glass_amount,10),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:10})}return oe}(),children:"10x"}),G.max_multiplier>=25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===25,disabled:!k(G,d.metal_amount,d.glass_amount,25),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:25})}return oe}(),children:"25x"}),G.max_multiplier>25&&(0,e.createComponentVNode)(2,m.Button,{mr:1,icon:"hammer",selected:d.busyname===G.name&&d.busyamt===G.max_multiplier,disabled:!k(G,d.metal_amount,d.glass_amount,G.max_multiplier),onClick:function(){function oe(){return l("make",{make:G.uid,multiplier:G.max_multiplier})}return oe}(),children:[G.max_multiplier,"x"]}),G.requirements&&Object.keys(G.requirements).map(function(oe){return(0,y.toTitleCase)(oe)+": "+G.requirements[oe]}).join(", ")||(0,e.createComponentVNode)(2,m.Box,{children:"No resources required."})]},G.ref)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:[(0,e.createComponentVNode)(2,m.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Metal",children:A}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Glass",children:O}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Total",children:M}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Storage",children:[d.fill_percent,"% Full"]})]})}),(0,e.createComponentVNode)(2,m.Section,{title:"Building",children:(0,e.createComponentVNode)(2,m.Box,{color:v?"green":"",children:v||"Nothing"})}),(0,e.createComponentVNode)(2,m.Section,{title:"Build Queue",height:23.7,children:[U,(0,e.createComponentVNode)(2,m.Button,{mt:.5,fluid:!0,icon:"times",content:"Clear All",color:"red",disabled:!d.buildQueueLen,onClick:function(){function G(){return l("clear_queue")}return G}()})]})]})]})})})}return p}()},64273:function(L,r,n){"use strict";r.__esModule=!0,r.Biogenerator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(62411),S=r.Biogenerator=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data,d=s.config,f=l.container,u=l.processing,C=d.title;return(0,e.createComponentVNode)(2,o.Window,{width:390,height:595,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Operating,{operating:u,name:C}),(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.container,C=d.container_curr_reagents,b=d.container_max_reagents;return(0,e.createComponentVNode)(2,t.Section,{title:"Storage",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"20px",color:"silver",children:"Biomass:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"5px",children:f}),(0,e.createComponentVNode)(2,t.Icon,{name:"leaf",size:1.2,color:"#3d8c40"})]}),(0,e.createComponentVNode)(2,t.Stack,{height:"21px",mt:"8px",align:"center",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:"10px",color:"silver",children:"Container:"}),u?(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,maxValue:b,children:(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:C+" / "+b+" units"})}):(0,e.createComponentVNode)(2,t.Stack.Item,{children:"None"})]})]})},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.has_plants,u=d.container;return(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",disabled:!f,tooltip:f?"":"There are no plants in the biogenerator.",tooltipPosition:"top-start",content:"Activate",onClick:function(){function C(){return l("activate")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"40%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"flask",disabled:!u,tooltip:u?"":"The biogenerator does not have a container.",tooltipPosition:"top",content:"Detach Container",onClick:function(){function C(){return l("detach_container")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"eject",disabled:!f,tooltip:f?"":"There are no stored plants to eject.",tooltipPosition:"top-end",content:"Eject Plants",onClick:function(){function C(){return l("eject_plants")}return C}()})})]})})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.biomass,u=d.product_list,C=d.container,b=(0,a.useSharedState)(c,"vendAmount",1),v=b[0],h=b[1],g=Object.entries(u).map(function(N,x){var B=Object.entries(N[1]).map(function(I){return I[1]});return(0,e.createComponentVNode)(2,t.Collapsible,{title:N[0],open:!0,children:B.map(function(I){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:I.name}),(0,e.createComponentVNode)(2,t.Stack.Item,{textAlign:"right",width:"20%",children:[I.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:I.needs_container&&!C?(0,e.createComponentVNode)(2,t.Button,{content:"No container",disabled:!0,icon:"flask",tooltip:"\u0412\u0441\u0442\u0430\u0432\u044C\u0442\u0435 \u043B\u044E\u0431\u043E\u0439 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u044D\u0442\u043E\u0439 \u043E\u043F\u0446\u0438\u0438"}):(0,e.createComponentVNode)(2,t.Button,{content:"Vend",disabled:f0?Math.floor(E/l):0,M=s?"@?%%!\u2116@"+l:l,P=E>=l,R=d-d%5+(d%5>0?5:0);return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u0420\u0430\u0437\u043B\u043E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{color:"silver",bold:!0,children:B}),(0,e.createComponentVNode)(2,t.ProgressBar,{color:A===0?"bad":A<100?"average":"good",value:T,maxValue:I,mt:1,mb:2,children:[A<=100?A:100," %"]}),(0,e.createComponentVNode)(2,t.Box,{children:["\u0414\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0437\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F: ",(0,e.createComponentVNode)(2,t.Box,{color:E?P?"good":"average":"bad",as:"span",children:Math.floor(E)}),(0,e.createComponentVNode)(2,t.Button,{icon:"atom",tooltip:"\u0414\u043B\u044F \u0433\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0437\u043E\u043D\u0434\u0438\u0440\u0443\u044E\u0449\u0435\u0433\u043E \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u0430 \u043D\u0443\u0436\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C "+M+" \u0434\u0430\u043D\u043D\u044B\u0445.",content:d>0?"\u041F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0430 "+R+" \u0441\u0435\u043A\u0443\u043D\u0434":"\u0417\u043E\u043D\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C ("+O+")",disabled:!P||d>0,onClick:function(){function F(){return i("probe",{rift_id:x})}return F}(),mx:2}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",content:w?"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D":"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",disabled:w||A<100,onClick:function(){function F(){return i("reward",{rift_id:x})}return F}(),mt:1.4})]})]})}return g}(),v=function(){function g(N){var x=N.servName,B=N.servData;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x,children:B.length?B.map(function(I,T){return(0,e.createComponentVNode)(2,t.Box,{children:[I.riftName," \u2014 ",Math.floor(I.probePoints)," ","\u0434\u0430\u043D\u043D\u044B\u0445."]},T)}):(0,e.createComponentVNode)(2,t.Box,{children:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"})})}return g}(),h=function(){function g(N){var x=N.scannerId,B=N.scannerName,I=N.scanStatus,T=N.canSwitch,E=N.switching,w=m[I],A=function(){function M(){if(w==="OFF")return[" ","silver"];if(w==="NO_RIFTS")return["\u041D\u0435\u0442 \u0440\u0430\u0437\u043B\u043E\u043C\u043E\u0432","silver"];if(w==="SOME_RIFTS")return["\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442","good"];if(w==="DANGER")return["\u041E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u044C! \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0441\u043A\u0430\u043D\u0435\u0440!","bad"]}return M}(),O=A();return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B,py:0,children:[E?(0,e.createComponentVNode)(2,t.Icon,{name:"circle-notch",color:"silver",spin:!0,ml:1.85,mr:1.79,my:.84}):T?(0,e.createComponentVNode)(2,t.Button,{icon:"power-off",color:w==="OFF"?"bad":"good",onClick:function(){function M(){return i("toggle_scanner",{scanner_id:x})}return M}(),ml:1,mr:1}):(0,e.createComponentVNode)(2,t.Icon,{name:"power-off",color:w==="OFF"?"bad":"good",ml:1.85,mr:1.79,my:.84}),w!=="OFF"&&(0,e.createComponentVNode)(2,t.Box,{as:"span",color:O[1],children:O[0]})]})}return g}();return(0,e.createComponentVNode)(2,o.Window,{width:570,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f&&f.map(function(g){return b(g)}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043A\u0430\u043D\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:C&&C.map(function(g){return h(g)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0435\u0440\u0432\u0435\u0440\u044B \u0432 \u0441\u0435\u0442\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u&&u.map(function(g){return v(g)})})})]})})}return y}()},27629:function(L,r,n){"use strict";r.__esModule=!0,r.BluespaceTap=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.BluespaceTap=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.product||[],l=c.desiredLevel,d=c.inputLevel,f=c.points,u=c.totalPoints,C=c.powerUse,b=c.availablePower,v=c.maxLevel,h=c.emagged,g=c.safeLevels,N=c.nextLevelPower,x=l>d&&"bad"||"good";return(0,e.createComponentVNode)(2,o.Window,{width:650,height:450,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!h&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"Safety Protocols disabled"}),d>g&&(0,e.createComponentVNode)(2,t.NoticeBox,{danger:1,children:"High Power, Instability likely"}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"Input Management",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Level",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Desired Level",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:l===0,tooltip:"Set to 0",onClick:function(){function B(){return i("set",{set_level:0})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"step-backward",tooltip:"Decrease to actual input level",disabled:l===0,onClick:function(){function B(){return i("set",{set_level:d})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:l===0,tooltip:"Decrease one step",onClick:function(){function B(){return i("decrease")}return B}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,t.Slider,{value:l,fillValue:d,minValue:0,color:x,maxValue:v,stepPixelSize:20,step:1,onChange:function(){function B(I,T){return i("set",{set_level:T})}return B}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:l===v,tooltip:"Increase one step",tooltipPosition:"left",onClick:function(){function B(){return i("increase")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:l===v,tooltip:"Set to max",tooltipPosition:"left",onClick:function(){function B(){return i("set",{set_level:v})}return B}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Power Use",children:(0,m.formatPower)(C)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power for next level",children:(0,m.formatPower)(N)}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Surplus Power",children:(0,m.formatPower)(b)})]})})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Points",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Points",children:u})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{align:"end",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.map(function(B){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:B.name,children:(0,e.createComponentVNode)(2,t.Button,{disabled:B.price>=f,onClick:function(){function I(){return i("vend",{target:B.key})}return I}(),content:B.price})},B.key)})})})})]})})]})})})}return y}()},33758:function(L,r,n){"use strict";r.__esModule=!0,r.BodyScanner=void 0;var e=n(89005),a=n(44879),t=n(25328),o=n(72253),m=n(36036),S=n(98595),y=[["good","Alive"],["average","Critical"],["bad","DEAD"]],k=[["hasBorer","bad","Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."],["hasVirus","bad","Viral pathogen detected in blood stream."],["blind","average","Cataracts detected."],["colourblind","average","Photoreceptor abnormalities detected."],["nearsighted","average","Retinal misalignment detected."]],V=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radioactive","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],p={average:[.25,.5],bad:[.5,1/0]},i=function(x,B){for(var I=[],T=0;T0?x.filter(function(B){return!!B}).reduce(function(B,I){return(0,e.createFragment)([B,(0,e.createComponentVNode)(2,m.Box,{children:I},I)],0)},null):null},s=function(x){if(x>100){if(x<300)return"mild infection";if(x<400)return"mild infection+";if(x<500)return"mild infection++";if(x<700)return"acute infection";if(x<800)return"acute infection+";if(x<900)return"acute infection++";if(x>=900)return"septic"}return""},l=r.BodyScanner=function(){function N(x,B){var I=(0,o.useBackend)(B),T=I.data,E=T.occupied,w=T.occupant,A=w===void 0?{}:w,O=E?(0,e.createComponentVNode)(2,d,{occupant:A}):(0,e.createComponentVNode)(2,g);return(0,e.createComponentVNode)(2,S.Window,{width:700,height:600,title:"Body Scanner",children:(0,e.createComponentVNode)(2,S.Window.Content,{scrollable:!0,children:O})})}return N}(),d=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,f,{occupant:B}),(0,e.createComponentVNode)(2,u,{occupant:B}),(0,e.createComponentVNode)(2,C,{occupant:B}),(0,e.createComponentVNode)(2,v,{organs:B.extOrgan}),(0,e.createComponentVNode)(2,h,{organs:B.intOrgan})]})},f=function(x,B){var I=(0,o.useBackend)(B),T=I.act,E=I.data,w=E.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("print_p")}return A}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{icon:"print",onClick:function(){function A(){return T("insurance")}return A}(),children:"\u0421\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u043A\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("eject_id")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043A\u0430\u0440\u0442\u0443"}),(0,e.createComponentVNode)(2,m.Button,{icon:"user-slash",onClick:function(){function A(){return T("ejectify")}return A}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430"})],4),children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:y[w.stat][0],children:y[w.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:[(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempC)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,m.AnimatedNumber,{value:(0,a.round)(w.bodyTempF)}),"\xB0F"]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Implants",children:w.implant_len?(0,e.createComponentVNode)(2,m.Box,{children:w.implant.map(function(A){return A.name}).join(", ")}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"None"})})]})})},u=function(x){var B=x.occupant;return B.hasBorer||B.blind||B.colourblind||B.nearsighted||B.hasVirus?(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:k.map(function(I,T){if(B[I[0]])return(0,e.createComponentVNode)(2,m.Box,{color:I[1],bold:I[1]==="bad",children:I[2]},I[2])})}):(0,e.createComponentVNode)(2,m.Section,{title:"Abnormalities",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No abnormalities found."})})},C=function(x){var B=x.occupant;return(0,e.createComponentVNode)(2,m.Section,{title:"Damage",children:(0,e.createComponentVNode)(2,m.Table,{children:i(V,function(I,T,E){return(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[I[0],":"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:!!T&&T[0]+":"})]}),(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:(0,e.createComponentVNode)(2,b,{value:B[I[1]],marginBottom:E100)&&"average"||!!B.status.robotic&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{m:-.5,min:"0",max:B.maxHealth,mt:I>0&&"0.5rem",value:B.totalLoss/B.maxHealth,ranges:p,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Tooltip,{content:"Total damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"heartbeat",mr:.5}),(0,a.round)(B.totalLoss)]})}),!!B.bruteLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Brute damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,m.Icon,{name:"bone",mr:.5}),(0,a.round)(B.bruteLoss)]})}),!!B.fireLoss&&(0,e.createComponentVNode)(2,m.Tooltip,{content:"Burn damage",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"fire",mr:.5}),(0,a.round)(B.fireLoss)]})})]})})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([!!B.internalBleeding&&"Internal bleeding",!!B.burnWound&&"Critical tissue burns",!!B.lungRuptured&&"Ruptured lung",!!B.status.broken&&B.status.broken,s(B.germ_level),!!B.open&&"Open incision"])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:[c([!!B.status.splinted&&(0,e.createComponentVNode)(2,m.Box,{color:"good",children:"Splinted"}),!!B.status.robotic&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),!!B.status.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})]),c(B.shrapnel.map(function(T){return T.known?T.name:"Unknown object"}))]})]})]},I)})]})})},h=function(x){return x.organs.length===0?(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"N/A"})}):(0,e.createComponentVNode)(2,m.Section,{title:"Internal Organs",children:(0,e.createComponentVNode)(2,m.Table,{children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:"Damage"}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",children:"Injuries"})]}),x.organs.map(function(B,I){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{color:!!B.dead&&"bad"||B.germ_level>100&&"average"||B.robotic>0&&"label",width:"33%",children:(0,t.capitalize)(B.name)}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:B.maxHealth,value:B.damage/B.maxHealth,mt:I>0&&"0.5rem",ranges:p,children:(0,a.round)(B.damage)})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:[(0,e.createComponentVNode)(2,m.Box,{color:"average",inline:!0,children:c([s(B.germ_level)])}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:c([B.robotic===1&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Robotic"}),B.robotic===2&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"Assisted"}),!!B.dead&&(0,e.createComponentVNode)(2,m.Box,{color:"bad",bold:!0,children:"DEAD"})])})]})]},I)})]})})},g=function(){return(0,e.createComponentVNode)(2,m.Section,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},42570:function(L,r,n){"use strict";r.__esModule=!0,r.BorgPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BorgPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.borg||{},s=i.cell||{},l=s.charge/s.maxcharge,d=i.channels||[],f=i.modules||[],u=i.upgrades||[],C=i.ais||[],b=i.laws||[];return(0,e.createComponentVNode)(2,o.Window,{title:"Borg Panel",width:700,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:c.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function v(){return p("rename")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.emagged?"check-square-o":"square-o",content:"Emagged",selected:c.emagged,onClick:function(){function v(){return p("toggle_emagged")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lockdown?"check-square-o":"square-o",content:"Locked Down",selected:c.lockdown,onClick:function(){function v(){return p("toggle_lockdown")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.scrambledcodes?"check-square-o":"square-o",content:"Scrambled Codes",selected:c.scrambledcodes,onClick:function(){function v(){return p("toggle_scrambledcodes")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Reset Module",onClick:function(){function v(){return p("reset_module")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge",children:[s.missing?(0,e.createVNode)(1,"span","color-bad","No cell installed",16):(0,e.createComponentVNode)(2,t.ProgressBar,{value:l,children:s.charge+" / "+s.maxcharge}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Set",onClick:function(){function v(){return p("set_charge")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Change",onClick:function(){function v(){return p("change_cell")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"trash",content:"Remove",color:"bad",onClick:function(){function v(){return p("remove_cell")}return v}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radio Channels",children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_radio",{channel:v.name})}return h}()},v.name)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Model",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:c.active_module===v.name?"check-square-o":"square-o",content:v.name+" module",selected:c.active_module===v.name,onClick:function(){function h(){return p("setmodule",{module:v.name})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upgrades",children:u.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.installed?"check-square-o":"square-o",content:v.name,selected:v.installed,onClick:function(){function h(){return p("toggle_upgrade",{upgrade:v.type})}return h}()},v.type)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:C.map(function(v){return(0,e.createComponentVNode)(2,t.Button,{icon:v.connected?"check-square-o":"square-o",content:v.name,selected:v.connected,onClick:function(){function h(){return p("slavetoai",{slavetoai:v.ref})}return h}()},v.ref)})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Laws",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Law Manager",selected:c.lawmanager,onClick:function(){function v(){return p("lawmanager")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:c.lawupdate?"check-square-o":"square-o",content:"Lawsync",selected:c.lawupdate,onClick:function(){function v(){return p("toggle_lawupdate")}return v}()})],4),children:b.map(function(v){return(0,e.createComponentVNode)(2,t.Box,{children:v},v)})})]})})}return S}()},20464:function(L,r,n){"use strict";r.__esModule=!0,r.BotClean=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotClean=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.cleanblood;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function g(){return p("power")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function g(){return p("autopatrol")}return g}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function g(){return p("hack")}return g}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function g(){return p("disableremote")}return g}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0430 \u0443\u0431\u043E\u0440\u043A\u0438",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u0423\u0431\u0438\u0440\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C",disabled:s,onClick:function(){function g(){return p("blood")}return g}()})}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function g(){return p("ejectpai")}return g}()})})]})})}return S}()},74439:function(L,r,n){"use strict";r.__esModule=!0,r.BotSecurity=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BotSecurity=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.locked,s=i.noaccess,l=i.maintpanel,d=i.on,f=i.autopatrol,u=i.canhack,C=i.emagged,b=i.remote_disabled,v=i.painame,h=i.check_id,g=i.check_weapons,N=i.check_warrant,x=i.arrest_mode,B=i.arrest_declare;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0432\u043E\u0435\u0439 ID-\u043A\u0430\u0440\u0442\u043E\u0439, \u0447\u0442\u043E\u0431\u044B",c?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",selected:d,disabled:s,onClick:function(){function I(){return p("power")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:f,content:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u0430\u0442\u0440\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",disabled:s,onClick:function(){function I(){return p("autopatrol")}return I}()})}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0430\u043D\u0435\u043B\u044C \u0442\u0435\u0445\u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0430\u043D\u0435\u043B\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u0430"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438",children:(0,e.createComponentVNode)(2,t.Box,{color:C?"bad":"good",children:C?"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u044B":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u044B"})}),!!u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0437\u043B\u043E\u043C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:C?"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u0440\u043E\u0442\u043E\u043A\u043E\u043B\u044B \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438":"\u0412\u0437\u043B\u043E\u043C\u0430\u0442\u044C",disabled:s,color:"bad",onClick:function(){function I(){return p("hack")}return I}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:!b,content:"\u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0441\u043E \u0441\u0442\u043E\u0440\u043E\u043D\u044B \u0418\u0418",disabled:s,onClick:function(){function I(){return p("disableremote")}return I}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u0430\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0446\u0435\u043B\u0438",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:h,content:"\u041D\u0435\u043E\u043F\u043E\u0437\u043D\u0430\u043D\u043D\u044B\u0435 \u043B\u0438\u0447\u043D\u043E\u0441\u0442\u0438",disabled:s,onClick:function(){function I(){return p("authid")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:g,content:"\u0418\u043C\u0435\u044E\u0449\u0438\u0435 \u043D\u0435\u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435",disabled:s,onClick:function(){function I(){return p("authweapon")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:N,content:"\u0420\u0430\u0437\u044B\u0441\u043A\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043D\u0438\u043A\u0438",disabled:s,onClick:function(){function I(){return p("authwarrant")}return I}()})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u043E\u0446\u0435\u0434\u0443\u0440\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:x,content:"\u0411\u0435\u0441\u0441\u0440\u043E\u0447\u043D\u043E\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u0435 \u0446\u0435\u043B\u0435\u0439 \u0432\u043C\u0435\u0441\u0442\u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F",disabled:s,onClick:function(){function I(){return p("arrtype")}return I}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,checked:B,content:"\u0421\u043E\u043E\u0431\u0449\u0430\u0442\u044C \u043E \u0437\u0430\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0438 \u043F\u043E \u0440\u0430\u0434\u0438\u043E\u0441\u0432\u044F\u0437\u0438",disabled:s,onClick:function(){function I(){return p("arrdeclare")}return I}()})]}),v&&(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0418\u0418",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eject",content:v,disabled:s,onClick:function(){function I(){return p("ejectpai")}return I}()})})]})})}return S}()},10833:function(L,r,n){"use strict";r.__esModule=!0,r.BrigCells=void 0;var e=n(89005),a=n(98595),t=n(36036),o=n(72253),m=function(V,p){var i=V.cell,c=(0,o.useBackend)(p),s=c.act,l=i.cell_id,d=i.occupant,f=i.crimes,u=i.brigged_by,C=i.time_left_seconds,b=i.time_set_seconds,v=i.ref,h="";C>0&&(h+=" BrigCells__listRow--active");var g=function(){s("release",{ref:v})};return(0,e.createComponentVNode)(2,t.Table.Row,{className:h,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:l}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:b})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.TimeDisplay,{totalSeconds:C})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{type:"button",onClick:g,children:"Release"})})]})},S=function(V){var p=V.cells;return(0,e.createComponentVNode)(2,t.Table,{className:"BrigCells__list",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Cell"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Occupant"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Crimes"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Brigged By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Brigged For"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Time Left"}),(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Release"})]}),p.map(function(i){return(0,e.createComponentVNode)(2,m,{cell:i},i.ref)})]})},y=r.BrigCells=function(){function k(V,p){var i=(0,o.useBackend)(p),c=i.act,s=i.data,l=s.cells;return(0,e.createComponentVNode)(2,a.Window,{theme:"security",width:800,height:400,children:(0,e.createComponentVNode)(2,a.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,S,{cells:l})})})})})}return k}()},45761:function(L,r,n){"use strict";r.__esModule=!0,r.BrigTimer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.BrigTimer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;i.nameText=i.occupant,i.timing&&(i.prisoner_hasrec?i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i.occupant}):i.nameText=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:i.occupant}));var c="pencil-alt";i.prisoner_name&&(i.prisoner_hasrec||(c="exclamation-triangle"));var s=[],l=0;for(l=0;l60||!i.isAllowed,onClick:function(){function d(){return p("start")}return d}()})})]})})]})})}return S}()},26300:function(L,r,n){"use strict";r.__esModule=!0,r.CameraConsoleOldContent=r.CameraConsoleMapContent=r.CameraConsoleListContent=r.CameraConsole=void 0;var e=n(89005),a=n(88510),t=n(64795),o=n(35840),m=n(25328),S=n(72253),y=n(36036),k=n(98595);String.prototype.trimLongStr=function(d){return this.length>d?this.substring(0,d)+"...":this};var V=function(f,u){var C,b;if(!u)return[];var v=f.findIndex(function(h){return h.name===u.name});return[(C=f[v-1])==null?void 0:C.name,(b=f[v+1])==null?void 0:b.name]},p=function(f,u){u===void 0&&(u="");var C=(0,m.createSearch)(u,function(b){return b.name});return(0,t.flow)([(0,a.filter)(function(b){return b==null?void 0:b.name}),u&&(0,a.filter)(C),(0,a.sortBy)(function(b){return b.name})])(f)},i=r.CameraConsole=function(){function d(f,u){var C=(0,S.useLocalState)(u,"tabIndex",0),b=C[0],v=C[1],h=function(){function g(N){switch(N){case 0:return(0,e.createComponentVNode)(2,c);case 1:return(0,e.createComponentVNode)(2,s);default:return"WE SHOULDN'T BE HERE!"}}return g}();return(0,e.createComponentVNode)(2,k.Window,{width:1250,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Box,{fillPositionedParent:!0,overflow:"hidden",children:[(0,e.createComponentVNode)(2,y.Tabs,{children:[(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===0,onClick:function(){function g(){return v(0)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"map-marked-alt"})," Map"]},"Map"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:b===1,onClick:function(){function g(){return v(1)}return g}(),children:[(0,e.createComponentVNode)(2,y.Icon,{name:"table"})," List"]},"List")]}),h(b)]})})})}return d}(),c=r.CameraConsoleMapContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=p(v.cameras),g=(0,S.useLocalState)(u,"zoom",1),N=g[0],x=g[1],B=v.mapRef,I=v.activeCamera,T=v.stationLevelNum,E=v.stationLevelName,w=(0,S.useLocalState)(u,"z_current",T[0]),A=w[0],O=w[1],M=V(h,I),P=M[0],R=M[1];return(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,y.Box,{height:"100%",display:"flex",children:(0,e.createComponentVNode)(2,y.NanoMap,{onZoom:function(){function F(_){return x(_)}return F}(),zLevels:T,zNames:E,z_current:A,setZCurrent:O,children:h.map(function(F){return(0,e.createComponentVNode)(2,y.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:A,zoom:N,icon:"box",tooltip:F.name,color:F.status?"blue":"red",bordered:!0,onClick:function(){function _(){return b("switch_camera",{name:F.name})}return _}()},F.ref)})})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),I&&I.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!P,onClick:function(){function F(){return b("switch_camera",{name:P})}return F}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!R,onClick:function(){function F(){return b("switch_camera",{name:R})}return F}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:B,type:"map"}})],4)]})}return d}(),s=r.CameraConsoleOldContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=C.config,g=v.mapRef,N=v.activeCamera,x=(0,S.useLocalState)(u,"searchText",""),B=x[0],I=p(v.cameras,B),T=V(I,N),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,y.Box,{children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,l)})}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),N&&N.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-left",disabled:!E,onClick:function(){function A(){return b("switch_camera",{name:E})}return A}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"chevron-right",disabled:!w,onClick:function(){function A(){return b("switch_camera",{name:w})}return A}()})],4),(0,e.createComponentVNode)(2,y.ByondUi,{className:"CameraConsole__map",params:{id:g,type:"map"}})],4)]})}return d}(),l=r.CameraConsoleListContent=function(){function d(f,u){var C=(0,S.useBackend)(u),b=C.act,v=C.data,h=(0,S.useLocalState)(u,"searchText",""),g=h[0],N=h[1],x=v.activeCamera,B=p(v.cameras,g);return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search for a camera",onInput:function(){function I(T,E){return N(E)}return I}()})}),(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(I){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent",x&&I.name===x.name&&"Button--selected"]),I.name,0,{title:I.name,onClick:function(){function T(){return b("switch_camera",{name:I.name})}return T}()},I.name)})})})]})}return d}()},52927:function(L,r,n){"use strict";r.__esModule=!0,r.Canister=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(49968),S=n(98595),y=r.Canister=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.portConnected,d=s.tankPressure,f=s.releasePressure,u=s.defaultReleasePressure,C=s.minReleasePressure,b=s.maxReleasePressure,v=s.valveOpen,h=s.name,g=s.canLabel,N=s.colorContainer,x=s.color_index,B=s.hasHoldingTank,I=s.holdingTank,T="";x.prim&&(T=N.prim.options[x.prim].name);var E="";x.sec&&(E=N.sec.options[x.sec].name);var w="";x.ter&&(w=N.ter.options[x.ter].name);var A="";x.quart&&(A=N.quart.options[x.quart].name);var O=[],M=[],P=[],R=[],F=0;for(F=0;Fh.current_positions&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:h.total_positions-h.current_positions})||(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"0"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"-",disabled:u.cooldown_time||!h.can_close,onClick:function(){function g(){return f("make_job_unavailable",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.Button,{content:"+",disabled:u.cooldown_time||!h.can_open,onClick:function(){function g(){return f("make_job_available",{job:h.title})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{textAlign:"center",children:u.target_dept&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u.priority_jobs.indexOf(h.title)>-1?"Yes":""})||(0,e.createComponentVNode)(2,t.Button,{content:h.is_priority?"Yes":"No",selected:h.is_priority,disabled:u.cooldown_time||!h.can_prioritize,onClick:function(){function g(){return f("prioritize_job",{job:h.title})}return g}()})})]},h.title)})]})})]}):v=(0,e.createComponentVNode)(2,k);break;case 2:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,k):u.modify_name?v=(0,e.createComponentVNode)(2,m.AccessList,{accesses:u.regions,selectedList:u.selectedAccess,accessMod:function(){function h(g){return f("set",{access:g})}return h}(),grantAll:function(){function h(){return f("grant_all")}return h}(),denyAll:function(){function h(){return f("clear_all")}return h}(),grantDep:function(){function h(g){return f("grant_region",{region:g})}return h}(),denyDep:function(){function h(g){return f("deny_region",{region:g})}return h}()}):v=(0,e.createComponentVNode)(2,V);break;case 3:u.authenticated?u.records.length?v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Records",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete All Records",disabled:!u.authenticated||u.records.length===0||u.target_dept,onClick:function(){function h(){return f("wipe_all_logs")}return h}()}),children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Crewman"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Old Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"New Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Authorized By"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Reason"}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Deleted By"})]}),u.records.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.transferee}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.oldvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.newvalue}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.whodidit}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.timestamp}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.reason}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.deletedby})]},h.timestamp)})]}),!!u.iscentcom&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Delete MY Records",color:"purple",disabled:!u.authenticated||u.records.length===0,onClick:function(){function h(){return f("wipe_my_logs")}return h}()})})]}):v=(0,e.createComponentVNode)(2,p):v=(0,e.createComponentVNode)(2,k);break;case 4:!u.authenticated||!u.scan_name?v=(0,e.createComponentVNode)(2,k):v=(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Your Team",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Sec Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Actions"})]}),u.people_dept.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{height:2,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.title}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.crimstat}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:h.buttontext,disabled:!h.demotable,onClick:function(){function g(){return f("remote_demote",{remote_demote:h.name})}return g}()})})]},h.title)})]})});break;default:v=(0,e.createComponentVNode)(2,t.Section,{title:"Warning",color:"red",children:"ERROR: Unknown Mode."})}return(0,e.createComponentVNode)(2,o.Window,{width:800,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:b}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:C}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:v})]})})})}return c}()},64083:function(L,r,n){"use strict";r.__esModule=!0,r.CargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(25328),k=r.CargoConsole=function(){function s(l,d){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c)]})})})}return s}(),V=function(l,d){var f=(0,o.useLocalState)(d,"contentsModal",null),u=f[0],C=f[1],b=(0,o.useLocalState)(d,"contentsModalTitle",null),v=b[0],h=b[1];if(u!==null&&v!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[v,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:u.map(function(g){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",g]},g)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function g(){C(null),h(null)}return g}()})})]})},p=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.is_public,v=C.points,h=C.credits,g=C.timeleft,N=C.moving,x=C.at_station,B,I;return!N&&!x?(B="Docked off-station",I="Call Shuttle"):!N&&x?(B="Docked at the station",I="Return Shuttle"):N&&(I="In Transit...",g!==1?B="Shuttle is en route (ETA: "+g+" minutes)":B="Shuttle is en route (ETA: "+g+" minute)"),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Points Available",children:v}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Credits Available",children:h}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Shuttle Status",children:B}),b===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:I,disabled:N,onClick:function(){function T(){return u("moveShuttle")}return T}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Central Command Messages",onClick:function(){function T(){return u("showMessages")}return T}()})]})]})})})},i=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.categories,v=C.supply_packs,h=(0,o.useSharedState)(d,"category","Emergency"),g=h[0],N=h[1],x=(0,o.useSharedState)(d,"search_text",""),B=x[0],I=x[1],T=(0,o.useLocalState)(d,"contentsModal",null),E=T[0],w=T[1],A=(0,o.useLocalState)(d,"contentsModalTitle",null),O=A[0],M=A[1],P=(0,y.createSearch)(B,function(_){return _.name}),R=(0,a.flow)([(0,t.filter)(function(_){return _.cat===b.filter(function(U){return U.name===g})[0].category||B}),B&&(0,t.filter)(P),(0,t.sortBy)(function(_){return _.name.toLowerCase()})])(v),F="Crate Catalogue";return B?F="Results for '"+B+"':":g&&(F="Browsing "+g),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:F,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:b.map(function(_){return _.name}),selected:g,onSelected:function(){function _(U){return N(U)}return _}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function _(U,W){return I(W)}return _}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:R.map(function(_){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,m.Box,{color:_.has_sale?"good":"default",children:[_.name," (",_.cost?_.cost+" Points":"",_.creditsCost&&_.cost?" ":"",_.creditsCost?_.creditsCost+" Credits":"",")"]})}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:0})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function U(){return u("order",{crate:_.ref,multiple:1})}return U}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function U(){w(_.contents),M(_.name)}return U}()})]})]},_.name)})})})]})})},c=function(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=C.requests,v=C.canapprove,h=C.orders;return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Details",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:b.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Required Techs: ",g.pack_techs]})]}),(0,e.createComponentVNode)(2,m.Stack.Item,{textAlign:"right",children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!v,onClick:function(){function N(){return u("approve",{ordernum:g.ordernum})}return N}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function N(){return u("deny",{ordernum:g.ordernum})}return N}()})]})]},g.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:h.map(function(g){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",g.ordernum,": ",g.supply_type," for ",(0,e.createVNode)(1,"b",null,g.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",g.comment]})]})},g.ordernum)})})]})}},22794:function(L,r,n){"use strict";r.__esModule=!0,r.DelayHelper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.DelayHelper=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.delays,s=i.rev_delays,l=y.delay_list,d=y.reverse,f=d===void 0?!1:d;return(0,e.createComponentVNode)(2,o.LabeledControls,{wrap:!0,style:{"flex-direction":"column","flex-wrap":"wrap",height:"7.5em","justify-content":"start"},children:l.map(function(u,C){return(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:u.title,style:{"flex-direction":"column","min-width":"0"},children:(0,e.createComponentVNode)(2,o.Knob,{color:(f?s[C+1]:c[C+1])/10>10?"orange":"default",format:function(){function b(v){return(0,a.toFixed)(v,2)}return b}(),maxValue:10,minValue:0,inline:!0,onDrag:function(){function b(v,h){p("editTiming",{reverse:f,timer:""+(C+1),value:Math.max(h,0)})}return b}(),size:1,step:.02,unclamped:!0,unit:"s",value:(f?s[C+1]:c[C+1])/10})},C)})})}return S}()},23749:function(L,r,n){"use strict";r.__esModule=!0,r.PodBays=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodBays=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.bayNumber;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",onClick:function(){function s(){return p("clearBay")}return s}(),tooltip:"\n \u041E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0451\n\u0438\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0430\u043D\u0433\u0430\u0440\u0430.",tooltipPosition:"top-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"question",tooltip:"\n \u041A\u0430\u0436\u0434\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442\n\u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0439 \u0437\u043E\u043D\u0435 \u043D\u0430 \u0426\u041A.\n\u0417\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u0431\u0443\u0434\u0443\u0442\n\u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u044B \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u0430\u043C\u0438 \u0438\u0437 \u044D\u0442\u0438\u0445 \u0437\u043E\u043D\n\u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043E\u043F\u0446\u0438\u0435\u0439\n\xAB\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0438\u0437 \u0430\u043D\u0433\u0430\u0440\u0430\xBB \u0432 \u043B\u0435\u0432\u043E\u043C \u0432\u0435\u0440\u0445\u043D\u0435\u043C \u0443\u0433\u043B\u0443.",tooltipPosition:"top-end"})],4),fill:!0,title:"\u0410\u043D\u0433\u0430\u0440",children:o.BAYS.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function d(){return p("switchBay",{bayNumber:""+(l+1)})}return d}(),selected:c===""+(l+1),tooltipPosition:"bottom-end",children:s.title},l)})})}return S}()},8507:function(L,r,n){"use strict";r.__esModule=!0,r.PodLaunch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20345),m=r.PodLaunch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.giveLauncher,s=(0,o.useCompact)(k),l=s[0];return(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function d(){return p("giveLauncher")}return d}(),selected:c,textAlign:"center",tooltip:"\n \u0412\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u043D\u0430\u0442\u044C, \u0447\u0442\u043E\n \u041E\u0431 \u044D\u0442\u043E\u043C \u0433\u043E\u0432\u043E\u0440\u0438\u0442 \u041A\u043E\u0434\u0435\u043A\u0441 \u0410\u0441\u0442\u0430\u0440\u0442\u0435\u0441",tooltipPosition:"top",children:(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"1.4em",lineHeight:l?1.5:3,children:"\u0417\u0410\u041F\u0423\u0421\u041A"})})}return S}()},15802:function(L,r,n){"use strict";r.__esModule=!0,r.PodSounds=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=r.PodSounds=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.defaultSoundVolume,s=i.soundVolume;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"volume-up",onClick:function(){function l(){return p("soundVolume")}return l}(),selected:s!==c,tooltip:"\n \u0413\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C \u0417\u0443\u043A\u0430:"+s}),fill:!0,title:"\u0417\u0432\u0443\u043A\u0438",children:o.SOUNDS.map(function(l,d){return(0,e.createComponentVNode)(2,t.Button,{onClick:function(){function f(){return p(l.act)}return f}(),selected:i[l.act],tooltip:l.tooltip,tooltipPosition:"top-end",children:l.title},d)})})}return S}()},94577:function(L,r,n){"use strict";r.__esModule=!0,r.PodStatusPage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.PodStatusPage=function(){function V(p,i){var c=(0,m.useCompact)(i),s=c[0];return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:o.EFFECTS_ALL.map(function(l,d){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"label",mb:1,children:[!s&&(l.alt_label||l.label),":"]}),(0,e.createComponentVNode)(2,t.Box,{children:l.list.map(function(f,u){return(0,e.createComponentVNode)(2,y,{effect:f,hasMargin:l.list.length>1,index:u},u)})})]}),d=0;--J){var Y=this.tryEntries[J],Q=Y.completion;if(Y.tryLoc==="root")return ae("end");if(Y.tryLoc<=this.prev){var Z=f.call(Y,"catchLoc"),te=f.call(Y,"finallyLoc");if(Z&&te){if(this.prev=0;--ae){var J=this.tryEntries[ae];if(J.tryLoc<=this.prev&&f.call(J,"finallyLoc")&&this.prev=0;--q){var ae=this.tryEntries[q];if(ae.finallyLoc===ce)return this.complete(ae.completion,ae.afterLoc),X(ae),w}}return ne}(),catch:function(){function ne(ce){for(var q=this.tryEntries.length-1;q>=0;--q){var ae=this.tryEntries[q];if(ae.tryLoc===ce){var J=ae.completion;if(J.type==="throw"){var Y=J.arg;X(ae)}return Y}}throw Error("illegal catch attempt")}return ne}(),delegateYield:function(){function ne(ce,q,ae){return this.delegate={iterator:me(ce),resultName:q,nextLoc:ae},this.method==="next"&&(this.arg=s),w}return ne}()},l}function k(s,l,d,f,u,C,b){try{var v=s[C](b),h=v.value}catch(g){return void d(g)}v.done?l(h):Promise.resolve(h).then(f,u)}function V(s){return function(){var l=this,d=arguments;return new Promise(function(f,u){var C=s.apply(l,d);function b(h){k(C,f,u,b,v,"next",h)}function v(h){k(C,f,u,b,v,"throw",h)}b(void 0)})}}var p=function(){var s=V(y().mark(function(){function l(d,f){return y().wrap(function(){function u(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,a.storage.set("podlauncher_preset_"+d,f);case 2:case"end":return C.stop()}}return u}(),l)}return l}()));return function(){function l(d,f){return s.apply(this,arguments)}return l}()}(),i=function(l,d){var f=(0,o.useBackend)(d),u=f.data,C=l.editing,b=l.deletePreset,v=l.loadPreset,h=l.presetIndex,g=l.setEditing,N=l.getPresets;return(0,e.createFragment)([!C&&(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"plus",onClick:function(){function x(){return g(!C)}return x}(),tooltip:"\u041D\u043E\u0432\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"download",inline:!0,onClick:function(){function x(){return p(h.toString(),u)}return x}(),tooltip:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"upload",inline:!0,onClick:function(){function x(){v(h)}return x}(),tooltip:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0435\u0442"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"trash",inline:!0,onClick:function(){function x(){return b(h)}return x}(),tooltip:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0435\u0442",tooltipPosition:"bottom-start"}),(0,e.createComponentVNode)(2,m.Button,{color:"transparent",icon:"refresh",inline:!0,onClick:function(){function x(){return N()}return x}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u043F\u0440\u0435\u0441\u0435\u0442\u043E\u0432",tooltipPosition:"bottom-start"})],0)},c=r.PresetsPage=function(){function s(l,d){var f=(0,o.useBackend)(d),u=f.act,C=f.data,b=(0,o.useLocalState)(d,"editing",!1),v=b[0],h=b[1],g=(0,o.useLocalState)(d,"hue",0),N=g[0],x=g[1],B=(0,o.useLocalState)(d,"name",""),I=B[0],T=B[1],E=(0,o.useLocalState)(d,"presetID",0),w=E[0],A=E[1],O=(0,o.useLocalState)(d,"presets",[]),M=O[0],P=O[1],R=function(){var W=V(y().mark(function(){function $(G){var oe,X;return y().wrap(function(){function Ce(me){for(;;)switch(me.prev=me.next){case 0:oe=[].concat(M),X=0;case 2:if(!(X=l.length-2?f%2===1?"top-start":"top-end":f%2===1?"bottom-start":"bottom-end",tooltip:d.title,width:"45px",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["supplypods64x64","pod_asset"+d.id]),style:{"pointer-events":"none",transform:"rotate(45deg) translate(-25%,-10%)"}})},d.id)})})}return S}()},8179:function(L,r,n){"use strict";r.__esModule=!0,r.TabPod=r.TabDrop=r.TabBay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TabPod=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"street-view",children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,icon:"undo-alt",children:s?s.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),m=r.TabBay=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportCentcom"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}(),S=r.TabDrop=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=(0,a.useLocalState)(V,"teleported",!1),l=s[0],d=s[1],f=c.oldArea;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"street-view",onClick:function(){function u(){i("teleportDropoff"),d(!0)}return u}(),children:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f||!l,icon:"undo-alt",onClick:function(){function u(){i("teleportBack"),d(!1)}return u}(),children:f?f.substring(0,17):"\u041D\u0430\u0437\u0430\u0434"})],4)}return y}()},18885:function(L,r,n){"use strict";r.__esModule=!0,r.Timing=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(22794),S=r.Timing=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.custom_rev_delay,l=c.effectReverse;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"undo",onClick:function(){function d(){return i("resetTiming")}return d}(),tooltip:"\n \u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0430\u0439\u043C\u0438\u043D\u0433\u0438\n /\u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",disabled:!l,icon:s===1?"toggle-on":"toggle-off",onClick:function(){function d(){return i("toggleRevDelays")}return d}(),selected:s,tooltip:"\n \u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u0430\n \u041F\u0440\u0438\u043C\u0435\u0447\u0430\u043D\u0438\u0435: \u043F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u043E\u0439 \u043E\u043F\u0446\u0438\u0438 \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0430\u0442\u0435\u043B\u0438\n \u043E\u0431\u0440\u0430\u0449\u0430\u044E\u0442 \u0432\u0441\u043F\u044F\u0442\u044C \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043A\u0430\u043F\u0441\u0443\u043B",tooltipPosition:"bottom-end"})],4),title:"\u0412\u0440\u0435\u043C\u044F",children:s?(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.REV_DELAYS,reverse:!0}):(0,e.createComponentVNode)(2,m.DelayHelper,{delay_list:o.DELAYS})})}return y}()},76417:function(L,r,n){"use strict";r.__esModule=!0,r.ViewTabHolder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(7144),m=n(20345),S=r.ViewTabHolder=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mapRef,l=c.customDropoff,d=c.effectReverse,f=c.renderLighting,u=(0,m.useTab)(V),C=u[0],b=u[1],v=o.TABPAGES[C].component;return(0,e.createComponentVNode)(2,t.Section,{buttons:(0,e.createFragment)([!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"arrow-circle-down",inline:!0,onClick:function(){function h(){b(2),i("tabSwitch",{tabIndex:2})}return h}(),selected:C===2,tooltip:"\u041C\u0435\u0441\u0442\u043E \u0412\u044B\u0441\u0430\u0434\u043A\u0438"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"rocket",inline:!0,onClick:function(){function h(){b(0),i("tabSwitch",{tabIndex:0})}return h}(),selected:C===0,tooltip:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"th",inline:!0,onClick:function(){function h(){b(1),i("tabSwitch",{tabIndex:1})}return h}(),selected:C===1,tooltip:"\u0410\u043D\u0433\u0430\u0440 \u041F\u043E\u0433\u0440\u0443\u0437\u043A\u0438"}),(0,e.createVNode)(1,"span",null,"|",16,{style:o.POD_GREY}),!!l&&!!d&&(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lightbulb",inline:!0,onClick:function(){function h(){i("renderLighting"),i("refreshView")}return h}(),selected:f,tooltip:"\u0420\u0435\u043D\u0434\u0435\u0440\u0438\u043D\u0433 \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"sync-alt",inline:!0,onClick:function(){function h(){b(C),i("refreshView")}return h}(),tooltip:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u043A\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430"})],0),fill:!0,title:"\u041E\u0441\u043C\u043E\u0442\u0440",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,v)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.ByondUi,{height:"100%",params:{id:s,type:"map",zoom:0}})})]})})}return y}()},7144:function(L,r,n){"use strict";r.__esModule=!0,r.TABPAGES=r.SOUNDS=r.REV_DELAYS=r.REVERSE_OPTIONS=r.POD_GREY=r.EFFECTS_NORMAL=r.EFFECTS_LOAD=r.EFFECTS_HARM=r.EFFECTS_ALL=r.DELAYS=r.BAYS=void 0;var e=n(8179),a=r.POD_GREY={color:"grey"},t=r.TABPAGES=[{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",component:e.TabPod},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u043D\u0433\u0430\u0440\u0430",component:e.TabBay},{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u043C\u0435\u0441\u0442\u0430 \u0432\u044B\u0433\u0440\u0443\u0437\u043A\u0438.",component:e.TabDrop}],o=r.REVERSE_OPTIONS=[{title:"\u041C\u043E\u0431\u044B",key:"Mobs",icon:"user"},{title:"\u041D\u0435 \u0437\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Unanchored",icon:"cube"},{title:"\u0417\u0430\u043A\u0440\u0435\u043F\u043B\u0451\u043D\u043D\u044B\u0435\n\u041E\u0431\u044A\u0435\u043A\u0442\u044B",key:"Anchored",icon:"anchor"},{title:"\u041C\u0435\u0445\u0438",key:"Mecha",icon:"truck"}],m=r.DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u0440\u0438\u0431\u044B\u0442\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430 \u0441\u0442\u0430\u043D\u0446\u0438\u044E"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],S=r.REV_DELAYS=[{title:"Pre",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043F\u043E\u044F\u0432\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B \u043D\u0430\u0434 \u0442\u043E\u0447\u043A\u043E\u0439 \u0432\u044B\u0441\u0430\u0434\u043A\u0438"},{title:"Fall",tooltip:"\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0430\u043D\u0438\u043C\u0430\u0446\u0438\u0438\n \u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B"},{title:"Open",tooltip:"\u0412\u0440\u0435\u043C\u044F, \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E\u0435 \u043A\u0430\u043F\u0441\u0443\u043B\u0435 \u0434\u043B\u044F \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F"},{title:"Exit",tooltip:"\u0412\u0440\u0435\u043C\u044F \u0434\u043E \u043E\u0442\u043B\u0435\u0442\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u044B\n\u043F\u043E\u0441\u043B\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u044F"}],y=r.SOUNDS=[{title:"Fall",act:"fallingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043F\u043E\u043A\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0430\u0434\u0430\u0435\u0442, \u0438 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044F\n\u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u044F\u0435\u0442\u0441\u044F"},{title:"Land",act:"landingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u043F\u0440\u0438\u0437\u0435\u043C\u043B\u0435\u043D\u0438\u044F \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Open",act:"openingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438 \u043A\u0430\u043F\u0441\u0443\u043B\u044B"},{title:"Exit",act:"leavingSound",tooltip:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043F\u0441\u0443\u043B\u0430 \u0443\u043B\u0435\u0442\u0430\u0435\u0442"}],k=r.BAYS=[{title:"1"},{title:"2"},{title:"3"},{title:"4"},{title:"\u0415\u0420\u0422"}],V=r.EFFECTS_LOAD=[{act:"launchAll",choiceNumber:0,icon:"globe",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441\u043E \u0432\u0441\u0435\u0445 \u0442\u0443\u0440\u0444\u043E\u0432"},{act:"launchOrdered",choiceNumber:1,icon:"sort-amount-down-alt",selected:"launchChoice",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0441 \u0442\u0443\u0440\u0444\u043E\u0432 \u043F\u043E \u043F\u043E\u0440\u044F\u0434\u043A\u0443"},{act:"launchRandomTurf",choiceNumber:2,icon:"dice",selected:"launchChoice",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0440\u0430\u043D\u0434\u043E\u043C\u043D\u044B\u0439 \u0442\u0443\u0440\u0444"},{divider:!0},{act:"launchWholeTurf",choiceNumber:0,icon:"expand",selected:"launchRandomItem",title:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u0442\u0443\u0440\u0444\u0430"},{act:"launchRandomItem",choiceNumber:1,icon:"dice",selected:"launchRandomItem",title:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},{divider:!0},{act:"launchClone",icon:"clone",soloSelected:"launchClone",title:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043A\u0442"}],p=r.EFFECTS_NORMAL=[{act:"effectTarget",icon:"user-check",soloSelected:"effectTarget",title:"\u041E\u0441\u043E\u0431\u0430\u044F \u0446\u0435\u043B\u044C"},{act:"effectBluespace",choiceNumber:0,icon:"hand-paper",selected:"effectBluespace",title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F"},{act:"effectStealth",icon:"user-ninja",soloSelected:"effectStealth",title:"\u0421\u043A\u0440\u044B\u0442\u043D\u043E"},{act:"effectQuiet",icon:"volume-mute",soloSelected:"effectQuiet",title:"\u0422\u0438\u0445\u043E"},{act:"effectMissile",icon:"rocket",soloSelected:"effectMissile",title:"\u0420\u0435\u0436\u0438\u043C \u0440\u0430\u043A\u0435\u0442\u044B"},{act:"effectBurst",icon:"certificate",soloSelected:"effectBurst",title:"\u0417\u0430\u043F\u0443\u0441\u043A \u043A\u043B\u0430\u0441\u0442\u0435\u0440\u0430"},{act:"effectCircle",icon:"ruler-combined",soloSelected:"effectCircle",title:"\u041B\u044E\u0431\u043E\u0439 \u0443\u0433\u043E\u043B \u0441\u043F\u0443\u0441\u043A\u0430"},{act:"effectAnnounce",choiceNumber:0,icon:"ghost",selected:"effectAnnounce",title:"\u041D\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432\n(\u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435 \u0445\u043E\u0442\u0438\u0442\u0435\n\u0440\u0430\u0437\u0432\u043B\u0435\u043A\u0430\u0442\u044C \u0441\u043A\u0443\u0447\u0430\u044E\u0449\u0438\u0445 \u043F\u0440\u0438\u0437\u0440\u0430\u043A\u043E\u0432)"}],i=r.EFFECTS_HARM=[{act:"explosionCustom",choiceNumber:1,icon:"bomb",selected:"explosionChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0432\u0437\u0440\u044B\u0432"},{act:"explosionBus",choiceNumber:2,icon:"bomb",selected:"explosionChoice",title:"\u0410\u0434\u043C\u0438\u043D\u0430\u0431\u0443\u0437-\u0432\u0437\u0440\u044B\u0432\n\u0418 \u0447\u0442\u043E \u043E\u043D\u0438 \u0441\u0434\u0435\u043B\u0430\u044E\u0442, \u0437\u0430\u0431\u0430\u043D\u044F\u0442 \u0442\u0435\u0431\u044F?"},{divider:!0},{act:"damageCustom",choiceNumber:1,icon:"skull",selected:"damageChoice",title:"\u041D\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0443\u0440\u043E\u043D"},{act:"damageGib",choiceNumber:2,icon:"skull-crossbones",selected:"damageChoice",title:"\u0413\u0438\u0431"},{divider:!0},{act:"effectShrapnel",details:!0,icon:"cloud-meatball",soloSelected:"effectShrapnel",title:"\u041E\u0431\u043B\u0430\u043A\u043E \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432"},{act:"effectStun",icon:"sun",soloSelected:"effectStun",title:"\u0421\u0442\u0430\u043D"},{act:"effectLimb",icon:"socks",soloSelected:"effectLimb",title:"\u041F\u043E\u0442\u0435\u0440\u044F \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438"},{act:"effectOrgans",icon:"book-dead",soloSelected:"effectOrgans",title:"\u0420\u0430\u0437\u043B\u0435\u0442 \u0432\u0441\u0435\u0445 \u043E\u0440\u0433\u0430\u043D\u043E\u0432"}],c=r.EFFECTS_ALL=[{list:V,label:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437",alt_label:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430",tooltipPosition:"right"},{list:p,label:"\u041E\u0431\u044B\u0447\u043D\u044B\u0435 \u042D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"},{list:i,label:"\u0412\u0440\u0435\u0434\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B",tooltipPosition:"bottom"}]},20345:function(L,r,n){"use strict";r.__esModule=!0,r.useTab=r.useCompact=void 0;var e=n(72253),a=r.useCompact=function(){function o(m){return(0,e.useLocalState)(m,"compact",!1)}return o}(),t=r.useTab=function(){function o(m){return(0,e.useLocalState)(m,"tab",1)}return o}()},65875:function(L,r,n){"use strict";r.__esModule=!0,r.CentcomPodLauncher=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(20345),m=n(23749),S=n(8507),y=n(15802),k=n(94577),V=n(30590),p=n(72932),i=n(68569),c=n(18885),s=n(76417),l=r.CentcomPodLauncher=function(){function d(f,u){var C=(0,o.useCompact)(u),b=C[0];return(0,e.createComponentVNode)(2,t.Window,{height:b?360:440,title:"\u041C\u0435\u043D\u044E \u043A\u0430\u043F\u0441\u0443\u043B \u0441\u043D\u0430\u0431\u0436\u0435\u043D\u0438\u044F",width:b?460:750,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{shrink:0,children:(0,e.createComponentVNode)(2,k.PodStatusPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,shrink:0,basis:"14.1em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V.PresetsPage)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,p.ReverseMenu)}),(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,S.PodLaunch)})})]})}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{grow:3,children:(0,e.createComponentVNode)(2,s.ViewTabHolder)}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"9em",children:(0,e.createComponentVNode)(2,a.Stack,{fill:!0,vertical:!0,direction:"column",children:[(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,m.PodBays)}),(0,e.createComponentVNode)(2,a.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c.Timing)}),!b&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:(0,e.createComponentVNode)(2,y.PodSounds,{fill:!0})})]})}),(0,e.createComponentVNode)(2,a.Stack.Item,{basis:"11em",children:(0,e.createComponentVNode)(2,i.StylePage)})]})})]})})})}return d}()},16780:function(){"use strict"},12226:function(L,r,n){"use strict";r.__esModule=!0,r.Changelog=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(79140),y=V(n(83331)),k=V(n(52754));function V(u){return u&&u.__esModule?u:{default:u}}function p(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return C};var u,C={},b=Object.prototype,v=b.hasOwnProperty,h=Object.defineProperty||function(J,Y,Q){J[Y]=Q.value},g=typeof Symbol=="function"?Symbol:{},N=g.iterator||"@@iterator",x=g.asyncIterator||"@@asyncIterator",B=g.toStringTag||"@@toStringTag";function I(J,Y,Q){return Object.defineProperty(J,Y,{value:Q,enumerable:!0,configurable:!0,writable:!0}),J[Y]}try{I({},"")}catch(J){I=function(Q,Z,te){return Q[Z]=te}}function T(J,Y,Q,Z){var te=Y&&Y.prototype instanceof R?Y:R,se=Object.create(te.prototype),ye=new q(Z||[]);return h(se,"_invoke",{value:Ce(J,Q,ye)}),se}function E(J,Y,Q){try{return{type:"normal",arg:J.call(Y,Q)}}catch(Z){return{type:"throw",arg:Z}}}C.wrap=T;var w="suspendedStart",A="suspendedYield",O="executing",M="completed",P={};function R(){}function F(){}function _(){}var U={};I(U,N,function(){return this});var W=Object.getPrototypeOf,$=W&&W(W(ae([])));$&&$!==b&&v.call($,N)&&(U=$);var G=_.prototype=R.prototype=Object.create(U);function oe(J){["next","throw","return"].forEach(function(Y){I(J,Y,function(Q){return this._invoke(Y,Q)})})}function X(J,Y){function Q(te,se,ye,fe){var Le=E(J[te],J,se);if(Le.type!=="throw"){var D=Le.arg,re=D.value;return re&&typeof re=="object"&&v.call(re,"__await")?Y.resolve(re.__await).then(function(de){Q("next",de,ye,fe)},function(de){Q("throw",de,ye,fe)}):Y.resolve(re).then(function(de){D.value=de,ye(D)},function(de){return Q("throw",de,ye,fe)})}fe(Le.arg)}var Z;h(this,"_invoke",{value:function(){function te(se,ye){function fe(){return new Y(function(Le,D){Q(se,ye,Le,D)})}return Z=Z?Z.then(fe,fe):fe()}return te}()})}function Ce(J,Y,Q){var Z=w;return function(te,se){if(Z===O)throw Error("Generator is already running");if(Z===M){if(te==="throw")throw se;return{value:u,done:!0}}for(Q.method=te,Q.arg=se;;){var ye=Q.delegate;if(ye){var fe=me(ye,Q);if(fe){if(fe===P)continue;return fe}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(Z===w)throw Z=M,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);Z=O;var Le=E(J,Y,Q);if(Le.type==="normal"){if(Z=Q.done?M:A,Le.arg===P)continue;return{value:Le.arg,done:Q.done}}Le.type==="throw"&&(Z=M,Q.method="throw",Q.arg=Le.arg)}}}function me(J,Y){var Q=Y.method,Z=J.iterator[Q];if(Z===u)return Y.delegate=null,Q==="throw"&&J.iterator.return&&(Y.method="return",Y.arg=u,me(J,Y),Y.method==="throw")||Q!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),P;var te=E(Z,J.iterator,Y.arg);if(te.type==="throw")return Y.method="throw",Y.arg=te.arg,Y.delegate=null,P;var se=te.arg;return se?se.done?(Y[J.resultName]=se.value,Y.next=J.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=u),Y.delegate=null,P):se:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,P)}function ne(J){var Y={tryLoc:J[0]};1 in J&&(Y.catchLoc=J[1]),2 in J&&(Y.finallyLoc=J[2],Y.afterLoc=J[3]),this.tryEntries.push(Y)}function ce(J){var Y=J.completion||{};Y.type="normal",delete Y.arg,J.completion=Y}function q(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(ne,this),this.reset(!0)}function ae(J){if(J||J===""){var Y=J[N];if(Y)return Y.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var Q=-1,Z=function(){function te(){for(;++Q=0;--te){var se=this.tryEntries[te],ye=se.completion;if(se.tryLoc==="root")return Z("end");if(se.tryLoc<=this.prev){var fe=v.call(se,"catchLoc"),Le=v.call(se,"finallyLoc");if(fe&&Le){if(this.prev=0;--Z){var te=this.tryEntries[Z];if(te.tryLoc<=this.prev&&v.call(te,"finallyLoc")&&this.prev=0;--Q){var Z=this.tryEntries[Q];if(Z.finallyLoc===Y)return this.complete(Z.completion,Z.afterLoc),ce(Z),P}}return J}(),catch:function(){function J(Y){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var Z=this.tryEntries[Q];if(Z.tryLoc===Y){var te=Z.completion;if(te.type==="throw"){var se=te.arg;ce(Z)}return se}}throw Error("illegal catch attempt")}return J}(),delegateYield:function(){function J(Y,Q,Z){return this.delegate={iterator:ae(Y),resultName:Q,nextLoc:Z},this.method==="next"&&(this.arg=u),P}return J}()},C}function i(u,C,b,v,h,g,N){try{var x=u[g](N),B=x.value}catch(I){return void b(I)}x.done?C(B):Promise.resolve(B).then(v,h)}function c(u){return function(){var C=this,b=arguments;return new Promise(function(v,h){var g=u.apply(C,b);function N(B){i(g,v,h,N,x,"next",B)}function x(B){i(g,v,h,N,x,"throw",B)}N(void 0)})}}function s(u,C){u.prototype=Object.create(C.prototype),u.prototype.constructor=u,l(u,C)}function l(u,C){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,v){return b.__proto__=v,b},l(u,C)}var d={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},del:{icon:"minus",color:"red"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},f=r.Changelog=function(u){function C(){var v;return v=u.call(this)||this,v.getData=function(h,g){g===void 0&&(g=1);var N=(0,t.useBackend)(v.context),x=N.act,B=v,I=6;if(g>I)return v.setData("Failed to load data after "+I+" attempts");x("get_month",{date:h}),fetch((0,S.resolveAsset)(h+".yml")).then(function(){var T=c(p().mark(function(){function E(w){var A,O,M;return p().wrap(function(){function P(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,w.text();case 2:A=R.sent,O=/^Cannot find/,O.test(A)?(M=50+g*50,B.setData("Loading changelog data"+".".repeat(g+3)),setTimeout(function(){B.getData(h,g+1)},M)):B.setData(k.default.load(A,{schema:k.default.CORE_SCHEMA}));case 5:case"end":return R.stop()}}return P}(),E)}return E}()));return function(E){return T.apply(this,arguments)}}())},v.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},v.dateChoices=[],v}s(C,u);var b=C.prototype;return b.setData=function(){function v(h){this.setState({data:h})}return v}(),b.setSelectedDate=function(){function v(h){this.setState({selectedDate:h})}return v}(),b.setSelectedIndex=function(){function v(h){this.setState({selectedIndex:h})}return v}(),b.componentDidMount=function(){function v(){var h=this,g=(0,t.useBackend)(this.context),N=g.data.dates,x=N===void 0?[]:N;x&&(x.forEach(function(B){return h.dateChoices.push((0,y.default)(B,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(x[0]))}return v}(),b.render=function(){function v(){var h=this,g=this.state,N=g.data,x=g.selectedDate,B=g.selectedIndex,I=(0,t.useBackend)(this.context),T=I.data.dates,E=this.dateChoices,w=E.length>0&&(0,e.createComponentVNode)(2,o.Stack,{mb:1,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===0,icon:"chevron-left",onClick:function(){function R(){var F=B-1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{displayText:x,options:E,onSelected:function(){function R(F){var _=E.indexOf(F);return h.setData("Loading changelog data..."),h.setSelectedIndex(_),h.setSelectedDate(F),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[_])}return R}(),selected:x,width:"150px"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{className:"Changelog__Button",disabled:B===E.length-1,icon:"chevron-right",onClick:function(){function R(){var F=B+1;return h.setData("Loading changelog data..."),h.setSelectedIndex(F),h.setSelectedDate(E[F]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),h.getData(T[F])}return R}()})})]}),A=(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createVNode)(1,"h1",null,"Paradise Station",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Thanks to: ",16),(0,e.createTextVNode)("Baystation 12, /tg/station, /vg/station, NTstation, CDK Station devs, FacepunchStation, GoonStation devs, the original SpaceStation developers and Radithor for the title image. Also a thanks to anybody who has contributed who is not listed here :( Ask to be added here on irc.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Recent GitHub contributors can be found "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://github.com/ss220-space/Paradise/pulse/monthly"}),(0,e.createTextVNode)(".")],0),w]}),O=(0,e.createComponentVNode)(2,o.Section,{children:[w,(0,e.createVNode)(1,"h3",null,"GoonStation 13 Development Team",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Coders: ",16),(0,e.createTextVNode)("Stuntwaffle, Showtime, Pantaloons, Nannek, Keelin, Exadv1, hobnob, Justicefries, 0staf, sniperchance, AngriestIBM, BrianOBlivion")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"Spriters: ",16),(0,e.createTextVNode)("Supernorn, Haruhi, Stuntwaffle, Pantaloons, Rho, SynthOrange, I Said No")],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Traditional Games Space Station 13 is thankful to the GoonStation 13 Development Team for its work on the game up to the"),(0,e.createTextVNode)(" r4407 release. The changelog for changes up to r4407 can be seen "),(0,e.createVNode)(1,"a",null,"here",16,{href:"https://wiki.ss13.co/Pre-2016_Changelog#April_2010"}),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,["Except where otherwise noted, Goon Station 13 is licensed under a ",(0,e.createVNode)(1,"a",null,"Creative Commons Attribution-Noncommercial-Share Alike 3.0 License",16,{href:"https://creativecommons.org/licenses/by-nc-sa/3.0/"}),". Rights are currently extended to ",(0,e.createVNode)(1,"a",null,"SomethingAwful Goons",16,{href:"http://forums.somethingawful.com/"})," only."],0),(0,e.createVNode)(1,"h3",null,"Traditional Games Space Station 13 License",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Some icons by"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Yusuke Kamiyamane",16,{href:"http://p.yusukekamiyamane.com/"}),(0,e.createTextVNode)(". All rights reserved. Licensed under a"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"a",null,"Creative Commons Attribution 3.0 License",16,{href:"http://creativecommons.org/licenses/by/3.0/"}),(0,e.createTextVNode)(".")],0)]}),M=/#\d+/,P=typeof N=="object"&&Object.keys(N).length>0&&Object.entries(N).reverse().map(function(R){var F=R[0],_=R[1];return(0,e.createComponentVNode)(2,o.Section,{title:(0,y.default)(F,"d mmmm yyyy",!0),children:(0,e.createComponentVNode)(2,o.Box,{ml:3,children:Object.entries(_).map(function(U){var W=U[0],$=U[1];return(0,e.createFragment)([(0,e.createVNode)(1,"h4",null,[W,(0,e.createTextVNode)(" changed:")],0),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createComponentVNode)(2,o.Table,{children:$.map(function(G){var oe=Object.keys(G)[0],X=G[oe],Ce=X.match(M),me=(0,e.createComponentVNode)(2,o.Table.Cell,{className:(0,a.classes)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.createComponentVNode)(2,o.Icon,{color:d[oe]?d[oe].color:d.unknown.color,name:d[oe]?d[oe].icon:d.unknown.icon})});return Ce!==null&&(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:(0,e.createVNode)(1,"a",null,[" ",X.charAt(0).toUpperCase()+X.slice(1)," "],0,{href:"https://github.com/ss220-space/Paradise/pull/"+Ce[0].substring(1)})})]},oe+X)||(0,e.createComponentVNode)(2,o.Table.Row,{children:[me,(0,e.createComponentVNode)(2,o.Table.Cell,{className:"Changelog__Cell",children:X})]},oe+X)})})})],4,W)})})},F)});return(0,e.createComponentVNode)(2,m.Window,{title:"Changelog",width:675,height:650,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[A,P,typeof N=="string"&&(0,e.createVNode)(1,"p",null,N,0),O]})})}return v}(),C}(e.Component)},91360:function(L,r,n){"use strict";r.__esModule=!0,r.CheckboxListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(98595),y=r.CheckboxListInputModal=function(){function V(p,i){var c=(0,m.useBackend)(i),s=c.act,l=c.data,d=l.items,f=d===void 0?[]:d,u=l.message,C=u===void 0?"":u,b=l.init_value,v=l.timeout,h=l.title,g=(0,m.useLocalState)(i,"edittedItems",f),N=g[0],x=g[1],B=330+Math.ceil(C.length/3),I=function(){function T(E){E===void 0&&(E=null);var w=[].concat(N);w=w.map(function(A){return A.key===E.key?Object.assign({},A,{checked:!E.checked}):A}),x(w)}return T}();return(0,e.createComponentVNode)(2,S.Window,{title:h,width:325,height:B,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k,{filteredItems:N,onClick:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return V}(),k=function(p,i){var c=p.filteredItems,s=p.onClick;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:c.map(function(l,d){return(0,e.createComponentVNode)(2,o.Button.Checkbox,{fluid:!0,id:d,onClick:function(){function f(){return s(l)}return f}(),checked:l.checked,style:{animation:"none",transition:"none"},children:l.key.replace(/^\w/,function(f){return f.toUpperCase()})},d)})})}},36108:function(L,r,n){"use strict";r.__esModule=!0,r.ChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(85870),m=n(98595),S=[1,5,10,20,30,50,100],y=[1,5,10],k=r.ChemDispenser=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.chemicals;return(0,e.createComponentVNode)(2,m.Window,{width:460,height:400+C.length*8,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i)]})})})}return c}(),V=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.amount,b=u.energy,v=u.maxEnergy;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:b,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[b," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispense",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:S.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:C===h,content:h,onClick:function(){function N(){return f("amount",{amount:h})}return N}()})},g)})})})]})})})},p=function(s,l){for(var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.chemicals,b=C===void 0?[]:C,v=[],h=0;h<(b.length+1)%3;h++)v.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:u.glass?"Drink Dispenser":"Chemical Dispenser",children:[b.map(function(g,N){return(0,e.createComponentVNode)(2,t.Button,{m:.1,width:"32.5%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",content:g.title,style:{"margin-left":"2px"},onClick:function(){function x(){return f("dispense",{reagent:g.id})}return x}()},N)}),v.map(function(g,N){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,basis:"25%"},N)})]})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data,C=u.isBeakerLoaded,b=u.beakerCurrentVolume,v=u.beakerMaxVolume,h=u.beakerContents,g=h===void 0?[]:h;return(0,e.createComponentVNode)(2,t.Stack.Item,{height:16,children:(0,e.createComponentVNode)(2,t.Section,{title:u.glass?"Glass":"Beaker",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,t.Box,{children:[!!C&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"label",mr:2,children:[b," / ",v," units"]}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject",disabled:!C,onClick:function(){function N(){return f("ejectBeaker")}return N}()})]}),children:(0,e.createComponentVNode)(2,o.BeakerContents,{beakerLoaded:C,beakerContents:g,buttons:function(){function N(x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-1})}return B}()}),y.map(function(B,I){return(0,e.createComponentVNode)(2,t.Button,{content:B,onClick:function(){function T(){return f("remove",{reagent:x.id,amount:B})}return T}()},I)}),(0,e.createComponentVNode)(2,t.Button,{content:"ALL",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:x.volume})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Floor",tooltip:"Set to "+Math.trunc(x.volume),icon:"arrow-circle-down",onClick:function(){function B(){return f("remove",{reagent:x.id,amount:-2})}return B}()})],0)}return N}()})})})}},13146:function(L,r,n){"use strict";r.__esModule=!0,r.ChemHeater=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(85870),S=n(98595),y=r.ChemHeater=function(){function p(i,c){return(0,e.createComponentVNode)(2,S.Window,{width:350,height:275,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.targetTemp,u=d.targetTempReached,C=d.autoEject,b=d.isActive,v=d.currentTemp,h=d.isBeakerLoaded;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Settings",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Auto-eject",icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){function g(){return l("toggle_autoeject")}return g}()}),(0,e.createComponentVNode)(2,o.Button,{content:b?"On":"Off",icon:"power-off",selected:b,disabled:!h,onClick:function(){function g(){return l("toggle_on")}return g}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"65px",unit:"K",step:10,stepPixelSize:3,value:(0,a.round)(f,0),minValue:0,maxValue:1e3,onDrag:function(){function g(N,x){return l("adjust_temperature",{target:x})}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Reading",color:u?"good":"average",children:h&&(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:v,format:function(){function g(N){return(0,a.toFixed)(N)+" K"}return g}()})||"\u2014"})]})})})},V=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.isBeakerLoaded,u=d.beakerCurrentVolume,C=d.beakerMaxVolume,b=d.beakerContents;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:!!f&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",mr:2,children:[u," / ",C," units"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject",onClick:function(){function v(){return l("eject_beaker")}return v}()})]}),children:(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:f,beakerContents:b})})})}},56541:function(L,r,n){"use strict";r.__esModule=!0,r.ChemMaster=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(85870),S=n(3939),y=n(35840),k=["icon"];function V(B,I){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(I.includes(E))continue;T[E]=B[E]}return T}function p(B,I){B.prototype=Object.create(I.prototype),B.prototype.constructor=B,i(B,I)}function i(B,I){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,E){return T.__proto__=E,T},i(B,I)}var c=[1,5,10],s=function(I,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=I.args.analysis;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:A.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.createComponentVNode)(2,t.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:O.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:(O.desc||"").length>0?O.desc:"N/A"}),O.blood_type&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood type",children:O.blood_type}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:O.blood_dna})],4),!A.condi&&(0,e.createComponentVNode)(2,t.Button,{icon:A.printing?"spinner":"print",disabled:A.printing,iconSpin:!!A.printing,ml:"0.5rem",content:"Print",onClick:function(){function M(){return w("print",{idx:O.idx,beaker:I.args.beaker})}return M}()})]})})})})},l=function(B){return B[B.ToDisposals=0]="ToDisposals",B[B.ToBeaker=1]="ToBeaker",B}(l||{}),d=r.ChemMaster=function(){function B(I,T){return(0,e.createComponentVNode)(2,o.Window,{width:575,height:650,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,x)]})})]})}return B}(),f=function(I,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.beaker,M=A.beaker_reagents,P=A.buffer_reagents,R=P.length>0;return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Beaker",fill:!0,scrollable:!0,buttons:R?(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}):(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!O,content:"Eject and Clear Buffer",onClick:function(){function F(){return w("eject")}return F}()}),children:O?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function F(_,U){return(0,e.createComponentVNode)(2,t.Box,{mb:U0?(0,e.createComponentVNode)(2,m.BeakerContents,{beakerLoaded:!0,beakerContents:M,buttons:function(){function P(R,F){return(0,e.createComponentVNode)(2,t.Box,{mb:F0&&(R=P.map(function(F){var _=F.id,U=F.sprite;return(0,e.createComponentVNode)(2,g,{icon:U,color:"translucent",onClick:function(){function W(){return w("set_sprite_style",{production_mode:O,style:_})}return W}(),selected:M===_},_)})),(0,e.createComponentVNode)(2,h,{productionData:I.productionData,children:R&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:R})})},x=function(I,T){var E=(0,a.useBackend)(T),w=E.act,A=E.data,O=A.loaded_pill_bottle_style,M=A.containerstyles,P=A.loaded_pill_bottle,R={width:"20px",height:"20px"},F=M.map(function(_){var U=_.color,W=_.name,$=O===U;return(0,e.createComponentVNode)(2,t.Button,{style:{position:"relative",width:R.width,height:R.height},onClick:function(){function G(){return w("set_container_style",{style:U})}return G}(),icon:$&&"check",iconStyle:{position:"relative","z-index":1},tooltip:W,tooltipPosition:"top",children:[!$&&(0,e.createVNode)(1,"div",null,null,1,{style:{display:"inline-block"}}),(0,e.createVNode)(1,"span","Button",null,1,{style:{display:"inline-block",position:"absolute",top:0,left:0,margin:0,padding:0,width:R.width,height:R.height,"background-color":U,opacity:.6,filter:"alpha(opacity=60)"}})]},U)});return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Container Customization",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!P,content:"Eject Container",onClick:function(){function _(){return w("ejectp")}return _}()}),children:P?(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Style",children:[(0,e.createComponentVNode)(2,t.Button,{style:{width:R.width,height:R.height},icon:"tint-slash",onClick:function(){function _(){return w("clear_container_style")}return _}(),selected:!O,tooltip:"Default",tooltipPosition:"top"}),F]})}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"No pill bottle or patch pack loaded."})})})};(0,S.modalRegisterBodyOverride)("analyze",s)},37173:function(L,r,n){"use strict";r.__esModule=!0,r.CloningConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(76910),S=n(3939),y=n(98595),k=n(79140),V=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=C.args,x=N.activerecord,B=N.realname,I=N.health,T=N.unidentity,E=N.strucenzymes,w=I.split(" - ");return(0,e.createComponentVNode)(2,o.Section,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+B,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Damage",children:w.length>1?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.oxy,inline:!0,children:w[0]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.toxin,inline:!0,children:w[2]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.brute,inline:!0,children:w[3]}),(0,e.createTextVNode)("\xA0|\xA0"),(0,e.createComponentVNode)(2,o.Box,{color:m.COLORS.damageType.burn,inline:!0,children:w[1]})],4):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Unknown"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"UI",className:"LabeledList__breakContents",children:T}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"SE",className:"LabeledList__breakContents",children:E}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Disk",children:[(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!g.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){function A(){return h("disk",{option:"load"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ui"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"ue"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!g.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){function A(){return h("disk",{option:"save",savetype:"se"})}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!g.podready,icon:"user-plus",content:"Clone",onClick:function(){function A(){return h("clone",{ref:x})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"Delete",onClick:function(){function A(){return h("del_rec")}return A}()})]})]})})},p=r.CloningConsole=function(){function u(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,S.modalRegisterBodyOverride)("view_rec",V),(0,e.createComponentVNode)(2,y.Window,{width:640,height:520,children:[(0,e.createComponentVNode)(2,S.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.createComponentVNode)(2,y.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,flexGrow:"1",children:(0,e.createComponentVNode)(2,c)})]})]})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.menu;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===1,icon:"home",onClick:function(){function x(){return h("menu",{num:1})}return x}(),children:"Main"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:N===2,icon:"folder",onClick:function(){function x(){return h("menu",{num:2})}return x}(),children:"Records"})]})},c=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.menu,N;return g===1?N=(0,e.createComponentVNode)(2,s):g===2&&(N=(0,e.createComponentVNode)(2,l)),N},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.loading,x=g.scantemp,B=g.occupant,I=g.locked,T=g.can_brainscan,E=g.scan_mode,w=g.numberofpods,A=g.pods,O=g.selected_pod,M=I&&!!B;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Section,{title:"Scanner",level:"2",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B,selected:M,icon:M?"toggle-on":"toggle-off",content:M?"Engaged":"Disengaged",onClick:function(){function P(){return h("lock")}return P}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:M||!B,icon:"user-slash",content:"Eject Occupant",onClick:function(){function P(){return h("eject")}return P}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.createComponentVNode)(2,o.Box,{color:x.color,children:x.text})}),!!T&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scan Mode",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"brain":"male",content:E?"Brain":"Body",onClick:function(){function P(){return h("toggle_mode")}return P}()})})]}),(0,e.createComponentVNode)(2,o.Button,{disabled:!B||N,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){function P(){return h("scan")}return P}()})]}),(0,e.createComponentVNode)(2,o.Section,{title:"Pods",level:"2",children:w?A.map(function(P,R){var F;return P.status==="cloning"?F=(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:P.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,a.round)(P.progress,0)+"%"})}):P.status==="mess"?F=(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):F=(0,e.createComponentVNode)(2,o.Button,{selected:O===P.pod,icon:O===P.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){function _(){return h("selectpod",{ref:P.pod})}return _}()}),(0,e.createComponentVNode)(2,o.Box,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.createVNode)(1,"img",null,null,1,{src:(0,k.resolveAsset)("pod_"+P.status+".gif"),style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["Pod #",R+1]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,color:P.biomass>=150?"good":"bad",inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:P.biomass>=150?"circle":"circle-o"}),"\xA0",P.biomass]}),F]},R)}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"No pods detected. Unable to clone."})})],4)},l=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.records;return N.length?(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:N.map(function(x,B){return(0,e.createComponentVNode)(2,o.Button,{icon:"user",mb:"0.5rem",content:x.realname,onClick:function(){function I(){return h("view_rec",{ref:x.record})}return I}()},B)})}):(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No records found."]})})},d=function(C,b){var v,h=(0,t.useBackend)(b),g=h.act,N=h.data,x=N.temp;if(!(!x||!x.text||x.text.length<=0)){var B=(v={},v[x.style]=!0,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.NoticeBox,Object.assign({},B,{children:[(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",children:x.text}),(0,e.createComponentVNode)(2,o.Button,{icon:"times-circle",float:"right",onClick:function(){function I(){return g("cleartemp")}return I}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"both"})]})))}},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.scanner,x=g.numberofpods,B=g.autoallowed,I=g.autoprocess,T=g.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createFragment)([!!B&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"Enabled":"Disabled",onClick:function(){function E(){return h("autoprocess",{on:I?0:1})}return E}()})],4),(0,e.createComponentVNode)(2,o.Button,{disabled:!T,icon:"eject",content:"Eject Disk",onClick:function(){function E(){return h("disk",{option:"eject"})}return E}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Scanner",children:N?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Connected"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Not connected!"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pods",children:x?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[x," connected"]}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None connected!"})})]})})}},18259:function(L,r,n){"use strict";r.__esModule=!0,r.CoinMint=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.CoinMint=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.materials,l=c.moneyBag,d=c.moneyBagContent,f=c.moneyBagMaxContent,u=(l?210:138)+Math.ceil(s.length/4)*64;return(0,e.createComponentVNode)(2,m.Window,{width:256,height:u,title:"\u041C\u043E\u043D\u0435\u0442\u043D\u044B\u0439 \u043F\u0440\u0435\u0441\u0441",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.NoticeBox,{m:0,info:!0,children:["\u041F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u043E \u043C\u043E\u043D\u0435\u0442: ",c.totalCoins]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0422\u0438\u043F \u041C\u043E\u043D\u0435\u0442",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",color:c.active&&"bad",tooltip:!l&&"\u041D\u0443\u0436\u0435\u043D \u0434\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",disabled:!l,onClick:function(){function C(){return i("activate")}return C}()}),children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.ProgressBar,{minValue:0,maxValue:c.maxMaterials,value:c.totalMaterials})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",tooltip:"\u0418\u0437\u0432\u0432\u043B\u0435\u0447\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B",onClick:function(){function C(){return i("ejectMat")}return C}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:s.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{bold:!0,inline:!0,m:.2,textAlign:"center",color:"translucent",selected:C.id===c.chosenMaterial,tooltip:C.name,content:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",C.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:C.amount})]}),onClick:function(){function b(){return i("selectMaterial",{material:C.id})}return b}()},C.id)})})]})})}),!!l&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0435\u043D\u0435\u0436\u043D\u044B\u0439 \u043C\u0435\u0448\u043E\u043A",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",disabled:c.active,onClick:function(){function C(){return i("ejectBag")}return C}()}),children:(0,e.createComponentVNode)(2,o.ProgressBar,{width:"100%",minValue:0,maxValue:f,value:d,children:[d," / ",f]})})})]})})})}return y}()},93858:function(L,r,n){"use strict";r.__esModule=!0,r.HexColorInput=r.ColorSelector=r.ColorPickerModal=r.ColorInput=void 0;var e=n(89005),a=n(51057),t=n(72253),o=n(36036),m=n(98595),S=n(44879),y=n(14448),k=n(4454),V=n(35840),p=n(9394),i=n(19203),c=["prefixed","alpha","color","fluid","onChange"];/** * @file * @copyright 2023 itsmeow * @license MIT - */function s(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,l(T,A)}function l(T,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,E){return w.__proto__=E,w},l(T,A)}function d(T,A){if(T==null)return{};var w={};for(var E in T)if({}.hasOwnProperty.call(T,E)){if(A.includes(E))continue;w[E]=T[E]}return w}var f=r.ColorPickerModal=function(){function T(A,w){var E=(0,t.useBackend)(w),O=E.data,P=O.timeout,M=O.message,R=O.title,F=O.autofocus,_=O.default_color,U=_===void 0?"#000000":_,W=(0,t.useLocalState)(w,"color_picker_choice",(0,y.hexToHsva)(U)),$=W[0],G=W[1];return(0,e.createComponentVNode)(2,m.Window,{height:400,title:R,width:600,theme:"generic",children:[!!P&&(0,e.createComponentVNode)(2,a.Loader,{value:P}),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[M&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:M})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!F&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,u,{color:$,setColor:G,defaultColor:U})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)($)})})]})})]})}return T}(),u=r.ColorSelector=function(){function T(A,w){var E=A.color,O=A.setColor,P=A.defaultColor,M=function(){function _(U){O(function(W){return Object.assign({},W,U)})}return _}(),R=(0,y.hsvaToRgba)(E),F=(0,y.hsvaToHex)(E);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:E,onChange:M}),(0,e.createComponentVNode)(2,N,{hue:E.h,onChange:M,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:F,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:F})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:P,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:P})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,C,{fluid:!0,color:(0,y.hsvaToHex)(E).substring(1),onChange:function(){function _(U){p.logger.info(U),O((0,y.hexToHsva)(U))}return _}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:E.h,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.h,callback:function(){function _(U,W){return M({h:W})}return _}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.s,callback:function(){function _(U,W){return M({s:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:E,onChange:M})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:E.v,callback:function(){function _(U,W){return M({v:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.r,callback:function(){function _(U,W){R.r=W,M((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.g,callback:function(){function _(U,W){R.g=W,M((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:E,onChange:M,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,v,{value:R.b,callback:function(){function _(U,W){R.b=W,M((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})})]})})]})}return T}(),v=function(A){var w=A.value,E=A.callback,O=A.min,P=O===void 0?0:O,M=A.max,R=M===void 0?100:M,F=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(w),step:1,minValue:P,maxValue:R,onChange:E,unit:F})},V=function(A){return"#"+A},C=r.HexColorInput=function(){function T(A){var w=A.prefixed,E=A.alpha,O=A.color,P=A.fluid,M=A.onChange,R=d(A,c),F=function(){function U(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,E?8:6)}return U}(),_=function(){function U(W){return(0,y.validHex)(W,E)}return U}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({},R,{fluid:P,color:O,onChange:M,escape:F,format:w?V:void 0,validate:_})))}return T}(),h=r.ColorInput=function(T){function A(E){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(P){var M=O.props.escape(P.currentTarget.value);O.setState({localValue:M})},O.handleBlur=function(P){P.currentTarget&&(O.props.validate(P.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(P.currentTarget.value):P.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=E,O.state={localValue:O.props.escape(O.props.color)},O}s(A,T);var w=A.prototype;return w.componentDidUpdate=function(){function E(O,P){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return E}(),w.render=function(){function E(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,b.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return E}(),A}(e.Component),g=function(A){var w=A.hsva,E=A.onChange,O=function(F){E({s:F.left*100,v:100-F.top*100})},P=function(F){E({s:(0,S.clamp)(w.s+F.left*100,0,100),v:(0,S.clamp)(w.v-F.top*100,0,100)})},M={"background-color":(0,y.hsvaToHslString)({h:w.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,k.Interactive,{onMove:O,onKey:P,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(w.s)+"%, Brightness "+Math.round(w.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-w.v/100,left:w.s/100,color:(0,y.hsvaToHslString)(w)})}),2,{style:M})},N=function(A){var w=A.className,E=A.hue,O=A.onChange,P=function(_){O({h:360*_.left})},M=function(_){O({h:(0,S.clamp)(E+_.left*360,0,360)})},R=(0,b.classes)(["react-colorful__hue",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{onMove:P,onKey:M,"aria-label":"Hue","aria-valuenow":Math.round(E),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:E/360,color:(0,y.hsvaToHslString)({h:E,s:100,v:100,a:1})})}),2)},x=function(A){var w=A.className,E=A.color,O=A.onChange,P=function(_){O({s:100*_.left})},M=function(_){O({s:(0,S.clamp)(E.s+_.left*100,0,100)})},R=(0,b.classes)(["react-colorful__saturation",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:0,v:E.v,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:100,v:E.v,a:1})+")"},onMove:P,onKey:M,"aria-label":"Saturation","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:E.s/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},B=function(A){var w=A.className,E=A.color,O=A.onChange,P=function(_){O({v:100*_.left})},M=function(_){O({v:(0,S.clamp)(E.v+_.left*100,0,100)})},R=(0,b.classes)(["react-colorful__value",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:E.h,s:E.s,v:100,a:1})+")"},onMove:P,onKey:M,"aria-label":"Value","aria-valuenow":Math.round(E.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:E.v/100,color:(0,y.hsvaToHslString)({h:E.h,s:E.s,v:E.v,a:1})})}),2)},L=function(A){var w=A.className,E=A.color,O=A.onChange,P=A.target,M=(0,y.hsvaToRgba)(E),R=function(G){M[P]=G,O((0,y.rgbaToHsva)(M))},F=function(G){R(255*G.left)},_=function(G){R((0,S.clamp)(M[P]+G.left*255,0,255))},U=(0,b.classes)(["react-colorful__"+P,w]),W=P==="r"?"rgb("+Math.round(M.r)+",0,0)":P==="g"?"rgb(0,"+Math.round(M.g)+",0)":"rgb(0,0,"+Math.round(M.b)+")";return(0,e.createVNode)(1,"div",U,(0,e.createComponentVNode)(2,k.Interactive,{onMove:F,onKey:_,"aria-valuenow":M[P],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+P+"-pointer",left:M[P]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.CommunicationsComputer=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c;i.authenticated?i.is_ai?c="AI":i.authenticated===1?c="Command":i.authenticated===2?c="Captain":c="ERROR: Report This Bug!":c="Not Logged In";var s="View ("+i.messages.length+")",l=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+c+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var f=i.emagged?"Message [UNKNOWN]":"Message CentComm",u="Request Authentication Codes";i.cc_cooldown>0&&(f+=" ("+i.cc_cooldown+"s)",u+=" ("+i.cc_cooldown+"s)");var v=i.str_security_level,V=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),C=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:V}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:u,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:s,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return S}()},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(73379),S=n(98595);function y(V,C){V.prototype=Object.create(C.prototype),V.prototype.constructor=V,k(V,C)}function k(V,C){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},k(V,C)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function V(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function w(){}return w}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,f,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function w(){return N("complete_load_animation")}return w}()})});var L=(0,t.useLocalState)(h,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,S.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,S.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return V}(),c=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},C,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function w(){return N("claim")}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},s=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},C,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,A=!!L&&B.filter(function(M){return M.status===1})[0],w=A&&A.time_left>0,E=(0,t.useLocalState)(h,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||w,icon:"parachute-box",content:["Call Extraction",w&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A.time_left,format:function(){function M(R,F){return" ("+F.substr(3)+")"}return M}()})],onClick:function(){function M(){return N("extract")}return M}()})},C,{children:B.slice().sort(function(M,R){return M.status===1?-1:R.status===1?1:M.status-R.status}).map(function(M){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color: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 F(){return P("target_photo_"+M.uid+".png")}return F}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[M.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[M.status][1],display:"inline-block",mt:M.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[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 F(){return N("abort")}return F}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[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",d(M)]}),(R=M.difficulties)==null?void 0:R.map(function(F,_){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:F.name+" ("+F.reward+" TC)",onClick:function(){function U(){return N("activate",{uid:M.uid,difficulty:_+1})}return U}()},_)}),!!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)})})))},d=function(C){if(!(!C.objective||C.status>1)){var h=C.objective.locs.user_area_id,g=C.objective.locs.user_coords,N=C.objective.locs.target_area_id,x=C.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},f=function(C,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},C,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:T.uid})}return A}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(V){function C(g){var N;return N=V.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(C,V);var h=C.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),C}(e.Component),v=function(C,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ConveyorSwitch=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.slowFactor,s=i.minSpeed,l=i.maxSpeed,d=i.oneWay,f=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:f>0?"forward":f<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-.5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:s,maxValue:l,step:.1,format:function(){function u(v){return v+"s."}return u}(),onChange:function(){function u(v,V){return p("slowFactor",{value:V})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+.5})}return u}()})," "]})]})})]})})})})}return S}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),m=n(36036),S=n(36352),y=n(76910),k=n(98595),b=function(v,V){return v.dead?"Deceased":parseInt(v.health,10)<=V?"Critical":parseInt(v.stat,10)===1?"Unconscious":"Living"},p=function(v,V){return v.dead?"red":parseInt(v.health,10)<=V?"orange":parseInt(v.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function u(v,V){var C=(0,o.useBackend)(V),h=C.act,g=C.data,N=(0,o.useLocalState)(V,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return T}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,m.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),L(x)]})})})}return u}(),c=function(v){var V=v.crewData,C=v.context,h=(0,o.useBackend)(C),g=h.act,N=h.data,x=(0,a.sortBy)(function(w){return w.name})(V||[]),B=(0,o.useLocalState)(C,"search",""),L=B[0],T=B[1],A=(0,t.createSearch)(L,function(w){return w.name+"|"+w.assignment+"|"+w.area});return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function w(E,O){return T(O)}return w}()}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),x.filter(A).map(function(w){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!w.is_command,children:[(0,e.createComponentVNode)(2,S.TableCell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,S.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(w,N.critThreshold),children:b(w,N.critThreshold)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:w.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:w.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:w.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:w.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,S.TableCell,{children:w.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function E(){return g("track",{track:w.ref})}return E}()}):w.area+" ("+w.x+", "+w.y+")":"Not Available"})]},w.ref)})]})]})},s=function(v,V){var C=(0,o.useBackend)(V),h=C.act,g=C.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:V})},l=function(v,V){var C=(0,o.useBackend)(V),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:V})},d=function(v,V){var C=(0,o.useBackend)(V),h=C.act,g=C.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:V})},f=function(v,V){var C=(0,o.useBackend)(V),h=C.act,g=C.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(V,"zoom",1),L=B[0],T=B[1],A=(0,o.useLocalState)(V,"z_current",N[0]),w=A[0],E=A[1],O=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?"square":"circle"},P=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?10:6},M=function(F,_){return F.is_command&&g.isBS||F.is_security&&g.isBP?F.dead?"red":parseInt(F.health,10)<=_?"orange":parseInt(F.stat,10)===1?"blue":"violet":p(F,_)};return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function R(F){return T(F)}return R}(),zLevels:N,zNames:x,z_current:w,setZCurrent:E,children:g.crewmembers.filter(function(R){return R.sensor_type===3}).map(function(R){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:L,icon:O(R),size:P(R),tooltip:R.name+" ("+R.assignment+")",color:M(R,g.critThreshold),onClick:function(){function F(){g.isAI&&h("track",{track:R.ref})}return F}()},R.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),m=n(98595),S=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(c,s){return(0,e.createComponentVNode)(2,m.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return i}(),b=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isOperating,v=f.hasOccupant,V=f.occupant,C=V===void 0?[]:V,h=f.cellTemperature,g=f.cellTemperatureStatus,N=f.isBeakerLoaded,x=f.auto_eject_healthy,B=f.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!v,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:v?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:C.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:y[C.stat][0],children:y[C.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),S.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:C[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(C[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(u?"switchOff":"switchOn")}return L}(),selected:u,children:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isBeakerLoaded,v=f.beakerLabel,V=f.beakerVolume;return u?(0,e.createFragment)([v?"\xAB"+v+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!V&&"bad",children:V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:V,format:function(){function C(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return C}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=r.CryopodConsole=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.account_name,d=s.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,k)]})})}return b}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},f)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.frozen_items,f=function(v){var V=v.toString();return V.startsWith("the ")&&(V=V.slice(4,V.length)),(0,m.toTitleCase)(V)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function v(){return s("one_item",{item:u.uid})}return v}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return s("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=function(b,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=b.product,d=s.user,f=s.userMoney,u=s.vend_ready,v=l.price===0,V="ERROR!",C="";v?(V="FREE",C="arrow-circle-down"):(V=l.price,C="shopping-cart");var h=!u||l.stock===0||!v&&l.price>f;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:h,icon:C,content:V,textAlign:"left",onClick:function(){function g(){return c("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function k(b,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.guestNotice,d=s.userMoney,f=s.user,u=s.products,v=s.vend_ready,V=s.panel_open,C=s.speaker;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:f&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),", ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!V&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:C?"check":"volume-mute",selected:C,content:"Speaker",textAlign:"left",onClick:function(){function h(){return c("toggle_voice",{})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:u.map(function(h){return(0,e.createComponentVNode)(2,S,{product:h,productStock:h.stock},h.name)})})})})]})})})}return k}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(3939),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],b=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,A=L.dnaBlockSize,w=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!w.isViableSubject||!w.uniqueIdentity||!w.structuralEnzymes;var E;return T&&(E=(0,e.createComponentVNode)(2,V,{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,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,A=L.hasOccupant,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function E(){return B("toggleLock")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"Eject",onClick:function(){function E(){return B("ejectOccupant")}return E}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:w.minHealth,max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:S[w.stat][0],children:S[w.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:w.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,A=L.hasOccupant,w=L.occupant;if(A){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var E;return T==="ui"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?E=(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?E=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(E=(0,e.createComponentVNode)(2,v)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,P){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function M(){return B("selectMenuKey",{key:O[0]})}return M}(),children:O[1]},P)})}),E]})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,w=L.selectedUITarget,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,C,{dnaString:E.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:w,format:function(){function O(P){return P.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(P,M){return B("changeUITarget",{value:M})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},s=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,C,{dnaString:w.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function E(){return B("pulseSERadiation")}return E}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function w(E,O){return B("radiationIntensity",{value:O})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function w(E,O){return B("radiationDuration",{value:O})}return w}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function w(){return B("pulseRadiation")}return w}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,A=T.map(function(w,E){return(0,e.createComponentVNode)(2,f,{id:E+1,name:"Buffer "+(E+1),buffer:w},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,u)})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,A=g.name,w=g.buffer,E=L.isInjectorReady,O=A+(w.data?" - "+w.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w.data,icon:"trash",content:"Clear",onClick:function(){function P(){return B("bufferOption",{option:"clear",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data,icon:"pen",content:"Rename",onClick:function(){function P(){return B("bufferOption",{option:"changeLabel",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data||!L.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function P(){return B("bufferOption",{option:"saveDisk",id:T})}return P}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUI",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"saveSE",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"loadDisk",id:T})}return P}()})]}),!!w.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:w.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[w.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!w.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:T})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,icon:E?"syringe":"spinner",iconSpin:!E,content:"Block Injector",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return P}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function P(){return B("bufferOption",{option:"transfer",id:T})}return P}()})]})],4)]}),!w.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"Wipe",onClick:function(){function w(){return B("wipeDisk")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function w(){return B("ejectDisk")}return w}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:A.label?A.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[A.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!A.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},v=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,A=L.beakerVolume,w=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function E(){return B("ejectBeaker")}return E}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:E>A,icon:"syringe",content:E,onClick:function(){function P(){return B("injectRejuvenators",{amount:E})}return P}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"All",onClick:function(){function E(){return B("injectRejuvenators",{amount:A})}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:w||"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)]})})})},V=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},C=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,A=g.selectedBlock,w=g.selectedSubblock,E=g.blockSize,O=g.action,P=T.split(""),M=0,R=[],F=function(){for(var W=_/E+1,$=[],G=function(){var ve=oe+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&w===ve,content:P[_+oe],mb:"0",onClick:function(){function me(){return B(O,{block:W,subblock:ve})}return me}()}))},oe=0;oe0?"Yes":"No",selected:i.com>0,onClick:function(){function s(){return p("toggle_com")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===s,content:s,onClick:function(){function d(){return p("set_sec",{set_sec:s})}return d}()},"sec"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===s,content:s,onClick:function(){function d(){return p("set_med",{set_med:s})}return d}()},"med"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===s,content:s,onClick:function(){function d(){return p("set_eng",{set_eng:s})}return d}()},"eng"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===s,content:s,onClick:function(){function d(){return p("set_par",{set_par:s})}return d}()},"par"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===s,content:s,onClick:function(){function d(){return p("set_jan",{set_jan:s})}return d}()},"jan"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===s,content:s,onClick:function(){function d(){return p("set_cyb",{set_cyb:s})}return d}()},"cyb"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function s(){return p("dispatch_ert")}return s}()})})]})})]})})}return S}()},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Electropack=function(){function y(k,b){var p=(0,t.useBackend)(b),i=p.act,c=p.data,s=c.power,l=c.code,d=c.frequency,f=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){function v(){return i("power")}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"freq"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:u/10,value:d/10,format:function(){function v(V){return(0,a.toFixed)(V,1)}return v}(),width:"80px",onChange:function(){function v(V,C){return i("freq",{freq:C})}return v}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function v(){return i("reset",{reset:"code"})}return v}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function v(V,C){return i("code",{code:C})}return v}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.EvolutionMenu=function(){function k(b,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function f(){return c("readapt")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.ability_list,f=s.purchased_abilities,u=s.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){function v(){return c("set_view_mode",{mode:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){function v(){return c("set_view_mode",{mode:1})}return v}()})],4),children:d.map(function(v,V){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:v.name}),f.includes(v.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:v.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:v.cost>l||f.includes(v.power_path),content:"Evolve",onClick:function(){function C(){return c("purchase",{power_path:v.power_path})}return C}()})})]}),!!u&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:v.description+" "+v.helptext})]},V)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),m=n(36036),S=n(73379),y=n(98595),k=["id","amount","lineDisplay","onClick"];function b(V,C){if(V==null)return{};var h={};for(var g in V)if({}.hasOwnProperty.call(V,g)){if(C.includes(g))continue;h[g]=V[g]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function V(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})]})})})}return V}(),s=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(A,w){return A+w},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,u,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function w(){return N("withdraw",{id:A})}return w}()},A)})})},l=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,A=x.syncing,w=(0,o.useLocalState)(h,"searchText",""),E=w[0],O=w[1],P=(0,t.createSearch)(E,function(R){return R.name}),M=T.filter(P);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function R(F){return N("category",{cat:F})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return N("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return N("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(F,_){return O(_)}return R}()}),M.map(function(R){return(0,e.createComponentVNode)(2,v,{design:R},R.id)}),M.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:L,current: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 ",B,"\xA0(",(0,e.createComponentVNode)(2,S.Countdown,{current:A,timeLeft:T-A,format:function(){function w(E,O){return O.substr(3)}return w}()}),")"]})]})})})},f=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(w){return w[1]<0}),A=B.reduce(function(w,E){return w+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:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function w(){return N("process")}return w}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function w(){return N("unqueueall")}return w}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(w,E){return(0,e.createComponentVNode)(2,m.Box,{color:w.notEnough&&"bad",children:[E+1,". ",w.name,E>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:E+1,to:E})}return O}()}),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(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})],0)})})},u=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.id,L=C.amount,T=C.lineDisplay,A=C.onClick,w=b(C,k),E=x.materials[B]||0,O=L||E;if(!(O<=0&&!(B==="metal"||B==="glass"))){var P=L&&L>E;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},w,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:P&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},v=function(C,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=C.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=0,S=1013,y=function(p){var i="good",c=80,s=95,l=110,d=120;return pl?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.chamber_pressure,f=l.exterior_status,u=l.interior_status,v=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:m,maxValue:S,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:v,onClick:function(){function V(){return s("cycle_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:v,onClick:function(){function V(){return s("cycle_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":v?"yellow":null,onClick:function(){function V(){return s("force_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":v?"yellow":null,onClick:function(){function V(){return s("force_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!v,onClick:function(){function V(){return s("abort")}return V}()})})]})]})})}return b}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.FaxMachine=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return S}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=k.image,l=k.isSelected,d=k.onSelect;return(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+s,style:{"border-style":l&&"solid"||"none","border-width":"2px","border-color":"orange",padding:l&&"2px"||"4px"},onClick:d})},S=r.FloorPainter=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.availableStyles,l=c.selectedStyle,d=c.selectedDir,f=c.directionsPreview,u=c.allStylesPreview;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function v(){return i("cycle_style",{offset:-1})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:s,selected:l,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function v(V){return i("select_style",{style:V})}return v}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function v(){return i("cycle_style",{offset:1})}return v}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"220px",wrap:"wrap",children:s.map(function(v){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{image:u[v],isSelected:l===v,onSelect:function(){function V(){return i("select_style",{style:v})}return V}()})},"{style}")})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:["north","","south"].map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[v+"west",v,v+"east"].map(function(V){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:V===""?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{image:f[V],isSelected:V===d,onSelect:function(){function C(){return i("select_direction",{direction:V})}return C}()})},V)})},v)})})})})]})})})}return y}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,f){if(!(!l||!d)){if(l[2]!==d[2]||f!==1)return null;var u=Math.atan2(d[1]-l[1],d[0]-l[0]),v=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(u),distance:v}}},k=r.GPS=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.data,v=u.emped,V=u.active,C=u.area,h=u.position,g=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:v?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),V?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:C,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return s}(),b=function(l,d){var f=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:f?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),f?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var f=(0,t.useBackend)(d),u=f.act,v=f.data,V=v.active,C=v.tag,h=v.same_z,g=(0,t.useLocalState)(d,"newTag",C),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function B(){return u("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:C,onEnter:function(){function B(){return u("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:C===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return u("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return u("same_z")}return B}()})})]})})},i=function(l,d){var f=l.title,u=l.area,v=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:f||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),S(v)]})})},c=function(l,d){var f=(0,t.useBackend)(d),u=f.data,v=u.position,V=u.signals,C=u.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(h){return Object.assign({},h,y(v,h.position,C))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:S(h.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasAnalyzerContent=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.gasmixes,d=s.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function f(){return c("autoscantoggle")}return f}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return k}(),S=r.GasAnalyzerHistory=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.historyGasmixes,d=s.historyViewMode,f=s.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function u(){return c("clearhistory")}return u}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function u(){return c("modekpa")}return u}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function u(){return c("modemol")}return u}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,v){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:v+1+". "+(d==="mol"?u[0].total_moles.toFixed(2):u[0].pressure.toFixed(2)),onClick:function(){function V(){return c("input",{target:v+1})}return V}(),textAlign:"left",selected:v+1===f,fluid:!0})},u[0])})})]})}return k}(),y=r.GasAnalyzer=function(){function k(b,p){var i={float:"left",width:"67%"},c={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,S)}),2,{style:c})]})})}return k}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasFreezer=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.on,s=i.pressure,l=i.temperature,d=i.temperatureCelsius,f=i.min,u=i.max,v=i.target,V=i.targetCelsius,C=(l-f)/(u-f);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c?"power-off":"times",content:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:c,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[s," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:C,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[C<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),C>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(v-f)/(u-f),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[v," \xB0K (",V," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:f})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(v),unit:"\xB0K",minValue:Math.round(f),maxValue:Math.round(u),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:u})}return h}()})]})]})})})})}return S}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),m=n(3939),S=n(98595),y=r.GeneModder=function(){function d(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.has_seed;return(0,e.createComponentVNode)(2,S.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),C===0?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return V("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})},b=function(f,u){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.has_seed,g=C.seed,N=C.has_disk,x=C.disk,B,L;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return V("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return V("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return V("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return V("eject_disk")}return T}()})})})]})})},i=function(f,u){var v=(0,a.useBackend)(u),V=v.act,C=v.data,h=C.disk,g=C.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return V("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return V("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return V("bulk_replace_core")}return N}()})})})]},"Core Genes")},c=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.reagent_genes,h=V.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:C,do_we_show:h})},s=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.trait_genes,h=V.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:C,do_we_show:h})},l=function(f,u){var v=f.title,V=f.gene_set,C=f.do_we_show,h=(0,a.useBackend)(u),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:v,open:!0,children:C?V.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},v)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),m=r.GenericCrewManifest=function(){function S(y,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return S}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GhostHudPanel=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.data,c=i.security,s=i.medical,l=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,S,{label:"Medical",type:"medical",is_active:s}),(0,e.createComponentVNode)(2,S,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,S,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,S,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=k.label,s=k.type,l=s===void 0?null:s,d=k.is_active,f=k.act_on,u=f===void 0?"hud_on":f,v=k.act_off,V=v===void 0?"hud_off":v;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function C(){return i(d?V:u,{hud_type:l})}return C}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GlandDispenser=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.glands,s=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return S}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=[1,5,10,20,30,50],S=null,y=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,b)]})})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.amount,u=d.energy,v=d.maxEnergy,V=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:v,ranges:{good:[v*.5,1/0],average:[v*.25,v*.5],bad:[-1/0,v*.25]},children:[u," / ",v," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(C,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:f===C,content:C,onClick:function(){function g(){return l("amount",{amount:C})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"dispense"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"remove"})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function C(){return l("mode",{mode:"isolate"})}return C}()})]})})]})})})},b=function(i,c){for(var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.chemicals,u=f===void 0?[]:f,v=d.current_reagent,V=[],C=0;C<(u.length+1)%3;C++)V.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:v===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:h.id})}return N}()},g)}),V.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ImplantPad=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.implant,s=i.contains_case,l=i.tag,d=(0,a.useLocalState)(k,"newTag",l),f=d[0],u=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!s,onClick:function(){function v(){return p("eject_case")}return v}()})}),children:c&&s?(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}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function v(){return p("tag",{newtag:f})}return v}(),onInput:function(){function v(V,C){return u(C)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===f,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function v(){return p("tag",{newtag:f})}return v}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):s?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return S}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Instrument=function(){function i(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),y=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function v(){return d("help")}return v}()})]})})})},k=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.lines,v=f.playing,V=f.repeat,C=f.maxRepeats,h=f.tempo,g=f.minTempo,N=f.maxTempo,x=f.tickLag,B=f.volume,L=f.minVolume,T=f.maxVolume,A=f.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function w(){return d("help")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function w(){return d("newsong")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function w(){return d("import")}return w}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:v,disabled:u.length===0||V<0,icon:"play",content:"Play",onClick:function(){function w(){return d("play")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!v,icon:"stop",content:"Stop",onClick:function(){function w(){return d("stop")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:C,value:V,stepPixelSize:59,onChange:function(){function w(E,O){return d("repeat",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h+x})}return w}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h-x})}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function w(E,O){return d("setvolume",{new:O})}return w}()})}),(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,b)]})},b=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.allowedInstrumentNames,v=f.instrumentLoaded,V=f.instrument,C=f.canNoteShift,h=f.noteShift,g=f.noteShiftMin,N=f.noteShiftMax,x=f.sustainMode,B=f.sustainLinearDuration,L=f.sustainExponentialDropoff,T=f.legacy,A=f.sustainDropoffVolume,w=f.sustainHeldNote,E,O;return x===1?(E="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function P(M){return(0,a.round)(M*100)/100+" seconds"}return P}(),onChange:function(){function P(M,R){return d("setlinearfalloff",{new:R/10})}return P}()})):x===2&&(E="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function P(M){return(0,a.round)(M*1e3)/1e3+"% per decisecond"}return P}(),onChange:function(){function P(M,R){return d("setexpfalloff",{new:R})}return P}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:v?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:V,width:"50%",onSelected:function(){function P(M){return d("switchinstrument",{name:M})}return P}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&C)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function P(M){return M+" keys / "+(0,a.round)(M/12*100)/100+" octaves"}return P}(),onChange:function(){function P(M,R){return d("setnoteshift",{new:R})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:E,onSelected:function(){function P(M){return d("setsustainmode",{new:M})}return P}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function P(M,R){return d("setdropoffvolume",{new:R})}return P}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){function P(){return d("togglesustainhold")}return P}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function P(){return d("reset")}return P}()})]})})})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.playing,v=f.lines,V=f.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!V||u,icon:"plus",content:"Add Line",onClick:function(){function C(){return d("newline",{line:v.length+1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!V,icon:V?"chevron-up":"chevron-down",onClick:function(){function C(){return d("edit")}return C}()})],4),children:!!V&&(v.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:v.map(function(C,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:C},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ItemPixelShift=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.pixel_x,s=i.pixel_y,l=i.max_shift_x,d=i.max_shift_y,f=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:c===-l,onClick:function(){function u(){return p("shift_left")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:c,minValue:-l,maxValue:l,onChange:function(){function u(v,V){return p("custom_x",{pixel_x:V})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:c===l,onClick:function(){function u(){return p("shift_right")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:s===d,onClick:function(){function u(){return p("shift_up")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-d,maxValue:d,onChange:function(){function u(v,V){return p("custom_y",{pixel_y:V})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:s===-d,onClick:function(){function u(){return p("shift_down")}return u}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function u(){return p("move_to_top")}return u}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:f?"good":"bad",icon:"power-off",content:f?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function u(){return p("toggle")}return u}()})})]})})]})})}return S}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),m=n(98595),S=n(19203),y=n(51057),k=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},b={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===p&&(d+="Numpad"),k(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var f=l.keyCode-48;d+="Shift"+f}else{var u=l.key.toUpperCase();d+=b[u]||u}return d},c=r.KeyComboModal=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.act,v=f.data,V=v.init_value,C=v.large_buttons,h=v.message,g=h===void 0?"":h,N=v.title,x=v.timeout,B=(0,t.useLocalState)(d,"input",V),L=B[0],T=B[1],A=(0,t.useLocalState)(d,"binding",!0),w=A[0],E=A[1],O=function(){function R(F){if(!w){F.key===a.KEY.Enter&&u("submit",{entry:L}),F.key===a.KEY.Escape&&u("cancel");return}if(F.preventDefault(),k(F)){P(i(F)),E(!1);return}else if(F.key===a.KEY.Escape){P(V),E(!1);return}}return R}(),P=function(){function R(F){F!==L&&T(F)}return R}(),M=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&C?5:0);return(0,e.createComponentVNode)(2,m.Window,{title:N,width:240,height:M,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,m.Window.Content,{onKeyDown:function(){function R(F){O(F)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,content:w&&w!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function R(){P(V),E(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S.InputButtons,{input:L})})]})]})})]})}return s}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.KeycardAuth=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?s=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:s})]})})}return S}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=r.LaborClaimConsole=function(){function b(p,i){return(0,e.createComponentVNode)(2,m.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return b}(),y=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.can_go_home,f=l.emagged,u=l.id_inserted,v=l.id_name,V=l.id_points,C=l.id_goal,h=l.unclaimed_points,g=f?0:1,N=f?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!u&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:V/C,ranges:{good:[g,1/0],bad:[-1/0,g]},children:V+" / "+C+" "+N})||!!f&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return s("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!u||!h,onClick:function(){function x(){return s("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:u?v:"-------------",onClick:function(){function x(){return s("handle_id")}return x}()})})]})})},k=function(p,i){var c=(0,t.useBackend)(i),s=c.data,l=s.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.LawManager=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.isAdmin,f=l.isSlaved,u=l.isMalf,v=l.isAIMalf,V=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&f)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",f,"."]}),!!(u||v)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:V===0,onClick:function(){function C(){return s("set_view",{set_view:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:V===1,onClick:function(){function C(){return s("set_view",{set_view:1})}return C}()})]}),V===0&&(0,e.createComponentVNode)(2,S),V===1&&(0,e.createComponentVNode)(2,y)]})})}return b}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.has_zeroth_laws,f=l.zeroth_laws,u=l.has_ion_laws,v=l.ion_laws,V=l.ion_law_nr,C=l.has_inherent_laws,h=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,A=l.zeroth_law,w=l.ion_law,E=l.inherent_law,O=l.supplied_law,P=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:f,ctx:i}),!!u&&(0,e.createComponentVNode)(2,k,{title:V,laws:v,ctx:i}),!!C&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(M){return(0,e.createComponentVNode)(2,t.Button,{content:M.channel,selected:M.channel===B,onClick:function(){function R(){return s("law_channel",{law_channel:M.channel})}return R}()},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 s("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 s("notify_laws")}return M}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children: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 s("change_zeroth_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return s("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:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function M(){return s("change_ion_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return s("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 s("change_inherent_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return s("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:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:P,onClick:function(){function M(){return s("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 s("change_supplied_law")}return M}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function M(){return s("add_supplied_law")}return M}()})]})]})]})})],0)},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name+" - "+f.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return s("transfer_laws",{transfer_laws:f.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.laws.has_ion_laws>0&&f.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_zeroth_laws>0&&f.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_inherent_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_supplied_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},f.name)})})},k=function(p,i){var c=(0,a.useBackend)(p.ctx),s=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f.state?"Yes":"No",selected:f.state,onClick:function(){function u(){return s("state_law",{ref:f.ref,state_law:f.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return s("edit_law",{edit_law:f.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return s("delete_law",{delete_law:f.ref})}return u}()})],4)]})]},f.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(92986),y=n(98595),k=r.ListInputModal=function(){function i(c,s){var l=(0,m.useBackend)(s),d=l.act,f=l.data,u=f.items,v=u===void 0?[]:u,V=f.message,C=V===void 0?"":V,h=f.init_value,g=f.timeout,N=f.title,x=(0,m.useLocalState)(s,"selected",v.indexOf(h)),B=x[0],L=x[1],T=(0,m.useLocalState)(s,"searchBarVisible",v.length>10),A=T[0],w=T[1],E=(0,m.useLocalState)(s,"searchQuery",""),O=E[0],P=E[1],M=function(){function oe(X){var ve=$.length-1;if(X===S.KEY_DOWN)if(B===null||B===ve){var me;L(0),(me=document.getElementById("0"))==null||me.scrollIntoView()}else{var ne;L(B+1),(ne=document.getElementById((B+1).toString()))==null||ne.scrollIntoView()}else if(X===S.KEY_UP)if(B===null||B===0){var ce;L(ve),(ce=document.getElementById(ve.toString()))==null||ce.scrollIntoView()}else{var q;L(B-1),(q=document.getElementById((B-1).toString()))==null||q.scrollIntoView()}}return oe}(),R=function(){function oe(X){X!==B&&L(X)}return oe}(),F=function(){function oe(){w(!1),w(!0)}return oe}(),_=function(){function oe(X){var ve=String.fromCharCode(X),me=v.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(ve==null?void 0:ve.toLowerCase())});if(me){var ne,ce=v.indexOf(me);L(ce),(ne=document.getElementById(ce.toString()))==null||ne.scrollIntoView()}}return oe}(),U=function(){function oe(X){var ve;X!==O&&(P(X),L(0),(ve=document.getElementById("0"))==null||ve.scrollIntoView())}return oe}(),W=function(){function oe(){w(!A),P("")}return oe}(),$=v.filter(function(oe){return oe==null?void 0:oe.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(C.length/3);return A||setTimeout(function(){var oe;return(oe=document.getElementById(B.toString()))==null?void 0:oe.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function oe(X){var ve=window.event?X.which:X.keyCode;(ve===S.KEY_DOWN||ve===S.KEY_UP)&&(X.preventDefault(),M(ve)),ve===S.KEY_ENTER&&(X.preventDefault(),d("submit",{entry:$[B]})),!A&&ve>=S.KEY_A&&ve<=S.KEY_Z&&(X.preventDefault(),_(ve)),ve===S.KEY_ESCAPE&&(X.preventDefault(),d("cancel"))}return oe}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon: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 oe(){return W()}return oe}()}),className:"ListInput__Section",fill:!0,title:C,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:$,onClick:R,onFocusSearch:F,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),b=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onClick,v=c.onFocusSearch,V=c.searchBarVisible,C=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:f.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return u(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:f[C]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;V&&B>=S.KEY_A&&B<=S.KEY_Z&&(x.preventDefault(),v())}return N}(),selected:g===C,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onSearch,v=c.searchQuery,V=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function C(h){h.preventDefault(),d("submit",{entry:f[V]})}return C}(),onInput:function(){function C(h,g){return u(g)}return C}(),placeholder:"Search...",value:v})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S={Default:function(){function c(s,l){return s.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(s,l){return s.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(s,l){return s.gear.cost-l.gear.cost}return c}()},y=r.Loadout=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=(0,t.useLocalState)(l,"search",!1),V=v[0],C=v[1],h=(0,t.useLocalState)(l,"searchText",""),g=h[0],N=h[1],x=(0,t.useLocalState)(l,"category",Object.keys(u.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),A=T[0],w=T[1];return(0,e.createComponentVNode)(2,m.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,i,{tweakedGear:A,setTweakedGear:w}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,p,{setTweakedGear:w})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,b,{category:B,search:V,setSearch:C,searchText:g,setSearchText:N})})]})})]})})]})}return c}(),k=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=s.category,V=s.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(u.gears).map(function(C){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:C===v,style:{"white-space":"nowrap"},onClick:function(){function h(){return V(C)}return h}(),children:C},C)})})},b=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=u.user_tier,V=u.gear_slots,C=u.max_gear_slots,h=s.category,g=s.search,N=s.setSearch,x=s.searchText,B=s.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],A=L[1],w=(0,t.useLocalState)(l,"sortReverse",!1),E=w[0],O=w[1],P=(0,a.createSearch)(x,function(R){return R.name}),M;return x.length>2?M=Object.entries(u.gears).reduce(function(R,F){var _=F[0],U=F[1];return R.concat(Object.entries(U).map(function(W){var $=W[0],G=W[1];return{key:$,gear:G}}))},[]).filter(function(R){var F=R.gear;return P(F)}):M=Object.entries(u.gears[h]).map(function(R){var F=R[0],_=R[1];return{key:F,gear:_}}),M.sort(S[T]),E&&(M=M.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(S),onSelected:function(){function R(F){return A(F)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:E?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return O(!E)}return R}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function R(F){return B(F.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){N(!g),B("")}return R}()})})]}),children:M.map(function(R){var F=R.key,_=R.gear,U=12,W=Object.keys(u.selected_gears).includes(F),$=(_.cost===1,_.cost+" Points"),G=(0,e.createComponentVNode)(2,o.Box,{children:[_.name.length>U&&(0,e.createComponentVNode)(2,o.Box,{children:_.name}),_.gear_tier>v&&(0,e.createComponentVNode)(2,o.Box,{mt:_.name.length>U&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),oe=(0,e.createFragment)([_.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:_.allowed_roles.map(function(ve){return(0,e.createComponentVNode)(2,o.Box,{children:ve},ve)})}),tooltipPosition:"left"}),Object.entries(_.tweaks).map(function(ve){var me=ve[0],ne=ve[1];return ne.map(function(ce){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:ce.icon,tooltip:ce.tooltip,tooltipPosition:"top"},me)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:_.desc,tooltipPosition:"top"})],0),X=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:_.gear_tier>0&&"Tier "+_.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:$})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:_.icon,dmIconState:_.icon_state,tooltip:(_.name.length>U||_.gear_tier>0)&&G,tooltipPosition:"bottom",selected:W,disabled:_.gear_tier>v||V+_.cost>C&&!W,buttons:oe,buttonsAlt:X,onClick:function(){function ve(){return f("toggle_gear",{gear:_.index_name})}return ve}(),children:_.name},F)})})},p=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=s.setTweakedGear,V=Object.entries(u.gears).reduce(function(C,h){var g=h[0],N=h[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(u.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return C.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function C(){return f("clear_loadout")}return C}()}),children:V.map(function(C){var h=u.selected_gears[C.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:h.icon,dmIcon:h.icon_file?h.icon_file:C.icon,dmIconState:h.icon_state?h.icon_state:C.icon_state,buttons:(0,e.createFragment)([Object.entries(C.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return v(C)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return f("toggle_gear",{gear:C.index_name})}return g}()})],0),children:h.name?h.name:C.name},C.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:u.gear_slots,maxValue:u.max_gear_slots,ranges:{bad:[u.max_gear_slots,1/0],average:[u.max_gear_slots*.66,u.max_gear_slots],good:[0,u.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",u.gear_slots,"/",u.max_gear_slots]})})})})]})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,v=s.tweakedGear,V=s.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:v.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function C(){return V("")}return C}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(v.tweaks).map(function(C){var h=C[0],g=C[1];return g.map(function(N){var x=u.selected_gears[v.key][h];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return f("set_tweak",{gear:v.index_name,tweak:h})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},h)})})})})})})}},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MechBayConsole=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.recharge_port,s=c&&c.mech,l=s&&s.cell,d=s&&s.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function f(){return p("reconnect")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return S}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=n(25328),y=r.MechaControlConsole=function(){function k(b,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.beacons,d=s.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function f(){return c("clear_log")}return f}()}),children:d.map(function(f){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",f.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,S.decodeHtmlEntities)(f.message)})]},f.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:l.length&&l.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{title:f.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:f.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:f.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:f.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.maxHealth*.75,1/0],average:[f.maxHealth*.5,f.maxHealth*.75],bad:[-1/0,f.maxHealth*.5]},value:f.health,maxValue:f.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.cellMaxCharge*.75,1/0],average:[f.cellMaxCharge*.5,f.cellMaxCharge*.75],bad:[-1/0,f.cellMaxCharge*.5]},value:f.cellCharge,maxValue:f.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[f.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:f.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,S.toTitleCase)(f.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:f.active||"None"}),f.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[f.cargoMax*.75,1/0],average:[f.cargoMax*.5,f.cargoMax*.75],good:[-1/0,f.cargoMax*.5]},value:f.cargoUsed,maxValue:f.cargoMax})})||null]})},f.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(3939),S=n(98595),y=n(321),k=n(5485),b=n(22091),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,A){(0,m.modalOpen)(T,"edit",{field:A.edit,value:A.value})},s=function(T,A){var w=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:w.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:w.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[w.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:w.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:w.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[w.severity],children:w.severity})]})})})},l=r.MedicalRecords=function(){function L(T,A){var w=(0,t.useBackend)(A),E=w.data,O=E.loginState,P=E.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var M;return P===2?M=(0,e.createComponentVNode)(2,d):P===3?M=(0,e.createComponentVNode)(2,f):P===4?M=(0,e.createComponentVNode)(2,u):P===5?M=(0,e.createComponentVNode)(2,h):P===6&&(M=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,B),M]})})]})}return L}(),d=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.records,M=(0,t.useLocalState)(A,"searchText",""),R=M[0],F=M[1],_=(0,t.useLocalState)(A,"sortId","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(A,"sortOrder",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function X(){return E("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(ve,me){return F(me)}return X}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),P.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.id+"|"+X.rank+"|"+X.p_stat+"|"+X.m_stat})).sort(function(X,ve){var me=G?1:-1;return X[U].localeCompare(ve[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[X.p_stat],onClick:function(){function ve(){return E("view_record",{view_record:X.ref})}return ve}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.m_stat})]},X.id)})]})})})],4)},f=function(T,A){var w=(0,t.useBackend)(A),E=w.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return E("del_all")}return O}()})})]})})},u=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.medical,M=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:M?"spinner":"print",disabled:M,iconSpin:!!M,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return E("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,v)})}),!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return E("new")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!P.empty,content:"Delete Medical Record",onClick:function(){function R(){return E("del_r")}return R}()}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,C)],4)],0)},v=function(T,A){var w=(0,t.useBackend)(A),E=w.data,O=E.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(P,M){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:P.value}),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(A,P)}return R}()})]},M)})})}),!!O.has_photos&&O.photos.map(function(P,M){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:P,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",M+1]},M)})]})},V=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.medical;return!P||!P.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:P.fields.map(function(M,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(M.value),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:M.line_break?"1rem":"initial",onClick:function(){function F(){return c(A,M)}return F}()})]},R)})})})})},C=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function M(){return(0,m.modalOpen)(A,"add_comment")}return M}()}),children:P.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):P.comments.map(function(M,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:M.header}),(0,e.createVNode)(1,"br"),M.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return E("del_c",{del_c:R+1})}return F}()})]},R)})})})},h=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.virus,M=(0,t.useLocalState)(A,"searchText",""),R=M[0],F=M[1],_=(0,t.useLocalState)(A,"sortId2","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(A,"sortOrder2",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function X(ve,me){return F(me)}return X}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),P.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.max_stages+"|"+X.severity})).sort(function(X,ve){var me=G?1:-1;return X[U].localeCompare(ve[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+X.severity,onClick:function(){function ve(){return E("vir",{vir:X.D})}return ve}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[X.severity],children:X.severity})]},X.id)})]})})})})],4)},g=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.medbots;return P.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),P.map(function(M){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+M.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",M.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[M.area||"Unknown"," (",M.x,", ",M.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:M.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:M.use_beaker?"Reservoir: "+M.total_volume+"/"+M.maximum_volume:"Using internal synthesizer"})]},M.id)})]})})})},N=function(T,A){var w=(0,t.useLocalState)(A,"sortId","name"),E=w[0],O=w[1],P=(0,t.useLocalState)(A,"sortOrder",!0),M=P[0],R=P[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==F&&"transparent",onClick:function(){function U(){E===F?R(!M):(O(F),R(!0))}return U}(),children:[_,E===F&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,A){var w=(0,t.useLocalState)(A,"sortId2","name"),E=w[0],O=w[1],P=(0,t.useLocalState)(A,"sortOrder2",!0),M=P[0],R=P[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:E!==F&&"transparent",onClick:function(){function U(){E===F?R(!M):(O(F),R(!0))}return U}(),children:[_,E===F&&(0,e.createComponentVNode)(2,o.Icon,{name:M?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var w=(0,t.useBackend)(A),E=w.act,O=w.data,P=O.screen,M=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:P===2,onClick:function(){function R(){E("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:P===5,onClick:function(){function R(){E("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:P===6,onClick:function(){function R(){return E("screen",{screen:6})}return R}(),children:"Medibot Tracking"}),P===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:P===3,children:"Record Maintenance"}),P===4&&M&&!M.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:P===4,children:["Record: ",M.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",s)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Mimicking=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:s.selected,onClick:function(){function l(){return p("Choose",{id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return p("Delete",{id:s.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",s.voice]})},s.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function s(){return p("Add")}return s}()})]})})})})}return S}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Minesweeper=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.matrix,s=i.showMessage,l=i.tokens,d=i.uiWidth,f={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var u=function(){function g(N,x,B){N.button!==0&&N.button!==2||p("Square",{X:x,Y:B,mode:N.button===2?h[V]:V})}return g}(),v=(0,a.useLocalState)(k,"mode","bomb"),V=v[0],C=v[1],h={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:V==="bomb",onClick:function(){function g(){return C("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:V==="flag",onClick:function(){function g(){return C("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return p("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(c).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:c[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:c[g][N].open?c[g][N].bomb?"bomb":"":c[g][N].flag?"flag":"",textColor:c[g][N].open?c[g][N].bomb?"black":f[c[g][N].around]:c[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return u(B,g,N)}return x}(),children:c[g][N].open&&!c[g][N].bomb&&c[g][N].around?c[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),s]})]})})})})}return S}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MiniGamesMenu=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.spawners||[],s=i.thunderdome_eligible,l=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:s?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function f(){return p("jump",{ID:d.uids})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function f(){return p("spawn",{ID:d.uids})}return f}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return S}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=["title","items"];function y(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var k={Alphabetical:function(){function l(d,f){return d-f}return l}(),Availability:function(){function l(d,f){return-(d.affordable-f.affordable)}return l}(),Price:function(){function l(d,f){return d.price-f.price}return l}()},b=r.MiningVendor=function(){function l(d,f){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.has_id,h=V.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:C,children:C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return v("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.has_id,h=V.id,g=V.items,N=(0,t.useLocalState)(f,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(f,"sort","Alphabetical"),T=L[0],A=L[1],w=(0,t.useLocalState)(f,"descending",!1),E=w[0],O=w[1],P=(0,a.createSearch)(x,function(F){return F[0]}),M=!1,R=Object.entries(g).map(function(F,_){var U=Object.entries(F[1]).filter(P).map(function(W){return W[1].affordable=C&&h.points>=W[1].price,W[1]}).sort(k[T]);if(U.length!==0)return E&&(U=U.reverse()),M=!0,(0,e.createComponentVNode)(2,s,{title:F[0],items:U},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:M?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,f){var u=(0,t.useLocalState)(f,"search",""),v=u[0],V=u[1],C=(0,t.useLocalState)(f,"sort",""),h=C[0],g=C[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},s=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=d.title,h=d.items,g=y(d,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!V.has_id||V.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.createComponentVNode)(2,s,{text:M,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,L){var T=B.iconName,A=B.machineName,w=B.noMachine,E=B.noMachineText,O=B.noMachineElem,P="Unknown machine",M=w?E:A||"Unknown machine",R=M===E,F=M===E||M===P;return w&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!w&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:F,children:M})})]})},c=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},s=function(B,L){var T=B.text,A=B.defaultText,w=b(B,S);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},w,{children:T}))):(0,e.createComponentVNode)(2,c,{text:A})},l=function(B,L){var T=B.noConfirm,A=T===void 0?!1:T,w=b(B,y);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},w))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},w)))},d=function(B,L){var T=B.label,A=B.wrapContent,w=B.noWrapContent,E=B.compactLabel,O=E===void 0?!1:E,P=b(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},P,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:w})]})))},f=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},u=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},v=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,s,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!E,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},V=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.frequency,O=w.minFrequency,P=w.maxFrequency,M=w.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:P/10,value:E/10,format:function(){function R(F){return(0,a.toFixed)(F,1)}return R}(),onChange:function(){function R(F,_){return A("set_frequency",{frequency:_*10})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!M,tooltip:"Reset",onClick:function(){function R(){return A("reset_frequency")}return R}()})],4)})},C=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:E.map(function(O,P){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function M(){return A("remove_tag",{tag_index:P})}return M}()})})})},P)})})},h=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.bolts,O=w.pressureCheck,P=w.temperatureCheck,M=w.oxygenCheck,R=w.toxinsCheck,F=w.nitrogenCheck,_=w.carbonDioxideCheck,U=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:P,label:"Monitor temperature"},{bitflag:4,checked:M,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:F,label:"Monitor nitrogen concentration"},{bitflag:32,checked:_,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"times",selected:E,content:E?"YES":"NO",onClick:function(){function W(){return A("toggle_bolts")}return W}()})}),U.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function $(){return A("toggle_flag",{bitflag:W.bitflag})}return $}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(E).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),E[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:E[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function P(){return A("change_label",{sensor_tag:O})}return P}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!E[O],onClick:function(){function P(){return A("clear_label",{sensor_tag:O})}return P}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function P(){return A("del_sensor",{sensor_tag:O})}return P}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),A=T.act,w=T.data,E=w.inputTag,O=w.outputTag,P=w.bufferTag,M=w.bufferFitsInput,R=w.bufferFitsOutput,F=w.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:E,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!E,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:E&&P===E,disabled:!M,onClick:function(){function _(){return A("link_input")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!E,onClick:function(){function _(){return A("unlink_input")}return _}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&P===O,disabled:!R,onClick:function(){function _(){return A("link_output")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function _(){return A("unlink_output")}return _}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(76910),S=n(98595),y=n(3939),k=n(22091),b=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}var c=128,s=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=E.is_security,P=E.is_admin,M=E.is_silent,R=E.is_printing,F=E.screen,_=E.channels,U=E.channel_idx,W=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),G=$[0],oe=$[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),ve=X[0],me=X[1],ne=(0,t.useLocalState)(T,"censorMode",!1),ce=ne[0],q=ne[1],ae;F===0||F===2?ae=(0,e.createComponentVNode)(2,u):F===1&&(ae=(0,e.createComponentVNode)(2,v));var J=_.reduce(function(Y,Q){return Y+Q.unread},0);return(0,e.createComponentVNode)(2,S.Window,{theme:O&&"security",width:800,height:600,children:[ve?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,f,{icon:"bars",title:"Toggle Menu",onClick:function(){function Y(){return oe(!G)}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"newspaper",title:"Headlines",selected:F===0,onClick:function(){function Y(){return w("headlines")}return Y}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,f,{icon:"briefcase",title:"Job Openings",selected:F===1,onClick:function(){function Y(){return w("jobs")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:_.map(function(Y){return(0,e.createComponentVNode)(2,f,{icon:Y.icon,title:Y.name,selected:F===2&&_[W-1]===Y,onClick:function(){function Q(){return w("channel",{uid:Y.uid})}return Q}(),children:Y.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Y.unread>=10?"9+":Y.unread})},Y)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!P)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"wanted_notice")}return Y}()}),(0,e.createComponentVNode)(2,f,{security:!0,icon:ce?"minus-square":"minus-square-o",title:"Censor Mode: "+(ce?"On":"Off"),mb:"0.5rem",onClick:function(){function Y(){return q(!ce)}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,f,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_story")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"plus-circle",title:"New Channel",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_channel")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,f,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Y(){return w("print_newspaper")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:M?"volume-mute":"volume-up",title:"Mute: "+(M?"On":"Off"),onClick:function(){function Y(){return w("toggle_mute")}return Y}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),ae]})]})})]})}return B}(),f=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=L.icon,O=E===void 0?"":E,P=L.iconSpin,M=L.selected,R=M===void 0?!1:M,F=L.security,_=F===void 0?!1:F,U=L.onClick,W=L.title,$=L.children,G=i(L,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",_&&"Newscaster__menuButton--security"]),onClick:U},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:P,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),$]})))},u=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=E.screen,P=E.is_admin,M=E.channel_idx,R=E.channel_can_manage,F=E.channels,_=E.stories,U=E.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"censorMode",!1),X=oe[0],ve=oe[1],me=O===2&&M>-1?F[M-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,V,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:me?me.icon:"newspaper",mr:"0.5rem"}),me?me.name:"Headlines"],0),children:_.length>0?_.slice().reverse().map(function(ne){return!$.includes(ne.uid)&&ne.body.length+3>c?Object.assign({},ne,{body_short:ne.body.substr(0,c-4)+"..."}):ne}).map(function(ne,ce){return(0,e.createComponentVNode)(2,V,{story:ne},ce)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!me&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!me.admin&&!P,selected:me.censored,icon:me.censored?"comment-slash":"comment",content:me.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return w("censor_channel",{uid:me.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(T,"manage_channel",{uid:me.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:me.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:me.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:me.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),_.reduce(function(ne,ce){return ne+ce.view_count},0).toLocaleString()]})]})})]})},v=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=E.jobs,P=E.wanted,M=Object.entries(O).reduce(function(R,F){var _=F[0],U=F[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!P&&(0,e.createComponentVNode)(2,V,{story:P,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:M>0?s.map(function(R){return Object.assign({},l[R],{id:R,jobs:O[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(F){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!F.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",F.title]},F.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},V=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=L.story,P=L.wanted,M=P===void 0?!1:P,R=(0,t.useLocalState)(T,"fullStories",[]),F=R[0],_=R[1],U=(0,t.useLocalState)(T,"censorMode",!1),W=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",M&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([M&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!M&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return w("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!M&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(O.publish_time,E.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,C,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,oe){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},oe)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(F,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},C=function(L,T){var A=L.name,w=i(L,p),E=(0,t.useLocalState)(T,"viewingPhoto",""),O=E[0],P=E[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function M(){return P(A)}return M}()},w)))},h=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),w=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:w}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return E("")}return O}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=!!L.args.uid&&E.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var P=L.id==="manage_channel",M=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),X=oe[0],ve=oe[1],me=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),ne=me[0],ce=me[1],q=(0,t.useLocalState)(T,"isPublic",P?!!(O!=null&&O.public):!1),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:P?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:_,onInput:function(){function te(se,ye){return U(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function te(se,ye){return ve(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!M,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function te(se,ye){return ce(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),M&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,49),description:X.substr(0,128),icon:ne,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=E.photo,P=E.channels,M=E.channel_idx,R=M===void 0?-1:M,F=!!L.args.is_admin,_=L.args.scanned_user,U=P.slice().sort(function(te,se){if(R<0)return 0;var ye=P[R-1];if(ye.uid===te.uid)return-1;if(ye.uid===se.uid)return 1}).filter(function(te){return F||!te.frozen&&(te.author===_||!!te.public)}),W=(0,t.useLocalState)(T,"author",_||"Unknown"),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=oe[0],ve=oe[1],me=(0,t.useLocalState)(T,"title",""),ne=me[0],ce=me[1],q=(0,t.useLocalState)(T,"body",""),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!F,width:"100%",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(se){return ve(se)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function te(se,ye){return ce(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(se,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return w(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,se){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),F&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||X.trim().length===0||ne.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:$,channel:X,title:ne.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var A=(0,t.useBackend)(T),w=A.act,E=A.data,O=E.photo,P=E.wanted,M=!!L.args.is_admin,R=L.args.scanned_user,F=(0,t.useLocalState)(T,"author",(P==null?void 0:P.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(P==null?void 0:P.title.substr(8))||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(P==null?void 0:P.body)||""),X=oe[0],ve=oe[1],me=(0,t.useLocalState)(T,"adminLocked",(P==null?void 0:P.admin_locked)===1||!1),ne=me[0],ce=me[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!M,width:"100%",value:_,onInput:function(){function q(ae,J){return U(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function q(ae,J){return G(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function q(ae,J){return ve(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return w(O?"eject_photo":"attach_photo")}return q}()}),!!O&&(0,e.createComponentVNode)(2,C,{name:"inserted_photo_"+O.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:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!P,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){w("clear_wanted_notice"),(0,y.modalClose)(T)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,L.id,"",{author:_,name:$.substr(0,127),description:X.substr(0,511),admin_locked:ne?1:0})}return q}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),m=n(98595),S=r.NinjaBloodScan=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return b}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.vialIcons,f=l.noVialIcon,u=l.bloodOwnerNames,v=l.bloodOwnerSpecies,V=l.bloodOwnerTypes,C=l.blockButtons,h=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C?g.disabled:g.blue,height:"100%",width:"100%",disabled:C,onClick:function(){function T(){return s("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||f),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:u[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(v[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(V[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:C===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:C,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return s("scan_blood")}return B}()})})]})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NinjaMindScan=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.occupantIcon,l=c.occupant_name,d=c.occupant_health,f=c.scanned_occupants,u=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+s,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("scan_occupant")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:u,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("go_out")}return v}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function v(){return i("teleport_out")}return v}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:f.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:v.scanned_occupant})})},v.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NuclearBomb=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return S}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),m=n(72253),S=n(36036),y=n(98595),k=r.NumberInputModal=function(){function p(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.init_value,u=d.large_buttons,v=d.message,V=v===void 0?"":v,C=d.timeout,h=d.title,g=(0,m.useLocalState)(c,"input",f),N=g[0],x=g[1],B=function(){function A(w){w!==N&&x(w)}return A}(),L=function(){function A(w){w!==N&&x(w)}return A}(),T=140+Math.max(Math.ceil(V.length/3),V.length>0&&u?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,width:270,height:T,children:[C&&(0,e.createComponentVNode)(2,a.Loader,{value:C}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(w){var E=window.event?w.which:w.keyCode;E===o.KEY_ENTER&&l("submit",{entry:N}),E===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:V})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),b=function(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.min_value,u=d.max_value,v=d.init_value,V=d.round_value,C=i.input,h=i.onClick,g=i.onChange,N=Math.round(C!==f?Math.max(C/2,f):u/2),x=C===f&&f>0||C===1;return(0,e.createComponentVNode)(2,S.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:C===f,icon:"angle-double-left",onClick:function(){function B(){return h(f)}return B}(),tooltip:C===f?"Min":"Min ("+f+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:f,maxValue:u,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:C})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:C===u,icon:"angle-double-right",onClick:function(){function B(){return h(u)}return B}(),tooltip:C===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:C===v,icon:"redo",onClick:function(){function B(){return h(v)}return B}(),tooltip:v?"Reset ("+v+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),m=n(36036),S=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.hasOccupant,h=V.choice,g;return h?g=(0,e.createComponentVNode)(2,s):g=C?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return v("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return v("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),i=function(d,f){var u=(0,t.useBackend)(f),v=u.data,V=v.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:V.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:S[V.stat][0],children:S[V.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(C,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:C[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:V[C[1]]/100,ranges:k,children:(0,a.round)(V[C[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:b[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius),"\xB0C, ",(0,a.round)(V.btFaren),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[V.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedures",level:"2",children:V.inSurgery?V.surgeries.map(function(C){var h=C.bodypartName,g=C.surgeryName,N=C.stepName;return(0,e.createComponentVNode)(2,m.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},s=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.verbose,h=V.health,g=V.healthAlarm,N=V.oxy,x=V.oxyAlarm,B=V.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:C,icon:C?"toggle-on":"toggle-off",content:C?"On":"Off",onClick:function(){function L(){return v(C?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer",children:(0,e.createComponentVNode)(2,m.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"On":"Off",onClick:function(){function L(){return v(h?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return v("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function L(){return v(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return v("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function L(){return v(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);function S(f,u){var v=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(v)return(v=v.call(f)).next.bind(v);if(Array.isArray(f)||(v=y(f))||u&&f&&typeof f.length=="number"){v&&(f=v);var V=0;return function(){return V>=f.length?{done:!0}:{done:!1,value:f[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 y(f,u){if(f){if(typeof f=="string")return k(f,u);var v={}.toString.call(f).slice(8,-1);return v==="Object"&&f.constructor&&(v=f.constructor.name),v==="Map"||v==="Set"?Array.from(f):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?k(f,u):void 0}}function k(f,u){(u==null||u>f.length)&&(u=f.length);for(var v=0,V=Array(u);vv},c=function(u,v){var V=u.name,C=v.name;if(!V||!C)return 0;var h=V.match(b),g=C.match(b);if(h&&g&&V.replace(b,"")===C.replace(b,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(V,C)},s=function(u,v){var V=(0,t.useBackend)(v),C=V.act,h=u.searchText,g=u.source,N=u.title,x=g.filter(p(h));return x.sort(c),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return C("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(u,v){var V=(0,t.useBackend)(v),C=V.act,h=u.color,g=u.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return C("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function f(u,v){for(var V=(0,t.useBackend)(v),C=V.act,h=V.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,L=h.dead,T=h.ghosts,A=h.misc,w=h.npcs,E=(0,t.useLocalState)(v,"searchText",""),O=E[0],P=E[1],M={},R=S(N),F;!(F=R()).done;){var _=F.value;M[_.antag]===void 0&&(M[_.antag]=[]),M[_.antag].push(_)}var U=Object.entries(M);U.sort(function($,G){return i($[0],G[0])});var W=function(){function $(G){for(var oe=0,X=[U.map(function(ne){var ce=ne[0],q=ne[1];return q}),x,g,T,L,w,A];oe0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:U.map(function($){var G=$[0],oe=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:oe.filter(p(O)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:X},X.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,s,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"good",thing:$},$.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,s,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"NPCs",source:w,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"Misc",source:A,searchText:O})]})})}return f}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(9394);function y(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var k=(0,S.createLogger)("OreRedemption"),b=function(v){return v.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function u(v,V){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})})}return u}(),i=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(v),v));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:b(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.sheets,x=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},s=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.alloys,x=Object.assign({},(y(v),v));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,f,{ore:B},B.id)})]})))})},l=function(v,V){var C;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:v.title}),(C=v.columns)==null?void 0:C.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=v.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},f=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=v.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(70752),y=function(p){var i;try{i=S("./"+p+".js")}catch(s){if(s.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw s}var c=i[p];return c||(0,m.routingError)("missingExport",p)},k=r.PAI=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.app_template,f=l.app_icon,u=l.app_title,v=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f,mr:1}),u,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function V(){return s("MASTER_back")}return V}()})]}),p:1,children:(0,e.createComponentVNode)(2,v)})})})}return b}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(59395),y=function(c){var s;try{s=S("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var l=s[c];return l||(0,m.routingError)("missingExport",c)},k=r.PDA=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app,v=f.owner;if(!v)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var V=y(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),b=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.idInserted,v=f.idLink,V=f.stationTime,C=f.cartridge_name,h=f.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:u?v:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:C?["Eject "+C]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:h?["Eject "+h]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:V})]})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function v(){return d("Back")}return v}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function v(){d("Home")}return v}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=r.PDAPainter=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.statusLabel,l=c.pdaTypes,d=c.hasPDA,f=c.pdaIcon,u=c.pdaOwnerName,v=c.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function V(){return i(d?"eject_pda":"insert_pda")}return V}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:u||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:v||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{as:"img",height:"160px",src:d?"data:image/png;base64,"+f:"",style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:s})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function V(){return i("erase_pda")}return V}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(V){return(0,e.createComponentVNode)(2,S,{selectedPda:V,selectedPdaImage:l[V][0]},V)})})})})})]})})})}return y}(),S=r.PDAColorRow=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.hasPDA,l=k.selectedPda,d=k.selectedPdaImage;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/png;base64,"+d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!s,icon:d,content:l,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function f(){return i("choose_pda",{selectedPda:l,selectedPdaImage:d})}return f}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.Pacman=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.broken,l=c.anchored,d=c.active,f=c.fuel_type,u=c.fuel_usage,v=c.fuel_stored,V=c.fuel_cap,C=c.is_ai,h=c.tmp_current,g=c.tmp_max,N=c.tmp_overheat,x=c.output_max,B=c.power_gen,L=c.output_set,T=c.has_fuel,A=v/V,w=h/g,E=L*B,O=Math.round(v/u),P=Math.round(O/60),M=O>120?P+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(s||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!s&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!s&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!s&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function R(F,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,m.formatPower)(E),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||C||!T,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(v/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[u/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(u?M:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PersonalCrafting=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.busy,d=s.category,f=s.display_craftable_only,u=s.display_compact,v=s.prev_cat,V=s.next_cat,C=s.subcategory,h=s.prev_subcat,g=s.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:f?"check-square-o":"square-o",selected:f,onClick:function(){function N(){return c("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function N(){return c("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:v,icon:"arrow-left",onClick:function(){function N(){return c("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function N(){return c("forwardCat")}return N}()})]}),C&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return c("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return c("forwardSubCat")}return N}()})]}),u?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})]})})}return k}(),S=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:u.ref})}return v}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},y=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function v(){return c("make",{make:u.ref})}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(88510),S=n(64795),y=n(25328);function k(s,l){var d=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(d)return(d=d.call(s)).next.bind(d);if(Array.isArray(s)||(d=b(s))||l&&s&&typeof s.length=="number"){d&&(s=d);var f=0;return function(){return f>=s.length?{done:!0}:{done:!1,value:s[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(s,l){if(s){if(typeof s=="string")return p(s,l);var d={}.toString.call(s).slice(8,-1);return d==="Object"&&s.constructor&&(d=s.constructor.name),d==="Map"||d==="Set"?Array.from(s):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?p(s,l):void 0}}function p(s,l){(l==null||l>s.length)&&(l=s.length);for(var d=0,f=Array(l);ds?this.substring(0,s)+"...":this};var i=function(l,d){d===void 0&&(d="");var f=(0,y.createSearch)(d,function(u){return u.altername});return(0,S.flow)([(0,m.filter)(function(u){return u==null?void 0:u.altername}),d&&(0,m.filter)(f),(0,m.sortBy)(function(u){return u.id})])(l)},c=r.Photocopier=function(){function s(l,d){for(var f=(0,a.useBackend)(d),u=f.act,v=f.data,V=v.copies,C=v.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,m.sortBy)(function(M){return M.category})(v.forms||[]),g),B=[],L=k(x),T;!(T=L()).done;){var A=T.value;B.includes(A.category)||B.push(A.category)}var w=(0,a.useLocalState)(d,"number",0),E=w[0],O=w[1],P;return v.category===""?P=x:P=x.filter(function(M){return M.category===v.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:v.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:v.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:v.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":v.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!v.copyitem&&!v.mob,icon:v.copyitem||v.mob?"eject":"times",content:v.copyitem?v.copyitem:v.mob?"\u0416\u043E\u043F\u0430 "+v.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function M(){return u("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:!v.folder,icon:v.folder?"eject":"times",content:v.folder?v.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function M(){return u("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:v.toner===0||v.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function M(){return u("print_form")}return M}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:v.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function M(){return u("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:v.toner===0||!v.copyitem&&!v.mob,onClick:function(){function M(){return u("copy")}return M}()})}),!!v.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:v.toner===0,onClick:function(){function M(){return u("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:C,value:V,stepPixelSize:10,onChange:function(){function M(R,F){return u("copies",{new:F})}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:!v.category,onClick:function(){function M(){return u("choose_category",{category:""})}return M}()})}),B.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:v.category===M,onClick:function(){function R(){return u("choose_category",{category:M})}return R}()},M)},M)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:v.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function M(R,F){return N(F)}return M}()}),children:P.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:v.form_id===M.id,onClick:function(){function R(){return u("choose_form",{path:M.path,id:M.id})}return R}()})},M.path)})})})]})})})}return s}()},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PodTracking=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[s.podx,", ",s.pody,", ",s.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:s.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:s.passengers})]})},s.name)})})})}return S}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=["tempKey"];function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,c){var s=i.tempKey,l=S(i,m),d=y[s];if(!d)return null;var f=(0,a.useBackend)(c),u=f.data,v=f.act,V=u.currentTemp,C=d.label,h=d.icon,g=s===V,N=function(){v("setTemp",{temp:s})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),C]})))},b=r.PoolController=function(){function p(i,c){for(var s=(0,a.useBackend)(c),l=s.data,d=l.emagged,f=l.currentTemp,u=y[f]||y.normal,v=u.label,V=u.color,C=[],h=0,g=Object.entries(y);h50?"battery-half":"battery-quarter")||V==="C"&&"bolt"||V==="F"&&"battery-full"||V==="M"&&"slash",color:V==="N"&&(C>50?"yellow":"red")||V==="C"&&"yellow"||V==="F"&&"green"||V==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(C)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var f=function(v){var V,C,h=v.status;switch(h){case"AOn":V=!0,C=!0;break;case"AOff":V=!0,C=!1;break;case"On":V=!1,C=!0;break;case"Off":V=!1,C=!1;break}var g=(C?"On":"Off")+(" ["+(V?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:C?"good":"bad",content:V?void 0:"M",title:g})};f.defaultHooks=m.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(3939),S=n(321),y=n(5485),k=n(98595),b=r.PrisonerImplantManager=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.loginState,u=d.prisonerInfo,v=d.chemicalInfo,V=d.trackingInfo,C;if(!f.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function g(){return(0,m.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:V.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,m.modalOpen)(c,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:v.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":f>500?"orange":f>250?"yellow":"green"},k=function(f,u){for(var v=[],V=0;V0?"envelope-open-text":"envelope",onClick:function(){function x(){return v("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return v("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return v("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return v("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return v("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return v("setScreen",{setScreen:10})}return x}()})})]}),!!h&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return v("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return v("toggleSilent")}return x}()})})]})},k=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.department,h,g;switch(d.purpose){case"ASSISTANCE":h=V.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":h=V.supply_dept,g="Request supplies from another department";break;case"INFO":h=V.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(N){return N!==C}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return v("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return v("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},b=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C;switch(d.type){case"SUCCESS":C="Message sent successfully";break;case"FAIL":C="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:C,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return v("setScreen",{setScreen:0})}return h}()})})},p=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C,h;switch(d.type){case"MESSAGES":C=V.message_log,h="Message Log";break;case"SHIPPING":C=V.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return v("setScreen",{setScreen:0})}return g}()}),children:C.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},i=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.recipient,h=V.message,g=V.msgVerified,N=V.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return v("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return v("department",{department:C})}return x}()})]})},c=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.message,h=V.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return v("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:C||"Edit Message",icon:"edit",onClick:function(){function g(){return v("writeAnnouncement")}return g}()}),h?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&C),onClick:function(){function g(){return v("sendAnnouncement")}return g}()})]})},s=function(d,f){var u=(0,a.useBackend)(f),v=u.act,V=u.data,C=V.shipDest,h=V.msgVerified,g=V.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return v("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:C}),(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:!(C&&h),onClick:function(){function N(){return v("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:C===N?"Selected":"Select",selected:C===N,onClick:function(){function x(){return v("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);/** + */function s(T,E){T.prototype=Object.create(E.prototype),T.prototype.constructor=T,l(T,E)}function l(T,E){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,A){return w.__proto__=A,w},l(T,E)}function d(T,E){if(T==null)return{};var w={};for(var A in T)if({}.hasOwnProperty.call(T,A)){if(E.includes(A))continue;w[A]=T[A]}return w}var f=r.ColorPickerModal=function(){function T(E,w){var A=(0,t.useBackend)(w),O=A.data,M=O.timeout,P=O.message,R=O.title,F=O.autofocus,_=O.default_color,U=_===void 0?"#000000":_,W=(0,t.useLocalState)(w,"color_picker_choice",(0,y.hexToHsva)(U)),$=W[0],G=W[1];return(0,e.createComponentVNode)(2,m.Window,{height:400,title:R,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!F&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,u,{color:$,setColor:G,defaultColor:U})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i.InputButtons,{input:(0,y.hsvaToHex)($)})})]})})]})}return T}(),u=r.ColorSelector=function(){function T(E,w){var A=E.color,O=E.setColor,M=E.defaultColor,P=function(){function _(U){O(function(W){return Object.assign({},W,U)})}return _}(),R=(0,y.hsvaToRgba)(A),F=(0,y.hsvaToHex)(A);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:A,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:F,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:F})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(A).substring(1),onChange:function(){function _(U){p.logger.info(U),O((0,y.hexToHsva)(U))}return _}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:A.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.h,callback:function(){function _(U,W){return P({h:W})}return _}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.s,callback:function(){function _(U,W){return P({s:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:A,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:A.v,callback:function(){function _(U,W){return P({v:W})}return _}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{color:A,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.r,callback:function(){function _(U,W){R.r=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{color:A,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.g,callback:function(){function _(U,W){R.g=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,I,{color:A,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,C,{value:R.b,callback:function(){function _(U,W){R.b=W,P((0,y.rgbaToHsva)(R))}return _}(),max:255})})]})})]})})]})}return T}(),C=function(E){var w=E.value,A=E.callback,O=E.min,M=O===void 0?0:O,P=E.max,R=P===void 0?100:P,F=E.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(w),step:1,minValue:M,maxValue:R,onChange:A,unit:F})},b=function(E){return"#"+E},v=r.HexColorInput=function(){function T(E){var w=E.prefixed,A=E.alpha,O=E.color,M=E.fluid,P=E.onChange,R=d(E,c),F=function(){function U(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,A?8:6)}return U}(),_=function(){function U(W){return(0,y.validHex)(W,A)}return U}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,h,Object.assign({},R,{fluid:M,color:O,onChange:P,escape:F,format:w?b:void 0,validate:_})))}return T}(),h=r.ColorInput=function(T){function E(A){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=A,O.state={localValue:O.props.escape(O.props.color)},O}s(E,T);var w=E.prototype;return w.componentDidUpdate=function(){function A(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return A}(),w.render=function(){function A(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,V.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return A}(),E}(e.Component),g=function(E){var w=E.hsva,A=E.onChange,O=function(F){A({s:F.left*100,v:100-F.top*100})},M=function(F){A({s:(0,S.clamp)(w.s+F.left*100,0,100),v:(0,S.clamp)(w.v-F.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:w.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,k.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(w.s)+"%, Brightness "+Math.round(w.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-w.v/100,left:w.s/100,color:(0,y.hsvaToHslString)(w)})}),2,{style:P})},N=function(E){var w=E.className,A=E.hue,O=E.onChange,M=function(_){O({h:360*_.left})},P=function(_){O({h:(0,S.clamp)(A+_.left*360,0,360)})},R=(0,V.classes)(["react-colorful__hue",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(A),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:A/360,color:(0,y.hsvaToHslString)({h:A,s:100,v:100,a:1})})}),2)},x=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({s:100*_.left})},P=function(_){O({s:(0,S.clamp)(A.s+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__saturation",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:0,v:A.v,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:100,v:A.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:A.s/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},B=function(E){var w=E.className,A=E.color,O=E.onChange,M=function(_){O({v:100*_.left})},P=function(_){O({v:(0,S.clamp)(A.v+_.left*100,0,100)})},R=(0,V.classes)(["react-colorful__value",w]);return(0,e.createVNode)(1,"div",R,(0,e.createComponentVNode)(2,k.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:A.h,s:A.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(A.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:A.v/100,color:(0,y.hsvaToHslString)({h:A.h,s:A.s,v:A.v,a:1})})}),2)},I=function(E){var w=E.className,A=E.color,O=E.onChange,M=E.target,P=(0,y.hsvaToRgba)(A),R=function(G){P[M]=G,O((0,y.rgbaToHsva)(P))},F=function(G){R(255*G.left)},_=function(G){R((0,S.clamp)(P[M]+G.left*255,0,255))},U=(0,V.classes)(["react-colorful__"+M,w]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",U,(0,e.createComponentVNode)(2,k.Interactive,{onMove:F,onKey:_,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(L,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.CommunicationsComputer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;i.authenticated?i.is_ai?c="AI":i.authenticated===1?c="Command":i.authenticated===2?c="Captain":c="ERROR: Report This Bug!":c="Not Logged In";var s="View ("+i.messages.length+")",l=(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Authentication",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:i.is_ai&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Access Level",children:"AI"})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,content:i.authenticated?"Log Out ("+c+")":"Log In",onClick:function(){function x(){return p("auth")}return x}()})})})}),!!i.esc_section&&(0,e.createComponentVNode)(2,t.Section,{title:"Escape Shuttle",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!i.esc_status&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:i.esc_status}),!!i.esc_callable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"Call Shuttle",disabled:!i.authenticated,onClick:function(){function x(){return p("callshuttle")}return x}()})}),!!i.esc_recallable&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Options",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Recall Shuttle",disabled:!i.authenticated||i.is_ai,onClick:function(){function x(){return p("cancelshuttle")}return x}()})}),!!i.lastCallLoc&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Last Call/Recall From",children:i.lastCallLoc})]})})],0),d="Make Priority Announcement";i.msg_cooldown>0&&(d+=" ("+i.msg_cooldown+"s)");var f=i.emagged?"Message [UNKNOWN]":"Message CentComm",u="Request Authentication Codes";i.cc_cooldown>0&&(f+=" ("+i.cc_cooldown+"s)",u+=" ("+i.cc_cooldown+"s)");var C=i.str_security_level,b=i.levels.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{icon:x.icon,content:x.name,disabled:!i.authmax||x.id===i.security_level,onClick:function(){function B(){return p("newalertlevel",{level:x.id})}return B}()},x.name)}),v=i.stat_display.presets.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.name===i.stat_display.type,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:x.name})}return B}()},x.name)}),h=i.stat_display.alerts.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{content:x.label,selected:x.alert===i.stat_display.icon,disabled:!i.authenticated,onClick:function(){function B(){return p("setstat",{statdisp:"alert",alert:x.alert})}return B}()},x.alert)}),g;if(i.current_message_title)g=(0,e.createComponentVNode)(2,t.Section,{title:i.current_message_title,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Return To Message List",disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:i.current_message})});else{var N=i.messages.map(function(x){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:x.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"View",disabled:!i.authenticated||i.current_message_title===x.title,onClick:function(){function B(){return p("messagelist",{msgid:x.id})}return B}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Delete",disabled:!i.authenticated,onClick:function(){function B(){return p("delmessage",{msgid:x.id})}return B}()})]},x.id)});g=(0,e.createComponentVNode)(2,t.Section,{title:"Messages Received",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:N})})}switch(i.menu_state){case 1:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Captain-Only Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Alert",color:i.security_level_color,children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Change Alert",children:b}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Announcement",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:d,disabled:!i.authmax||i.msg_cooldown>0,onClick:function(){function x(){return p("announce")}return x}()})}),!!i.emagged&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageSyndicate")}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"Reset Relays",disabled:!i.authmax,onClick:function(){function x(){return p("RestoreBackup")}return x}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transmit",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:f,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("MessageCentcomm")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nuclear Device",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:u,disabled:!i.authmax||i.cc_cooldown>0,onClick:function(){function x(){return p("nukerequest")}return x}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Command Staff Actions",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Displays",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"Change Status Displays",disabled:!i.authenticated,onClick:function(){function x(){return p("status")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Incoming Messages",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:s,disabled:!i.authenticated,onClick:function(){function x(){return p("messagelist")}return x}()})})]})})]})});case 2:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,(0,e.createComponentVNode)(2,t.Section,{title:"Modify Status Screens",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){function x(){return p("main")}return x}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Presets",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alerts",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_1,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg1")}return x}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message Line 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:i.stat_display.line_2,disabled:!i.authenticated,onClick:function(){function x(){return p("setmsg2")}return x}()})})]})})]})});case 3:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,g]})});default:return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[l,"ERRROR. Unknown menu_state: ",i.menu_state,"Please report this to NT Technical Support."]})})}}return S}()},21813:function(L,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(73379),S=n(98595);function y(b,v){b.prototype=Object.create(v.prototype),b.prototype.constructor=b,k(b,v)}function k(b,v){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},k(b,v)}var V={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},p=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],i=r.Contractor=function(){function b(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function w(){}return w}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,f,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,u,{height:"100%",allMessages:p,finishedTimeout:3e3,onFinished:function(){function w(){return N("complete_load_animation")}return w}()})});var I=(0,t.useLocalState)(h,"viewingPhoto",""),T=I[0],E=I[1];return(0,e.createComponentVNode)(2,S.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,S.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return b}(),c=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.tc_available,I=x.tc_paid_out,T=x.completed_contracts,E=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[E," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function w(){return N("claim")}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[I," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},s=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function I(){return N("page",{page:1})}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function I(){return N("page",{page:2})}return I}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.contracts,I=x.contract_active,T=x.can_extract,E=!!I&&B.filter(function(P){return P.status===1})[0],w=E&&E.time_left>0,A=(0,t.useLocalState)(h,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||w,icon:"parachute-box",content:["Call Extraction",w&&(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E.time_left,format:function(){function P(R,F){return" ("+F.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,R){return P.status===1?-1:R.status===1?1:P.status-R.status}).map(function(P){var R;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function F(){return M("target_photo_"+P.uid+".png")}return F}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!V[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:V[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:V[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function F(){return N("abort")}return F}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(R=P.difficulties)==null?void 0:R.map(function(F,_){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!I,content:F.name+" ("+F.reward+" TC)",onClick:function(){function U(){return N("activate",{uid:P.uid,difficulty:_+1})}return U}()},_)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var h=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=h===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},f=function(v,h){var g=(0,t.useBackend)(h),N=g.act,x=g.data,B=x.rep,I=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:I.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function E(){return N("refund",{uid:T.uid})}return E}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},u=function(b){function v(g){var N;return N=b.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,b);var h=v.prototype;return h.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(I){return{currentIndex:I.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),h.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),h.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),h.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),C=function(v,h){var g=(0,t.useLocalState)(h,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(L,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ConveyorSwitch=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slowFactor,s=i.minSpeed,l=i.maxSpeed,d=i.oneWay,f=i.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:f>0?"forward":f<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function u(){return p("toggleOneWay")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function u(){return p("slowFactor",{value:c-.5})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function u(){return p("slowFactor",{value:c-.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:c,fillValue:c,minValue:s,maxValue:l,step:.1,format:function(){function u(C){return C+"s."}return u}(),onChange:function(){function u(C,b){return p("slowFactor",{value:b})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function u(){return p("slowFactor",{value:c+.1})}return u}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function u(){return p("slowFactor",{value:c+.5})}return u}()})," "]})]})})]})})})})}return S}()},73169:function(L,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),m=n(36036),S=n(36352),y=n(76910),k=n(98595),V=function(C,b){return C.dead?"Deceased":parseInt(C.health,10)<=b?"Critical":parseInt(C.stat,10)===1?"Unconscious":"Living"},p=function(C,b){return C.dead?"red":parseInt(C.health,10)<=b?"orange":parseInt(C.stat,10)===1?"blue":"green"},i=r.CrewMonitor=function(){function u(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=(0,o.useLocalState)(b,"tabIndex",g.IndexToggler),x=N[0],B=N[1],I=function(){function T(E){switch(E){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,s);case 3:return(0,e.createComponentVNode)(2,f);default:return"WE SHOULDN'T BE HERE!"}}return T}();return(0,e.createComponentVNode)(2,k.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,m.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,m.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Command Data View"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Security Data View"]},"SecDataView"):null,(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"table"})," Data View"]},"DataView"),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,m.Icon,{name:"map-marked-alt"})," Map View"]},"MapView")]}),I(x)]})})})}return u}(),c=function(C){var b=C.crewData,v=C.context,h=(0,o.useBackend)(v),g=h.act,N=h.data,x=(0,a.sortBy)(function(w){return w.name})(b||[]),B=(0,o.useLocalState)(v,"search",""),I=B[0],T=B[1],E=(0,t.createSearch)(I,function(w){return w.name+"|"+w.assignment+"|"+w.area});return(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name, assignment or location..",width:"100%",onInput:function(){function w(A,O){return T(O)}return w}()}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,m.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,m.Table.Cell,{children:"Location"})]}),x.filter(E).map(function(w){return(0,e.createComponentVNode)(2,m.Table.Row,{bold:!!w.is_command,children:[(0,e.createComponentVNode)(2,S.TableCell,{children:[w.name," (",w.assignment,")"]}),(0,e.createComponentVNode)(2,S.TableCell,{children:[(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:p(w,N.critThreshold),children:V(w,N.critThreshold)}),w.sensor_type>=2?(0,e.createComponentVNode)(2,m.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:w.oxy}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:w.tox}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.burn,children:w.fire}),"|",(0,e.createComponentVNode)(2,m.Box,{inline:!0,color:y.COLORS.damageType.brute,children:w.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,S.TableCell,{children:w.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,m.Button,{fluid:!0,icon:"location-arrow",content:w.area+" ("+w.x+", "+w.y+")",onClick:function(){function A(){return g("track",{track:w.ref})}return A}()}):w.area+" ("+w.x+", "+w.y+")":"Not Available"})]},w.ref)})]})]})},s=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},l=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},d=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,c,{crewData:N,context:b})},f=function(C,b){var v=(0,o.useBackend)(b),h=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(b,"zoom",1),I=B[0],T=B[1],E=(0,o.useLocalState)(b,"z_current",N[0]),w=E[0],A=E[1],O=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?"square":"circle"},M=function(F){return F.is_command&&g.isBS||F.is_security&&g.isBP?10:6},P=function(F,_){return F.is_command&&g.isBS||F.is_security&&g.isBP?F.dead?"red":parseInt(F.health,10)<=_?"orange":parseInt(F.stat,10)===1?"blue":"violet":p(F,_)};return(0,e.createComponentVNode)(2,m.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,m.NanoMap,{onZoom:function(){function R(F){return T(F)}return R}(),zLevels:N,zNames:x,z_current:w,setZCurrent:A,children:g.crewmembers.filter(function(R){return R.sensor_type===3}).map(function(R){return(0,e.createComponentVNode)(2,m.NanoMap.Marker,{x:R.x,y:R.y,z:R.z,z_current:w,zoom:I,icon:O(R),size:M(R),tooltip:R.name+" ("+R.assignment+")",color:P(R,g.critThreshold),onClick:function(){function F(){g.isAI&&h("track",{track:R.ref})}return F}()},R.ref)})})})}},63987:function(L,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),m=n(98595),S=[{label:"\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F",type:"oxyLoss"},{label:"\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F",type:"toxLoss"},{label:"\u0420\u0430\u043D\u044B",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0422\u0420\u0423\u041F"]],k=r.Cryo=function(){function i(c,s){return(0,e.createComponentVNode)(2,m.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return i}(),V=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isOperating,C=f.hasOccupant,b=f.occupant,v=b===void 0?[]:b,h=f.cellTemperature,g=f.cellTemperatureStatus,N=f.isBeakerLoaded,x=f.auto_eject_healthy,B=f.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function I(){return d("ejectOccupant")}return I}(),disabled:!C,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:C?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),S.map(function(I){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:I.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[I.type])})})},I.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function I(){return d("ejectBeaker")}return I}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function I(){return d(u?"switchOff":"switchOn")}return I}(),selected:u,children:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:h})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function I(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return I}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function I(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return I}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.isBeakerLoaded,C=f.beakerLabel,b=f.beakerVolume;return u?(0,e.createFragment)([C?"\xAB"+C+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!b&&"bad",children:b?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:b,format:function(){function v(h){var g=Math.round(h),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(L,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=r.CryopodConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.account_name,d=s.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},f)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.frozen_items,f=function(C){var b=C.toString();return b.startsWith("the ")&&(b=b.slice(4,b.length)),(0,m.toTitleCase)(b)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f(u.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function C(){return s("one_item",{item:u.uid})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function u(){return s("all_items")}return u}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(L,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=function(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=V.product,d=s.user,f=s.userMoney,u=s.vend_ready,C=l.price===0,b="ERROR!",v="";C?(b="FREE",v="arrow-circle-down"):(b=l.price,v="shopping-cart");var h=!u||l.stock===0||!C&&l.price>f;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:h,icon:v,content:b,textAlign:"left",onClick:function(){function g(){return c("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.guestNotice,d=s.userMoney,f=s.user,u=s.products,C=s.vend_ready,b=s.panel_open,v=s.speaker;return(0,e.createComponentVNode)(2,m.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:f&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,f.name,0),", ",(0,e.createVNode)(1,"b",null,f.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!b&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function h(){return c("toggle_voice",{})}return h}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:u.map(function(h){return(0,e.createComponentVNode)(2,S,{product:h,productStock:h.stock},h.name)})})})})]})})})}return k}()},12692:function(L,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(3939),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],k=[5,10,20,30,50],V=r.DNAModifier=function(){function h(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.irradiating,E=I.dnaBlockSize,w=I.occupant;N.dnaBlockSize=E,N.isDNAInvalid=!w.isViableSubject||!w.uniqueIdentity||!w.structuralEnzymes;var A;return T&&(A=(0,e.createComponentVNode)(2,b,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,m.ComplexModal),A,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,p)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i)})]})})]})}return h}(),p=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.locked,E=I.hasOccupant,w=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"Engaged":"Disengaged",onClick:function(){function A(){return B("toggleLock")}return A}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E||T,icon:"user-slash",content:"Eject",onClick:function(){function A(){return B("ejectOccupant")}return A}()})],4),children:E?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:w.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:w.minHealth,max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",color:S[w.stat][0],children:S[w.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Radiation",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:w.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unique Enzymes",children:I.occupant.uniqueEnzymes?I.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Cell unoccupied."})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.selectedMenuKey,E=I.hasOccupant,w=I.occupant;if(E){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No operation possible on this subject."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant in DNA modifier."]})})});var A;return T==="ui"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,l)],4):T==="se"?A=(0,e.createFragment)([(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?A=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(A=(0,e.createComponentVNode)(2,C)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),A]})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.selectedUIBlock,E=I.selectedUISubBlock,w=I.selectedUITarget,A=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Unique Identifier",children:[(0,e.createComponentVNode)(2,v,{dnaString:A.uniqueIdentity,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:w,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},s=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.selectedSEBlock,E=I.selectedSESubBlock,w=I.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"Modify Structural Enzymes",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.structuralEnzymes,selectedBlock:T,selectedSubblock:E,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Irradiate Block",onClick:function(){function A(){return B("pulseSERadiation")}return A}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.radiationIntensity,E=I.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"Radiation Emitter",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Intensity",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationIntensity",{value:O})}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:E,popUpPosition:"right",ml:"0",onChange:function(){function w(A,O){return B("radiationDuration",{value:O})}return w}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function w(){return B("pulseRadiation")}return w}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.buffers,E=T.map(function(w,A){return(0,e.createComponentVNode)(2,f,{id:A+1,name:"Buffer "+(A+1),buffer:w},A)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Buffers",children:E})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,u)})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=g.id,E=g.name,w=g.buffer,A=I.isInjectorReady,O=E+(w.data?" - "+w.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!w.data,icon:"trash",content:"Clear",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data,icon:"pen",content:"Rename",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w.data||!I.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Write",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!I.hasDisk||!I.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!w.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:w.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[w.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!w.ue&&" and Unique Enzymes"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Transfer to",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,icon:A?"syringe":"spinner",iconSpin:!A,content:"Block Injector",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"Subject",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!w.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.hasDisk,E=I.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!E.data,icon:"trash",content:"Wipe",onClick:function(){function w(){return B("wipeDisk")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function w(){return B("ejectDisk")}return w}()})],4),children:T?E.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Label",children:E.label?E.label:"No label"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Subject",children:E.owner?E.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"Unknown"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Data Type",children:[E.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!E.ue&&" and Unique Enzymes"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"Disk is blank."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"No disk inserted."]})})},C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=I.isBeakerLoaded,E=I.beakerVolume,w=I.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Rejuvenators and Beaker",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"Eject",onClick:function(){function A(){return B("ejectBeaker")}return A}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Inject",children:[k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:A>E,icon:"syringe",content:A,onClick:function(){function M(){return B("injectRejuvenators",{amount:A})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:E<=0,icon:"syringe",content:"All",onClick:function(){function A(){return B("injectRejuvenators",{amount:E})}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Beaker",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:w||"No label"}),E?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:[E," unit",E===1?"":"s"," remaining"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Empty"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"No beaker loaded.",16)]})})})},b=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0Irradiating occupant\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("For "),g.duration,(0,e.createTextVNode)(" second"),g.duration===1?"":"s"],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,I=x.data,T=g.dnaString,E=g.selectedBlock,w=g.selectedSubblock,A=g.blockSize,O=g.action,M=T.split(""),P=0,R=[],F=function(){for(var W=_/A+1,$=[],G=function(){var Ce=oe+1;$.push((0,e.createComponentVNode)(2,t.Button,{selected:E===W&&w===Ce,content:M[_+oe],mb:"0",onClick:function(){function me(){return B(O,{block:W,subblock:Ce})}return me}()}))},oe=0;oe0?"Yes":"No",selected:i.com>0,onClick:function(){function s(){return p("toggle_com")}return s}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Security",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.sec===s,content:s,onClick:function(){function d(){return p("set_sec",{set_sec:s})}return d}()},"sec"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Medical",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.med===s,content:s,onClick:function(){function d(){return p("set_med",{set_med:s})}return d}()},"med"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Engineering",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.eng===s,content:s,onClick:function(){function d(){return p("set_eng",{set_eng:s})}return d}()},"eng"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Paranormal",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.par===s,content:s,onClick:function(){function d(){return p("set_par",{set_par:s})}return d}()},"par"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitor",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.jan===s,content:s,onClick:function(){function d(){return p("set_jan",{set_jan:s})}return d}()},"jan"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cyborg",children:c.map(function(s,l){return(0,e.createComponentVNode)(2,t.Button,{selected:i.cyb===s,content:s,onClick:function(){function d(){return p("set_cyb",{set_cyb:s})}return d}()},"cyb"+s)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Slots",children:(0,e.createComponentVNode)(2,t.Box,{color:i.total>i.spawnpoints?"red":"green",children:[i.total," total, versus ",i.spawnpoints," spawnpoints"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Dispatch",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"Send ERT",onClick:function(){function s(){return p("dispatch_ert")}return s}()})})]})})]})})}return S}()},82565:function(L,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Electropack=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.power,l=c.code,d=c.frequency,f=c.minFrequency,u=c.maxFrequency;return(0,e.createComponentVNode)(2,m.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:s?"power-off":"times",content:s?"On":"Off",selected:s,onClick:function(){function C(){return i("power")}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"freq"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:f/10,maxValue:u/10,value:d/10,format:function(){function C(b){return(0,a.toFixed)(b,1)}return C}(),width:"80px",onChange:function(){function C(b,v){return i("freq",{freq:v})}return C}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function C(){return i("reset",{reset:"code"})}return C}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function C(b,v){return i("code",{code:v})}return C}()})})]})})})})}return y}()},36730:function(L,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.EvolutionMenu=function(){function k(V,p){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function f(){return c("readapt")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.evo_points,d=s.ability_list,f=s.purchased_abilities,u=s.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:u?"square-o":"check-square-o",selected:!u,content:"Compact",onClick:function(){function C(){return c("set_view_mode",{mode:0})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:u?"check-square-o":"square-o",selected:u,content:"Expanded",onClick:function(){function C(){return c("set_view_mode",{mode:1})}return C}()})],4),children:d.map(function(C,b){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:C.name}),f.includes(C.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:C.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:C.cost>l||f.includes(C.power_path),content:"Evolve",onClick:function(){function v(){return c("purchase",{power_path:C.power_path})}return v}()})})]}),!!u&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:C.description+" "+C.helptext})]},b)})})}},17370:function(L,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),m=n(36036),S=n(73379),y=n(98595),k=["id","amount","lineDisplay","onClick"];function V(b,v){if(b==null)return{};var h={};for(var g in b)if({}.hasOwnProperty.call(b,g)){if(v.includes(g))continue;h[g]=b[g]}return h}var p=2e3,i={bananium:"clown",tranquillite:"mime"},c=r.ExosuitFabricator=function(){function b(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,s)}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)})]})})]})})})}return b}(),s=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.materials,I=x.capacity,T=Object.values(B).reduce(function(E,w){return E+w},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,m.Box,{color:"label",mt:"0.25rem",children:[(T/I*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(E){return(0,e.createComponentVNode)(2,u,{mt:-2,id:E,bold:E==="metal"||E==="glass",onClick:function(){function w(){return N("withdraw",{id:E})}return w}()},E)})})},l=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.curCategory,I=x.categories,T=x.designs,E=x.syncing,w=(0,o.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=(0,t.createSearch)(A,function(R){return R.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,m.Dropdown,{className:"Exofab__dropdown",selected:B,options:I,onSelected:function(){function R(F){return N("category",{cat:F})}return R}()}),buttons:(0,e.createComponentVNode)(2,m.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,m.Button,{icon:"plus",content:"Queue all",onClick:function(){function R(){return N("queueall")}return R}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:E,iconSpin:E,icon:"sync-alt",content:E?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function R(){return N("sync")}return R}()})]}),children:[(0,e.createComponentVNode)(2,m.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function R(F,_){return O(_)}return R}()}),P.map(function(R){return(0,e.createComponentVNode)(2,C,{design:R},R.id)}),P.length===0&&(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No designs found."})]})},d=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.building,I=x.buildStart,T=x.buildEnd,E=x.worldTime;return(0,e.createComponentVNode)(2,m.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,m.ProgressBar.Countdown,{start:I,current:E,end:T,children:(0,e.createComponentVNode)(2,m.Stack,{children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,S.Countdown,{current:E,timeLeft:T-E,format:function(){function w(A,O){return O.substr(3)}return w}()}),")"]})]})})})},f=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=x.queue,I=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(w){return w[1]<0}),E=B.reduce(function(w,A){return w+A.time},0);return(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,m.Button,{selected:I,icon:I?"toggle-on":"toggle-off",content:"Process",onClick:function(){function w(){return N("process")}return w}()}),(0,e.createComponentVNode)(2,m.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function w(){return N("unqueueall")}return w}()})]}),children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(w,A){return(0,e.createComponentVNode)(2,m.Box,{color:w.notEnough&&"bad",children:[A+1,". ",w.name,A>0&&(0,e.createComponentVNode)(2,m.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:A+1,to:A})}return O}()}),A0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,m.Divider),"Processing time:",(0,e.createComponentVNode)(2,m.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,m.Box,{inline:!0,bold:!0,children:new Date(E/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,m.Divider),"Lacking materials to complete:",T.map(function(w){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:w[0],amount:-w[1],lineDisplay:!0})},w[0])})]})],0)})})},u=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.id,I=v.amount,T=v.lineDisplay,E=v.onClick,w=V(v,k),A=x.materials[B]||0,O=I||A;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=I&&I>A;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,m.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},w,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,m.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,m.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,m.Button,{width:"85%",color:"transparent",onClick:E,children:(0,e.createComponentVNode)(2,m.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/p*10)/10," ","sheets)"]})]})],4)})))}},C=function(v,h){var g=(0,o.useBackend)(h),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,m.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function I(){return N("build",{id:B.id})}return I}()}),(0,e.createComponentVNode)(2,m.Button,{icon:"plus-circle",onClick:function(){function I(){return N("queue",{id:B.id})}return I}()}),(0,e.createComponentVNode)(2,m.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(I){return(0,e.createComponentVNode)(2,m.Box,{children:(0,e.createComponentVNode)(2,u,{id:I[0],amount:I[1],lineDisplay:!0})},I[0])})}),(0,e.createComponentVNode)(2,m.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,m.Stack.Item,{children:[(0,e.createComponentVNode)(2,m.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(L,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=0,S=1013,y=function(p){var i="good",c=80,s=95,l=110,d=120;return pl?i="average":p>d&&(i="bad"),i},k=r.ExternalAirlockController=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.chamber_pressure,f=l.exterior_status,u=l.interior_status,C=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:m,maxValue:S,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:C,onClick:function(){function b(){return s("cycle_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:C,onClick:function(){function b(){return s("cycle_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_ext")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:u==="open"?"red":C?"yellow":null,onClick:function(){function b(){return s("force_int")}return b}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!C,onClick:function(){function b(){return s("abort")}return b}()})})]})]})})}return V}()},96142:function(L,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.FaxMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.scan_name?"eject":"id-card",selected:i.scan_name,content:i.scan_name?i.scan_name:"-----",tooltip:i.scan_name?"Eject ID":"Insert ID",onClick:function(){function c(){return p("scan")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authenticated?"sign-out-alt":"id-card",selected:i.authenticated,disabled:!i.scan_name&&!i.authenticated,content:i.authenticated?"Log Out":"Log In",onClick:function(){function c(){return p("auth")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:i.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:i.paper?"eject":"paperclip",disabled:!i.authenticated&&!i.paper,content:i.paper?i.paper:"-----",onClick:function(){function c(){return p("paper")}return c}()}),!!i.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function c(){return p("rename")}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:i.destination?i.destination:"-----",disabled:!i.authenticated,onClick:function(){function c(){return p("dept")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:i.sendError?i.sendError:"Send",disabled:!i.paper||!i.destination||!i.authenticated||i.sendError,onClick:function(){function c(){return p("send")}return c}()})})]})})]})})}return S}()},83767:function(L,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=V.icon_state,d=V.direction,f=V.isSelected,u=V.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:s.icon,icon_state:l,direction:d,onClick:u,style:{"border-style":f&&"solid"||"none","border-width":"2px","border-color":"orange",padding:f&&"0px"||"2px"}})},S={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.availableStyles,d=s.selectedStyle,f=s.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function u(){return c("cycle_style",{offset:-1})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function u(C){return c("select_style",{style:C})}return u}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function u(){return c("cycle_style",{offset:1})}return u}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,m,{icon_state:u,isSelected:d===u,onSelect:function(){function C(){return c("select_style",{style:u})}return C}()})},u)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[S.NORTH,null,S.SOUTH].map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[u+S.WEST,u,u+S.EAST].map(function(C){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:C===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,m,{icon_state:d,direction:C,isSelected:C===f,onSelect:function(){function b(){return c("select_direction",{direction:C})}return b}()})},C)})},u)})})})})]})})})}return k}()},53424:function(L,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,f){if(!(!l||!d)){if(l[2]!==d[2]||f!==1)return null;var u=Math.atan2(d[1]-l[1],d[0]-l[0]),C=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(u),distance:C}}},k=r.GPS=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.data,C=u.emped,b=u.active,v=u.area,h=u.position,g=u.saved;return(0,e.createComponentVNode)(2,m.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:C?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,V,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,p)}),b?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{area:v,position:h})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,i,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,V)],0)})})})}return s}(),V=function(l,d){var f=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:f?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),f?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},p=function(l,d){var f=(0,t.useBackend)(d),u=f.act,C=f.data,b=C.active,v=C.tag,h=C.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:b,icon:b?"toggle-on":"toggle-off",content:b?"On":"Off",onClick:function(){function B(){return u("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return u("tag",{newtag:N})}return B}(),onInput:function(){function B(I,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return u("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"compress":"expand",content:h?"Local Sector":"Global",onClick:function(){function B(){return u("same_z")}return B}()})})]})})},i=function(l,d){var f=l.title,u=l.area,C=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:f||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[u&&(0,e.createFragment)([u,(0,e.createVNode)(1,"br")],0),S(C)]})})},c=function(l,d){var f=(0,t.useBackend)(d),u=f.data,C=u.position,b=u.signals,v=u.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:b.map(function(h){return Object.assign({},h,y(C,h.position,v))}).map(function(h,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:h.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:h.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:h.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(h.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:h.distance>0?"arrow-right":"circle",rotation:-h.angle}),"\xA0",Math.floor(h.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:S(h.position)})]},g)})})})))}},68703:function(L,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasAnalyzerContent=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.gasmixes,d=s.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function f(){return c("autoscantoggle")}return f}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return k}(),S=r.GasAnalyzerHistory=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.historyGasmixes,d=s.historyViewMode,f=s.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function u(){return c("clearhistory")}return u}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function u(){return c("modekpa")}return u}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function u(){return c("modemol")}return u}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(u,C){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:C+1+". "+(d==="mol"?u[0].total_moles.toFixed(2):u[0].pressure.toFixed(2)),onClick:function(){function b(){return c("input",{target:C+1})}return b}(),textAlign:"left",selected:C+1===f,fluid:!0})},u[0])})})]})}return k}(),y=r.GasAnalyzer=function(){function k(V,p){var i={float:"left",width:"67%"},c={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,m)}),2,{style:i}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,S)}),2,{style:c})]})})}return k}()},27546:function(L,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GasFreezer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.on,s=i.pressure,l=i.temperature,d=i.temperatureCelsius,f=i.min,u=i.max,C=i.target,b=i.targetCelsius,v=(l-f)/(u-f);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:c?"power-off":"times",content:c?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:c,onClick:function(){function h(){return p("power")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[s," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(C-f)/(u-f),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[C," \xB0K (",b," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:f})}return h}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(C),unit:"\xB0K",minValue:Math.round(f),maxValue:Math.round(u),step:5,stepPixelSize:3,onDrag:function(){function h(g,N){return p("temp",{temp:N})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function h(){return p("temp",{temp:u})}return h}()})]})]})})})})}return S}()},89124:function(L,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),m=n(3939),S=n(98595),y=r.GeneModder=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.has_seed;return(0,e.createComponentVNode)(2,S.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,V):(0,e.createComponentVNode)(2,k)]})})})}return d}(),k=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!h||!h.can_insert||h.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return b("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})},V=function(f,u){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},p=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,I;return h?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return b("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return b("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return b("eject_seed")}return T}()})}),N?I=x.name:I="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:I,onClick:function(){function T(){return b("eject_disk")}return T}()})})})]})})},i=function(f,u){var C=(0,a.useBackend)(u),b=C.act,v=C.data,h=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(h!=null&&h.can_extract),icon:"save",onClick:function(){function x(){return b("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!h.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return b("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(h!=null&&h.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return b("bulk_replace_core")}return N}()})})})]},"Core Genes")},c=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.reagent_genes,h=b.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:h})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.trait_genes,h=b.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:h})},l=function(f,u){var C=f.title,b=f.gene_set,v=f.do_we_show,h=(0,a.useBackend)(u),g=h.act,N=h.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:C,open:!0,children:v?b.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function I(){return g("extract",{id:B.id})}return I}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function I(){return g("remove",{id:B.id})}return I}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},C)}},73053:function(L,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),m=r.GenericCrewManifest=function(){function S(y,k){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return S}()},42914:function(L,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GhostHudPanel=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.security,s=i.medical,l=i.diagnostic,d=i.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,S,{label:"Medical",type:"medical",is_active:s}),(0,e.createComponentVNode)(2,S,{label:"Security",type:"security",is_active:c}),(0,e.createComponentVNode)(2,S,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,S,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=k.label,s=k.type,l=s===void 0?null:s,d=k.is_active,f=k.act_on,u=f===void 0?"hud_on":f,C=k.act_off,b=C===void 0?"hud_off":C;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:c}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return i(d?b:u,{hud_type:l})}return v}()})})]})}},25825:function(L,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.GlandDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.glands,s=c===void 0?[]:c;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return p("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return S}()},67834:function(L,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=[1,5,10,20,30,50],S=null,y=r.HandheldChemDispenser=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V)]})})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.amount,u=d.energy,C=d.maxEnergy,b=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:u,minValue:0,maxValue:C,ranges:{good:[C*.5,1/0],average:[C*.25,C*.5],bad:[-1/0,C*.25]},children:[u," / ",C," Units"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Amount",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:m.map(function(v,h){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:f===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},h)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="dispense",content:"Dispense",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="remove",content:"Remove",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:b==="isolate",content:"Isolate",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},V=function(i,c){for(var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.chemicals,u=f===void 0?[]:f,C=d.current_reagent,b=[],v=0;v<(u.length+1)%3;v++)b.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"Drink Selector":"Chemical Selector",children:[u.map(function(h,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:C===h.id,content:h.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:h.id})}return N}()},g)}),b.map(function(h,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(L,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ImplantPad=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.implant,s=i.contains_case,l=i.tag,d=(0,a.useLocalState)(k,"newTag",l),f=d[0],u=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!s,onClick:function(){function C(){return p("eject_case")}return C}()})}),children:c&&s?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:c.icon,icon_state:c.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),c.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:c.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:c.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:c.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function C(){return p("tag",{newtag:f})}return C}(),onInput:function(){function C(b,v){return u(v)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===f,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function C(){return p("tag",{newtag:f})}return C}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):s?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return S}()},25471:function(L,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=r.Instrument=function(){function i(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data;return(0,e.createComponentVNode)(2,m.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,p)]})})]})}return i}(),y=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.help;if(u)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function C(){return d("help")}return C}()})]})})})},k=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.lines,C=f.playing,b=f.repeat,v=f.maxRepeats,h=f.tempo,g=f.minTempo,N=f.maxTempo,x=f.tickLag,B=f.volume,I=f.minVolume,T=f.maxVolume,E=f.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function w(){return d("help")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function w(){return d("newsong")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function w(){return d("import")}return w}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:C,disabled:u.length===0||b<0,icon:"play",content:"Play",onClick:function(){function w(){return d("play")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!C,icon:"stop",content:"Stop",onClick:function(){function w(){return d("stop")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:b,stepPixelSize:59,onChange:function(){function w(A,O){return d("repeat",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h+x})}return w}()}),(0,a.round)(600/h)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:h<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function w(){return d("tempo",{new:h-x})}return w}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:I,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function w(A,O){return d("setvolume",{new:O})}return w}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:E?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,V)]})},V=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.allowedInstrumentNames,C=f.instrumentLoaded,b=f.instrument,v=f.canNoteShift,h=f.noteShift,g=f.noteShiftMin,N=f.noteShiftMax,x=f.sustainMode,B=f.sustainLinearDuration,I=f.sustainExponentialDropoff,T=f.legacy,E=f.sustainDropoffVolume,w=f.sustainHeldNote,A,O;return x===1?(A="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,R){return d("setlinearfalloff",{new:R/10})}return M}()})):x===2&&(A="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:I,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,R){return d("setexpfalloff",{new:R})}return M}()})),u.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:C?(0,e.createComponentVNode)(2,o.Dropdown,{options:u,selected:b,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:h,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,R){return d("setnoteshift",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:A,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:E,stepPixelSize:6,onChange:function(){function M(P,R){return d("setdropoffvolume",{new:R})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:w,icon:w?"toggle-on":"toggle-off",content:w?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},p=function(c,s){var l=(0,t.useBackend)(s),d=l.act,f=l.data,u=f.playing,C=f.lines,b=f.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!b||u,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:C.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!b,icon:b?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!b&&(C.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:C.map(function(v,h){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:h+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:u,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:h+1})}return g}()})],4),children:v},h)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(L,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ItemPixelShift=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pixel_x,s=i.pixel_y,l=i.max_shift_x,d=i.max_shift_y,f=i.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:c===-l,onClick:function(){function u(){return p("shift_left")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:c,minValue:-l,maxValue:l,onChange:function(){function u(C,b){return p("custom_x",{pixel_x:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:c===l,onClick:function(){function u(){return p("shift_right")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:s===d,onClick:function(){function u(){return p("shift_up")}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:s,minValue:-d,maxValue:d,onChange:function(){function u(C,b){return p("custom_y",{pixel_y:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:s===-d,onClick:function(){function u(){return p("shift_down")}return u}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function u(){return p("move_to_top")}return u}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:f?"good":"bad",icon:"power-off",content:f?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function u(){return p("toggle")}return u}()})})]})})]})})}return S}()},13618:function(L,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),m=n(98595),S=n(19203),y=n(51057),k=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},V={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},p=3,i=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===p&&(d+="Numpad"),k(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var f=l.keyCode-48;d+="Shift"+f}else{var u=l.key.toUpperCase();d+=V[u]||u}return d},c=r.KeyComboModal=function(){function s(l,d){var f=(0,t.useBackend)(d),u=f.act,C=f.data,b=C.init_value,v=C.large_buttons,h=C.message,g=h===void 0?"":h,N=C.title,x=C.timeout,B=(0,t.useLocalState)(d,"input",b),I=B[0],T=B[1],E=(0,t.useLocalState)(d,"binding",!0),w=E[0],A=E[1],O=function(){function R(F){if(!w){F.key===a.KEY.Enter&&u("submit",{entry:I}),F.key===a.KEY.Escape&&u("cancel");return}if(F.preventDefault(),k(F)){M(i(F)),A(!1);return}else if(F.key===a.KEY.Escape){M(b),A(!1);return}}return R}(),M=function(){function R(F){F!==I&&T(F)}return R}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,m.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,m.Window.Content,{onKeyDown:function(){function R(F){O(F)}return R}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:w,content:w&&w!==null?"Awaiting input...":""+I,width:"100%",textAlign:"center",onClick:function(){function R(){M(b),A(!0)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S.InputButtons,{input:I})})]})]})})]})}return s}()},35655:function(L,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.KeycardAuth=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!i.swiping&&!i.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!i.redAvailable,onClick:function(){function l(){return p("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return p("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!i.hasSwiped&&!i.ertreason&&i.event==="Emergency Response Team"?s=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):i.hasConfirm?s=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):i.isRemote?s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):i.hasSwiped&&(s=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[c,i.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:i.ertreason?"":"red",icon:i.ertreason?"check":"pencil-alt",content:i.ertreason?i.ertreason:"-----",disabled:i.busy,onClick:function(){function l(){return p("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:i.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:i.busy||i.hasConfirm,onClick:function(){function l(){return p("reset")}return l}()}),children:s})]})})}return S}()},40951:function(L,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=r.LaborClaimConsole=function(){function V(p,i){return(0,e.createComponentVNode)(2,m.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.can_go_home,f=l.emagged,u=l.id_inserted,C=l.id_name,b=l.id_points,v=l.id_goal,h=l.unclaimed_points,g=f?0:1,N=f?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!u&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:b/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:b+" / "+v+" "+N})||!!f&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return s("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+h+")",disabled:!u||!h,onClick:function(){function x(){return s("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:u?C:"-------------",onClick:function(){function x(){return s("handle_id")}return x}()})})]})})},k=function(p,i){var c=(0,t.useBackend)(i),s=c.data,l=s.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(L,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.LawManager=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.isAdmin,f=l.isSlaved,u=l.isMalf,C=l.isAIMalf,b=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:u?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&f)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",f,"."]}),!!(u||C)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:b===0,onClick:function(){function v(){return s("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:b===1,onClick:function(){function v(){return s("set_view",{set_view:1})}return v}()})]}),b===0&&(0,e.createComponentVNode)(2,S),b===1&&(0,e.createComponentVNode)(2,y)]})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.has_zeroth_laws,f=l.zeroth_laws,u=l.has_ion_laws,C=l.ion_laws,b=l.ion_law_nr,v=l.has_inherent_laws,h=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,I=l.isMalf,T=l.isAdmin,E=l.zeroth_law,w=l.ion_law,A=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,k,{title:"ERR_NULL_VALUE",laws:f,ctx:i}),!!u&&(0,e.createComponentVNode)(2,k,{title:b,laws:C,ctx:i}),!!v&&(0,e.createComponentVNode)(2,k,{title:"Inherent",laws:h,ctx:i}),!!g&&(0,e.createComponentVNode)(2,k,{title:"Supplied",laws:N,ctx:i}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function R(){return s("law_channel",{law_channel:P.channel})}return R}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return s("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return s("notify_laws")}return P}()})})]})}),!!I&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return s("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return s("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return s("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name+" - "+f.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function u(){return s("transfer_laws",{transfer_laws:f.ref})}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.laws.has_ion_laws>0&&f.laws.ion_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_zeroth_laws>0&&f.laws.zeroth_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_inherent_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)}),f.laws.has_supplied_laws>0&&f.laws.inherent_laws.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.index,children:u.law},u.index)})]})},f.name)})})},k=function(p,i){var c=(0,a.useBackend)(p.ctx),s=c.act,l=c.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:p.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),p.laws.map(function(f){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:f.state?"Yes":"No",selected:f.state,onClick:function(){function u(){return s("state_law",{ref:f.ref,state_law:f.state?0:1})}return u}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function u(){return s("edit_law",{edit_law:f.ref})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function u(){return s("delete_law",{delete_law:f.ref})}return u}()})],4)]})]},f.law)})]})})}},90447:function(L,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),m=n(72253),S=n(92986),y=n(98595),k=r.ListInputModal=function(){function i(c,s){var l=(0,m.useBackend)(s),d=l.act,f=l.data,u=f.items,C=u===void 0?[]:u,b=f.message,v=b===void 0?"":b,h=f.init_value,g=f.timeout,N=f.title,x=(0,m.useLocalState)(s,"selected",C.indexOf(h)),B=x[0],I=x[1],T=(0,m.useLocalState)(s,"searchBarVisible",C.length>10),E=T[0],w=T[1],A=(0,m.useLocalState)(s,"searchQuery",""),O=A[0],M=A[1],P=function(){function oe(X){var Ce=$.length-1;if(X===S.KEY_DOWN)if(B===null||B===Ce){var me;I(0),(me=document.getElementById("0"))==null||me.scrollIntoView()}else{var ne;I(B+1),(ne=document.getElementById((B+1).toString()))==null||ne.scrollIntoView()}else if(X===S.KEY_UP)if(B===null||B===0){var ce;I(Ce),(ce=document.getElementById(Ce.toString()))==null||ce.scrollIntoView()}else{var q;I(B-1),(q=document.getElementById((B-1).toString()))==null||q.scrollIntoView()}}return oe}(),R=function(){function oe(X){X!==B&&I(X)}return oe}(),F=function(){function oe(){w(!1),w(!0)}return oe}(),_=function(){function oe(X){var Ce=String.fromCharCode(X),me=C.find(function(q){return q==null?void 0:q.toLowerCase().startsWith(Ce==null?void 0:Ce.toLowerCase())});if(me){var ne,ce=C.indexOf(me);I(ce),(ne=document.getElementById(ce.toString()))==null||ne.scrollIntoView()}}return oe}(),U=function(){function oe(X){var Ce;X!==O&&(M(X),I(0),(Ce=document.getElementById("0"))==null||Ce.scrollIntoView())}return oe}(),W=function(){function oe(){w(!E),M("")}return oe}(),$=C.filter(function(oe){return oe==null?void 0:oe.toLowerCase().includes(O.toLowerCase())}),G=330+Math.ceil(v.length/3);return E||setTimeout(function(){var oe;return(oe=document.getElementById(B.toString()))==null?void 0:oe.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:G,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function oe(X){var Ce=window.event?X.which:X.keyCode;(Ce===S.KEY_DOWN||Ce===S.KEY_UP)&&(X.preventDefault(),P(Ce)),Ce===S.KEY_ENTER&&(X.preventDefault(),d("submit",{entry:$[B]})),!E&&Ce>=S.KEY_A&&Ce<=S.KEY_Z&&(X.preventDefault(),_(Ce)),Ce===S.KEY_ESCAPE&&(X.preventDefault(),d("cancel"))}return oe}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:E?"search":"font",selected:!0,tooltip:E?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function oe(){return W()}return oe}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,V,{filteredItems:$,onClick:R,onFocusSearch:F,searchBarVisible:E,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:E&&(0,e.createComponentVNode)(2,p,{filteredItems:$,onSearch:U,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:$[B]})})]})})})]})}return i}(),V=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onClick,C=c.onFocusSearch,b=c.searchBarVisible,v=c.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:f.map(function(h,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return u(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:f[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;b&&B>=S.KEY_A&&B<=S.KEY_Z&&(x.preventDefault(),C())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:h.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},p=function(c,s){var l=(0,m.useBackend)(s),d=l.act,f=c.filteredItems,u=c.onSearch,C=c.searchQuery,b=c.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(h){h.preventDefault(),d("submit",{entry:f[b]})}return v}(),onInput:function(){function v(h,g){return u(g)}return v}(),placeholder:"Search...",value:C})}},26826:function(L,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S={Default:function(){function c(s,l){return s.gear.gear_tier-l.gear.gear_tier}return c}(),Alphabetical:function(){function c(s,l){return s.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return c}(),Cost:function(){function c(s,l){return s.gear.cost-l.gear.cost}return c}()},y=r.Loadout=function(){function c(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=(0,t.useLocalState)(l,"search",!1),b=C[0],v=C[1],h=(0,t.useLocalState)(l,"searchText",""),g=h[0],N=h[1],x=(0,t.useLocalState)(l,"category",Object.keys(u.gears)[0]),B=x[0],I=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,m.Window,{width:975,height:650,children:[E&&(0,e.createComponentVNode)(2,i,{tweakedGear:E,setTweakedGear:w}),(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k,{category:B,setCategory:I})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,p,{setTweakedGear:w})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,V,{category:B,search:b,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return c}(),k=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.category,b=s.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(u.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===C,style:{"white-space":"nowrap"},onClick:function(){function h(){return b(v)}return h}(),children:v},v)})})},V=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=u.user_tier,b=u.gear_slots,v=u.max_gear_slots,h=s.category,g=s.search,N=s.setSearch,x=s.searchText,B=s.setSearchText,I=(0,t.useLocalState)(l,"sortType","Default"),T=I[0],E=I[1],w=(0,t.useLocalState)(l,"sortReverse",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(R){return R.name}),P;return x.length>2?P=Object.entries(u.gears).reduce(function(R,F){var _=F[0],U=F[1];return R.concat(Object.entries(U).map(function(W){var $=W[0],G=W[1];return{key:$,gear:G}}))},[]).filter(function(R){var F=R.gear;return M(F)}):P=Object.entries(u.gears[h]).map(function(R){var F=R[0],_=R[1];return{key:F,gear:_}}),P.sort(S[T]),A&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:h,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(S),onSelected:function(){function R(F){return E(F)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:A?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:A?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function R(){return O(!A)}return R}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function R(F){return B(F.target.value)}return R}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function R(){N(!g),B("")}return R}()})})]}),children:P.map(function(R){var F=R.key,_=R.gear,U=12,W=Object.keys(u.selected_gears).includes(F),$=(_.cost===1,_.cost+" Points"),G=(0,e.createComponentVNode)(2,o.Box,{children:[_.name.length>U&&(0,e.createComponentVNode)(2,o.Box,{children:_.name}),_.gear_tier>C&&(0,e.createComponentVNode)(2,o.Box,{mt:_.name.length>U&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),oe=(0,e.createFragment)([_.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:_.allowed_roles.map(function(Ce){return(0,e.createComponentVNode)(2,o.Box,{children:Ce},Ce)})}),tooltipPosition:"left"}),Object.entries(_.tweaks).map(function(Ce){var me=Ce[0],ne=Ce[1];return ne.map(function(ce){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:ce.icon,tooltip:ce.tooltip,tooltipPosition:"top"},me)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:_.desc,tooltipPosition:"top"})],0),X=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:_.gear_tier>0&&"Tier "+_.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:$})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:_.icon,dmIconState:_.icon_state,tooltip:(_.name.length>U||_.gear_tier>0)&&G,tooltipPosition:"bottom",selected:W,disabled:_.gear_tier>C||b+_.cost>v&&!W,buttons:oe,buttonsAlt:X,onClick:function(){function Ce(){return f("toggle_gear",{gear:_.index_name})}return Ce}(),children:_.name},F)})})},p=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.setTweakedGear,b=Object.entries(u.gears).reduce(function(v,h){var g=h[0],N=h[1],x=Object.entries(N).filter(function(B){var I=B[0];return Object.keys(u.selected_gears).includes(I)}).map(function(B){var I=B[0],T=B[1];return Object.assign({key:I},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return f("clear_loadout")}return v}()}),children:b.map(function(v){var h=u.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:h.icon,dmIcon:h.icon_file?h.icon_file:v.icon,dmIconState:h.icon_state?h.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return C(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return f("toggle_gear",{gear:v.index_name})}return g}()})],0),children:h.name?h.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:u.gear_slots,maxValue:u.max_gear_slots,ranges:{bad:[u.max_gear_slots,1/0],average:[u.max_gear_slots*.66,u.max_gear_slots],good:[0,u.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",u.gear_slots,"/",u.max_gear_slots]})})})})]})},i=function(s,l){var d=(0,t.useBackend)(l),f=d.act,u=d.data,C=s.tweakedGear,b=s.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:C.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return b("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(C.tweaks).map(function(v){var h=v[0],g=v[1];return g.map(function(N){var x=u.selected_gears[C.key][h];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return f("set_tweak",{gear:C.index_name,tweak:h})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},h)})})})})})})}},72106:function(L,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MechBayConsole=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.recharge_port,s=c&&c.mech,l=s&&s.cell,d=s&&s.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function f(){return p("reconnect")}return f}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:s.health/s.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!s&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return S}()},7466:function(L,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=n(25328),y=r.MechaControlConsole=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.beacons,d=s.stored_data;return d.length?(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function f(){return c("clear_log")}return f}()}),children:d.map(function(f){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",f.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,S.decodeHtmlEntities)(f.message)})]},f.time)})})})}):(0,e.createComponentVNode)(2,m.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:l.length&&l.map(function(f){return(0,e.createComponentVNode)(2,o.Section,{title:f.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function u(){return c("send_message",{mt:f.uid})}return u}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function u(){return c("get_log",{mt:f.uid})}return u}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function u(){return c("shock",{mt:f.uid})}return u}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.maxHealth*.75,1/0],average:[f.maxHealth*.5,f.maxHealth*.75],bad:[-1/0,f.maxHealth*.5]},value:f.health,maxValue:f.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:f.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[f.cellMaxCharge*.75,1/0],average:[f.cellMaxCharge*.5,f.cellMaxCharge*.75],bad:[-1/0,f.cellMaxCharge*.5]},value:f.cellCharge,maxValue:f.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[f.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:f.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,S.toTitleCase)(f.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:f.active||"None"}),f.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[f.cargoMax*.75,1/0],average:[f.cargoMax*.5,f.cargoMax*.75],good:[-1/0,f.cargoMax*.5]},value:f.cargoUsed,maxValue:f.cargoMax})})||null]})},f.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return k}()},79625:function(L,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(3939),S=n(98595),y=n(321),k=n(5485),V=n(22091),p={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},i={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},c=function(T,E){(0,m.modalOpen)(T,"edit",{field:E.edit,value:E.value})},s=function(T,E){var w=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:w.name||"Virus",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Number of stages",children:w.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Spread",children:[w.spread_text," Transmission"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Possible cure",children:w.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Notes",children:w.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Severity",color:p[w.severity],children:w.severity})]})})})},l=r.MedicalRecords=function(){function I(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.loginState,M=A.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,f):M===4?P=(0,e.createComponentVNode)(2,u):M===5?P=(0,e.createComponentVNode)(2,h):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,S.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return I}(),d=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.records,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Manage Records",icon:"wrench",ml:"0.25rem",onClick:function(){function X(){return A("screen",{screen:3})}return X}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"Search by Name, ID, Physical Status, or Mental Status",onInput:function(){function X(Ce,me){return F(me)}return X}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"Patient Status"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"Mental Status"})]}),M.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.id+"|"+X.rank+"|"+X.p_stat+"|"+X.m_stat})).sort(function(X,Ce){var me=G?1:-1;return X[U].localeCompare(Ce[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+i[X.p_stat],onClick:function(){function Ce(){return A("view_record",{view_record:X.ref})}return Ce}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.m_stat})]},X.id)})]})})})],4)},f=function(T,E){var w=(0,t.useBackend)(E),A=w.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"Backup to Disk",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"Delete All Medical Records",onClick:function(){function O(){return A("del_all")}return O}()})})]})})},u=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical,P=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"General Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"Print Record",ml:"0.5rem",onClick:function(){function R(){return A("print_record")}return R}()}),children:(0,e.createComponentVNode)(2,C)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function R(){return A("new")}return R}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Medical records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Medical Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"Delete Medical Record",onClick:function(){function R(){return A("del_r")}return R}()}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,v)],4)],0)},C=function(T,E){var w=(0,t.useBackend)(E),A=w.data,O=A.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function R(){return c(E,M)}return R}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",P+1]},P)})]})},b=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"Medical records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,R){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function F(){return c(E,P)}return F}()})]},R)})})})})},v=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function P(){return(0,m.modalOpen)(E,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):M.comments.map(function(P,R){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function F(){return A("del_c",{del_c:R+1})}return F}()})]},R)})})})},h=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.virus,P=(0,t.useLocalState)(E,"searchText",""),R=P[0],F=P[1],_=(0,t.useLocalState)(E,"sortId2","name"),U=_[0],W=_[1],$=(0,t.useLocalState)(E,"sortOrder2",!0),G=$[0],oe=$[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"Search by Name, Max Stages, or Severity",onInput:function(){function X(Ce,me){return F(me)}return X}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"Max Stages"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"Severity"})]}),M.filter((0,a.createSearch)(R,function(X){return X.name+"|"+X.max_stages+"|"+X.severity})).sort(function(X,Ce){var me=G?1:-1;return X[U].localeCompare(Ce[U])*me}).map(function(X){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+X.severity,onClick:function(){function Ce(){return A("vir",{vir:X.D})}return Ce}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",X.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:X.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:p[X.severity],children:X.severity})]},X.id)})]})})})})],4)},g=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"There are no Medibots."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Area"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Chemicals"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"Unknown"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Online"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"Offline"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"Reservoir: "+P.total_volume+"/"+P.maximum_volume:"Using internal synthesizer"})]},P.id)})]})})})},N=function(T,E){var w=(0,t.useLocalState)(E,"sortId","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,E){var w=(0,t.useLocalState)(E,"sortId2","name"),A=w[0],O=w[1],M=(0,t.useLocalState)(E,"sortOrder2",!0),P=M[0],R=M[1],F=T.id,_=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:A!==F&&"transparent",onClick:function(){function U(){A===F?R(!P):(O(F),R(!0))}return U}(),children:[_,A===F&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,E){var w=(0,t.useBackend)(E),A=w.act,O=w.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function R(){A("screen",{screen:2})}return R}(),children:"List Records"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function R(){A("screen",{screen:5})}return R}(),children:"Virus Database"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function R(){return A("screen",{screen:6})}return R}(),children:"Medibot Tracking"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"Record Maintenance"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["Record: ",P.fields[0].value]})]})})};(0,m.modalRegisterBodyOverride)("virus",s)},52306:function(L,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Mimicking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:s.selected,onClick:function(){function l(){return p("Choose",{id:s.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return p("Delete",{id:s.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",s.voice]})},s.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function s(){return p("Add")}return s}()})]})})})})}return S}()},66238:function(L,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Minesweeper=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.matrix,s=i.showMessage,l=i.tokens,d=i.uiWidth,f={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var u=function(){function g(N,x,B){N.button!==0&&N.button!==2||p("Square",{X:x,Y:B,mode:N.button===2?h[b]:b})}return g}(),C=(0,a.useLocalState)(k,"mode","bomb"),b=C[0],v=C[1],h={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:b==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:b==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return p("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(c).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(c[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:c[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:c[g][N].open?c[g][N].bomb?"bomb":"":c[g][N].flag?"flag":"",textColor:c[g][N].open?c[g][N].bomb?"black":f[c[g][N].around]:c[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return u(B,g,N)}return x}(),children:c[g][N].open&&!c[g][N].bomb&&c[g][N].around?c[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),s]})]})})})})}return S}()},21385:function(L,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.MiniGamesMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[],s=i.thunderdome_eligible,l=i.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:s?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:s?"good":"bad",onClick:function(){function d(){return p("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return p("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function f(){return p("jump",{ID:d.uids})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function f(){return p("spawn",{ID:d.uids})}return f}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return S}()},87684:function(L,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=["title","items"];function y(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var k={Alphabetical:function(){function l(d,f){return d-f}return l}(),Availability:function(){function l(d,f){return-(d.affordable-f.affordable)}return l}(),Price:function(){function l(d,f){return d.price-f.price}return l}()},V=r.MiningVendor=function(){function l(d,f){return(0,e.createComponentVNode)(2,m.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,i)]})})})}return l}(),p=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.has_id,h=b.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",h.name,".",(0,e.createVNode)(1,"br"),"You have ",h.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return C("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},i=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.has_id,h=b.id,g=b.items,N=(0,t.useLocalState)(f,"search",""),x=N[0],B=N[1],I=(0,t.useLocalState)(f,"sort","Alphabetical"),T=I[0],E=I[1],w=(0,t.useLocalState)(f,"descending",!1),A=w[0],O=w[1],M=(0,a.createSearch)(x,function(F){return F[0]}),P=!1,R=Object.entries(g).map(function(F,_){var U=Object.entries(F[1]).filter(M).map(function(W){return W[1].affordable=v&&h.points>=W[1].price,W[1]}).sort(k[T]);if(U.length!==0)return A&&(U=U.reverse()),P=!0,(0,e.createComponentVNode)(2,s,{title:F[0],items:U},F[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?R:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},c=function(d,f){var u=(0,t.useLocalState)(f,"search",""),C=u[0],b=u[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function I(T,E){return b(E)}return I}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(k),width:"100%",onSelected:function(){function I(T){return g(T)}return I}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function I(){return B(!x)}return I}()})})]})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=d.title,h=d.items,g=y(d,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!b.has_id||b.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:R?(0,e.createComponentVNode)(2,s,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),i=function(B,I){var T=B.iconName,E=B.machineName,w=B.noMachine,A=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=w?A:E||"Unknown machine",R=P===A,F=P===A||P===M;return w&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!w&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:R?"label":"silver",fontSize:"1.1rem",bold:!0,italic:F,children:P})})]})},c=function(B,I){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},s=function(B,I){var T=B.text,E=B.defaultText,w=V(B,S);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},w,{children:T}))):(0,e.createComponentVNode)(2,c,{text:E})},l=function(B,I){var T=B.noConfirm,E=T===void 0?!1:T,w=V(B,y);return E?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},w))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},w)))},d=function(B,I){var T=B.label,E=B.wrapContent,w=B.noWrapContent,A=B.compactLabel,O=A===void 0?!1:A,M=V(B,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:E}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:w})]})))},f=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},u=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},C=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return E("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!A,onClick:function(){function O(){return E("clear_tag")}return O}()})],4)})},b=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.frequency,O=w.minFrequency,M=w.maxFrequency,P=w.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:A/10,format:function(){function R(F){return(0,a.toFixed)(F,1)}return R}(),onChange:function(){function R(F,_){return E("set_frequency",{frequency:_*10})}return R}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function R(){return E("reset_frequency")}return R}()})],4)})},v=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_tag")}return O}()}),children:A.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return E("remove_tag",{tag_index:M})}return P}()})})})},M)})})},h=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.bolts,O=w.pressureCheck,M=w.temperatureCheck,P=w.oxygenCheck,R=w.toxinsCheck,F=w.nitrogenCheck,_=w.carbonDioxideCheck,U=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:R,label:"Monitor plasma concentration"},{bitflag:16,checked:F,label:"Monitor nitrogen concentration"},{bitflag:32,checked:_,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:A?"check":"times",selected:A,content:A?"YES":"NO",onClick:function(){function W(){return E("toggle_bolts")}return W}()})}),U.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function $(){return E("toggle_flag",{bitflag:W.bitflag})}return $}()})},W.bitflag)})],0)},g=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return E("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(A).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),A[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:A[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return E("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!A[O],onClick:function(){function M(){return E("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return E("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,I){var T=(0,t.useBackend)(I),E=T.act,w=T.data,A=w.inputTag,O=w.outputTag,M=w.bufferTag,P=w.bufferFitsInput,R=w.bufferFitsOutput,F=w.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:A,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!A,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:A&&M===A,disabled:!P,onClick:function(){function _(){return E("link_input")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!A,onClick:function(){function _(){return E("unlink_input")}return _}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,s,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:F||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!R,onClick:function(){function _(){return E("link_output")}return _}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function _(){return E("unlink_output")}return _}()})],4)})],4)}},64713:function(L,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(76910),S=n(98595),y=n(3939),k=n(22091),V=["icon","iconSpin","selected","security","onClick","title","children"],p=["name"];function i(B,I){if(B==null)return{};var T={};for(var E in B)if({}.hasOwnProperty.call(B,E)){if(I.includes(E))continue;T[E]=B[E]}return T}var c=128,s=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.is_security,M=A.is_admin,P=A.is_silent,R=A.is_printing,F=A.screen,_=A.channels,U=A.channel_idx,W=U===void 0?-1:U,$=(0,t.useLocalState)(T,"menuOpen",!1),G=$[0],oe=$[1],X=(0,t.useLocalState)(T,"viewingPhoto",""),Ce=X[0],me=X[1],ne=(0,t.useLocalState)(T,"censorMode",!1),ce=ne[0],q=ne[1],ae;F===0||F===2?ae=(0,e.createComponentVNode)(2,u):F===1&&(ae=(0,e.createComponentVNode)(2,C));var J=_.reduce(function(Y,Q){return Y+Q.unread},0);return(0,e.createComponentVNode)(2,S.Window,{theme:O&&"security",width:800,height:600,children:[Ce?(0,e.createComponentVNode)(2,h):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",G&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,f,{icon:"bars",title:"Toggle Menu",onClick:function(){function Y(){return oe(!G)}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"newspaper",title:"Headlines",selected:F===0,onClick:function(){function Y(){return w("headlines")}return Y}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,f,{icon:"briefcase",title:"Job Openings",selected:F===1,onClick:function(){function Y(){return w("jobs")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:_.map(function(Y){return(0,e.createComponentVNode)(2,f,{icon:Y.icon,title:Y.name,selected:F===2&&_[W-1]===Y,onClick:function(){function Q(){return w("channel",{uid:Y.uid})}return Q}(),children:Y.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:Y.unread>=10?"9+":Y.unread})},Y)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,f,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"wanted_notice")}return Y}()}),(0,e.createComponentVNode)(2,f,{security:!0,icon:ce?"minus-square":"minus-square-o",title:"Censor Mode: "+(ce?"On":"Off"),mb:"0.5rem",onClick:function(){function Y(){return q(!ce)}return Y}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,f,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_story")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:"plus-circle",title:"New Channel",onClick:function(){function Y(){return(0,y.modalOpen)(T,"create_channel")}return Y}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,f,{icon:R?"spinner":"print",iconSpin:R,title:R?"Printing...":"Print Newspaper",onClick:function(){function Y(){return w("print_newspaper")}return Y}()}),(0,e.createComponentVNode)(2,f,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function Y(){return w("toggle_mute")}return Y}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,k.TemporaryNotice),ae]})]})})]})}return B}(),f=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=I.icon,O=A===void 0?"":A,M=I.iconSpin,P=I.selected,R=P===void 0?!1:P,F=I.security,_=F===void 0?!1:F,U=I.onClick,W=I.title,$=I.children,G=i(I,V);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",R&&"Newscaster__menuButton--selected",_&&"Newscaster__menuButton--security"]),onClick:U},G,{children:[R&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),$]})))},u=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.screen,M=A.is_admin,P=A.channel_idx,R=A.channel_can_manage,F=A.channels,_=A.stories,U=A.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"censorMode",!1),X=oe[0],Ce=oe[1],me=O===2&&P>-1?F[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!U&&(0,e.createComponentVNode)(2,b,{story:U,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:me?me.icon:"newspaper",mr:"0.5rem"}),me?me.name:"Headlines"],0),children:_.length>0?_.slice().reverse().map(function(ne){return!$.includes(ne.uid)&&ne.body.length+3>c?Object.assign({},ne,{body_short:ne.body.substr(0,c-4)+"..."}):ne}).map(function(ne,ce){return(0,e.createComponentVNode)(2,b,{story:ne},ce)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!me&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([X&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!me.admin&&!M,selected:me.censored,icon:me.censored?"comment-slash":"comment",content:me.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function ne(){return w("censor_channel",{uid:me.uid})}return ne}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!R,icon:"cog",content:"Manage",onClick:function(){function ne(){return(0,y.modalOpen)(T,"manage_channel",{uid:me.uid})}return ne}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:me.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:me.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:me.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),_.reduce(function(ne,ce){return ne+ce.view_count},0).toLocaleString()]})]})})]})},C=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.jobs,M=A.wanted,P=Object.entries(O).reduce(function(R,F){var _=F[0],U=F[1];return R+U.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,b,{story:M,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?s.map(function(R){return Object.assign({},l[R],{id:R,jobs:O[R]})}).filter(function(R){return!!R&&R.jobs.length>0}).map(function(R){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+R.id]),title:R.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:R.fluff_text}),children:R.jobs.map(function(F){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!F.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",F.title]},F.title)})},R.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},b=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=I.story,M=I.wanted,P=M===void 0?!1:M,R=(0,t.useLocalState)(T,"fullStories",[]),F=R[0],_=R[1],U=(0,t.useLocalState)(T,"censorMode",!1),W=U[0],$=U[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function G(){return w("censor_story",{uid:O.uid})}return G}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,m.timeAgo)(O.publish_time,A.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function(G,oe){return(0,e.createComponentVNode)(2,o.Box,{children:G||(0,e.createVNode)(1,"br")},oe)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function G(){return _([].concat(F,[O.uid]))}return G}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(I,T){var E=I.name,w=i(I,p),A=(0,t.useLocalState)(T,"viewingPhoto",""),O=A[0],M=A[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:E,onClick:function(){function P(){return M(E)}return P}()},w)))},h=function(I,T){var E=(0,t.useLocalState)(T,"viewingPhoto",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:w}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return A("")}return O}()})]})},g=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=!!I.args.uid&&A.channels.filter(function(te){return te.uid===I.args.uid}).pop();if(I.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=I.id==="manage_channel",P=!!I.args.is_admin,R=I.args.scanned_user,F=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),X=oe[0],Ce=oe[1],me=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),ne=me[0],ce=me[1],q=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function te(se,ye){return U(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:X,onInput:function(){function te(se,ye){return Ce(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:ne,width:"35%",mr:"0.5rem",onInput:function(){function te(se,ye){return ce(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:ne,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,I.id,"",{author:_,name:$.substr(0,49),description:X.substr(0,128),icon:ne,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.channels,P=A.channel_idx,R=P===void 0?-1:P,F=!!I.args.is_admin,_=I.args.scanned_user,U=M.slice().sort(function(te,se){if(R<0)return 0;var ye=M[R-1];if(ye.uid===te.uid)return-1;if(ye.uid===se.uid)return 1}).filter(function(te){return F||!te.frozen&&(te.author===_||!!te.public)}),W=(0,t.useLocalState)(T,"author",_||"Unknown"),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"channel",U.length>0?U[0].name:""),X=oe[0],Ce=oe[1],me=(0,t.useLocalState)(T,"title",""),ne=me[0],ce=me[1],q=(0,t.useLocalState)(T,"body",""),ae=q[0],J=q[1],Y=(0,t.useLocalState)(T,"adminLocked",!1),Q=Y[0],Z=Y[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!F,width:"100%",value:$,onInput:function(){function te(se,ye){return G(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:X,options:U.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(se){return Ce(se)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:ne,onInput:function(){function te(se,ye){return ce(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(se,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return w(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:ne,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,se){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},se)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),F&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return Z(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:$.trim().length===0||X.trim().length===0||ne.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:$,channel:X,title:ne.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(I,T){var E=(0,t.useBackend)(T),w=E.act,A=E.data,O=A.photo,M=A.wanted,P=!!I.args.is_admin,R=I.args.scanned_user,F=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||R||"Unknown"),_=F[0],U=F[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),$=W[0],G=W[1],oe=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),X=oe[0],Ce=oe[1],me=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),ne=me[0],ce=me[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:_,onInput:function(){function q(ae,J){return U(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:$,maxLength:"128",onInput:function(){function q(ae,J){return G(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:X,maxLength:"512",rows:"4",onInput:function(){function q(ae,J){return Ce(J)}return q}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function q(){return w(O?"eject_photo":"attach_photo")}return q}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:ne,icon:ne?"lock":"lock-open",content:ne?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function q(){return ce(!ne)}return q}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function q(){w("clear_wanted_notice"),(0,y.modalClose)(T)}return q}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:_.trim().length===0||$.trim().length===0||X.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function q(){(0,y.modalAnswer)(T,I.id,"",{author:_,name:$.substr(0,127),description:X.substr(0,511),admin_locked:ne?1:0})}return q}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(L,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),m=n(98595),S=r.NinjaBloodScan=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data;return(0,e.createComponentVNode)(2,m.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k)]})})}return V}(),y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.vialIcons,f=l.noVialIcon,u=l.bloodOwnerNames,C=l.bloodOwnerSpecies,b=l.bloodOwnerTypes,v=l.blockButtons,h=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,I){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:I?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:u[I]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[h[I]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return s("vial_out",{button_num:I+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[I]||f),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:u[I]||" - ",content:"\u0420\u0430\u0441\u0430: "+(C[I]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(b[I]||" - ")),position:"bottom"})]})})]},I)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return s("scan_blood")}return B}()})})]})})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(L,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NinjaMindScan=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.occupantIcon,l=c.occupant_name,d=c.occupant_health,f=c.scanned_occupants,u=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+s,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("scan_occupant")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:u,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("go_out")}return C}()}),(0,e.createComponentVNode)(2,t.Button,{className:u===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:u,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function C(){return i("teleport_out")}return C}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:f.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:C.scanned_occupant})})},C.scanned_occupant)})})})})]})}},41166:function(L,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.NuclearBomb=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;return i.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.authdisk?"eject":"id-card",selected:i.authdisk,content:i.diskname?i.diskname:"-----",tooltip:i.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function c(){return p("auth")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!i.authdisk,selected:i.authcode,content:i.codemsg,onClick:function(){function c(){return p("code")}return c}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.anchored?"check":"times",selected:i.anchored,disabled:!i.authfull,content:i.anchored?"YES":"NO",onClick:function(){function c(){return p("toggle_anchor")}return c}()})}),i.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:i.time,disabled:!i.authfull,tooltip:"Set Timer",onClick:function(){function c(){return p("set_time")}return c}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:i.timer?"red":"",children:i.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.safety?"check":"times",selected:i.safety,disabled:!i.authfull,content:i.safety?"ON":"OFF",tooltip:i.safety?"Disable Safety":"Enable Safety",onClick:function(){function c(){return p("toggle_safety")}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(i.timer,"bomb"),disabled:i.safety||!i.authfull,color:"red",content:i.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function c(){return p("toggle_armed")}return c}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function c(){return p("deploy")}return c}()})})})})}return S}()},52416:function(L,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),m=n(72253),S=n(36036),y=n(98595),k=r.NumberInputModal=function(){function p(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.init_value,u=d.large_buttons,C=d.message,b=C===void 0?"":C,v=d.timeout,h=d.title,g=(0,m.useLocalState)(c,"input",f),N=g[0],x=g[1],B=function(){function E(w){w!==N&&x(w)}return E}(),I=function(){function E(w){w!==N&&x(w)}return E}(),T=140+Math.max(Math.ceil(b.length/3),b.length>0&&u?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:h,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function E(w){var A=window.event?w.which:w.keyCode;A===o.KEY_ENTER&&l("submit",{entry:N}),A===o.KEY_ESCAPE&&l("cancel")}return E}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:b})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,V,{input:N,onClick:I,onChange:B})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return p}(),V=function(i,c){var s=(0,m.useBackend)(c),l=s.act,d=s.data,f=d.min_value,u=d.max_value,C=d.init_value,b=d.round_value,v=i.input,h=i.onClick,g=i.onChange,N=Math.round(v!==f?Math.max(v/2,f):u/2),x=v===f&&f>0||v===1;return(0,e.createComponentVNode)(2,S.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===f,icon:"angle-double-left",onClick:function(){function B(){return h(f)}return B}(),tooltip:v===f?"Min":"Min ("+f+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,S.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!b,minValue:f,maxValue:u,onChange:function(){function B(I,T){return g(T)}return B}(),onEnter:function(){function B(I,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===u,icon:"angle-double-right",onClick:function(){function B(){return h(u)}return B}(),tooltip:v===u?"Max":"Max ("+u+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return h(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Button,{disabled:v===C,icon:"redo",onClick:function(){function B(){return h(C)}return B}(),tooltip:C?"Reset ("+C+")":"Reset"})})]})}},1218:function(L,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),m=n(36036),S=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.OperatingComputer=function(){function l(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.hasOccupant,h=b.choice,g;return h?g=(0,e.createComponentVNode)(2,s):g=v?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Tabs,{children:[(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!h,icon:"user",onClick:function(){function N(){return C("choiceOff")}return N}(),children:"Patient"}),(0,e.createComponentVNode)(2,m.Tabs.Tab,{selected:!!h,icon:"cog",onClick:function(){function N(){return C("choiceOn")}return N}(),children:"Options"})]})}),(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),i=function(d,f){var u=(0,t.useBackend)(f),C=u.data,b=C.occupant;return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m.Section,{fill:!0,title:"Patient",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Name",children:b.name}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Status",color:S[b.stat][0],children:S[b.stat][1]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxHealth,value:b.health/b.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,h){return(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:v[0]+" Damage",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:"100",value:b[v[1]]/100,ranges:k,children:(0,a.round)(b[v[1]])},h)},h)}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.maxTemp,value:b.bodyTemperature/b.maxTemp,color:V[b.temperatureSuitability+3],children:[(0,a.round)(b.btCelsius),"\xB0C, ",(0,a.round)(b.btFaren),"\xB0F"]})}),!!b.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,m.ProgressBar,{min:"0",max:b.bloodMax,value:b.bloodLevel/b.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[b.bloodPercent,"%, ",b.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Pulse",children:[b.pulse," BPM"]})],4)]})})}),(0,e.createComponentVNode)(2,m.Stack.Item,{children:(0,e.createComponentVNode)(2,m.Section,{title:"Current Procedures",level:"2",children:b.inSurgery?b.surgeries.map(function(v){var h=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,m.Section,{title:h,level:"4",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Procedure",children:g}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Next Step",children:N})]})},h)}):(0,e.createComponentVNode)(2,m.Box,{color:"label",children:"No procedure ongoing."})})})]})},c=function(){return(0,e.createComponentVNode)(2,m.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,m.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,m.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No patient detected."]})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.verbose,h=b.health,g=b.healthAlarm,N=b.oxy,x=b.oxyAlarm,B=b.crit;return(0,e.createComponentVNode)(2,m.LabeledList,{children:[(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Loudspeaker",children:(0,e.createComponentVNode)(2,m.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"On":"Off",onClick:function(){function I(){return C(v?"verboseOff":"verboseOn")}return I}()})}),(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 I(){return C(h?"healthOff":"healthOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Health Announcer Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function I(T,E){return C("health_adj",{new:E})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm",children:(0,e.createComponentVNode)(2,m.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"On":"Off",onClick:function(){function I(){return C(N?"oxyOff":"oxyOn")}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Oxygen Alarm Threshold",children:(0,e.createComponentVNode)(2,m.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function I(T,E){return C("oxy_adj",{new:E})}return I}()})}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Critical Alert",children:(0,e.createComponentVNode)(2,m.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"On":"Off",onClick:function(){function I(){return C(B?"critOff":"critOn")}return I}()})})]})}},46892:function(L,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);function S(f,u){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=y(f))||u&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(f,u){if(f){if(typeof f=="string")return k(f,u);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?k(f,u):void 0}}function k(f,u){(u==null||u>f.length)&&(u=f.length);for(var C=0,b=Array(u);CC},c=function(u,C){var b=u.name,v=C.name;if(!b||!v)return 0;var h=b.match(V),g=v.match(V);if(h&&g&&b.replace(V,"")===v.replace(V,"")){var N=parseInt(h[1],10),x=parseInt(g[1],10);return N-x}return i(b,v)},s=function(u,C){var b=(0,t.useBackend)(C),v=b.act,h=u.searchText,g=u.source,N=u.title,x=g.filter(p(h));return x.sort(c),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function I(){return v("orbit",{ref:B.ref})}return I}()},B.name)})})},l=function(u,C){var b=(0,t.useBackend)(C),v=b.act,h=u.color,g=u.thing;return(0,e.createComponentVNode)(2,o.Button,{color:h,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function f(u,C){for(var b=(0,t.useBackend)(C),v=b.act,h=b.data,g=h.alive,N=h.antagonists,x=h.highlights,B=h.auto_observe,I=h.dead,T=h.ghosts,E=h.misc,w=h.npcs,A=(0,t.useLocalState)(C,"searchText",""),O=A[0],M=A[1],P={},R=S(N),F;!(F=R()).done;){var _=F.value;P[_.antag]===void 0&&(P[_.antag]=[]),P[_.antag].push(_)}var U=Object.entries(P);U.sort(function($,G){return i($[0],G[0])});var W=function(){function $(G){for(var oe=0,X=[U.map(function(ne){var ce=ne[0],q=ne[1];return q}),x,g,T,I,w,E];oe0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:U.map(function($){var G=$[0],oe=$[1];return(0,e.createComponentVNode)(2,o.Section,{title:G,level:2,children:oe.filter(p(O)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:X},X.name)})},G)})}),x.length>0&&(0,e.createComponentVNode)(2,s,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"good",thing:$},$.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(p(O)).sort(c).map(function($){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:$},$.name)})}),(0,e.createComponentVNode)(2,s,{title:"Dead",source:I,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"NPCs",source:w,searchText:O}),(0,e.createComponentVNode)(2,s,{title:"Misc",source:E,searchText:O})]})})}return f}()},15421:function(L,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=n(9394);function y(u){if(u==null)throw new TypeError("Cannot destructure "+u)}var k=(0,S.createLogger)("OreRedemption"),V=function(C){return C.toLocaleString("en-US")+" pts"},p=r.OreRedemption=function(){function u(C,b){return(0,e.createComponentVNode)(2,m.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,i,{height:"100%"})}),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,I=Object.assign({},(y(C),C));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},I,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return h("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return h("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:V(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return h("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return h("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return h("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(C),C));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,f,{ore:B},B.id)})]})))})},l=function(C,b){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:C.title}),(v=C.columns)==null?void 0:v.map(function(h){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:h[1],textAlign:"center",color:"label",bold:!0,children:h[0]},h)})]})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},f=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=C.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return h(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(L,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(70752),y=function(p){var i;try{i=S("./"+p+".js")}catch(s){if(s.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",p);throw s}var c=i[p];return c||(0,m.routingError)("missingExport",p)},k=r.PAI=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.app_template,f=l.app_icon,u=l.app_title,C=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:f,mr:1}),u,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function b(){return s("MASTER_back")}return b}()})]}),p:1,children:(0,e.createComponentVNode)(2,C)})})})}return V}()},85175:function(L,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(71253),S=n(59395),y=function(c){var s;try{s=S("./"+c+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw d}var l=s[c];return l||(0,m.routingError)("missingExport",c)},k=r.PDA=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app,C=f.owner;if(!C)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var b=y(u.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,V)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:u.icon,mr:1}),u.name]}),children:(0,e.createComponentVNode)(2,b)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,p)})]})})})}return i}(),V=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.idInserted,C=f.idLink,b=f.stationTime,v=f.cartridge_name,h=f.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:u?C:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:h?["Eject "+h]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:b})]})},p=function(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!u.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function C(){return d("Back")}return C}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:u.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:u.is_home?"disabled":"white",icon:"home",onClick:function(){function C(){d("Home")}return C}()})})]})})}},38280:function(L,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=r.PDAPainter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.statusLabel,l=c.pdaTypes,d=c.hasPDA,f=c.pdaIcon,u=c.pdaIconState,C=c.pdaOwnerName,b=c.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return i(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:C||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:b||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:f,icon_state:u,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:s})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return i("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,S,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),S=r.PDAColorRow=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.hasPDA,l=c.pdaIcon,d=k.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!s,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function f(){return i("choose_pda",{selectedPda:d})}return f}()})})]})}return y}()},68654:function(L,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(49968),S=r.Pacman=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.broken,l=c.anchored,d=c.active,f=c.fuel_type,u=c.fuel_usage,C=c.fuel_stored,b=c.fuel_cap,v=c.is_ai,h=c.tmp_current,g=c.tmp_max,N=c.tmp_overheat,x=c.output_max,B=c.power_gen,I=c.output_set,T=c.has_fuel,E=C/b,w=h/g,A=I*B,O=Math.round(C/u),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(s||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!s&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!s&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!s&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function R(){return i("toggle_power")}return R}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:I,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function R(F,_){return i("change_power",{change_power:_})}return R}()}),"(",(0,m.formatPower)(A),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:w,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[h," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||v||!T,onClick:function(){function R(){return i("eject_fuel")}return R}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(C/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[u/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(u?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(L,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PersonalCrafting=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.busy,d=s.category,f=s.display_craftable_only,u=s.display_compact,C=s.prev_cat,b=s.next_cat,v=s.subcategory,h=s.prev_subcat,g=s.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:f?"check-square-o":"square-o",selected:f,onClick:function(){function N(){return c("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:u?"check-square-o":"square-o",selected:u,onClick:function(){function N(){return c("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:C,icon:"arrow-left",onClick:function(){function N(){return c("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:b,icon:"arrow-right",onClick:function(){function N(){return c("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return c("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return c("forwardSubCat")}return N}()})]}),u?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),u.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:u.req_text,content:"Requirements",color:"transparent"}),u.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:u.tool_text,content:"Tools",color:"transparent"})]},u.name)})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.display_craftable_only,d=s.can_craft,f=s.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function C(){return c("make",{make:u.ref})}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)}),!l&&f.map(function(u){return(0,e.createComponentVNode)(2,t.Section,{title:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[u.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:u.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:u.req_text}),u.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:u.tool_text})]})},u.name)})]})}},56150:function(L,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(88510),S=n(64795),y=n(25328);function k(s,l){var d=typeof Symbol!="undefined"&&s[Symbol.iterator]||s["@@iterator"];if(d)return(d=d.call(s)).next.bind(d);if(Array.isArray(s)||(d=V(s))||l&&s&&typeof s.length=="number"){d&&(s=d);var f=0;return function(){return f>=s.length?{done:!0}:{done:!1,value:s[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(s,l){if(s){if(typeof s=="string")return p(s,l);var d={}.toString.call(s).slice(8,-1);return d==="Object"&&s.constructor&&(d=s.constructor.name),d==="Map"||d==="Set"?Array.from(s):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?p(s,l):void 0}}function p(s,l){(l==null||l>s.length)&&(l=s.length);for(var d=0,f=Array(l);ds?this.substring(0,s)+"...":this};var i=function(l,d){d===void 0&&(d="");var f=(0,y.createSearch)(d,function(u){return u.altername});return(0,S.flow)([(0,m.filter)(function(u){return u==null?void 0:u.altername}),d&&(0,m.filter)(f),(0,m.sortBy)(function(u){return u.id})])(l)},c=r.Photocopier=function(){function s(l,d){for(var f=(0,a.useBackend)(d),u=f.act,C=f.data,b=C.copies,v=C.maxcopies,h=(0,a.useLocalState)(d,"searchText",""),g=h[0],N=h[1],x=i((0,m.sortBy)(function(P){return P.category})(C.forms||[]),g),B=[],I=k(x),T;!(T=I()).done;){var E=T.value;B.includes(E.category)||B.push(E.category)}var w=(0,a.useLocalState)(d,"number",0),A=w[0],O=w[1],M;return C.category===""?M=x:M=x.filter(function(P){return P.category===C.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:C.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:C.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:C.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":C.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.copyitem&&!C.mob,icon:C.copyitem||C.mob?"eject":"times",content:C.copyitem?C.copyitem:C.mob?"\u0416\u043E\u043F\u0430 "+C.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return u("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!C.folder,icon:C.folder?"eject":"times",content:C.folder?C.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return u("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:C.toner===0||C.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return u("print_form")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:C.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return u("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:C.toner===0||!C.copyitem&&!C.mob,onClick:function(){function P(){return u("copy")}return P}()})}),!!C.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:C.toner===0,onClick:function(){function P(){return u("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:b,stepPixelSize:10,onChange:function(){function P(R,F){return u("copies",{new:F})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!C.category,onClick:function(){function P(){return u("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:C.category===P,onClick:function(){function R(){return u("choose_category",{category:P})}return R}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:C.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(R,F){return N(F)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:C.form_id===P.id,onClick:function(){function R(){return u("choose_form",{path:P.path,id:P.id})}return R}()})},P.path)})})})]})})})}return s}()},94158:function(L,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.PodTracking=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[s.podx,", ",s.pody,", ",s.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:s.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:s.passengers})]})},s.name)})})})}return S}()},84676:function(L,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=["tempKey"];function S(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},k=function(i,c){var s=i.tempKey,l=S(i,m),d=y[s];if(!d)return null;var f=(0,a.useBackend)(c),u=f.data,C=f.act,b=u.currentTemp,v=d.label,h=d.icon,g=s===b,N=function(){C("setTemp",{temp:s})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:h}),v]})))},V=r.PoolController=function(){function p(i,c){for(var s=(0,a.useBackend)(c),l=s.data,d=l.emagged,f=l.currentTemp,u=y[f]||y.normal,C=u.label,b=u.color,v=[],h=0,g=Object.entries(y);h50?"battery-half":"battery-quarter")||b==="C"&&"bolt"||b==="F"&&"battery-full"||b==="M"&&"slash",color:b==="N"&&(v>50?"yellow":"red")||b==="C"&&"yellow"||b==="F"&&"green"||b==="M"&&"orange"}),(0,e.createComponentVNode)(2,k.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=m.pureComponentHooks;var f=function(C){var b,v,h=C.status;switch(h){case"AOn":b=!0,v=!0;break;case"AOff":b=!0,v=!1;break;case"On":b=!1,v=!0;break;case"Off":b=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,k.ColorBox,{color:v?"good":"bad",content:b?void 0:"M",title:g})};f.defaultHooks=m.pureComponentHooks},50992:function(L,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(3939),S=n(321),y=n(5485),k=n(98595),V=r.PrisonerImplantManager=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.loginState,u=d.prisonerInfo,C=d.chemicalInfo,b=d.trackingInfo,v;if(!f.logged_in)return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var h=[1,5,10];return(0,e.createComponentVNode)(2,k.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,m.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:u.name?"eject":"id-card",selected:u.name,content:u.name?u.name:"-----",tooltip:u.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[u.points!==null?u.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:u.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[u.goal!==null?u.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:u.goal===null,content:"Edit",onClick:function(){function g(){return(0,m.modalOpen)(c,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:u.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:b.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,m.modalOpen)(c,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:C.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),h.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":f>500?"orange":f>250?"yellow":"green"},k=function(f,u){for(var C=[],b=0;b0?"envelope-open-text":"envelope",onClick:function(){function x(){return C("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return C("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return C("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return C("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return C("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return C("setScreen",{setScreen:10})}return x}()})})]}),!!h&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return C("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return C("toggleSilent")}return x}()})})]})},k=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.department,h,g;switch(d.purpose){case"ASSISTANCE":h=b.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":h=b.supply_dept,g="Request supplies from another department";break;case"INFO":h=b.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:h.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return C("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return C("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},V=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function h(){return C("setScreen",{setScreen:0})}return h}()})})},p=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v,h;switch(d.type){case"MESSAGES":v=b.message_log,h="Message Log";break;case"SHIPPING":v=b.shipping_log,h="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:h,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},i=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.recipient,h=b.message,g=b.msgVerified,N=b.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return C("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return C("department",{department:v})}return x}()})]})},c=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.message,h=b.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return C("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return C("writeAnnouncement")}return g}()}),h?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(h&&v),onClick:function(){function g(){return C("sendAnnouncement")}return g}()})]})},s=function(d,f){var u=(0,a.useBackend)(f),C=u.act,b=u.data,v=b.shipDest,h=b.msgVerified,g=b.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return C("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:h})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&h),onClick:function(){function N(){return C("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return C("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(L,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var S=r.RequestManager=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.requests,u=(0,t.useLocalState)(c,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),v=u[0],V=u[1],C=(0,t.useLocalState)(c,"searchText"),h=C[0],g=C[1],N=f.filter(function(B){return v[B.req_type]});if(h){var x=h.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,m.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:h,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,k,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,b,{request:B})],0,null,B.id)})})})})}return p}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},k=function(i){var c=i.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+c,[y[c],(0,e.createTextVNode)(":")],0)},b=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s._,f=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("pp",{id:f.id})}return u}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("vv",{id:f.id})}return u}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("sm",{id:f.id})}return u}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("tp",{id:f.id})}return u}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("logs",{id:f.id})}return u}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("bless",{id:f.id})}return u}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("smite",{id:f.id})}return u}(),children:"SMITE"}),f.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("rply",{id:f.id})}return u}(),children:"RPLY"}),f.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("ertreply",{id:f.id})}return u}(),children:"ERTREPLY"}),f.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("getcode",{id:f.id})}return u}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=n(13472),S=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},k=r.RndConsole=function(){function b(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:s.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(f){return f===S.LATHE||f===S.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return b}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data,p=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var s=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:s}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},s)})]})}return m}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S="design",y="tech",k=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=v.act,h=V.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return C("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return C("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,i)]})]}):null},b=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=v.act,h=V.disk_data;if(!h)return null;var g=h.name,N=h.lathe_types,x=h.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function L(){return C("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return C("clear_design")}return L}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.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:C===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=v.act,h=V.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=h===y?"eject_tech":"eject_design";C(N)}return g}()}):null},c=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.disk_data,h=V.disk_type,g=function(){if(!C)return(0,e.createComponentVNode)(2,p);switch(h){case S:return(0,e.createComponentVNode)(2,b);case y:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},s=function(f,u){var v=(0,a.useBackend)(u),V=v.data,C=v.act,h=V.disk_type,g=V.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){h===y?C("copy_tech",{id:B}):C("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(f,u){var v=(0,a.useBackend)(u),V=v.data,C=V.disk_type;return C?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,s)}return h}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data,p=k.act,i=b.loaded_item,c=b.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+s.name,children:[s.object_level," ",s.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),s.current_level,(0,e.createTextVNode)(")")],0):null]},s.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function s(){p("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function s(){p("eject_item")}return s}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheCategory=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.data,i=b.act,c=p.category,s=p.matching_designs,l=p.menu,d=l===4,f=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:s.map(function(u){var v=u.id,V=u.name,C=u.can_build,h=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:V,disabled:C<1,onClick:function(){function g(){return i(f,{id:v,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return i(f,{id:v,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return i(f,{id:v,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},v)})})]})}return S}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data,p=k.act,i=b.loaded_chemicals,c=b.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function s(){var l=c?"disposeallP":"disposeallI";p(l)}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(s){var l=s.volume,d=s.name,f=s.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var v=c?"disposeP":"disposeI";p(v,{id:f})}return u}()})},f)})})]})}return m}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheMainMenu=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.data,i=b.act,c=p.menu,s=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function f(){i("setCategory",{category:d})}return f}()})},d)})})]})}return S}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data,p=k.act,i=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var s=c.id,l=c.amount,d=c.name,f=function(){function C(h){var g=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:s,amount:h})}return C}(),u=Math.floor(l/2e3),v=l<1,V=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:v?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",V,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function C(){return f(1)}return C}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function C(){return f("custom")}return C}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function C(){return f(5)}return C}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function C(){return f(50)}return C}()})],0):null})]},s)})})})}return m}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data,p=b.total_materials,i=b.max_materials,c=b.max_chemicals,s=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),m=n(36036),S=n(16475),y=r.LatheMenu=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.data,s=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return s===4&&!l?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):s===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.MAIN,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CATEGORY,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_MAT_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return f}()})]})}return k}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return b("search",{to_search:c})}return p}()})})}return m}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.MainMenu=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.data,c=i.disk_type,s=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,f=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(u){var v=u.name,V=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:v,children:V},v)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function m(S,y){var k=S.icon,b=S.children,p=S.disabled,i=S.content,c=(0,a.useBackend)(y),s=c.data,l=c.act,d=s.menu,f=s.submenu,u=d,v=f;return S.menu!==null&&S.menu!==void 0&&(u=S.menu),S.submenu!==null&&S.submenu!==void 0&&(v=S.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function V(){l("nav",{menu:u,submenu:v})}return V}(),children:b})}return m}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),m=r.RndNavbar=function(){function S(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(k){return k!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return k}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return S}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,m){var S=o.render,y=(0,e.useBackend)(m),k=y.data,b=k.menu,p=k.submenu,i=function(){function s(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return s}(),c=i(o.menu,b)&&i(o.submenu,p);return c?S():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.SettingsMenu=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.data,c=p.act,s=i.sync,l=i.admin,d=i.linked_destroy,f=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!s,onClick:function(){function V(){c("sync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:s,onClick:function(){function V(){c("togglesync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function V(){c("togglesync")}return V}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function V(){return c("maxresearch")}return V}()}):null]})})}return v}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function v(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function V(){return c("find_device")}return V}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return c("disconnect",{item:"destroy"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){c("disconnect",{item:"lathe"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return c("disconnect",{item:"imprinter"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return v}()})]})}return y}()},13472:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var m=n(52285);r.LatheChemicalStorage=m.LatheChemicalStorage;var S=n(71964);r.LatheMainMenu=S.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var b=n(76749);r.LatheMenu=b.LatheMenu;var p=n(74698);r.LatheSearch=p.LatheSearch;var i=n(17180);r.MainMenu=i.MainMenu;var c=n(94942);r.RndNavbar=c.RndNavbar;var s=n(63459);r.RndNavButton=s.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.RoboQuest=function(){function y(k,b){var p=(0,t.useBackend)(b),i=p.act,c=p.data,s=c.hasID,l=c.name,d=c.questInfo,f=c.hasTask,u=c.canCheck,v=c.canSend,V=c.checkMessage,C=c.style,h=c.cooldown,g=c.instant_teleport,N=c.shopItems,x=c.points,B=c.cats,L=(0,t.useLocalState)(b,"shopState",!1),T=L[0],A=L[1],w={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,m.Window,{theme:C,width:1e3,height:540,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!s||!f||!u||h,onClick:function(){function E(){return i("Check")}return E}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!f&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(E){return E.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",E.icon]),null,1,null,E.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(E){return E.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",E.icon]),null,1,null,E.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,V,0)],4),!!h&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,h,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(E){return(0,e.createFragment)(!(N[E]===void 0||N[E].length===0||E==="robo")&&N[E].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:w[E],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function P(){return i("buyItem",{item:O.path})}return P}()},O.path)}),0,E)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function E(){return A(!T)}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function E(){return i("ChangeStyle")}return E}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!s,onClick:function(){function E(){return i("RemoveID")}return E}()}),!f&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!s||h,onClick:function(){function E(){return i("GetTask")}return E}()}),!!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function E(){return i("printOrder")}return E}(),disabled:!f}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!s||h,onClick:function(){function E(){return i("RemoveTask")}return E}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!f&&d.modules.map(function(E){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),E.id],0),(0,e.createTextVNode)(": "),E.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,E.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!s||!f||!v||h,onClick:function(){function E(){return i("SendMech",{type:"send"})}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!s||!f||!v||h,onClick:function(){function E(){return i("SendMech",{type:"only_packing"})}return E}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!s||!f||!v||h||!g,onClick:function(){function E(){return i("SendMech",{type:"instant"})}return E}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(E){return(!E.emagOnly||C==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:E.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[E.name," ",(0,e.createVNode)(1,"b",null,E.cost.robo,0,{style:{color:"purple"}})]}),content:E.desc,onClick:function(){function O(){return i("buyItem",{item:E.path})}return O}()},E.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=function(b,p){var i=b/p;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.data,s=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:s.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:S(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:S(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return k}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.RoboticsControlConsole=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.can_hack,l=c.safety,d=c.show_detonate_all,f=c.cyborgs,u=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function v(){return i("arm",{})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function v(){return i("nuke",{})}return v}()})]}),(0,e.createComponentVNode)(2,S,{cyborgs:u,can_hack:s})]})})}return y}(),S=function(k,b){var p=k.cyborgs,i=k.can_hack,c=(0,a.useBackend)(b),s=c.act,l=c.data;return p.length?p.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function f(){return s("hackbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function f(){return s("stopbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function f(){return s("killbot",{uid:d.uid})}return f}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),m=n(98595),S=r.Safe=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,v=d.locked,V=d.contents;return(0,e.createComponentVNode)(2,m.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*f+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,b)]})})}return p}(),y=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,v=d.locked,V=function(h,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:u||g&&!v,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+h,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:v,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function C(){return l("open")}return C}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:f})]})},k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:f.map(function(u,v){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function V(){return l("retrieve",{index:v+1})}return V}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},b=function(i,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SatelliteControl=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.satellites,s=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,f=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:f,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(v){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+v.id,children:[v.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:v.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function V(){return p("toggle",{id:v.id})}return V}()})]},v.id)})]})})]})})}return S}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SecureStorage=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.emagged,s=i.locked,l=i.l_set,d=i.l_setshort,f=i.current_code,u=function(){function v(V){var C=V.buttonValue,h=V.color;return h||(h="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:c||d,type:"button",color:h,onClick:function(){function g(){return p("setnumber",{buttonValue:C})}return g}(),children:C})}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"1"}),(0,e.createComponentVNode)(2,u,{buttonValue:"2"}),(0,e.createComponentVNode)(2,u,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"4"}),(0,e.createComponentVNode)(2,u,{buttonValue:"5"}),(0,e.createComponentVNode)(2,u,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"7"}),(0,e.createComponentVNode)(2,u,{buttonValue:"8"}),(0,e.createComponentVNode)(2,u,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,u,{buttonValue:"0"}),(0,e.createComponentVNode)(2,u,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:c||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"red":"green",children:s?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:f||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:s,color:"red",content:"Lock",icon:"lock",onClick:function(){function v(){return p("close")}return v}()})]})})]})})}return S}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=n(3939),y=n(321),k=n(5485),b=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(g,N){(0,S.modalOpen)(g,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,A=L.currentPage,w;if(T.logged_in)A===1?w=(0,e.createComponentVNode)(2,l):A===2?w=(0,e.createComponentVNode)(2,u):A===3&&(w=(0,e.createComponentVNode)(2,v));else return(0,e.createComponentVNode)(2,m.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,s),w]})})]})}return h}(),s=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function w(){return B("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function w(){return B("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,A=(0,t.useLocalState)(N,"searchText",""),w=A[0],E=A[1],O=(0,t.useLocalState)(N,"sortId","name"),P=O[0],M=O[1],R=(0,t.useLocalState)(N,"sortOrder",!0),F=R[0],_=R[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(w,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var $=F?1:-1;return U[P].localeCompare(W[P])*$}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),A=T[0],w=T[1],E=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==E&&"transparent",fluid:!0,onClick:function(){function P(){B===E?w(!A):(L(E),w(!0))}return P}(),children:[O,B===E&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),w=A[0],E=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,S.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(P,M){return E(M)}return O}()})})]})},u=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=L.general,w=L.security;return!A||!A.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function E(){return B("print_record")}return E}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function E(){return B("delete_general")}return E}()})],4),children:(0,e.createComponentVNode)(2,V)})}),!w||!w.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function E(){return B("new_security")}return E}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:w.empty,content:"Delete Record",onClick:function(){function E(){return B("delete_security")}return E}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.fields.map(function(E,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:E.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(E.value),!!E.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:E.line_break?"1rem":"initial",onClick:function(){function P(){return i(N,E)}return P}()})]},O)})})})})}),(0,e.createComponentVNode)(2,C)],4)],0)},V=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(T,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function w(){return i(N,T)}return w}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(T,A){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},C=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function A(){return(0,S.modalOpen)(N,"comment_add")}return A}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(A,w){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function E(){return B("comment_delete",{id:w+1})}return E}()})]},w)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),m=n(36036),S=n(98595),y=n(3939);function k(f,u){var v=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(v)return(v=v.call(f)).next.bind(v);if(Array.isArray(f)||(v=b(f))||u&&f&&typeof f.length=="number"){v&&(f=v);var V=0;return function(){return V>=f.length?{done:!0}:{done:!1,value:f[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 b(f,u){if(f){if(typeof f=="string")return p(f,u);var v={}.toString.call(f).slice(8,-1);return v==="Object"&&f.constructor&&(v=f.constructor.name),v==="Map"||v==="Set"?Array.from(f):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?p(f,u):void 0}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var v=0,V=Array(u);v=w},C=function(A,w){return A<=w},h=u.split(" "),g=[],N=function(){var A=L.value,w=A.split(":");if(w.length===0)return 0;if(w.length===1)return g.push(function(P){return(P.name+" ("+P.variant+")").toLocaleLowerCase().includes(w[0].toLocaleLowerCase())}),0;if(w.length>2)return{v:function(){function P(M){return!1}return P}()};var E,O=v;if(w[1][w[1].length-1]==="-"?(O=C,E=Number(w[1].substring(0,w[1].length-1))):w[1][w[1].length-1]==="+"?(O=V,E=Number(w[1].substring(0,w[1].length-1))):E=Number(w[1]),isNaN(E))return{v:function(){function P(M){return!1}return P}()};switch(w[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(P){return O(P.lifespan,E)});break;case"e":case"end":case"endurance":g.push(function(P){return O(P.endurance,E)});break;case"m":case"mat":case"maturation":g.push(function(P){return O(P.maturation,E)});break;case"pr":case"prod":case"production":g.push(function(P){return O(P.production,E)});break;case"y":case"yield":g.push(function(P){return O(P.yield,E)});break;case"po":case"pot":case"potency":g.push(function(P){return O(P.potency,E)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(P){return O(P.amount,E)});break;default:return{v:function(){function P(M){return!1}return P}()}}},x,B=k(h),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var A=0,w=g;A=1?Number(O):1)}return w}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleConsole=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=f===void 0?"shuttle":f,v=i.blind_drop,V=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!V&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:u==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function C(){return l("request")}return C}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b,{type:u,blind_drop:v})})]})}return p}(),S=function(i,c){var s;return i==null||(s=i.find(function(l){return l.id===c}))==null?void 0:s.name},y=function(i,c){var s;return i==null||(s=i.find(function(l){return l.name===c}))==null?void 0:s.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},b=r.ShuttleConsoleContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=i.blind_drop,v=d.status,V=d.locked,C=d.authorization_required,h=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:k[v]||"bad",ml:1,children:v||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:f==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:f!=="shuttle"&&B.length===0&&!!u&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:C||!u,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:S(B,h)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:V||C,selected:S(B,h)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!S(B,h)||V||C||v!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:h})}return L}()})]})]})}return p}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleManipulator=function(){function b(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),s=c[0],l=c[1],d=function(){function f(u){switch(u){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function f(){return l(0)}return f}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function f(){return l(1)}return f}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===2,onClick:function(){function f(){return l(2)}return f}(),icon:"tools",children:"Modification"},"Modification")]}),d(s)]})})})}return b}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:f.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:f.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:f.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:f.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return s("fast_travel",{id:f.id})}return u}()})]})]})},f.name)})})},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.templates_tabs,f=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(v){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===f.id,icon:"file",onClick:function(){function V(){return s("select_template_category",{cat:v})}return V}(),children:v},v)})}),!!f&&u[f.id].templates.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[v.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:v.description}),v.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:v.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function V(){return s("select_template",{shuttle_id:v.shuttle_id})}return V}()})})]})},v.name)})]})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.existing_shuttle,f=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),f?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:f.description}),f.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:f.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return s("preview",{shuttle_id:f.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return s("load",{shuttle_id:f.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function u(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,f);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d)],4)},c=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"On":"Off",onClick:function(){function B(){return h("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function B(){return h("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:S[N.stat][0],children:S[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:b[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},s=function(v,V){var C=(0,t.useBackend)(V),h=C.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Active":"Inactive",onClick:function(){function w(){return h("togglefilter")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function w(){return h("removebeaker")}return w}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(v,V){var C=(0,t.useBackend)(V),h=C.act,g=C.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(T,A){var w="",E;return T.overdosing?(w="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&&(w="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:B,value:T.occ_amount/B,color:w,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,P){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function M(){return h("chemical",{chemid:T.id,amount:O})}return M}()},P)})]})})},A)})})},f=function(v,V){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SlotMachine=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function s(){return p("spin")}return s}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return S}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Smartfridge=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.secure,s=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s?"Drying rack":"Contents",buttons:!!s&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function f(){return p("drying")}return f}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(f,u){return f.display_name.localeCompare(u.display_name)}).map(function(f){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:f.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",f.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return p("vend",{index:f.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:f.quantity,step:1,stepPixelSize:3,onChange:function(){function u(v,V){return p("vend",{index:f.vend,amount:V})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return p("vend",{index:f.vend,amount:f.quantity})}return u}()})]})]},f)})]})]})})})}return S}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),m=n(98595),S=1e3,y=r.Smes=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.capacityPercent,d=s.capacity,f=s.charge,u=s.inputAttempt,v=s.inputting,V=s.inputLevel,C=s.inputLevelMax,h=s.inputAvailable,g=s.outputPowernet,N=s.outputAttempt,x=s.outputting,B=s.outputLevel,L=s.outputLevelMax,T=s.outputUsed,A=l>=100&&"good"||v&&"average"||"bad",w=x&&"good"||f>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function E(){return c("tryinput")}return E}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||v&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function E(){return c("input",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:V===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:V/S,fillValue:h/S,minValue:0,maxValue:C/S,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*S,1)}return E}(),onChange:function(){function E(O,P){return c("input",{target:P*S})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:V===C,onClick:function(){function E(){return c("input",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:V===C,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:N?"power-off":"times",selected:N,onClick:function(){function E(){return c("tryoutput")}return E}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:g?x?"Sending":f>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function E(){return c("output",{target:"min"})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function E(){return c("output",{adjust:-1e4})}return E}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/S,minValue:0,maxValue:L/S,step:5,stepPixelSize:4,format:function(){function E(O){return(0,o.formatPower)(O*S,1)}return E}(),onChange:function(){function E(O,P){return c("output",{target:P*S})}return E}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function E(){return c("output",{adjust:1e4})}return E}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function E(){return c("output",{target:"max"})}return E}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return k}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SolarControl=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=0,s=1,l=2,d=i.generated,f=i.generated_ratio,u=i.tracking_state,v=i.tracking_rate,V=i.connected_panels,C=i.connected_tracker,h=i.cdir,g=i.direction,N=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return p("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:C?"good":"bad",children:C?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:f,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===s&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",v,"\xB0/h (",N,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function x(B,L){return p("cdir",{cdir:L})}return x}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function x(){return p("track",{track:c})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===s,onClick:function(){function x(){return p("track",{track:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!C,onClick:function(){function x(){return p("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===s&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:v,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return p("tdir",{tdir:L})}return x}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return S}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SpawnersMenu=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name+" ("+s.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:s.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("spawn",{ID:s.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:s.desc}),!!s.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:s.fluff}),!!s.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:s.important_info})]},s.name)})})})})}return S}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595);function S(f,u){f.prototype=Object.create(u.prototype),f.prototype.constructor=f,y(f,u)}function y(f,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,V){return v.__proto__=V,v},y(f,u)}var k=r.SpiderOS=function(){function f(u,v){var V=(0,a.useBackend)(v),C=V.act,h=V.data,g;return h.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:h.current_load_text,finishedTimeout:3e3,current_initialisation_phase:h.current_initialisation_phase,end_terminal:h.end_terminal,onFinished:function(){function N(){return C("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,m.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return f}(),b=function(u,v){var V=(0,a.useBackend)(v),C=V.data,h=C.allStylesPreview,g=C.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+h[g],style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(u,v){var V=(0,a.useBackend)(v),C=V.act,h=V.data,g=h.designs,N=h.design_choice,x=h.scarf_design_choice,B=h.colors,L=h.color_choice,T=h.genders,A=h.preferred_clothes_gender,w=h.suit_state,E=h.preferred_scarf_over_hood,O=h.show_charge_UI,P=h.has_martial_art,M=h.show_concentration_UI,R;w===0?R="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":R="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var F;E===0?F="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":F="\u0428\u0430\u0440\u0444";var _;E===1?_=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W($){return C("set_scarf_design",{scarf_design_choice:$})}return W}()})}):_=null;var U;return P?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:M,width:"78px",textAlign:"left",content:M?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return C("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):U=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",ml:.5,children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W($){return C("set_design",{design_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W($){return C("set_color",{color_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:A,onSelected:function(){function W($){return C("set_gender",{preferred_clothes_gender:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:w===0?"":"Button_disabled",width:"90px",selected:E,disabled:w,textAlign:"left",content:F,onClick:function(){function W(){return C("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),_,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return C("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),U]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+L,success:0,danger:0,mt:-1.2,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",mt:.5,textAlign:"center",content:R,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return C("initialise_suit")}return W}()})})]})})},i=function(u,v){var V=(0,a.useBackend)(v),C=V.data,h=C.allActionsPreview;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.ninja_teleport,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.headset_green,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.ninja_sleeper,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.ai_face,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.ninja_borg,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.server,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.buckler,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.cash,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.handcuff,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.spider_charge,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.BSM,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.changeling,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.vampire,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createVNode)(1,"img",null,null,1,{height:"32px",width:"32px",src:"data:image/jpeg;base64,"+h.syndicate,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},c=function(u,v){var V=(0,a.useBackend)(v),C=V.act,h=V.data,g=h.allActionsPreview,N=h.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return C("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.smoke,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return C("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.ninja_cloak,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return C("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.ninja_clones,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return C("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.chameleon,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return C("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.ninja_spirit_form,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return C("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.kunai,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return C("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.chem_injector,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return C("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.emergency_blink,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return C("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.caltrop,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return C("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.cloning,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return C("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.shuriken,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return C("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.adrenal,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return C("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.emp,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return C("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.energynet,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return C("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g.spider_red,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},s=r.ShuttleConsole=function(){function f(u,v){var V=(0,a.useBackend)(v),C=V.act,h=V.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.status?h.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.player_pos}),!!h.shuttle&&(!!h.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:h.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return C("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!h.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!h.status,onClick:function(){function g(){return C("request")}return g}()})})],0))]})})})}return f}(),l=function(u,v){var V=(0,a.useBackend)(v),C=V.data,h=C.randomPercent,g=C.allActionsPreview,N=C.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:h,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createVNode)(1,"img",null,null,1,{height:"64px",width:"64px",src:"data:image/jpeg;base64,"+g["spider_"+N],style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},d=function(f){function u(V){var C;return C=f.call(this,V)||this,C.timer=null,C.state={lastText:"text do be there",currentDisplay:[]},C}S(u,f);var v=u.prototype;return v.tick=function(){function V(){var C=this.props,h=this.state;if(C.allMessages!==h.lastText&&!C.end_terminal){var g=h.currentDisplay;g.push(C.allMessages),h.lastText=C.allMessages}else C.end_terminal&&(clearTimeout(this.timer),setTimeout(C.onFinished,C.finishedTimeout))}return V}(),v.componentDidMount=function(){function V(){var C=this,h=this.props.linesPerSecond,g=h===void 0?2.5:h;this.timer=setInterval(function(){return C.tick()},1e3/g)}return V}(),v.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),v.render=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(C){return(0,e.createFragment)([C,(0,e.createVNode)(1,"br")],0,C)})})}return V}(),u}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=r.StationAlertConsoleContent=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.data,c=i.alarms||[];return Object.keys(c).map(function(s){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:s+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=c[s])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=c[s])==null?void 0:d.map(function(f){return(0,e.createVNode)(1,"li","color-average",f,0,null,f)}),0)},s)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),m=n(36036),S=n(98595),y=5,k=9,b=function(V){return V===0?5:9},p="64px",i=function(V){return V[0]+"/"+V[1]},c=function(V){var C=V.align,h=V.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:h})},s={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},f=function(v){return v[v.Completely=1]="Completely",v[v.Hidden=2]="Hidden",v}(f||{}),u=r.StripMenu=function(){function v(V,C){var h=(0,o.useBackend)(C),g=h.act,N=h.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":s>150?"average":"good"},k=function(s){return s>5e3?"bad":s>4e3?"average":"good"},b=function(s){return s>1e4?"bad":s>5e3?"average":"good"},p=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function v(){return f("refresh")}return v}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:u.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Details"})]}),u.supermatters.map(function(v){return(0,e.createComponentVNode)(2,m.TableRow,{children:[(0,e.createComponentVNode)(2,m.TableCell,{children:v.area_name}),(0,e.createComponentVNode)(2,m.TableCell,{children:[v.integrity,"%"]}),(0,e.createComponentVNode)(2,m.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function V(){return f("view",{view:v.uid})}return V}()})})]},v)})]})})})})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function v(){return f("back")}return v}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(u.SM_power),children:[u.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(u.SM_ambienttemp),children:[u.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(u.SM_ambientpressure),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595),S=r.SyndicateComputerSimple=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:c.rows.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontitle,disabled:s.buttondisabled,tooltip:s.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return i(s.buttonact)}return l}()}),children:[s.status,!!s.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:s.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},s.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(29319),k=n(25328),b=r.SyndieCargoConsole=function(){function l(d,f){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})}return l}(),p=function(d,f){var u=(0,o.useLocalState)(f,"contentsModal",null),v=u[0],V=u[1],C=(0,o.useLocalState)(f,"contentsModalTitle",null),h=C[0],g=C[1];if(v!==null&&h!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:v.map(function(N){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function N(){V(null),g(null)}return N}()})})]})},i=function(d,f){var u=(0,o.useBackend)(f),v=u.act,V=u.data,C=V.is_public,h=C===void 0?0:C,g=V.cash,N=V.wait_time,x=V.is_cooldown,B=V.telepads_status,L=V.adminAddCash,T=B,A="",w=0,E="";return B==="Pads not linked!"?(w=0,A="Attempts to link telepads to the console.",E="Link pads"):x?x&&(E="Cooldown...",A="Pads are cooling off...",w=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(w=0,A="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",E="Teleport"),(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,m.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return v("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return v("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Telepads Status",children:T}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:E,tooltip:A,disabled:w,onClick:function(){function O(){return v("teleport")}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return v("showMessages")}return O}()})]})]})})},c=function(d,f){var u=(0,o.useBackend)(f),v=u.act,V=u.data,C=V.categories,h=V.supply_packs,g=(0,o.useSharedState)(f,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(f,"search_text",""),L=B[0],T=B[1],A=(0,o.useLocalState)(f,"contentsModal",null),w=A[0],E=A[1],O=(0,o.useLocalState)(f,"contentsModalTitle",null),P=O[0],M=O[1],R=(0,k.createSearch)(L,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===C.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(h),_="Crate Catalogue";return L?_="Results for '"+L+"':":N&&(_="Browsing "+N),(0,e.createComponentVNode)(2,m.Section,{title:_,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:C.map(function(U){return U.name}),selected:N,onSelected:function(){function U(W){return x(W)}return U}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(W,$){return T($)}return U}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return v("order",{crate:U.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return v("order",{crate:U.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){E(U.contents),M(U.name)}return W}()})]})]},U.name)})})})]})},s=function(d,f){var u=(0,o.useBackend)(f),v=u.act,V=u.data,C=V.requests,h=V.canapprove,g=V.orders;return(0,e.createComponentVNode)(2,m.Section,{title:"Details",children:(0,e.createComponentVNode)(2,m.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:C.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return v("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function x(){return v("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},S={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(i,c,s,l){return l===void 0&&(l=null),i.map(function(d){var f,u=(f=d[l])!=null?f:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c.includes(d),content:u,onClick:function(){function v(){c.includes(d)?s(c.filter(function(V){var C;return((C=V[l])!=null?C:V)!==d})):s([d].concat(c))}return v}()},u)})},k=r.TTSSeedsExplorer=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return p}(),b=r.TTSSeedsExplorerContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.providers,u=d.seeds,v=d.selected_seed,V=d.phrases,C=d.donator_level,h=u.map(function(Y){return Y.category}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),g=u.map(function(Y){return Y.gender}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),N=u.map(function(Y){return Y.donator_level}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}).map(function(Y){return m[Y]}),x=(0,a.useLocalState)(c,"selectedProviders",f),B=x[0],L=x[1],T=(0,a.useLocalState)(c,"selectedGenders",g),A=T[0],w=T[1],E=(0,a.useLocalState)(c,"selectedCategories",h),O=E[0],P=E[1],M=(0,a.useLocalState)(c,"selectedDonatorLevels",N),R=M[0],F=M[1],_=(0,a.useLocalState)(c,"selectedPhrase",V[0]),U=_[0],W=_[1],$=(0,a.useLocalState)(c,"searchtext",""),G=$[0],oe=$[1],X=y(f,B,L,"name"),ve=y(g,A,w),me=y(h,O,P),ne=y(N,R,F),ce=(0,e.createComponentVNode)(2,t.Dropdown,{options:V,selected:U.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function Y(Q){return W(Q)}return Y}()}),q=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function Y(Q,Z){return oe(Z)}return Y}()}),ae=u.sort(function(Y,Q){var Z=Y.name.toLowerCase(),te=Q.name.toLowerCase();return Z>te?1:Z0&&v!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:v===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:v===Y.name?"white":S[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:S[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.donator_level>0&&(0,e.createFragment)([m[Y.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:X}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:ve}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:me}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:q})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+u.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return p}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TachyonArray=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s,d=c.explosion_target,f=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function v(){return i("print_logs")}return v}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function v(){return i("delete_logs")}return v}()})]})]})}),l.length?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),S=r.TachyonArrayContent=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function f(){return i("delete_record",{index:d.index})}return f}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Tank=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function s(){return p("internals")}return s}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function s(){return p("pressure",{pressure:"min"})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function s(l,d){return p("pressure",{pressure:d})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function s(){return p("pressure",{pressure:"max"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function s(){return p("pressure",{pressure:"reset"})}return s}()})]}),c]})})})})}return S}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TankDispenser=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.o_tanks,s=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+s+")",disabled:s===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("plasma")}return l}()})})]})})}return S}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsCore=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),v=u[0],V=u[1],C=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f===1&&(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===0,onClick:function(){function h(){return V(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===1,onClick:function(){function h(){return V(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:v===2,onClick:function(){function h(){return V(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),C(v)]})})}return p}(),S=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.active,u=d.sectors_available,v=d.nttc_toggle_jobs,V=d.nttc_toggle_job_color,C=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"On":"Off",selected:V,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"lock",onClick:function(){function v(){return l("change_password")}return v}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(v){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function V(){return l("unlink",{addr:v.addr})}return V}()})})]},v.addr)})]})]})},b=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function v(){return l("remove_filter",{user:u})}return v}()})})]},u)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsRelay=function(){function k(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked,d=s.active,f=s.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked_core_id,d=s.linked_core_addr,f=s.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Yes":"No",icon:f?"eye-slash":"eye",selected:f,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},y=function(b,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function f(){return c("link",{addr:d.addr})}return f}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(79646),S=r.Teleporter=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.targetsTeleport?c.targetsTeleport:{},l=0,d=1,f=2,u=c.calibrated,v=c.calibrating,V=c.powerstation,C=c.regime,h=c.teleporterhub,g=c.target,N=c.locked,x=c.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!V||!h)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[h,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&h&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:C===d?"good":null,onClick:function(){function B(){return i("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:C===l?"good":null,onClick:function(){function B(){return i("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:C===f?"good":null,disabled:!N,onClick:function(){function B(){return i("setregime",{regime:f})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[C===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),C===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return i("settarget",{x:s[L].x,y:s[L].y,z:s[L].z})}return B}()}),C===f&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,m.GridColumn,{size:"2",children:v&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(u||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,m.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(u||v),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&V&&h&&C===f)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return i("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return i("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),m=n(92986),S=n(36036),y=n(98595),k=r.sanitizeMultiline=function(){function c(s){return s.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),b=r.removeAllSkiplines=function(){function c(s){return s.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,v=u.max_length,V=u.message,C=V===void 0?"":V,h=u.multiline,g=u.placeholder,N=u.timeout,x=u.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],A=function(){function O(P){if(P!==L){var M=h?k(P):b(P);T(M)}}return O}(),w=h||L.length>=40,E=130+(C.length>40?Math.ceil(C.length/4):0)+(w?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:E,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(P){var M=window.event?P.which:P.keyCode;M===m.KEY_ENTER&&(!w||!P.shiftKey)&&f("submit",{entry:L}),M===m.KEY_ESCAPE&&f("cancel")}return O}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:C})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:L,onType:A})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+v})})]})})})]})}return c}(),i=function(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,v=u.max_length,V=u.multiline,C=s.input,h=s.onType,g=V||C.length>=40;return(0,e.createComponentVNode)(2,S.TextArea,{autoFocus:!0,autoSelect:!0,height:V||C.length>=40?"100%":"1.8rem",maxLength:v,onEscape:function(){function N(){return f("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),f("submit",{entry:C}))}return N}(),onInput:function(){function N(x,B){return h(B)}return N}(),placeholder:"Type something...",value:C})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ThiefKit=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.uses,s=i.possible_uses,l=i.multi_uses,d=i.kits,f=i.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:c<=0?"good":c=s,onClick:function(){function u(){return p("randomKit")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:u.was_taken||c>=s,onClick:function(){function v(){return p("takeKit",{item:u.type})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!u.was_taken,onClick:function(){function v(){return p("undoKit",{item:u.type})}return v}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:u.desc})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function v(){return p("undoKit",{item:u.type})}return v}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:c0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:x.contractor.time_left,format:function(){function P(M,R){return" ("+R+")"}return P}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function P(){return N("lock")}return P}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:p(T)})]})})]})}return V}(),c=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,S.useLocalState)(h,"uplinkItems",L[0].items),A=T[0],w=T[1],E=(0,S.useLocalState)(h,"searchText",""),O=E[0],P=E[1],M=function($,G){G===void 0&&(G="");var oe=(0,o.createSearch)(G,function(X){var ve=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+ve});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),G&&(0,a.filter)(oe),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])($)},R=function($){if(P($),$==="")return w(L[0].items);w(M(L.map(function(G){return G.items}).flat(),$))},F=(0,S.useLocalState)(h,"showDesc",1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:_,onClick:function(){function W(){return U(!_)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W($,G){R(G)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===A,onClick:function(){function $(){w(W.items),P("")}return $}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:A.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:_},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},s=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,A=(0,S.useLocalState)(h,"showDesc",0),w=A[0],E=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:w,onClick:function(){function O(){return E(!w)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:w,buttons:(0,e.createComponentVNode)(2,u,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,A){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},A)})})})})},d=function(C,h){var g=C.i,N=C.showDecription,x=N===void 0?1:N,B=C.buttons,L=B===void 0?(0,e.createComponentVNode)(2,f,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},f=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=C.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},u=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=C.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(A,w){return N("set_cart_item_quantity",{item:B.obj_path,quantity:w})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},v=function(C,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.exploitable,L=(0,S.useLocalState)(h,"selectedRecord",B[0]),T=L[0],A=L[1],w=(0,S.useLocalState)(h,"searchText",""),E=w[0],O=w[1],P=function(F,_){_===void 0&&(_="");var U=(0,o.createSearch)(_,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),_&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(F)},M=P(B,E);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function R(F,_){return O(_)}return R}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:M.map(function(R){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:R===T,onClick:function(){function F(){return A(R)}return F}(),children:R.name},R)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,b.modalRegisterBodyOverride)("become_contractor",function(V,C){var h,g,N,x,B=(0,S.useBackend)(C),L=B.data,T=L.contractor||{},A=T.time_left,w=!!(L!=null&&(h=L.contractor)!=null&&h.available),E=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),P=L.contractor||{},M=P.available_offers,R=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",R?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),M],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!w||O,italic:!w,bold:w,icon:w&&!O&&"check",color:"good",content:O?"Accepted":w?["Accept Offer",(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:A,format:function(){function F(_,U){return" ("+U+")"}return F}()},"countdown")]:E?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function F(){return(0,b.modalAnswer)(C,V.id,1)}return F}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.UploadPanel=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.selected_target,s=i.new_law,l=i.id,d=i.transmitting,f=i.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!c,content:c||"No target selected",onClick:function(){function u(){return p("choose_silicon")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!s,content:s||"No module installed",onClick:function(){function u(){return p("insert_module")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(f?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function u(){return p("authorization")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!c||!s||(f?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function u(){return p("change_laws")}return u}()})})]})})})})}return S}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VampireSpecMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=(0,a.useLocalState)(s,"activeTab","hemomancer"),u=f[0],v=f[1],V=function(){function C(){switch(u){case"hemomancer":return(0,e.createComponentVNode)(2,S,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,k,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,b,{act:d});case"bestia":return(0,e.createComponentVNode)(2,p,{act:d});default:return null}}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function C(){return v("hemomancer")}return C}(),selected:u==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function C(){return v("umbrae")}return C}(),selected:u==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function C(){return v("gargantua")}return C}(),selected:u==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function C(){return v("dantalion")}return C}(),selected:u==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function C(){return v("bestia")}return C}(),selected:u==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),V()]})})}return i}(),S=r.HemoMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return d("hemomancer")}return v}()})]})}return i}(),y=r.UmbrMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return d("umbrae")}return v}()})]})}return i}(),k=r.GarMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return d("gargantua")}return v}()})]})}return i}(),b=r.DantMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return d("dantalion")}return v}()})]})}return i}(),p=r.BestMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createVNode)(1,"img",null,null,1,{height:"256px",width:"256px",src:"data:image/jpeg;base64,"+u,style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return d("bestia")}return v}()})]})}return i}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(V){return(Math.round(V*10)/10).toFixed(1)},S=r.VampireTrophiesStatus=function(){function v(V,C){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)]})})})}return v}(),y=function(V,C){var h=(0,a.useBackend)(C),g=h.act,N=h.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,A=N.eyes,w=N.ears,E=N.trophies_max_gen,O=N.trophies_max_crit,P=N.icon_hearts,M=N.icon_lungs,R=N.icon_livers,F=N.icon_kidneys,_=N.icon_eyes,U=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xV;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+f,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:L,icon:B,content:x,textAlign:"left",onClick:function(){function T(){return c("vend",{inum:l.inum})}return T}()})})]})},y=r.Vending=function(){function k(b,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.user,d=s.guestNotice,f=s.userMoney,u=s.chargesMoney,v=s.product_records,V=v===void 0?[]:v,C=s.coin_records,h=C===void 0?[]:C,g=s.hidden_records,N=g===void 0?[]:g,x=s.stock,B=s.vend_ready,L=s.coin_name,T=s.inserted_item_name,A=s.panel_open,w=s.speaker,E=s.imagelist,O;return O=[].concat(V,h),s.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(P){return!!P}),(0,e.createComponentVNode)(2,m.Window,{width:470,height:100+Math.min(V.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function P(){return c("remove_coin",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function P(){return c("eject_item",{})}return P}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){function P(){return c("toggle_voice",{})}return P}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(P){return(0,e.createComponentVNode)(2,S,{product:P,productStock:x[P.name],productImage:E[P.path]},P.name)})})})})]})})})}return k}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VolumeMixer=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:s.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:s.volume,onChange:function(){function d(f,u){return p("volume",{channel:s.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:100})}return d}()})})})]})})],4,s.num)})})})})}return S}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VotePanel=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.remaining,s=i.question,l=i.choices,d=i.user_vote,f=i.counts,u=i.show_counts,v=i.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:V+(u?" ("+(f[V]||0)+")":""),onClick:function(){function C(){return p("vote",{target:V})}return C}(),selected:V===d})},V)}),!!v&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function V(){return p("cancel")}return V}()})},"Cancel")]})})})}return S}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Wires=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.wires||[],s=i.status||[],l=56+c.length*23+(status?0:15+s.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function f(){return p("cut",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function f(){return p("pulse",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function f(){return p("attach",{wire:d.color})}return f}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!s.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return S}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(73379),S=n(98595),y=["title","items"];function k(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var b=function(d,f,u){return d.requirements===null?!0:!(d.requirements.brass>f||d.requirements.power>u)},p=r.Workshop=function(){function l(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.brass_amount,h=V.power_amount,g=V.building,N=V.buildStart,x=V.buildEnd,B=V.worldTime,L=C.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},w={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,S.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function E(){return v("dispense")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,m.Countdown,{current:B,timeLeft:x-B,format:function(){function E(O,P){return P.substr(3)}return E}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})})}return l}(),i=function(d,f){var u=(0,t.useLocalState)(f,"search",""),v=u[0],V=u[1],C=(0,t.useLocalState)(f,"sort",""),h=C[0],g=C[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},c=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=V.items,h=(0,t.useLocalState)(f,"search",""),g=h[0],N=h[1],x=(0,t.useLocalState)(f,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(f,"descending",!1),A=T[0],w=T[1],E=(0,a.createSearch)(g,function(M){return M[0]}),O=!1,P=Object.entries(C).map(function(M,R){var F=Object.entries(M[1]).filter(E).map(function(_){return _[1].affordable=b(_[1],V.brass_amount,V.power_amount),_[1]});if(F.length!==0)return A&&(F=F.reverse()),O=!0,(0,e.createComponentVNode)(2,s,{title:M[0],items:F},M[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?P:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(d,f){var u=(0,t.useBackend)(f),v=u.act,V=u.data,C=d.title,h=d.items,g=k(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:C},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+N.image,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!b(N,V.brass_amount,V.power_amount),onClick:function(){function x(){return v("make",{cat:C,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=S(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(p,i){if(p){if(typeof p=="string")return y(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(p,i):void 0}}function y(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c0&&!N.includes(F.ref)&&!h.includes(F.ref),checked:h.includes(F.ref),onClick:function(){function _(){return x(F.ref)}return _}()},F.desc)})]})]})})}return p}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=function(k,b,p,i,c){return ki?"average":k>c?"bad":"good"},S=r.AtmosScan=function(){function y(k,b){var p=k.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function S(y){var k=y.beakerLoaded,b=y.beakerContents,p=b===void 0?[]:b,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!k&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,s){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,s)})]},c.name)})]})}return S}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},m=r.modalOpen=function(){function p(i,c,s){var l=(0,a.useBackend)(i),d=l.act,f=l.data,u=Object.assign(f.modal?f.modal.args:{},s||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return p}(),S=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),y=r.modalAnswer=function(){function p(i,c,s,l){var d=(0,a.useBackend)(i),f=d.act,u=d.data;if(u.modal){var v=Object.assign(u.modal.args||{},l||{});f("modal_answer",{id:c,answer:s,arguments:JSON.stringify(v)})}}return p}(),k=r.modalClose=function(){function p(i,c){var s=(0,a.useBackend)(i),l=s.act;l("modal_close",{id:c})}return p}(),b=r.ComplexModal=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data;if(l.modal){var d=l.modal,f=d.id,u=d.text,v=d.type,V,C=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function L(){return k(c)}return L}()}),h,g,N="auto";if(o[f])h=o[f](l.modal,c);else if(v==="input"){var x=l.modal.value;V=function(){function L(T){return y(c,f,x)}return L}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){x=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function L(){return k(c)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(v==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(c,f,T)}return L}()}),N="initial"}else v==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(c,f,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):v==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(c,f,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(c,f,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:V,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[f]&&C,h,g]})}}return p}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),m=n(76910),S=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(s){return y.indexOf(s)!==-1?"green":"orange"},b=function(s){if(y.indexOf(s)!==-1)return!0},p=function(s){return s.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(l.real_rank),bold:b(l.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u;if(s.data)u=s.data;else{var v=(0,a.useBackend)(l),V=v.data;u=V}var C=u,h=C.manifest,g=h.heads,N=h.pro,x=h.sec,B=h.eng,L=h.med,T=h.sci,A=h.ser,w=h.sup,E=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(E)})]})}return c}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function m(S,y){var k=(0,t.useBackend)(y),b=k.act,p=k.data,i=p.large_buttons,c=p.swapped_buttons,s=S.input,l=S.message,d=S.disabled,f=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function v(){return b("submit",{entry:s})}return v}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function v(){return b("cancel")}return v}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:f}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:f})]})}return m}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=S.siliconUser,c=i===void 0?p.siliconUser:i,s=S.locked,l=s===void 0?p.locked:s,d=S.normallyLocked,f=d===void 0?p.normallyLocked:d,u=S.onLockStatusChange,v=u===void 0?function(){return b("lock")}:u,V=S.accessText,C=V===void 0?"an ID card":V;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:f?"red":"green",icon:f?"lock":"unlock",content:f?"Locked":"Unlocked",onClick:function(){function h(){v&&v(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",C," to ",l?"unlock":"lock"," this interface."]})}return m}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function m(S){var y=S.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return b("login_logout")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return b("login_eject")}return c}()})]})]})})}return m}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.loginState,c=p.isAI,s=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return b("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return b("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return b("login_login",{login_type:2})}return d}()}),!!s&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return b("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return b("login_login",{login_type:4})}return d}()})]})})})}return m}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function m(S){var y=S.operating,k=S.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",k," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.Signaler=function(){function S(y,k){var b=(0,t.useBackend)(k),p=b.act,i=y.data,c=i.code,s=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:s/10,format:function(){function f(u){return(0,a.toFixed)(u,1)}return f}(),width:"80px",onDrag:function(){function f(u,v){return p("freq",{freq:v})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function f(u,v){return p("code",{code:v})}return f}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function f(){return p("signal")}return f}()})]})}return S}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),m=n(88510),S=n(36036),y=r.SimpleRecords=function(){function p(i,c){var s=i.data.records;return(0,e.createComponentVNode)(2,S.Box,{children:s?(0,e.createComponentVNode)(2,b,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.recordsList,f=(0,a.useLocalState)(c,"searchText",""),u=f[0],v=f[1],V=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,m.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,m.filter)(x),(0,m.sortBy)(function(B){return B.Name})])(d)},C=V(d,u);return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,N){return v(N)}return h}()}),C.map(function(h){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:h.uid})}return g}()})},h)})]})},b=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.records,f=d.general,u=d.medical,v=d.security,V;switch(i.recordType){case"MED":V=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":V=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Security Data",children:v?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Criminal Status",children:v.criminal}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Crimes",children:v.mi_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:v.mi_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Crimes",children:v.ma_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:v.ma_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:v.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Section,{title:"General Data",children:f?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Physical Status",children:f.p_stat}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Mental Status",children:f.m_stat})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"General record lost!"})}),V]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function m(S,y){var k,b=(0,a.useBackend)(y),p=b.act,i=b.data,c=i.temp;if(c){var s=(k={},k[c.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:c.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return p("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return m}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),m=n(98595),S=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],k=[{title:"Button",component:function(){function h(){return p}return h}()},{title:"Box",component:function(){function h(){return i}return h}()},{title:"ProgressBar",component:function(){function h(){return c}return h}()},{title:"Tabs",component:function(){function h(){return s}return h}()},{title:"Tooltip",component:function(){function h(){return l}return h}()},{title:"Input / Control",component:function(){function h(){return d}return h}()},{title:"Collapsible",component:function(){function h(){return f}return h}()},{title:"BlockQuote",component:function(){function h(){return v}return h}()},{title:"ByondUi",component:function(){function h(){return V}return h}()},{title:"Themes",component:function(){function h(){return C}return h}()}],b=r.KitchenSink=function(){function h(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],A=L[1],w=k[T].component();return(0,e.createComponentVNode)(2,m.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:k.map(function(E,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function P(){return A(O)}return P}(),children:E.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,w)})]})})})})}return h}(),p=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},i=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},c=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},s=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),A=T[0],w=T[1],E=(0,a.useLocalState)(N,"tabAlt"),O=E[0],P=E[1],M=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:A,onClick:function(){function R(){return w(!A)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function R(){return P(!O)}return R}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:M.map(function(R,F){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:F===B,onClick:function(){function _(){return L(F)}return _}(),children:["Tab #",R]},F)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),A=T[0],w=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onChange:function(){function E(O,P){return w(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function E(O,P){return w(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function E(O,P){return L(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function E(O,P){return L(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function E(O,P){return L(P)}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function E(O,P){return L(P)}return E}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function E(O,P){return L(P)}return E}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function E(O,P){return L(P)}return E}(),children:function(){function E(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return E}()})})})]})})},f=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,u)})})},u=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},v=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,u)})},V=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},C=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(A,w){return L(w)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function i(){return b("ui_interact")}return i}()})})})}return m}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.brute,f=i.oxy,u=i.tox,v=i.burn,V=i.reagents,C=i.addictions,h=i.fractures,g=i.internal_bleeding;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:f})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:v})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:V?V.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:C?C.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function i(){return b("ui_interact")}return i}()})})})}return m}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.master,s=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+s+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function f(){return b("getdna")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.cable,s=i.machine,l=i.inprogress,d=i.progress,f=i.aborted,u;s?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function V(){return b("cable")}return V}()});var v;return s&&(v=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function V(){return b("cancel")}return V}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function V(){return b("jack")}return V}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),v]})}return m}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.radio_name,s=i.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[c,", ",s]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return b("set_newname",{newname:f})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return b("set_newrank",{newrank:f})}return l}()})})]})})}return m}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function i(){return b("ui_interact")}return i}()})})})}return m}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.available_software,s=i.installed_software,l=i.installed_toggles,d=i.available_ram,f=i.emotions,u=i.current_emotion,v=[];return s.map(function(V){return v[V.key]=V.name}),l.map(function(V){return v[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(V){return!v[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function C(){return b("purchaseSoftware",{key:V.key})}return C}()},V.key)}),c.filter(function(V){return!v[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[s.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function C(){return b("startSoftware",{software_key:V.key})}return C}()},V.key)}),s.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function C(){return b("setToggle",{toggle_key:V.key})}return C}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:f.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name,selected:V.id===u,onClick:function(){function C(){return b("setEmotion",{emotion:V.id})}return C}()},V.id)})})]})})}return m}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return m}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),m=r.pai_radio=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.app_data,s=c.minFrequency,l=c.maxFrequency,d=c.frequency,f=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:d/10,format:function(){function u(v){return(0,t.toFixed)(v,1)}return u}(),onChange:function(){function u(v,V){return p("freq",{freq:V})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return p("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return p("toggleBroadcast")}return u}(),selected:f,content:f?"Enabled":"Disabled"})})]})}return S}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.current_chemicals,f=i.available_chemicals;return c?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.name+" ("+u.cost+")",tooltip:u.desc,disabled:u.cost>d,onClick:function(){function v(){return b("secreteChemicals",{key:u.key})}return v}()},u.key)}),f.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return m}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return m}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.janitor,c=i.user_loc,s=i.mops,l=i.buckets,d=i.cleanbots,f=i.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})})]})}return m}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.pda_main_menu=function(){function S(y,k){var b=(0,t.useBackend)(k),p=b.act,i=b.data,c=i.owner,s=i.ownjob,l=i.idInserted,d=i.categories,f=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function v(){return p("UpdateInfo")}return v}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(v){var V=i.apps[v];return!V||!V.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:v,children:V.map(function(C){return(0,e.createComponentVNode)(2,o.Button,{icon:C.uid in u?C.notify_icon:C.icon,iconSpin:C.uid in u,color:C.uid in u?"red":"transparent",content:C.name,onClick:function(){function h(){return p("StartProgram",{program:C.uid})}return h}()},C.uid)})},v)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function v(){return p("pai",{option:1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function v(){return p("pai",{option:2})}return v}()})]})})]})}return S}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return m}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=r.pda_messenger=function(){function b(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,S,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return b}(),S=r.ActiveConversation=function(){function b(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convo_device,f=l.messages,u=l.active_convo,v=(0,t.useLocalState)(i,"clipboardMode",!1),V=v[0],C=v[1],h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return C(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return V&&(h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return C(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return s("Clear",{option:"Convo"})}return g}()})})})}),h]})}return b}(),y=r.MessengerList=function(){function b(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convopdas,f=l.pdas,u=l.charges,v=l.silent,V=l.toff,C=(0,t.useLocalState)(i,"searchTerm",""),h=C[0],g=C[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!v,icon:v?"volume-mute":"volume-up",onClick:function(){function N(){return s("Toggle Ringer")}return N}(),children:["Ringer: ",v?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:V?"bad":"green",icon:"power-off",onClick:function(){function N(){return s("Toggle Messenger")}return N}(),children:["Messenger: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return s("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return s("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!V&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!f.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:h,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,k,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:h}),(0,e.createComponentVNode)(2,k,{title:"Other PDAs",pdas:f,msgAct:"Message",data:l,searchTerm:h})]})}return b}(),k=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=p.pdas,f=p.title,u=p.msgAct,v=p.searchTerm,V=l.charges,C=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:f,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,children:d.filter(function(h){return h.Name.toLowerCase().includes(v.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return s(u,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!V&&C.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return s("Messenger Plugin",{plugin:g.uid,target:h.uid})}return N}()},g.uid)})})]},h.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.mulebot,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.mulebot,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.mulebot,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,v=l.load,V=l.powr,C=l.dest,h=l.home,g=l.retn,N=l.pick,x;switch(f){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=f;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[V,"%"]}),(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:C?C+" (Set)":"None (Set)",onClick:function(){function B(){return i("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Unload)":"None",disabled:!v,onClick:function(){function B(){return i("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return i("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return i("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return i("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return i("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:i}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return b("Edit")}return c}(),content:"Edit"})]})}return m}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return m}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),m=r.pda_request_console=function(){function S(y,k){var b=(0,a.useBackend)(k),p=b.act,i=b.data,c=i.screen,s=i.selected_console,l=i.consoles_data,d=i.app;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[c]||o.pages.default)(),c===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function f(){return p("back")}return f}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(f){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:f.priority===1?"green":f.priority===2?"red":"default",content:f.name,onClick:function(){function u(){return p("select",{name:f.name})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:f.muted?"volume-mute":"volume-up",onClick:function(){function u(){return p("mute",{name:f.name})}return u}()})]})})},f.name)})})})}return S}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.beepsky,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.beepsky,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,b){var p=(0,a.useBackend)(b),i=p.act,c=p.data,s=c.beepsky,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,v;switch(f){case 0:v="Ready";break;case 1:v="Apprehending target";break;case 2:case 3:v="Arresting target";break;case 4:v="Starting patrol";break;case 5:v="On patrol";break;case 6:v="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function V(){return i("Go")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function V(){return i("Stop")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function V(){return i("Summon")}return V}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"SEC"})}return m}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return m}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return b("Status",{statdisp:"blank"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return b("Status",{statdisp:"shuttle"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return b("Status",{statdisp:"message"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return b("Status",{statdisp:"alert",alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return b("Status",{statdisp:"alert",alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return b("Status",{statdisp:"alert",alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return b("Status",{statdisp:"alert",alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){function c(){return b("Status",{statdisp:"setmsg1"})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){function c(){return b("Status",{statdisp:"setmsg2"})}return c}()})})]})})}return m}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),b=k.act,p=k.data,i=p.supply,c=i.shuttle_loc,s=i.shuttle_time,l=i.shuttle_moving,d=i.approved,f=i.approved_count,u=i.requests,v=i.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",s]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:v>0&&u.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.OrderedBy,'"']},V)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:f>0&&d.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.ApprovedBy,'"']},V)})})]})}return m}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),m=["className","theme","children"],S=["className","scrollable","children"];/** + */var S=r.RequestManager=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.requests,u=(0,t.useLocalState)(c,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var I=B[0],T=B[1];return[I,!0]}))),C=u[0],b=u[1],v=(0,t.useLocalState)(c,"searchText"),h=v[0],g=v[1],N=f.filter(function(B){return C[B.req_type]});if(h){var x=h.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,m.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:h,onInput:function(){function B(I,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,k,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,V,{request:B})],0,null,B.id)})})})})}return p}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},k=function(i){var c=i.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+c,[y[c],(0,e.createTextVNode)(":")],0)},V=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s._,f=i.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("pp",{id:f.id})}return u}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("vv",{id:f.id})}return u}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("sm",{id:f.id})}return u}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("tp",{id:f.id})}return u}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("logs",{id:f.id})}return u}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("bless",{id:f.id})}return u}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("smite",{id:f.id})}return u}(),children:"SMITE"}),f.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("rply",{id:f.id})}return u}(),children:"RPLY"}),f.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("ertreply",{id:f.id})}return u}(),children:"ERTREPLY"}),f.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return l("getcode",{id:f.id})}return u}(),children:"GETCODE"})],0)}},16475:function(L,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),m=n(13472),S=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},k=r.RndConsole=function(){function V(p,i){var c=(0,a.useBackend)(i),s=c.data,l=s.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:s.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,m.RndNavbar),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,m.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,m.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:function(){function d(f){return f===S.LATHE||f===S.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,m.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,m.RndRoute,{menu:S.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,m.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return V}()},93098:function(L,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),p.map(function(i,c){var s=i.name,l=i.level,d=i.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[c>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:s}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},s)})]})}return m}()},19192:function(L,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S="design",y="tech",k=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_data;return h?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:h.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:h.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,i)]})]}):null},V=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_data;if(!h)return null;var g=h.name,N=h.lathe_types,x=h.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(I){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,I.name,0,{style:{"text-transform":"capitalize"}})," x ",I.amount]},I.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 I(){return v("updt_design")}return I}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function I(){return v("clear_design")}return I}()}),(0,e.createComponentVNode)(2,i)]})]})},p=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:m.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,i)]})]})},i=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_type;return h?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=h===y?"eject_tech":"eject_design";v(N)}return g}()}):null},c=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_data,h=b.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,p);switch(h){case S:return(0,e.createComponentVNode)(2,V);case y:return(0,e.createComponentVNode)(2,k);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},s=function(f,u){var C=(0,a.useBackend)(u),b=C.data,v=C.act,h=b.disk_type,g=b.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function I(){h===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return I}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(f,u){var C=(0,a.useBackend)(u),b=C.data,v=b.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,c)}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.DISK_COPY,render:function(){function h(){return(0,e.createComponentVNode)(2,s)}return h}()})],4):null}return d}()},20887:function(L,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_item,c=V.linked_destroy;return c?i?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",i.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.origin_tech.map(function(s){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+s.name,children:[s.object_level," ",s.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),s.current_level,(0,e.createTextVNode)(")")],0):null]},s.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function s(){p("deconstruct")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function s(){p("eject_item")}return s}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return m}()},10666:function(L,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheCategory=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.category,s=p.matching_designs,l=p.menu,d=l===4,f=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:c,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:s.map(function(u){var C=u.id,b=u.name,v=u.can_build,h=u.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:b,disabled:v<1,onClick:function(){function g(){return i(f,{id:C,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return i(f,{id:C,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return i(f,{id:C,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},C)})})]})}return S}()},52285:function(L,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_chemicals,c=V.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function s(){var l=c?"disposeallP":"disposeallI";p(l)}return s}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:i.map(function(s){var l=s.volume,d=s.name,f=s.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function u(){var C=c?"disposeP":"disposeI";p(C,{id:f})}return u}()})},f)})})]})}return m}()},71964:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=r.LatheMainMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.data,i=V.act,c=p.menu,s=p.categories,l=c===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function f(){i("setCategory",{category:d})}return f}()})},d)})})]})}return S}()},17906:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=k.act,i=V.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:i.map(function(c){var s=c.id,l=c.amount,d=c.name,f=function(){function v(h){var g=V.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";p(g,{id:s,amount:h})}return v}(),u=Math.floor(l/2e3),C=l<1,b=u===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:C?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",u," sheet",b,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return f(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return f("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return f(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return f(50)}return v}()})],0):null})]},s)})})})}return m}()},83706:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data,p=V.total_materials,i=V.max_materials,c=V.max_chemicals,s=V.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:p}),i?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+i}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]})]})})}return m}()},76749:function(L,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),m=n(36036),S=n(16475),y=r.LatheMenu=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.menu,l=c.linked_lathe,d=c.linked_imprinter;return s===4&&!l?(0,e.createComponentVNode)(2,m.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):s===5&&!d?(0,e.createComponentVNode)(2,m.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,m.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.MAIN,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CATEGORY,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_MAT_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return f}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:S.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function f(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return f}()})]})}return k}()},74698:function(L,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function p(i,c){return V("search",{to_search:c})}return p}()})})}return m}()},17180:function(L,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.MainMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.disk_type,s=i.linked_destroy,l=i.linked_lathe,d=i.linked_imprinter,f=i.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!c,menu:m.MENU.DISK,submenu:m.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,menu:m.MENU.DESTROY,submenu:m.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:m.MENU.LATHE,submenu:m.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:m.MENU.IMPRINTER,submenu:m.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:m.MENU.SETTINGS,submenu:m.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:f.map(function(u){var C=u.name,b=u.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:C,children:b},C)})})]})}return y}()},63459:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function m(S,y){var k=S.icon,V=S.children,p=S.disabled,i=S.content,c=(0,a.useBackend)(y),s=c.data,l=c.act,d=s.menu,f=s.submenu,u=d,C=f;return S.menu!==null&&S.menu!==void 0&&(u=S.menu),S.submenu!==null&&S.submenu!==void 0&&(C=S.submenu),(0,e.createComponentVNode)(2,t.Button,{content:i,icon:k,disabled:p,onClick:function(){function b(){l("nav",{menu:u,submenu:C})}return b}(),children:V})}return m}()},94942:function(L,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),m=r.RndNavbar=function(){function S(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(k){return k!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return k}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function k(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return k}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(k){return k===o.MENU.LATHE||k===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return S}()},12059:function(L,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,m){var S=o.render,y=(0,e.useBackend)(m),k=y.data,V=k.menu,p=k.submenu,i=function(){function s(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return s}(),c=i(o.menu,V)&&i(o.submenu,p);return c?S():null}return t}()},52580:function(L,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),m=n(16475),S=r.SettingsMenu=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=p.act,s=i.sync,l=i.admin,d=i.linked_destroy,f=i.linked_lathe,u=i.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.MAIN,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!s,onClick:function(){function b(){c("sync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:s,onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!s,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function b(){c("togglesync")}return b}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!s,content:"Device Linkage Menu",icon:"link",menu:m.MENU.SETTINGS,submenu:m.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function b(){return c("maxresearch")}return b}()}):null]})})}return C}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:m.SUBMENU.SETTINGS_DEVICES,render:function(){function C(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function b(){return c("find_device")}return b}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"destroy"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),f?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){c("disconnect",{item:"lathe"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function b(){return c("disconnect",{item:"imprinter"})}return b}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return C}()})]})}return y}()},13472:function(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(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var m=n(52285);r.LatheChemicalStorage=m.LatheChemicalStorage;var S=n(71964);r.LatheMainMenu=S.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var k=n(17906);r.LatheMaterialStorage=k.LatheMaterialStorage;var V=n(76749);r.LatheMenu=V.LatheMenu;var p=n(74698);r.LatheSearch=p.LatheSearch;var i=n(17180);r.MainMenu=i.MainMenu;var c=n(94942);r.RndNavbar=c.RndNavbar;var s=n(63459);r.RndNavButton=s.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(L,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(98595),S=r.RoboQuest=function(){function y(k,V){var p=(0,t.useBackend)(V),i=p.act,c=p.data,s=c.hasID,l=c.name,d=c.questInfo,f=c.hasTask,u=c.canCheck,C=c.canSend,b=c.checkMessage,v=c.style,h=c.cooldown,g=c.instant_teleport,N=c.shopItems,x=c.points,B=c.cats,I=(0,t.useLocalState)(V,"shopState",!1),T=I[0],E=I[1],w={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,m.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!s||!f||!u||h,onClick:function(){function A(){return i("Check")}return A}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!f&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&d.modules.map(function(A){return A.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",A.icon]),null,1,null,A.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,b,0)],4),!!h&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,h,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(A){return(0,e.createFragment)(!(N[A]===void 0||N[A].length===0||A==="robo")&&N[A].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:w[A],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return i("buyItem",{item:O.path})}return M}()},O.path)}),0,A)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function A(){return E(!T)}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function A(){return i("ChangeStyle")}return A}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!s,onClick:function(){function A(){return i("RemoveID")}return A}()}),!f&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!s||h,onClick:function(){function A(){return i("GetTask")}return A}()}),!!f&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function A(){return i("printOrder")}return A}(),disabled:!f}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!s||h,onClick:function(){function A(){return i("RemoveTask")}return A}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!f&&d.modules.map(function(A){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),A.id],0),(0,e.createTextVNode)(": "),A.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,A.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"send"})}return A}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!s||!f||!C||h,onClick:function(){function A(){return i("SendMech",{type:"only_packing"})}return A}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!s||!f||!C||h||!g,onClick:function(){function A(){return i("SendMech",{type:"instant"})}return A}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(A){return(!A.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:A.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[A.name," ",(0,e.createVNode)(1,"b",null,A.cost.robo,0,{style:{color:"purple"}})]}),content:A.desc,onClick:function(){function O(){return i("buyItem",{item:A.path})}return O}()},A.name)})})]})]})})})}return y}()},26109:function(L,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(25328),S=function(V,p){var i=V/p;return i<=.2?"good":i<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.data,s=c.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:s.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,m.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:S(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:S(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return k}()},97997:function(L,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.RoboticsControlConsole=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.can_hack,l=c.safety,d=c.show_detonate_all,f=c.cyborgs,u=f===void 0?[]:f;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function C(){return i("arm",{})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function C(){return i("nuke",{})}return C}()})]}),(0,e.createComponentVNode)(2,S,{cyborgs:u,can_hack:s})]})})}return y}(),S=function(k,V){var p=k.cyborgs,i=k.can_hack,c=(0,a.useBackend)(V),s=c.act,l=c.data;return p.length?p.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function f(){return s("hackbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function f(){return s("stopbot",{uid:d.uid})}return f}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function f(){return s("killbot",{uid:d.uid})}return f}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(L,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),m=n(98595),S=r.Safe=function(){function p(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,C=d.locked,b=d.contents;return(0,e.createComponentVNode)(2,m.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving--hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe--engraving--arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),u?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*f+"deg)","z-index":0}})]}),!u&&(0,e.createComponentVNode)(2,V)]})})}return p}(),y=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.dial,u=d.open,C=d.locked,b=function(h,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:u||g&&!C,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+h,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:h})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:C,icon:u?"lock":"lock-open",content:u?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[b(50),b(10),b(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[b(1,!0),b(10,!0),b(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:f})]})},k=function(i,c){var s=(0,t.useBackend)(c),l=s.act,d=s.data,f=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:f.map(function(u,C){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function b(){return l("retrieve",{index:C+1})}return b}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:u.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),u.name]}),(0,e.createVNode)(1,"br")],4,u)})})},V=function(i,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe--help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},29740:function(L,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SatelliteControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.satellites,s=i.notice,l=i.meteor_shield,d=i.meteor_shield_coverage,f=i.meteor_shield_coverage_max,u=i.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:u>=100?"good":"average",value:d,maxValue:f,children:[u," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:i.notice}),c.map(function(C){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+C.id,children:[C.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:C.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function b(){return p("toggle",{id:C.id})}return b}()})]},C.id)})]})})]})})}return S}()},44162:function(L,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SecureStorage=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.emagged,s=i.locked,l=i.l_set,d=i.l_setshort,f=i.current_code,u=function(){function C(b){var v=b.buttonValue,h=b.color;return h||(h="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:c||d,type:"button",color:h,onClick:function(){function g(){return p("setnumber",{buttonValue:v})}return g}(),children:v})}return C}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"1"}),(0,e.createComponentVNode)(2,u,{buttonValue:"2"}),(0,e.createComponentVNode)(2,u,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"4"}),(0,e.createComponentVNode)(2,u,{buttonValue:"5"}),(0,e.createComponentVNode)(2,u,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"7"}),(0,e.createComponentVNode)(2,u,{buttonValue:"8"}),(0,e.createComponentVNode)(2,u,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,u,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,u,{buttonValue:"0"}),(0,e.createComponentVNode)(2,u,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:c||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:c?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),c?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"red":"green",children:s?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:f||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:s,color:"red",content:"Lock",icon:"lock",onClick:function(){function C(){return p("close")}return C}()})]})})]})})}return S}()},6272:function(L,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(98595),S=n(3939),y=n(321),k=n(5485),V=n(22091),p={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},i=function(g,N){(0,S.modalOpen)(g,"edit",{field:N.edit,value:N.value})},c=r.SecurityRecords=function(){function h(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=I.loginState,E=I.currentPage,w;if(T.logged_in)E===1?w=(0,e.createComponentVNode)(2,l):E===2?w=(0,e.createComponentVNode)(2,u):E===3&&(w=(0,e.createComponentVNode)(2,C));else return(0,e.createComponentVNode)(2,m.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,k.LoginScreen)})});return(0,e.createComponentVNode)(2,m.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,S.ComplexModal),(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,V.TemporaryNotice),(0,e.createComponentVNode)(2,s),w]})})]})}return h}(),s=function(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=I.currentPage,E=I.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function w(){return B("page",{page:1})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function w(){return B("page",{page:2})}return w}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&E&&!E.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",E.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=I.records,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],R=(0,t.useLocalState)(N,"sortOrder",!0),F=R[0],_=R[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(w,function(U){return U.name+"|"+U.id+"|"+U.rank+"|"+U.fingerprint+"|"+U.status})).sort(function(U,W){var $=F?1:-1;return U[M].localeCompare(W[M])*$}).map(function(U){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+p[U.status],onClick:function(){function W(){return B("view",{uid_gen:U.uid_gen,uid_sec:U.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",U.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:U.status})]},U.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],I=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),E=T[0],w=T[1],A=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==A&&"transparent",fluid:!0,onClick:function(){function M(){B===A?w(!E):(I(A),w(!0))}return M}(),children:[O,B===A&&(0,e.createComponentVNode)(2,o.Icon,{name:E?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=I.isPrinting,E=(0,t.useLocalState)(N,"searchText",""),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,S.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(M,P){return A(P)}return O}()})})]})},u=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function I(){return B("delete_security_all")}return I}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function I(){return B("delete_cell_logs")}return I}()})]})},C=function(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=I.isPrinting,E=I.general,w=I.security;return!E||!E.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function A(){return B("print_record")}return A}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function A(){return B("delete_general")}return A}()})],4),children:(0,e.createComponentVNode)(2,b)})}),!w||!w.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function A(){return B("new_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:w.empty,content:"Delete Record",onClick:function(){function A(){return B("delete_security")}return A}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:w.fields.map(function(A,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:A.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(A.value),!!A.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:A.line_break?"1rem":"initial",onClick:function(){function M(){return i(N,A)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},b=function(g,N){var x=(0,t.useBackend)(N),B=x.data,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(T,E){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function w(){return i(N,T)}return w}()})]},E)})})}),!!I.has_photos&&I.photos.map(function(T,E){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",E+1]},E)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,I=x.data,T=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 E(){return(0,S.modalOpen)(N,"comment_add")}return E}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(E,w){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:E.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),E.text||E,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function A(){return B("comment_delete",{id:w+1})}return A}()})]},w)})})})}},5099:function(L,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),m=n(36036),S=n(98595),y=n(3939);function k(f,u){var C=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(C)return(C=C.call(f)).next.bind(C);if(Array.isArray(f)||(C=V(f))||u&&f&&typeof f.length=="number"){C&&(f=C);var b=0;return function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V(f,u){if(f){if(typeof f=="string")return p(f,u);var C={}.toString.call(f).slice(8,-1);return C==="Object"&&f.constructor&&(C=f.constructor.name),C==="Map"||C==="Set"?Array.from(f):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?p(f,u):void 0}}function p(f,u){(u==null||u>f.length)&&(u=f.length);for(var C=0,b=Array(u);C=w},v=function(E,w){return E<=w},h=u.split(" "),g=[],N=function(){var E=I.value,w=E.split(":");if(w.length===0)return 0;if(w.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(w[0].toLocaleLowerCase())}),0;if(w.length>2)return{v:function(){function M(P){return!1}return M}()};var A,O=C;if(w[1][w[1].length-1]==="-"?(O=v,A=Number(w[1].substring(0,w[1].length-1))):w[1][w[1].length-1]==="+"?(O=b,A=Number(w[1].substring(0,w[1].length-1))):A=Number(w[1]),isNaN(A))return{v:function(){function M(P){return!1}return M}()};switch(w[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,A)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,A)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,A)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,A)});break;case"y":case"yield":g.push(function(M){return O(M.yield,A)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,A)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,A)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=k(h),I;!(I=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var E=0,w=g;E=1?Number(O):1)}return w}()})]})]})}},2916:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleConsole=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=f===void 0?"shuttle":f,C=i.blind_drop,b=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!b&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:u==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V,{type:u,blind_drop:C})})]})}return p}(),S=function(i,c){var s;return i==null||(s=i.find(function(l){return l.id===c}))==null?void 0:s.name},y=function(i,c){var s;return i==null||(s=i.find(function(l){return l.name===c}))==null?void 0:s.id},k={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},V=r.ShuttleConsoleContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=i.type,u=i.blind_drop,C=d.status,b=d.locked,v=d.authorization_required,h=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:k[C]||"bad",ml:1,children:C||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:f==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:f!=="shuttle"&&B.length===0&&!!u&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!u,content:"Blind Drop",onClick:function(){function I(){return l("random")}return I}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:S(B,h)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(I){return I.name}),disabled:b||v,selected:S(B,h)||"Select a Destination",onSelected:function(){function I(T){return l("set_destination",{destination:y(B,T)})}return I}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!S(B,h)||b||v||C!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function I(){return l("move",{shuttle_id:h})}return I}()})]})]})}return p}()},39401:function(L,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ShuttleManipulator=function(){function V(p,i){var c=(0,a.useLocalState)(i,"tabIndex",0),s=c[0],l=c[1],d=function(){function f(u){switch(u){case 0:return(0,e.createComponentVNode)(2,S);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,k);default:return"WE SHOULDN'T BE HERE!"}}return f}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===0,onClick:function(){function f(){return l(0)}return f}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===1,onClick:function(){function f(){return l(1)}return f}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:s===2,onClick:function(){function f(){return l(2)}return f}(),icon:"tools",children:"Modification"},"Modification")]}),d(s)]})})})}return V}(),S=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:f.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:f.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:f.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:f.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:f.id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function u(){return s("fast_travel",{id:f.id})}return u}()})]})]})},f.name)})})},y=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.templates_tabs,f=l.existing_shuttle,u=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(C){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===f.id,icon:"file",onClick:function(){function b(){return s("select_template_category",{cat:C})}return b}(),children:C},C)})}),!!f&&u[f.id].templates.map(function(C){return(0,e.createComponentVNode)(2,t.Section,{title:C.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[C.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:C.description}),C.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:C.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function b(){return s("select_template",{shuttle_id:C.shuttle_id})}return b}()})})]})},C.name)})]})},k=function(p,i){var c=(0,a.useBackend)(i),s=c.act,l=c.data,d=l.existing_shuttle,f=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function u(){return s("jump_to",{type:"mobile",id:d.id})}return u}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),f?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:f.description}),f.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:f.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function u(){return s("preview",{shuttle_id:f.shuttle_id})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function u(){return s("load",{shuttle_id:f.shuttle_id})}return u}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(L,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=n(98595),S=[["good","Alive"],["average","Critical"],["bad","DEAD"]],y=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],k={average:[.25,.5],bad:[.5,1/0]},V=["bad","average","average","good","average","average","bad"],p=r.Sleeper=function(){function u(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,i):(0,e.createComponentVNode)(2,f);return(0,e.createComponentVNode)(2,m.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return u}(),i=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,d)],4)},c=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"On":"Off",onClick:function(){function B(){return h("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"Eject",onClick:function(){function B(){return h("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",color:S[N.stat][0],children:S[N.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:V[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Blood Level",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pulse",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},s=function(C,b){var v=(0,t.useBackend)(b),h=v.data,g=h.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Damage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:k,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,I=g.beakerFreeSpace,T=g.dialysis,E=T&&I>0;return(0,e.createComponentVNode)(2,o.Section,{title:"Dialysis",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||I<=0||!N,selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Active":"Inactive",onClick:function(){function w(){return h("togglefilter")}return w}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"Eject",onClick:function(){function w(){return h("removebeaker")}return w}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:I/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[I,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No beaker loaded."})})},d=function(C,b){var v=(0,t.useBackend)(b),h=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,I=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"Occupant Chemicals",children:x.map(function(T,E){var w="",A;return T.overdosing?(w="bad",A=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):T.od_warning&&(w="average",A=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:A,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:w,title:"Amount of chemicals currently inside the occupant / Total amount injectable by this machine",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),I.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"Inject "+O+"u",title:"Inject "+O+"u of "+T.title+" into the occupant",mb:"0",height:"19px",onClick:function(){function P(){return h("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},E)})})},f=function(C,b){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"No occupant detected."]})})})}},21597:function(L,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SlotMachine=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data;if(i.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var c;return i.plays===1?c=i.plays+" player has tried their luck today!":c=i.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:c}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:i.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:i.working,content:i.working?"Spinning...":"Spin",onClick:function(){function s(){return p("spin")}return s}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:i.resultlvl,children:i.result})]})})})}return S}()},46348:function(L,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Smartfridge=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.secure,s=i.can_dry,l=i.drying,d=i.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!c&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Secure Access: Please have your identification ready."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:s?"Drying rack":"Contents",buttons:!!s&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"On":"Off",selected:l,onClick:function(){function f(){return p("drying")}return f}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"No products loaded."]})}),!!d&&d.slice().sort(function(f,u){return f.display_name.localeCompare(u.display_name)}).map(function(f){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:f.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",f.quantity," in stock)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"Dispense one.",content:"1",onClick:function(){function u(){return p("vend",{index:f.vend,amount:1})}return u}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:f.quantity,step:1,stepPixelSize:3,onChange:function(){function u(C,b){return p("vend",{index:f.vend,amount:b})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"All",tooltip:"Dispense all.",tooltipPosition:"bottom-start",onClick:function(){function u(){return p("vend",{index:f.vend,amount:f.quantity})}return u}()})]})]},f)})]})]})})})}return S}()},86162:function(L,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),m=n(98595),S=1e3,y=r.Smes=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.capacityPercent,d=s.capacity,f=s.charge,u=s.inputAttempt,C=s.inputting,b=s.inputLevel,v=s.inputLevelMax,h=s.inputAvailable,g=s.outputPowernet,N=s.outputAttempt,x=s.outputting,B=s.outputLevel,I=s.outputLevelMax,T=s.outputUsed,E=l>=100&&"good"||C&&"average"||"bad",w=x&&"good"||f>0&&"average"||"bad";return(0,e.createComponentVNode)(2,m.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"sync-alt":"times",selected:u,onClick:function(){function A(){return c("tryinput")}return A}(),children:u?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:l>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:b===0,onClick:function(){function A(){return c("input",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:b===0,onClick:function(){function A(){return c("input",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:b/S,fillValue:h/S,minValue:0,maxValue:v/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("input",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:b===v,onClick:function(){function A(){return c("input",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:b===v,onClick:function(){function A(){return c("input",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(h)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function A(){return c("tryoutput")}return A}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:w,children:g?x?"Sending":f>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function A(){return c("output",{target:"min"})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function A(){return c("output",{adjust:-1e4})}return A}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/S,minValue:0,maxValue:I/S,step:5,stepPixelSize:4,format:function(){function A(O){return(0,o.formatPower)(O*S,1)}return A}(),onChange:function(){function A(O,M){return c("output",{target:M*S})}return A}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===I,onClick:function(){function A(){return c("output",{adjust:1e4})}return A}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===I,onClick:function(){function A(){return c("output",{target:"max"})}return A}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return k}()},63584:function(L,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SolarControl=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=0,s=1,l=2,d=i.generated,f=i.generated_ratio,u=i.tracking_state,C=i.tracking_rate,b=i.connected_panels,v=i.connected_tracker,h=i.cdir,g=i.direction,N=i.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return p("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:b>0?"good":"bad",children:b})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:f,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[h,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),u===s&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",C,"\xB0/h (",N,")"," "]}),u===c&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[u!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:h,onDrag:function(){function x(B,I){return p("cdir",{cdir:I})}return x}()}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:u===c,onClick:function(){function x(){return p("track",{track:c})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:u===s,onClick:function(){function x(){return p("track",{track:s})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:u===l,disabled:!v,onClick:function(){function x(){return p("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[u===s&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:C,format:function(){function x(B){var I=Math.sign(B)>0?"+":"-";return I+Math.abs(B)}return x}(),onDrag:function(){function x(B,I){return p("tdir",{tdir:I})}return x}()}),u===c&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),u===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return S}()},38096:function(L,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.SpawnersMenu=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:c.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:s.name+" ("+s.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return p("jump",{ID:s.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return p("spawn",{ID:s.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:s.desc}),!!s.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:s.fluff}),!!s.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:s.important_info})]},s.name)})})})})}return S}()},7957:function(L,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595);function S(f,u){f.prototype=Object.create(u.prototype),f.prototype.constructor=f,y(f,u)}function y(f,u){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,b){return C.__proto__=b,C},y(f,u)}var k=r.SpiderOS=function(){function f(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g;return h.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,s)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p)]})]}):h.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:h.current_load_text,finishedTimeout:3e3,current_initialisation_phase:h.current_initialisation_phase,end_terminal:h.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,m.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return f}(),V=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:h,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},p=function(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.designs,N=h.design_choice,x=h.scarf_design_choice,B=h.colors,I=h.color_choice,T=h.genders,E=h.preferred_clothes_gender,w=h.suit_state,A=h.preferred_scarf_over_hood,O=h.show_charge_UI,M=h.has_martial_art,P=h.show_concentration_UI,R;w===0?R="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":R="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var F;A===0?F="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":F="\u0428\u0430\u0440\u0444";var _;A===1?_=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W($){return v("set_scarf_design",{scarf_design_choice:$})}return W}()})}):_=null;var U;return M?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):U=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W($){return v("set_design",{design_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:I,onSelected:function(){function W($){return v("set_color",{color_choice:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:E,onSelected:function(){function W($){return v("set_gender",{preferred_clothes_gender:$})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:w===0?"":"Button_disabled",width:"90px",selected:A,disabled:w,textAlign:"left",content:F,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),_,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),U]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:R,backgroundColor:I,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},i=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:h,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},c=function(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data,g=h.actionsIcon,N=h.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},s=r.ShuttleConsole=function(){function f(u,C){var b=(0,a.useBackend)(C),v=b.act,h=b.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.status?h.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:h.player_pos}),!!h.shuttle&&(!!h.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:h.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!h.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!h.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return f}(),l=function(u,C){var b=(0,a.useBackend)(C),v=b.data,h=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:h,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",h+"%"]}),2)})})},d=function(f){function u(b){var v;return v=f.call(this,b)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}S(u,f);var C=u.prototype;return C.tick=function(){function b(){var v=this.props,h=this.state;if(v.allMessages!==h.lastText&&!v.end_terminal){var g=h.currentDisplay;g.push(v.allMessages),h.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return b}(),C.componentDidMount=function(){function b(){var v=this,h=this.props.linesPerSecond,g=h===void 0?2.5:h;this.timer=setInterval(function(){return v.tick()},1e3/g)}return b}(),C.componentWillUnmount=function(){function b(){clearTimeout(this.timer)}return b}(),C.render=function(){function b(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return b}(),u}(e.Component)},38307:function(L,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,S)})})}return y}(),S=r.StationAlertConsoleContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.data,c=i.alarms||[];return Object.keys(c).map(function(s){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:s+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=c[s])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=c[s])==null?void 0:d.map(function(f){return(0,e.createVNode)(1,"li","color-average",f,0,null,f)}),0)},s)})}return y}()},39409:function(L,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),m=n(36036),S=n(98595),y=5,k=9,V=function(b){return b===0?5:9},p="64px",i=function(b){return b[0]+"/"+b[1]},c=function(b){var v=b.align,h=b.children;return(0,e.createComponentVNode)(2,m.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:h})},s={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:i([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:i([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:i([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:i([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:i([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:i([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:i([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:i([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:i([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:i([1,4])},jumpsuit:{displayName:"uniform",gridSpot:i([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:i([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:i([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:i([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:i([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,c,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:i([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:i([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:i([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:i([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:i([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:i([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:i([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:i([4,8]),image:"inventory-pda.png"}},f=function(C){return C[C.Completely=1]="Completely",C[C.Hidden=2]="Hidden",C}(f||{}),u=r.StripMenu=function(){function C(b,v){var h=(0,o.useBackend)(v),g=h.act,N=h.data,x=new Map;if(N.show_mode===0)for(var B=0,I=Object.keys(N.items);B300?"bad":s>150?"average":"good"},k=function(s){return s>5e3?"bad":s>4e3?"average":"good"},V=function(s){return s>1e4?"bad":s>5e3?"average":"good"},p=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function C(){return f("refresh")}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:u.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,m.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,m.TableCell,{children:"Details"})]}),u.supermatters.map(function(C){return(0,e.createComponentVNode)(2,m.TableRow,{children:[(0,e.createComponentVNode)(2,m.TableCell,{children:C.area_name}),(0,e.createComponentVNode)(2,m.TableCell,{children:[C.integrity,"%"]}),(0,e.createComponentVNode)(2,m.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function b(){return f("view",{view:C.uid})}return b}()})})]},C)})]})})})})})},i=function(s,l){var d=(0,a.useBackend)(l),f=d.act,u=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function C(){return f("back")}return C}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:u.SM_integrity,children:[u.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(u.SM_power),children:[u.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:k(u.SM_ambienttemp),children:[u.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:V(u.SM_ambientpressure),children:[u.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[u.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[u.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[u.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[u.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[u.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(L,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),m=n(98595),S=r.SyndicateComputerSimple=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data;return(0,e.createComponentVNode)(2,m.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:c.rows.map(function(s){return(0,e.createComponentVNode)(2,t.Section,{title:s.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:s.buttontitle,disabled:s.buttondisabled,tooltip:s.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return i(s.buttonact)}return l}()}),children:[s.status,!!s.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:s.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},s.title)})})})}return y}()},99279:function(L,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),m=n(36036),S=n(98595),y=n(29319),k=n(25328),V=r.SyndieCargoConsole=function(){function l(d,f){return(0,e.createComponentVNode)(2,S.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:[(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s)]})})}return l}(),p=function(d,f){var u=(0,o.useLocalState)(f,"contentsModal",null),C=u[0],b=u[1],v=(0,o.useLocalState)(f,"contentsModalTitle",null),h=v[0],g=v[1];if(C!==null&&h!==null)return(0,e.createComponentVNode)(2,m.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,m.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[h,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,m.Box,{children:C.map(function(N){return(0,e.createComponentVNode)(2,m.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,m.Box,{m:2,children:(0,e.createComponentVNode)(2,m.Button,{content:"Close",onClick:function(){function N(){b(null),g(null)}return N}()})})]})},i=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.is_public,h=v===void 0?0:v,g=b.cash,N=b.wait_time,x=b.is_cooldown,B=b.telepads_status,I=b.adminAddCash,T=B,E="",w=0,A="";return B==="Pads not linked!"?(w=0,E="Attempts to link telepads to the console.",A="Link pads"):x?x&&(A="Cooldown...",E="Pads are cooling off...",w=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(w=0,E="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",A="Teleport"),(0,e.createComponentVNode)(2,m.Section,{title:"Status",children:(0,e.createComponentVNode)(2,m.LabeledList,{children:[h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,m.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return C("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:I,tooltip:"Bless the players with da money!",onClick:function(){function O(){return C("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Telepads Status",children:T}),h===0&&(0,e.createComponentVNode)(2,m.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,m.Button,{content:A,tooltip:E,disabled:w,onClick:function(){function O(){return C("teleport")}return O}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return C("showMessages")}return O}()})]})]})})},c=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.categories,h=b.supply_packs,g=(0,o.useSharedState)(f,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(f,"search_text",""),I=B[0],T=B[1],E=(0,o.useLocalState)(f,"contentsModal",null),w=E[0],A=E[1],O=(0,o.useLocalState)(f,"contentsModalTitle",null),M=O[0],P=O[1],R=(0,k.createSearch)(I,function(U){return U.name}),F=(0,a.flow)([(0,t.filter)(function(U){return U.cat===v.filter(function(W){return W.name===N})[0].category||I}),I&&(0,t.filter)(R),(0,t.sortBy)(function(U){return U.name.toLowerCase()})])(h),_="Crate Catalogue";return I?_="Results for '"+I+"':":N&&(_="Browsing "+N),(0,e.createComponentVNode)(2,m.Section,{title:_,buttons:(0,e.createComponentVNode)(2,m.Dropdown,{width:"190px",options:v.map(function(U){return U.name}),selected:N,onSelected:function(){function U(W){return x(W)}return U}()}),children:[(0,e.createComponentVNode)(2,m.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function U(W,$){return T($)}return U}(),mb:1}),(0,e.createComponentVNode)(2,m.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:F.map(function(U){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{bold:!0,children:[U.name," (",U.cost," Credits)"]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return C("order",{crate:U.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,m.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){A(U.contents),P(U.name)}return W}()})]})]},U.name)})})})]})},s=function(d,f){var u=(0,o.useBackend)(f),C=u.act,b=u.data,v=b.requests,h=b.canapprove,g=b.orders;return(0,e.createComponentVNode)(2,m.Section,{title:"Details",children:(0,e.createComponentVNode)(2,m.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:[(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,m.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,m.Button,{content:"Approve",color:"green",disabled:!h,onClick:function(){function x(){return C("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,m.Button,{content:"Deny",color:"red",onClick:function(){function x(){return C("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,m.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,m.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,m.Table.Row,{children:(0,e.createComponentVNode)(2,m.Table.Cell,{children:[(0,e.createComponentVNode)(2,m.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,m.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(L,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},S={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(i,c,s,l){return l===void 0&&(l=null),i.map(function(d){var f,u=(f=d[l])!=null?f:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:c.includes(d),content:u,onClick:function(){function C(){c.includes(d)?s(c.filter(function(b){var v;return((v=b[l])!=null?v:b)!==d})):s([d].concat(c))}return C}()},u)})},k=r.TTSSeedsExplorer=function(){function p(i,c){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,V)})})}return p}(),V=r.TTSSeedsExplorerContent=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.providers,u=d.seeds,C=d.selected_seed,b=d.phrases,v=d.donator_level,h=u.map(function(Y){return Y.category}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),g=u.map(function(Y){return Y.gender}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}),N=u.map(function(Y){return Y.donator_level}).filter(function(Y,Q,Z){return Z.indexOf(Y)===Q}).map(function(Y){return m[Y]}),x=(0,a.useLocalState)(c,"selectedProviders",f),B=x[0],I=x[1],T=(0,a.useLocalState)(c,"selectedGenders",g),E=T[0],w=T[1],A=(0,a.useLocalState)(c,"selectedCategories",h),O=A[0],M=A[1],P=(0,a.useLocalState)(c,"selectedDonatorLevels",N),R=P[0],F=P[1],_=(0,a.useLocalState)(c,"selectedPhrase",b[0]),U=_[0],W=_[1],$=(0,a.useLocalState)(c,"searchtext",""),G=$[0],oe=$[1],X=y(f,B,I,"name"),Ce=y(g,E,w),me=y(h,O,M),ne=y(N,R,F),ce=(0,e.createComponentVNode)(2,t.Dropdown,{options:b,selected:U.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function Y(Q){return W(Q)}return Y}()}),q=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function Y(Q,Z){return oe(Z)}return Y}()}),ae=u.sort(function(Y,Q){var Z=Y.name.toLowerCase(),te=Q.name.toLowerCase();return Z>te?1:Z0&&C!==Y.name?"orange":"white",children:Y.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:C===Y.name?.5:.25,textAlign:"left",children:Y.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:C===Y.name?"white":S[Y.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:S[Y.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:Y.donator_level>0&&(0,e.createFragment)([m[Y.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},Y.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:X}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:Ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:me}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:ne}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:ce}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:q})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+u.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return p}()},56441:function(L,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TachyonArray=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s,d=c.explosion_target,f=c.toxins_tech,u=c.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:f}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||u,align:"center",onClick:function(){function C(){return i("print_logs")}return C}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function C(){return i("delete_logs")}return C}()})]})]})}),l.length?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),S=r.TachyonArrayContent=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.records,l=s===void 0?[]:s;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function f(){return i("delete_record",{index:d.index})}return f}()})})]},d.index)})]})})})})}return y}()},1754:function(L,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Tank=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c;return i.has_mask?c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.connected?"check":"times",content:i.connected?"Internals On":"Internals Off",selected:i.connected,onClick:function(){function s(){return p("internals")}return s}()})}):c=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:i.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:i.ReleasePressure===i.minReleasePressure,tooltip:"Min",onClick:function(){function s(){return p("pressure",{pressure:"min"})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(i.releasePressure),width:"65px",unit:"kPa",minValue:i.minReleasePressure,maxValue:i.maxReleasePressure,onChange:function(){function s(l,d){return p("pressure",{pressure:d})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:i.ReleasePressure===i.maxReleasePressure,tooltip:"Max",onClick:function(){function s(){return p("pressure",{pressure:"max"})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:i.ReleasePressure===i.defaultReleasePressure,tooltip:"Reset",onClick:function(){function s(){return p("pressure",{pressure:"reset"})}return s}()})]}),c]})})})})}return S}()},7579:function(L,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TankDispenser=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.o_tanks,s=i.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+c+")",disabled:c===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+s+")",disabled:s===0,icon:"arrow-circle-down",onClick:function(){function l(){return p("plasma")}return l}()})})]})})}return S}()},16136:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsCore=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.ion,u=(0,a.useLocalState)(c,"tabIndex",0),C=u[0],b=u[1],v=function(){function h(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,k);case 2:return(0,e.createComponentVNode)(2,V);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[f===1&&(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===0,onClick:function(){function h(){return b(0)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===1,onClick:function(){function h(){return b(1)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:C===2,onClick:function(){function h(){return b(2)}return h}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(C)]})})}return p}(),S=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.active,u=d.sectors_available,C=d.nttc_toggle_jobs,b=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,h=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"On":"Off",selected:f,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:u})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:C?"On":"Off",selected:C,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:b?"On":"Off",selected:b,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.link_password,u=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"lock",onClick:function(){function C(){return l("change_password")}return C}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),u.map(function(C){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function b(){return l("unlink",{addr:C.addr})}return b}()})})]},C.addr)})]})]})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=s.data,f=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function u(){return l("add_filter")}return u}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),f.map(function(u){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:u}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function C(){return l("remove_filter",{user:u})}return C}()})})]},u)})]})})}},88046:function(L,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.TcommsRelay=function(){function k(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked,d=s.active,f=s.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function u(){return c("toggle_active")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:f||"Unset",selected:f,icon:"server",onClick:function(){function u(){return c("network_id")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,y)]})})}return k}(),S=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.linked_core_id,d=s.linked_core_addr,f=s.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:f?"Yes":"No",icon:f?"eye-slash":"eye",selected:f,onClick:function(){function u(){return c("toggle_hidden_link")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function u(){return c("unlink")}return u}()})})]})})},y=function(V,p){var i=(0,a.useBackend)(p),c=i.act,s=i.data,l=s.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function f(){return c("link",{addr:d.addr})}return f}()})})]},d.addr)})]})})}},20802:function(L,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=n(79646),S=r.Teleporter=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.targetsTeleport?c.targetsTeleport:{},l=0,d=1,f=2,u=c.calibrated,C=c.calibrating,b=c.powerstation,v=c.regime,h=c.teleporterhub,g=c.target,N=c.locked,x=c.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!b||!h)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[h,!b&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),b&&!h&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),b&&h&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return i("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return i("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===f?"good":null,disabled:!N,onClick:function(){function B(){return i("setregime",{regime:f})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(I){return i("settarget",{x:s[I].x,y:s[I].y,z:s[I].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(s),color:g!=="None"?"default":"bad",onSelected:function(){function B(I){return i("settarget",{x:s[I].x,y:s[I].y,z:s[I].z})}return B}()}),v===f&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,m.GridColumn,{size:"2",children:C&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(u||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,m.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(u||C),onClick:function(){function B(){return i("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&b&&h&&v===f)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return i("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return i("eject")}return B}()})]})})]})})}return y}()},24410:function(L,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),m=n(92986),S=n(36036),y=n(98595),k=r.sanitizeMultiline=function(){function c(s){return s.replace(/(\n|\r\n){3,}/,"\n\n")}return c}(),V=r.removeAllSkiplines=function(){function c(s){return s.replace(/[\r\n]+/,"")}return c}(),p=r.TextInputModal=function(){function c(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,C=u.max_length,b=u.message,v=b===void 0?"":b,h=u.multiline,g=u.placeholder,N=u.timeout,x=u.title,B=(0,o.useLocalState)(l,"input",g||""),I=B[0],T=B[1],E=function(){function O(M){if(M!==I){var P=h?k(M):V(M);T(P)}}return O}(),w=h||I.length>=40,A=130+(v.length>40?Math.ceil(v.length/4):0)+(w?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:A,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===m.KEY_ENTER&&(!w||!M.shiftKey)&&f("submit",{entry:I}),P===m.KEY_ESCAPE&&f("cancel")}return O}(),children:(0,e.createComponentVNode)(2,S.Section,{fill:!0,children:(0,e.createComponentVNode)(2,S.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,S.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,S.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i,{input:I,onType:E})}),(0,e.createComponentVNode)(2,S.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:I,message:I.length+"/"+C})})]})})})]})}return c}(),i=function(s,l){var d=(0,o.useBackend)(l),f=d.act,u=d.data,C=u.max_length,b=u.multiline,v=s.input,h=s.onType,g=b||v.length>=40;return(0,e.createComponentVNode)(2,S.TextArea,{autoFocus:!0,autoSelect:!0,height:b||v.length>=40?"100%":"1.8rem",maxLength:C,onEscape:function(){function N(){return f("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),f("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return h(B)}return N}(),placeholder:"Type something...",value:v})}},69566:function(L,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.ThiefKit=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.uses,s=i.possible_uses,l=i.multi_uses,d=i.kits,f=i.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:c<=0?"good":c=s,onClick:function(){function u(){return p("randomKit")}return u}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:u.was_taken||c>=s,onClick:function(){function C(){return p("takeKit",{item:u.type})}return C}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!u.was_taken,onClick:function(){function C(){return p("undoKit",{item:u.type})}return C}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:u.desc})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:f&&f.map(function(u){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:u.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function C(){return p("undoKit",{item:u.type})}return C}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},u.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:c0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,R){return" ("+R+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:p(T)})]})})]})}return b}(),c=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.crystals,I=x.cats,T=(0,S.useLocalState)(h,"uplinkItems",I[0].items),E=T[0],w=T[1],A=(0,S.useLocalState)(h,"searchText",""),O=A[0],M=A[1],P=function($,G){G===void 0&&(G="");var oe=(0,o.createSearch)(G,function(X){var Ce=X.hijack_only===1?"|hijack":"";return X.name+"|"+X.desc+"|"+X.cost+"tc"+Ce});return(0,t.flow)([(0,a.filter)(function(X){return X==null?void 0:X.name}),G&&(0,a.filter)(oe),(0,a.sortBy)(function(X){return X==null?void 0:X.name})])($)},R=function($){if(M($),$==="")return w(I[0].items);w(P(I.map(function(G){return G.items}).flat(),$))},F=(0,S.useLocalState)(h,"showDesc",1),_=F[0],U=F[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:_,onClick:function(){function W(){return U(!_)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W($,G){R(G)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:I.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===E,onClick:function(){function $(){w(W.items),M("")}return $}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:E.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:_},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},s=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cart,I=x.crystals,T=x.cart_price,E=(0,S.useLocalState)(h,"showDesc",0),w=E[0],A=E[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+I+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:w,onClick:function(){function O(){return A(!w)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>I})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:w,buttons:(0,e.createComponentVNode)(2,u,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.cats,I=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:I.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,E){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},E)})})})})},d=function(v,h){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,I=B===void 0?(0,e.createComponentVNode)(2,f,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:I,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},f=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,I=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>I}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>I})],4)},u=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=v.i,I=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(E,w){return N("set_cart_item_quantity",{item:B.obj_path,quantity:w})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},C=function(v,h){var g=(0,S.useBackend)(h),N=g.act,x=g.data,B=x.exploitable,I=(0,S.useLocalState)(h,"selectedRecord",B[0]),T=I[0],E=I[1],w=(0,S.useLocalState)(h,"searchText",""),A=w[0],O=w[1],M=function(F,_){_===void 0&&(_="");var U=(0,o.createSearch)(_,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),_&&(0,a.filter)(U),(0,a.sortBy)(function(W){return W.name})])(F)},P=M(B,A);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function R(F,_){return O(_)}return R}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(R){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:R===T,onClick:function(){function F(){return E(R)}return F}(),children:R.name},R)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,V.modalRegisterBodyOverride)("become_contractor",function(b,v){var h,g,N,x,B=(0,S.useBackend)(v),I=B.data,T=I.contractor||{},E=T.time_left,w=!!(I!=null&&(h=I.contractor)!=null&&h.available),A=!!(I!=null&&(g=I.contractor)!=null&&g.affordable),O=!!(I!=null&&(N=I.contractor)!=null&&N.accepted),M=I.contractor||{},P=M.available_offers,R=!!(I!=null&&(x=I.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",R?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!w||O,italic:!w,bold:w,icon:w&&!O&&"check",color:"good",content:O?"Accepted":w?["Accept Offer",(0,e.createComponentVNode)(2,m.Countdown,{timeLeft:E,format:function(){function F(_,U){return" ("+U+")"}return F}()},"countdown")]:A?I.contractor.is_admin_forced?"Offer expired":I.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),I.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function F(){return(0,V.modalAnswer)(v,b.id,1)}return F}()})]})})},80949:function(L,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.UploadPanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.selected_target,s=i.new_law,l=i.id,d=i.transmitting,f=i.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!c,content:c||"No target selected",onClick:function(){function u(){return p("choose_silicon")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!s,content:s||"No module installed",onClick:function(){function u(){return p("insert_module")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(f?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function u(){return p("authorization")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!c||!s||(f?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function u(){return p("change_laws")}return u}()})})]})})})})}return S}()},8946:function(L,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VampireSpecMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=(0,a.useLocalState)(s,"activeTab","hemomancer"),u=f[0],C=f[1],b=function(){function v(){switch(u){case"hemomancer":return(0,e.createComponentVNode)(2,S,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,k,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,V,{act:d});case"bestia":return(0,e.createComponentVNode)(2,p,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return C("hemomancer")}return v}(),selected:u==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return C("umbrae")}return v}(),selected:u==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return C("gargantua")}return v}(),selected:u==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return C("dantalion")}return v}(),selected:u==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return C("bestia")}return v}(),selected:u==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),b()]})})}return i}(),S=r.HemoMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function C(){return d("hemomancer")}return C}()})]})}return i}(),y=r.UmbrMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function C(){return d("umbrae")}return C}()})]})}return i}(),k=r.GarMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function C(){return d("gargantua")}return C}()})]})}return i}(),V=r.DantMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function C(){return d("dantalion")}return C}()})]})}return i}(),p=r.BestMenu=function(){function i(c,s){var l=(0,a.useBackend)(s),d=l.act,f=l.data,u=f.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:u[0],icon_state:u[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function C(){return d("bestia")}return C}()})]})}return i}()},45770:function(L,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=function(b){return(Math.round(b*10)/10).toFixed(1)},S=r.VampireTrophiesStatus=function(){function C(b,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,V),(0,e.createComponentVNode)(2,p),(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,s),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,u)]})})})}return C}(),y=function(b,v){var h=(0,a.useBackend)(v),g=h.act,N=h.data,x=N.hearts,B=N.lungs,I=N.livers,T=N.kidneys,E=N.eyes,w=N.ears,A=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,R=N.icon_lungs,F=N.icon_livers,_=N.icon_kidneys,U=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:f,icon_state:u,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:I,content:B,textAlign:"left",onClick:function(){function E(){return c("vend",{inum:l.inum})}return E}()})})]})},y=r.Vending=function(){function k(V,p){var i=(0,t.useBackend)(p),c=i.act,s=i.data,l=s.user,d=s.guestNotice,f=s.userMoney,u=s.chargesMoney,C=s.product_records,b=C===void 0?[]:C,v=s.coin_records,h=v===void 0?[]:v,g=s.hidden_records,N=g===void 0?[]:g,x=s.stock,B=s.vend_ready,I=s.coin_name,T=s.inserted_item_name,E=s.panel_open,w=s.speaker,A=s.imagelist,O;return O=[].concat(b,h),s.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,m.Window,{width:470,height:100+Math.min(b.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!u&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[f,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!I&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return c("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:I})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return c("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!E&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"volume-mute",selected:w,content:"Speaker",textAlign:"left",onClick:function(){function M(){return c("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,S,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return k}()},68971:function(L,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VolumeMixer=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+c.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:c.map(function(s,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:s.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-off",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:s.volume,onChange:function(){function d(f,u){return p("volume",{channel:s.num,volume:u})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"volume-up",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return p("volume",{channel:s.num,volume:100})}return d}()})})})]})})],4,s.num)})})})})}return S}()},2510:function(L,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.VotePanel=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.remaining,s=i.question,l=i.choices,d=i.user_vote,f=i.counts,u=i.show_counts,C=i.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:s,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(c/10),"s"]}),l.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:b+(u?" ("+(f[b]||0)+")":""),onClick:function(){function v(){return p("vote",{target:b})}return v}(),selected:b===d})},b)}),!!C&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function b(){return p("cancel")}return b}()})},"Cancel")]})})})}return S}()},30138:function(L,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),m=r.Wires=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.wires||[],s=i.status||[],l=56+c.length*23+(status?0:15+s.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function f(){return p("cut",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function f(){return p("pulse",{wire:d.color})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function f(){return p("attach",{wire:d.color})}return f}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!s.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:s.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return S}()},30995:function(L,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),m=n(73379),S=n(98595),y=["title","items"];function k(l,d){if(l==null)return{};var f={};for(var u in l)if({}.hasOwnProperty.call(l,u)){if(d.includes(u))continue;f[u]=l[u]}return f}var V=function(d,f,u){return d.requirements===null?!0:!(d.requirements.brass>f||d.requirements.power>u)},p=r.Workshop=function(){function l(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.brass_amount,h=b.power_amount,g=b.building,N=b.buildStart,x=b.buildEnd,B=b.worldTime,I=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),E={float:"left",width:"60%"},w={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,S.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,i),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[I,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function A(){return C("dispense")}return A}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,m.Countdown,{current:B,timeLeft:x-B,format:function(){function A(O,M){return M.substr(3)}return A}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,c)})})]})})})}return l}(),i=function(d,f){var u=(0,t.useLocalState)(f,"search",""),C=u[0],b=u[1],v=(0,t.useLocalState)(f,"sort",""),h=v[0],g=v[1],N=(0,t.useLocalState)(f,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function I(T,E){return b(E)}return I}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function I(){return B(!x)}return I}()})})]})})},c=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=b.items,h=(0,t.useLocalState)(f,"search",""),g=h[0],N=h[1],x=(0,t.useLocalState)(f,"sort","Alphabetical"),B=x[0],I=x[1],T=(0,t.useLocalState)(f,"descending",!1),E=T[0],w=T[1],A=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,R){var F=Object.entries(P[1]).filter(A).map(function(_){return _[1].affordable=V(_[1],b.brass_amount,b.power_amount),_[1]});if(F.length!==0)return E&&(F=F.reverse()),O=!0,(0,e.createComponentVNode)(2,s,{title:P[0],items:F},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},s=function(d,f){var u=(0,t.useBackend)(f),C=u.act,b=u.data,v=d.title,h=d.items,g=k(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:h.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!V(N,b.brass_amount,b.power_amount),onClick:function(){function x(){return C("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(L,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function m(p,i){var c=typeof Symbol!="undefined"&&p[Symbol.iterator]||p["@@iterator"];if(c)return(c=c.call(p)).next.bind(c);if(Array.isArray(p)||(c=S(p))||i&&p&&typeof p.length=="number"){c&&(p=c);var s=0;return function(){return s>=p.length?{done:!0}:{done:!1,value:p[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(p,i){if(p){if(typeof p=="string")return y(p,i);var c={}.toString.call(p).slice(8,-1);return c==="Object"&&p.constructor&&(c=p.constructor.name),c==="Map"||c==="Set"?Array.from(p):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?y(p,i):void 0}}function y(p,i){(i==null||i>p.length)&&(i=p.length);for(var c=0,s=Array(i);c0&&!N.includes(F.ref)&&!h.includes(F.ref),checked:h.includes(F.ref),onClick:function(){function _(){return x(F.ref)}return _}()},F.desc)})]})]})})}return p}()},26991:function(L,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=function(k,V,p,i,c){return ki?"average":k>c?"bad":"good"},S=r.AtmosScan=function(){function y(k,V){var p=k.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(i){return i.val!=="0"||i.entry==="Pressure"||i.entry==="Temperature"})(p).map(function(i){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:i.entry,color:m(i.val,i.bad_low,i.poor_low,i.poor_high,i.bad_high),children:[i.val,i.units]},i.entry)})})})}return y}()},85870:function(L,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" unit"+(y===1?"":"s")},m=r.BeakerContents=function(){function S(y){var k=y.beakerLoaded,V=y.beakerContents,p=V===void 0?[]:V,i=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!k&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"No beaker loaded."})||p.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"Beaker is empty."}),p.map(function(c,s){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(c.volume)," of ",c.name]},c.name),!!i&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:i(c,s)})]},c.name)})]})}return S}();m.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(L,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},m=r.modalOpen=function(){function p(i,c,s){var l=(0,a.useBackend)(i),d=l.act,f=l.data,u=Object.assign(f.modal?f.modal.args:{},s||{});d("modal_open",{id:c,arguments:JSON.stringify(u)})}return p}(),S=r.modalRegisterBodyOverride=function(){function p(i,c){o[i]=c}return p}(),y=r.modalAnswer=function(){function p(i,c,s,l){var d=(0,a.useBackend)(i),f=d.act,u=d.data;if(u.modal){var C=Object.assign(u.modal.args||{},l||{});f("modal_answer",{id:c,answer:s,arguments:JSON.stringify(C)})}}return p}(),k=r.modalClose=function(){function p(i,c){var s=(0,a.useBackend)(i),l=s.act;l("modal_close",{id:c})}return p}(),V=r.ComplexModal=function(){function p(i,c){var s=(0,a.useBackend)(c),l=s.data;if(l.modal){var d=l.modal,f=d.id,u=d.text,C=d.type,b,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"Cancel",onClick:function(){function I(){return k(c)}return I}()}),h,g,N="auto";if(o[f])h=o[f](l.modal,c);else if(C==="input"){var x=l.modal.value;b=function(){function I(T){return y(c,f,x)}return I}(),h=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function I(T,E){x=E}return I}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){function I(){return k(c)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){function I(){return y(c,f,x)}return I}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(C==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;h=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function I(T){return y(c,f,T)}return I}()}),N="initial"}else C==="bento"?h=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(I,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function E(){return y(c,f,T+1)}return E}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:I})})},T)})}):C==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function I(){return y(c,f,0)}return I}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function I(){return y(c,f,1)}return I}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:i.maxWidth||window.innerWidth/2+"px",maxHeight:i.maxHeight||window.innerHeight/2+"px",onEnter:b,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[u&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:u}),o[f]&&v,h,g]})}}return p}()},41874:function(L,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),m=n(76910),S=m.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],k=function(s){return y.indexOf(s)!==-1?"green":"orange"},V=function(s){if(y.indexOf(s)!==-1)return!0},p=function(s){return s.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),s.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:k(l.real_rank),bold:V(l.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},i=r.CrewManifest=function(){function c(s,l){var d=(0,a.useBackend)(l),f=d.act,u;if(s.data)u=s.data;else{var C=(0,a.useBackend)(l),b=C.data;u=b}var v=u,h=v.manifest,g=h.heads,N=h.pro,x=h.sec,B=h.eng,I=h.med,T=h.sci,E=h.ser,w=h.sup,A=h.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:p(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:p(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:p(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:p(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:p(I)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:p(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:p(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:S.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:p(w)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:p(A)})]})}return c}()},19203:function(L,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function m(S,y){var k=(0,t.useBackend)(y),V=k.act,p=k.data,i=p.large_buttons,c=p.swapped_buttons,s=S.input,l=S.message,d=S.disabled,f=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"Submit",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("submit",{entry:s})}return C}(),textAlign:"center",tooltip:i&&l,disabled:d,width:!i&&6}),u=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"Cancel",bold:!!i,fluid:!!i,onClick:function(){function C(){return V("cancel")}return C}(),textAlign:"center",width:!i&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:c?"row-reverse":"row",justify:"space-around",children:[i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:c?.5:0,mr:c?0:.5,children:u}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:u}),!i&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),i?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:c?.5:0,ml:c?0:.5,children:f}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:f})]})}return m}()},195:function(L,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=S.siliconUser,c=i===void 0?p.siliconUser:i,s=S.locked,l=s===void 0?p.locked:s,d=S.normallyLocked,f=d===void 0?p.normallyLocked:d,u=S.onLockStatusChange,C=u===void 0?function(){return V("lock")}:u,b=S.accessText,v=b===void 0?"an ID card":b;return c?(0,e.createComponentVNode)(2,t.NoticeBox,{color:c&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"Interface lock status:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:f?"red":"green",icon:f?"lock":"unlock",content:f?"Locked":"Unlocked",onClick:function(){function h(){C&&C(!l)}return h}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["Swipe ",v," to ",l?"unlock":"lock"," this interface."]})}return m}()},51057:function(L,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function m(S){var y=S.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return m}()},321:function(L,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState;if(p)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["Logged in as: ",i.name," (",i.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"Logout",color:"good",onClick:function(){function c(){return V("login_logout")}return c}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!i.id,content:"Eject ID",color:"good",onClick:function(){function c(){return V("login_eject")}return c}()})]})]})})}return m}()},5485:function(L,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.loginState,c=p.isAI,s=p.isRobot,l=p.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"Welcome",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:i.id?i.id:"----------",ml:"0.5rem",onClick:function(){function d(){return V("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!i.id,content:"Login",onClick:function(){function d(){return V("login_login",{login_type:1})}return d}()}),!!c&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){function d(){return V("login_login",{login_type:2})}return d}()}),!!s&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){function d(){return V("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"CentComm Secure Login",onClick:function(){function d(){return V("login_login",{login_type:4})}return d}()})]})})})}return m}()},62411:function(L,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function m(S){var y=S.operating,k=S.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",k," is processing..."]})})})}return m}();o.propTypes={operating:t.bool,name:t.string}},13545:function(L,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.Signaler=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=y.data,c=i.code,s=i.frequency,l=i.minFrequency,d=i.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:s/10,format:function(){function f(u){return(0,a.toFixed)(u,1)}return f}(),width:"80px",onDrag:function(){function f(u,C){return p("freq",{freq:C})}return f}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:c,width:"80px",onDrag:function(){function f(u,C){return p("code",{code:C})}return f}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function f(){return p("signal")}return f}()})]})}return S}()},41984:function(L,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),m=n(88510),S=n(36036),y=r.SimpleRecords=function(){function p(i,c){var s=i.data.records;return(0,e.createComponentVNode)(2,S.Box,{children:s?(0,e.createComponentVNode)(2,V,{data:i.data,recordType:i.recordType}):(0,e.createComponentVNode)(2,k,{data:i.data})})}return p}(),k=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.recordsList,f=(0,a.useLocalState)(c,"searchText",""),u=f[0],C=f[1],b=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,m.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,m.filter)(x),(0,m.sortBy)(function(B){return B.Name})])(d)},v=b(d,u);return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function h(g,N){return C(N)}return h}()}),v.map(function(h){return(0,e.createComponentVNode)(2,S.Box,{children:(0,e.createComponentVNode)(2,S.Button,{mb:.5,content:h.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:h.uid})}return g}()})},h)})]})},V=function(i,c){var s=(0,a.useBackend)(c),l=s.act,d=i.data.records,f=d.general,u=d.medical,C=d.security,b;switch(i.recordType){case"MED":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Medical Data",children:u?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Blood Type",children:u.blood_type}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Disabilities",children:u.mi_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.mi_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Disabilities",children:u.ma_dis}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.ma_dis_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Allergies",children:u.alg}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.alg_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Current Diseases",children:u.cdi}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:u.cdi_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:u.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":b=(0,e.createComponentVNode)(2,S.Section,{level:2,title:"Security Data",children:C?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Criminal Status",children:C.criminal}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Minor Crimes",children:C.mi_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.mi_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Major Crimes",children:C.ma_crim}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Details",children:C.ma_crim_d}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:C.notes})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,S.Box,{children:[(0,e.createComponentVNode)(2,S.Section,{title:"General Data",children:f?(0,e.createComponentVNode)(2,S.LabeledList,{children:[(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Name",children:f.name}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Sex",children:f.sex}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Species",children:f.species}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Age",children:f.age}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Rank",children:f.rank}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Fingerprint",children:f.fingerprint}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Physical Status",children:f.p_stat}),(0,e.createComponentVNode)(2,S.LabeledList.Item,{label:"Mental Status",children:f.m_stat})]}):(0,e.createComponentVNode)(2,S.Box,{color:"red",bold:!0,children:"General record lost!"})}),b]})}},22091:function(L,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function m(S,y){var k,V=(0,a.useBackend)(y),p=V.act,i=V.data,c=i.temp;if(c){var s=(k={},k[c.style]=!0,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},s,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:c.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return p("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return m}()},25443:function(L,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),m=n(98595),S=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],k=[{title:"Button",component:function(){function h(){return p}return h}()},{title:"Box",component:function(){function h(){return i}return h}()},{title:"ProgressBar",component:function(){function h(){return c}return h}()},{title:"Tabs",component:function(){function h(){return s}return h}()},{title:"Tooltip",component:function(){function h(){return l}return h}()},{title:"Input / Control",component:function(){function h(){return d}return h}()},{title:"Collapsible",component:function(){function h(){return f}return h}()},{title:"BlockQuote",component:function(){function h(){return C}return h}()},{title:"ByondUi",component:function(){function h(){return b}return h}()},{title:"Themes",component:function(){function h(){return v}return h}()}],V=r.KitchenSink=function(){function h(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],I=(0,a.useLocalState)(N,"pageIndex",0),T=I[0],E=I[1],w=k[T].component();return(0,e.createComponentVNode)(2,m.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:k.map(function(A,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return E(O)}return M}(),children:A.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,w)})]})})})})}return h}(),p=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),S.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},i=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},c=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],I=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return I(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return I(B+.1)}return T}()})]})]})},s=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],I=x[1],T=(0,a.useLocalState)(N,"tabVert"),E=T[0],w=T[1],A=(0,a.useLocalState)(N,"tabAlt"),O=A[0],M=A[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:E,onClick:function(){function R(){return w(!E)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function R(){return M(!O)}return R}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:E,children:P.map(function(R,F){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:F===B,onClick:function(){function _(){return I(F)}return _}(),children:["Tab #",R]},F)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],I=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),E=T[0],w=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onChange:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function A(O,M){return w(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function A(O,M){return I(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return I(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return I(M)}return A}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return I(M)}return A}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function A(O,M){return I(M)}return A}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function A(O,M){return I(M)}return A}(),children:function(){function A(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return A}()})})})]})})},f=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,u)})})},u=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},C=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,u)})},b=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],I=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(E,w){return I(w)}return T}()})})})})}},96572:function(L,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},80818:function(L,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:p.app_data})}return m}()},23903:function(L,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.brute,f=i.oxy,u=i.tox,C=i.burn,b=i.reagents,v=i.addictions,h=i.fractures,g=i.internal_bleeding;return c?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:f})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:u})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:C})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:b?b.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:h?"bad":"good",children:["Fractures ",h?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},79592:function(L,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},64988:function(L,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.master,s=i.dna,l=i.prime,d=i.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:c?c+" ("+s+")":"None"}),c&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function f(){return V("getdna")}return f}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return m}()},13813:function(L,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.cable,s=i.machine,l=i.inprogress,d=i.progress,f=i.aborted,u;s?u=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):u=(0,e.createComponentVNode)(2,t.Button,{content:c?"Extended":"Retracted",color:c?"orange":null,onClick:function(){function b(){return V("cable")}return b}()});var C;return s&&(C=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function b(){return V("cancel")}return b}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function b(){return V("jack")}return b}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:u}),C]})}return m}()},43816:function(L,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.radio_name,s=i.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[c,", ",s]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return V("set_newname",{newname:f})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,f){return V("set_newrank",{newrank:f})}return l}()})})]})})}return m}()},88895:function(L,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function i(){return V("ui_interact")}return i}()})})})}return m}()},66025:function(L,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.available_software,s=i.installed_software,l=i.installed_toggles,d=i.available_ram,f=i.emotions,u=i.current_emotion,C=[];return s.map(function(b){return C[b.key]=b.name}),l.map(function(b){return C[b.key]=b.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[c.filter(function(b){return!C[b.key]}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name+" ("+b.cost+")",icon:b.icon,disabled:b.cost>d,onClick:function(){function v(){return V("purchaseSoftware",{key:b.key})}return v}()},b.key)}),c.filter(function(b){return!C[b.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[s.filter(function(b){return b.key!=="mainmenu"}).map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,onClick:function(){function v(){return V("startSoftware",{software_key:b.key})}return v}()},b.key)}),s.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{content:b.name,icon:b.icon,selected:b.active,onClick:function(){function v(){return V("setToggle",{toggle_key:b.key})}return v}()},b.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:f.map(function(b){return(0,e.createComponentVNode)(2,t.Button,{color:b.syndi?"red":"default",content:b.name,selected:b.id===u,onClick:function(){function v(){return V("setEmotion",{emotion:b.id})}return v}()},b.id)})})]})})}return m}()},2983:function(L,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:p.app_data})}return m}()},40758:function(L,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"MED"})}return m}()},98599:function(L,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data.active_convo;return i?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:p.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:p.app_data})}return m}()},50775:function(L,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),m=r.pai_radio=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.app_data,s=c.minFrequency,l=c.maxFrequency,d=c.frequency,f=c.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:s/10,maxValue:l/10,value:d/10,format:function(){function u(C){return(0,t.toFixed)(C,1)}return u}(),onChange:function(){function u(C,b){return p("freq",{freq:b})}return u}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function u(){return p("freq",{freq:"145.9"})}return u}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function u(){return p("toggleBroadcast")}return u}(),selected:f,content:f?"Enabled":"Disabled"})})]})}return S}()},19873:function(L,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.app_data,c=i.holder,s=i.dead,l=i.health,d=i.current_chemicals,f=i.available_chemicals;return c?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:s?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[f.map(function(u){return(0,e.createComponentVNode)(2,t.Button,{content:u.name+" ("+u.cost+")",tooltip:u.desc,disabled:u.cost>d,onClick:function(){function C(){return V("secreteChemicals",{key:u.key})}return C}()},u.key)}),f.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return m}()},48623:function(L,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V.app_data,recordType:"SEC"})}return m}()},47297:function(L,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p.app_data})}return m}()},78532:function(L,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:V})}return m}()},40253:function(L,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.janitor,c=i.user_loc,s=i.mops,l=i.buckets,d=i.cleanbots,f=i.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[c.x,",",c.y]}),s&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:s.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - ",u.status]},u)})}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:f.map(function(u){return(0,e.createComponentVNode)(2,t.Box,{children:[u.x,",",u.y," (",u.dir,") - [",u.volume,"/",u.max_volume,"]"]},u)})})]})}return m}()},58293:function(L,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),m=r.pda_main_menu=function(){function S(y,k){var V=(0,t.useBackend)(k),p=V.act,i=V.data,c=i.owner,s=i.ownjob,l=i.idInserted,d=i.categories,f=i.pai,u=i.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[c,", ",s]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function C(){return p("UpdateInfo")}return C}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(C){var b=i.apps[C];return!b||!b.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:C,children:b.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in u?v.notify_icon:v.icon,iconSpin:v.uid in u,color:v.uid in u?"red":"transparent",content:v.name,onClick:function(){function h(){return p("StartProgram",{program:v.uid})}return h}()},v.uid)})},C)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!f&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function C(){return p("pai",{option:1})}return C}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function C(){return p("pai",{option:2})}return C}()})]})})]})}return S}()},58059:function(L,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return m}()},18147:function(L,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"MED"})}return m}()},77595:function(L,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),m=r.pda_messenger=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=c.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,S,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return V}(),S=r.ActiveConversation=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convo_device,f=l.messages,u=l.active_convo,C=(0,t.useLocalState)(i,"clipboardMode",!1),b=C[0],v=C[1],h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return b&&(h=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:b,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!b)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return s("Message",{target:u})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===u})(f).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return s("Clear",{option:"Convo"})}return g}()})})})}),h]})}return V}(),y=r.MessengerList=function(){function V(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=l.convopdas,f=l.pdas,u=l.charges,C=l.silent,b=l.toff,v=(0,t.useLocalState)(i,"searchTerm",""),h=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!C,icon:C?"volume-mute":"volume-up",onClick:function(){function N(){return s("Toggle Ringer")}return N}(),children:["Ringer: ",C?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:b?"bad":"green",icon:"power-off",onClick:function(){function N(){return s("Toggle Messenger")}return N}(),children:["Messenger: ",b?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return s("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return s("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!b&&(0,e.createComponentVNode)(2,o.Box,{children:[!!u&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[u," charges left."]})})}),!d.length&&!f.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:h,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,k,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:h}),(0,e.createComponentVNode)(2,k,{title:"Other PDAs",pdas:f,msgAct:"Message",data:l,searchTerm:h})]})}return V}(),k=function(p,i){var c=(0,t.useBackend)(i),s=c.act,l=p.data,d=p.pdas,f=p.title,u=p.msgAct,C=p.searchTerm,b=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:f,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:f,children:d.filter(function(h){return h.Name.toLowerCase().includes(C.toLowerCase())}).map(function(h){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:h.Name,onClick:function(){function g(){return s(u,{target:h.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!b&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return s("Messenger Plugin",{plugin:g.uid,target:h.uid})}return N}()},g.uid)})})]},h.uid)})})}},24635:function(L,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.mulebot,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,C=l.load,b=l.powr,v=l.dest,h=l.home,g=l.retn,N=l.pick,x;switch(f){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=f;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[b,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return i("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:C?C+" (Unload)":"None",disabled:!C,onClick:function(){function B(){return i("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return i("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return i("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return i("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return i("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return i("ReturnHome")}return B}()})]})]})]})}},97085:function(L,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:i}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function c(){return V("Edit")}return c}(),content:"Edit"})]})}return m}()},57513:function(L,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return m}()},57635:function(L,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),m=r.pda_request_console=function(){function S(y,k){var V=(0,a.useBackend)(k),p=V.act,i=V.data,c=i.screen,s=i.selected_console,l=i.consoles_data,d=i.app;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[c]||o.pages.default)(),c===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function f(){return p("back")}return f}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(f){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:f.priority===1?"green":f.priority===2?"red":"default",content:f.name,onClick:function(){function u(){return p("select",{name:f.name})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:f.muted?"volume-mute":"volume-up",onClick:function(){function u(){return p("mute",{name:f.name})}return u}()})]})})},f.name)})})})}return S}()},99808:function(L,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,m)})}return y}(),m=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function f(){return i("AccessBot",{uid:d.uid})}return f}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return i("Rescan")}return d}()})})]})},S=function(k,V){var p=(0,a.useBackend)(V),i=p.act,c=p.data,s=c.beepsky,l=s.botstatus,d=s.active,f=l.mode,u=l.loca,C;switch(f){case 0:C="Ready";break;case 1:C="Apprehending target";break;case 2:case 3:C="Arresting target";break;case 4:C="Starting patrol";break;case 5:C="On patrol";break;case 6:C="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[f===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:u}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:C}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function b(){return i("Go")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function b(){return i("Stop")}return b}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function b(){return i("Summon")}return b}()})]})]})]})}},77168:function(L,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:V,recordType:"SEC"})}return m}()},21773:function(L,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:p})}return m}()},81857:function(L,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function c(){return V("Status",{statdisp:"blank"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function c(){return V("Status",{statdisp:"shuttle"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function c(){return V("Status",{statdisp:"message"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"redalert"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"default"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"lockdown"})}return c}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function c(){return V("Status",{statdisp:"alert",alert:"biohazard"})}return c}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message1+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg1"})}return c}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:i.message2+" (set)",icon:"pen",onClick:function(){function c(){return V("Status",{statdisp:"setmsg2"})}return c}()})})]})})}return m}()},70287:function(L,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function m(S,y){var k=(0,a.useBackend)(y),V=k.act,p=k.data,i=p.supply,c=i.shuttle_loc,s=i.shuttle_time,l=i.shuttle_moving,d=i.approved,f=i.approved_count,u=i.requests,C=i.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",s]}):(0,e.createComponentVNode)(2,t.Box,{children:c})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:C>0&&u.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.OrderedBy,'"']},b)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:f>0&&d.map(function(b){return(0,e.createComponentVNode)(2,t.Box,{children:["#",b.Number,' - "',b.Name,'" for "',b.ApprovedBy,'"']},b)})})]})}return m}()},17617:function(L,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),m=["className","theme","children"],S=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function y(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var k=r.Layout=function(){function p(i){var c=i.className,s=i.theme,l=s===void 0?"nanotrasen":s,d=i.children,f=y(i,m);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(f))),d,0,Object.assign({},(0,t.computeBoxProps)(f)))),2)}return p}(),b=function(i){var c=i.className,s=i.scrollable,l=i.children,d=y(i,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",s&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};b.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},k.Content=b},96945:function(I,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(99851),S=n(17617),y=["theme","children","className"],k=["className","fitted","children"];/** + */function y(p,i){if(p==null)return{};var c={};for(var s in p)if({}.hasOwnProperty.call(p,s)){if(i.includes(s))continue;c[s]=p[s]}return c}var k=r.Layout=function(){function p(i){var c=i.className,s=i.theme,l=s===void 0?"nanotrasen":s,d=i.children,f=y(i,m);return document.documentElement.className="theme-"+l,(0,e.createVNode)(1,"div","theme-"+l,(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout",c].concat((0,t.computeBoxClassName)(f))),d,0,Object.assign({},(0,t.computeBoxProps)(f)))),2)}return p}(),V=function(i){var c=i.className,s=i.scrollable,l=i.children,d=y(i,S);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,a.classes)(["Layout__content",s&&"Layout__content--scrollable",c,(0,t.computeBoxClassName)(d)]),l,0,Object.assign({},(0,t.computeBoxProps)(d))))};V.defaultHooks={onComponentDidMount:function(){function p(i){return(0,o.addScrollableNode)(i)}return p}(),onComponentWillUnmount:function(){function p(i){return(0,o.removeScrollableNode)(i)}return p}()},k.Content=V},96945:function(L,r,n){"use strict";r.__esModule=!0,r.Pane=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),m=n(99851),S=n(17617),y=["theme","children","className"],k=["className","fitted","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function b(c,s){if(c==null)return{};var l={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(s.includes(d))continue;l[d]=c[d]}return l}var p=r.Pane=function(){function c(s,l){var d=s.theme,f=s.children,u=s.className,v=b(s,y),V=(0,t.useBackend)(l),C=V.suspended,h=(0,m.useDebug)(l),g=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout,Object.assign({className:(0,a.classes)(["Window",u]),theme:d},v,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!C&&f})})))}return c}(),i=function(s){var l=s.className,d=s.fitted,f=s.children,u=b(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},u,{children:d&&f||(0,e.createVNode)(1,"div","Window__contentPadding",f,0)})))};p.Content=i},34827:function(I,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),m=n(72253),S=n(36036),y=n(76910),k=n(99851),b=n(77384),p=n(35421),i=n(9394),c=n(17617),s=["className","fitted","children"];function l(N,x){if(N==null)return{};var B={};for(var L in N)if({}.hasOwnProperty.call(N,L)){if(x.includes(L))continue;B[L]=N[L]}return B}function d(N,x){N.prototype=Object.create(x.prototype),N.prototype.constructor=N,f(N,x)}function f(N,x){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,L){return B.__proto__=L,B},f(N,x)}/** + */function V(c,s){if(c==null)return{};var l={};for(var d in c)if({}.hasOwnProperty.call(c,d)){if(s.includes(d))continue;l[d]=c[d]}return l}var p=r.Pane=function(){function c(s,l){var d=s.theme,f=s.children,u=s.className,C=V(s,y),b=(0,t.useBackend)(l),v=b.suspended,h=(0,m.useDebug)(l),g=h.debugLayout;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout,Object.assign({className:(0,a.classes)(["Window",u]),theme:d},C,{children:(0,e.createComponentVNode)(2,o.Box,{fillPositionedParent:!0,className:g&&"debug-layout",children:!v&&f})})))}return c}(),i=function(s){var l=s.className,d=s.fitted,f=s.children,u=V(s,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,S.Layout.Content,Object.assign({className:(0,a.classes)(["Window__content",l])},u,{children:d&&f||(0,e.createVNode)(1,"div","Window__contentPadding",f,0)})))};p.Content=i},34827:function(L,r,n){"use strict";r.__esModule=!0,r.Window=void 0;var e=n(89005),a=n(35840),t=n(85307),o=n(25328),m=n(72253),S=n(36036),y=n(76910),k=n(99851),V=n(77384),p=n(35421),i=n(9394),c=n(17617),s=["className","fitted","children"];function l(N,x){if(N==null)return{};var B={};for(var I in N)if({}.hasOwnProperty.call(N,I)){if(x.includes(I))continue;B[I]=N[I]}return B}function d(N,x){N.prototype=Object.create(x.prototype),N.prototype.constructor=N,f(N,x)}function f(N,x){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,I){return B.__proto__=I,B},f(N,x)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var u=(0,i.createLogger)("Window"),v=[400,600],V=r.Window=function(N){function x(){return N.apply(this,arguments)||this}d(x,N);var B=x.prototype;return B.componentDidMount=function(){function L(){var T=(0,m.useBackend)(this.context),A=T.suspended;A||(u.log("mounting"),this.updateGeometry())}return L}(),B.componentDidUpdate=function(){function L(T){var A=this.props.width!==T.width||this.props.height!==T.height;A&&this.updateGeometry()}return L}(),B.updateGeometry=function(){function L(){var T,A=(0,m.useBackend)(this.context),w=A.config,E=Object.assign({size:v},w.window);this.props.width&&this.props.height&&(E.size=[this.props.width,this.props.height]),(T=w.window)!=null&&T.key&&(0,p.setWindowKey)(w.window.key),(0,p.recallWindowGeometry)(E)}return L}(),B.render=function(){function L(){var T,A=this.props,w=A.theme,E=A.title,O=A.children,P=(0,m.useBackend)(this.context),M=P.config,R=P.suspended,F=(0,k.useDebug)(this.context),_=F.debugLayout,U=(0,t.useDispatch)(this.context),W=(T=M.window)==null?void 0:T.fancy,$=M.user&&(M.user.observer?M.status2?s-2:0),d=2;d=o){var f=[c].concat(l).map(function(u){return typeof u=="string"?u:u instanceof Error?u.stack||String(u):JSON.stringify(u)}).filter(function(u){return u}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:f})}},k=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var s=arguments.length,l=new Array(s),d=0;d2?s-2:0),d=2;d=o){var f=[c].concat(l).map(function(u){return typeof u=="string"?u:u instanceof Error?u.stack||String(u):JSON.stringify(u)}).filter(function(u){return u}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",message:f})}},k=r.createLogger=function(){function p(i){return{debug:function(){function c(){for(var s=arguments.length,l=new Array(s),d=0;d0;){var h=V.shift(),g=h(v);try{C=S(g)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!C)return y("notFound",v);var N=C[v];return N||y("missingExport",v)}return i}()},72178:function(I,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),m=n(72253),S=n(99851),y=n(9394);function k(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,b(d,f)}function b(d,f){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,v){return u.__proto__=v,u},b(d,f)}/** + */var S=n(32054),y=function(c,s){return function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0,children:[c==="notFound"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,s,0),(0,e.createTextVNode)(" was not found.")],4),c==="missingExport"&&(0,e.createVNode)(1,"div",null,[(0,e.createTextVNode)("Interface "),(0,e.createVNode)(1,"b",null,s,0),(0,e.createTextVNode)(" is missing an export.")],4)]})})}},k=function(){return(0,e.createComponentVNode)(2,m.Window,{children:(0,e.createComponentVNode)(2,m.Window.Content,{scrollable:!0})})},V=function(){return(0,e.createComponentVNode)(2,m.Window,{height:130,title:"Loading",width:150,children:(0,e.createComponentVNode)(2,m.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Icon,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:"Please wait..."})]})})})},p=r.getRoutedComponent=function(){function i(c){var s=c.getState(),l=(0,a.selectBackend)(s),d=l.suspended,f=l.config;if(d)return k;if(f.refreshing)return V;if(0)var u;for(var C=f==null?void 0:f.interface,b=[function(x){return"./"+x+".tsx"},function(x){return"./"+x+".js"},function(x){return"./"+x+"/index.tsx"},function(x){return"./"+x+"/index.js"}],v;!v&&b.length>0;){var h=b.shift(),g=h(C);try{v=S(g)}catch(x){if(x.code!=="MODULE_NOT_FOUND")throw x}}if(!v)return y("notFound",C);var N=v[C];return N||y("missingExport",C)}return i}()},72178:function(L,r,n){"use strict";r.__esModule=!0,r.configureStore=r.StoreProvider=void 0;var e=n(64795),a=n(85307),t=n(89005),o=n(79140),m=n(72253),S=n(99851),y=n(9394);function k(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,V(d,f)}function V(d,f){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(u,C){return u.__proto__=C,u},V(d,f)}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT -*/var p=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(f){var u,v;f===void 0&&(f={});var V=f,C=V.sideEffects,h=C===void 0?!0:C,g=(0,e.flow)([(0,a.combineReducers)({debug:S.debugReducer,backend:m.backendReducer}),f.reducer]),N=h?[].concat(((u=f.middleware)==null?void 0:u.pre)||[],[o.assetMiddleware,m.backendMiddleware],((v=f.middleware)==null?void 0:v.post)||[]):[],x=a.applyMiddleware.apply(void 0,N),B=(0,a.createStore)(g,x);return window.__store__=B,window.__augmentStack__=s(B),B}return d}(),c=function(f){return function(u){return function(v){var V=v.type,C=v.payload;return V==="update"||V==="backend/update"?p.debug("action",{type:V}):p.debug("action",v),u(v)}}},s=function(f){return function(u,v){var V,C;v?typeof v=="object"&&!v.stack&&(v.stack=u):(v=new Error(u.split("\n")[0]),v.stack=u),p.log("FatalError:",v);var h=f.getState(),g=h==null||(V=h.backend)==null?void 0:V.config,N=u;return N+="\nUser Agent: "+navigator.userAgent,N+="\nState: "+JSON.stringify({ckey:g==null||(C=g.client)==null?void 0:C.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),N}},l=r.StoreProvider=function(d){function f(){return d.apply(this,arguments)||this}k(f,d);var u=f.prototype;return u.getChildContext=function(){function v(){var V=this.props.store;return{store:V}}return v}(),u.render=function(){function v(){return this.props.children}return v}(),f}(t.Component)},51364:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** +*/var p=(0,y.createLogger)("store"),i=r.configureStore=function(){function d(f){var u,C;f===void 0&&(f={});var b=f,v=b.sideEffects,h=v===void 0?!0:v,g=(0,e.flow)([(0,a.combineReducers)({debug:S.debugReducer,backend:m.backendReducer}),f.reducer]),N=h?[].concat(((u=f.middleware)==null?void 0:u.pre)||[],[o.assetMiddleware,m.backendMiddleware],((C=f.middleware)==null?void 0:C.post)||[]):[],x=a.applyMiddleware.apply(void 0,N),B=(0,a.createStore)(g,x);return window.__store__=B,window.__augmentStack__=s(B),B}return d}(),c=function(f){return function(u){return function(C){var b=C.type,v=C.payload;return b==="update"||b==="backend/update"?p.debug("action",{type:b}):p.debug("action",C),u(C)}}},s=function(f){return function(u,C){var b,v;C?typeof C=="object"&&!C.stack&&(C.stack=u):(C=new Error(u.split("\n")[0]),C.stack=u),p.log("FatalError:",C);var h=f.getState(),g=h==null||(b=h.backend)==null?void 0:b.config,N=u;return N+="\nUser Agent: "+navigator.userAgent,N+="\nState: "+JSON.stringify({ckey:g==null||(v=g.client)==null?void 0:v.ckey,interface:g==null?void 0:g.interface,window:g==null?void 0:g.window}),N}},l=r.StoreProvider=function(d){function f(){return d.apply(this,arguments)||this}k(f,d);var u=f.prototype;return u.getChildContext=function(){function C(){var b=this.props.store;return{store:b}}return C}(),u.render=function(){function C(){return this.props.children}return C}(),f}(t.Component)},51364:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var t=r.meta={title:"Blink",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(S,y){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Blink,{children:"Blink"})})}},32453:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"BlockQuote",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"BlockQuote",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.BlockQuote,{children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},83531:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(S,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"})]})}},74198:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var t=r.meta={title:"Box",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(S,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"})]})}},74198:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Button",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],S=function(k,b){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)})]})]})}},51956:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** + */var t=r.meta={title:"Button",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},o=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],m=["good","average","bad","black","white"],S=function(k,V){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)})]})]})}},51956:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(9394);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,b){var p=(0,a.useLocalState)(b,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function s(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return s}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function s(l){return c(l.target.value)}return s}(),children:i})})],4)}},17466:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** + */var m=r.meta={title:"ByondUi",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,V){var p=(0,a.useLocalState)(V,"byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),i=p[0],c=p[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Button",children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",text:"Button"}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Make BYOND calls",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function s(){return setTimeout(function(){try{var l=new Function("return ("+i+")")();l&&l.then?(o.logger.log("Promise"),l.then(o.logger.log)):o.logger.log(l)}catch(d){o.logger.log(d)}})}return s}(),children:"Evaluate"}),children:(0,e.createComponentVNode)(2,t.Box,{as:"textarea",width:"100%",height:"10em",onChange:function(){function s(l){return c(l.target.value)}return s}(),children:i})})],4)}},17466:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=n(37168);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Collapsible",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Collapsible",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){return(0,e.createComponentVNode)(2,a.Section,{children:(0,e.createComponentVNode)(2,a.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,a.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.BoxWithSampleText)})})}},89241:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Flex & Sections",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var b=(0,a.useLocalState)(k,"fs_grow",1),p=b[0],i=b[1],c=(0,a.useLocalState)(k,"fs_direction","column"),s=c[0],l=c[1],d=(0,a.useLocalState)(k,"fs_fill",!0),f=d[0],u=d[1],v=(0,a.useLocalState)(k,"fs_title",!0),V=v[0],C=v[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(s==="column"?"row":"column")}return h}(),children:'Flex direction="'+s+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return u(!f)}return h}(),children:"Section fill={"+String(f)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:V,onClick:function(){function h(){return C(!V)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:s,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:s==="row"&&1,mb:s==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:V&&"Section 1",fill:f,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:V&&"Section 2",fill:f,children:"Content"})})]})})]})}},48779:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Flex & Sections",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"fs_grow",1),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"fs_direction","column"),s=c[0],l=c[1],d=(0,a.useLocalState)(k,"fs_fill",!0),f=d[0],u=d[1],C=(0,a.useLocalState)(k,"fs_title",!0),b=C[0],v=C[1];return(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mb:1,children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return l(s==="column"?"row":"column")}return h}(),children:'Flex direction="'+s+'"'}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return i(+!p)}return h}(),children:"Flex.Item grow={"+p+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,onClick:function(){function h(){return u(!f)}return h}(),children:"Section fill={"+String(f)+"}"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,selected:b,onClick:function(){function h(){return v(!b)}return h}(),children:"Section title"})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",direction:s,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mr:s==="row"&&1,mb:s==="column"&&1,grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 1",fill:f,children:"Content"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:p,children:(0,e.createComponentVNode)(2,t.Section,{title:b&&"Section 2",fill:f,children:"Content"})})]})})]})}},48779:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2024 Aylong (https://github.com/AyIong) * @license MIT - */var o=r.meta={title:"ImageButton",render:function(){function k(){return(0,e.createComponentVNode)(2,y)}return k}()},m=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],S=["good","average","bad","black","white"],y=function(b,p){var i=(0,a.useLocalState)(p,"disabled",!1),c=i[0],s=i[1],l=(0,a.useLocalState)(p,"onClick",!0),d=l[0],f=l[1],u=(0,a.useLocalState)(p,"vertical1",!0),v=u[0],V=u[1],C=(0,a.useLocalState)(p,"vertical2",!0),h=C[0],g=C[1],N=(0,a.useLocalState)(p,"vertical3",!1),x=N[0],B=N[1],L=(0,a.useLocalState)(p,"title","Image Button"),T=L[0],A=L[1],w=(0,a.useLocalState)(p,"content","Image is a LIE!"),E=w[0],O=w[1],P=(0,a.useLocalState)(p,"itemContent","Second Button"),M=P[0],R=P[1],F=(0,a.useLocalState)(p,"itemIcon","face-smile"),_=F[0],U=F[1],W=(0,a.useLocalState)(p,"itemIconPos","default"),$=W[0],G=W[1],oe=(0,a.useLocalState)(p,"itemIconSize",2),X=oe[0],ve=oe[1],me=(0,a.useLocalState)(p,"imageSize",64),ne=me[0],ce=me[1],q=function(){V(!v)},ae=function(){g(!h)},J=function(){B(!x)},Y=function(){s(!c)},Q=function(){f(!d)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function Z(te,se){return A(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:E,onInput:function(){function Z(te,se){return O(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ne,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function Z(te,se){return ce(se)}return Z}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:d,onClick:Q})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:J})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:M,onInput:function(){function Z(te,se){return R(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:_,onInput:function(){function Z(te,se){return U(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function Z(te,se){return G(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:X,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function Z(te,se){return ve(se)}return Z}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:x&&ne+"px",ellipsis:x,vertical:x,disabled:c,title:T,content:E,tooltip:x?E:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ne+"px",onClick:d?function(){return"false"}:"",children:!x&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:M,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:_,iconColor:"gold",iconSize:X,iconPosition:$,onClick:Y})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:v,onClick:q}),children:S.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:v?.5:0,vertical:v,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:v?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:ae}),children:m.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})})],4)}},21394:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"ImageButton",render:function(){function k(){return(0,e.createComponentVNode)(2,y)}return k}()},m=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","gold"],S=["good","average","bad","black","white"],y=function(V,p){var i=(0,a.useLocalState)(p,"disabled",!1),c=i[0],s=i[1],l=(0,a.useLocalState)(p,"onClick",!0),d=l[0],f=l[1],u=(0,a.useLocalState)(p,"vertical1",!0),C=u[0],b=u[1],v=(0,a.useLocalState)(p,"vertical2",!0),h=v[0],g=v[1],N=(0,a.useLocalState)(p,"vertical3",!1),x=N[0],B=N[1],I=(0,a.useLocalState)(p,"title","Image Button"),T=I[0],E=I[1],w=(0,a.useLocalState)(p,"content","Image is a LIE!"),A=w[0],O=w[1],M=(0,a.useLocalState)(p,"itemContent","Second Button"),P=M[0],R=M[1],F=(0,a.useLocalState)(p,"itemIcon","face-smile"),_=F[0],U=F[1],W=(0,a.useLocalState)(p,"itemIconPos","default"),$=W[0],G=W[1],oe=(0,a.useLocalState)(p,"itemIconSize",2),X=oe[0],Ce=oe[1],me=(0,a.useLocalState)(p,"imageSize",64),ne=me[0],ce=me[1],q=function(){b(!C)},ae=function(){g(!h)},J=function(){B(!x)},Y=function(){s(!c)},Q=function(){f(!d)};return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,t.Input,{value:T,onInput:function(){function Z(te,se){return E(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Content",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function Z(te,se){return O(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Image Size",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:ne,minValue:0,maxValue:256,step:1,stepPixelSize:2,onChange:function(){function Z(te,se){return ce(se)}return Z}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,mr:2,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"onClick",checked:d,onClick:Q})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{fluid:!0,content:"Vertical",checked:x,onClick:J})})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Content",children:(0,e.createComponentVNode)(2,t.Input,{value:P,onInput:function(){function Z(te,se){return R(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item Icon",children:(0,e.createComponentVNode)(2,t.Input,{value:_,onInput:function(){function Z(te,se){return U(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconPos",children:(0,e.createComponentVNode)(2,t.Input,{value:$,onInput:function(){function Z(te,se){return G(se)}return Z}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Item IconSize",children:(0,e.createComponentVNode)(2,t.Slider,{animated:!0,width:10,value:X,minValue:0,maxValue:20,step:1,stepPixelSize:10,onChange:function(){function Z(te,se){return Ce(se)}return Z}()})})]})})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:1,children:(0,e.createComponentVNode)(2,t.ImageButton,{width:x&&ne+"px",ellipsis:x,vertical:x,disabled:c,title:T,content:A,tooltip:x?A:"Cool and simple buttons with images, FOR ALL!!!",image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGo0lEQVRYhe3Xa2xT9xnH8e+5+O4ktuM4cS5OYmhCQ1xcYMCgA9rSbKUqqqpWkzq1mgBtq/piaqna7UXXaTfWddL6opO2dlu1aSBVjJZC19FByyUadKGCJIYQAoHEODi2k/hyTnw/x3uxwZpBtq6qhib1efU/5/9/9Hz0O0c6OsLhw4e5mSXe1On/94BAIFAJBAKV/zkgEAhU7HZ7JRQKCaFQSLDb7Z8Y8l8BPjpYVVXh6n1VVT8xRAbY953HP1bTvn8u/9P56/arHNp1h9Y/9YogX73wBW0fx/CpVXIsA/wjgav1pW//mVdPRYhlp6gxWzAYTCRnM0zPKsRnpjBK4JEqqIUi/fEppKxCRReQLFbEikYmOk5ONNPc0s4v1nXgKChEJmNY7dUs+fwXqPfdSjan8Ktv3XVt5hxAR4OT5zcIjGW6ODGd57IyQ53bhVkSMcsSt1RZiOUKSAIsqjFhl+C5gYvMFnK4JXhLLbDZZaVqzyv8YOsLxFIq0XQRE7Ckw8s3n9nGfVu2zUliDmAs8i7xK6dZ0LGeZmc3JYMXs1im1iTjNErUmwVqChqiCJVKhd6pNCaTBU0QOJHJstZZg3/H9/n9r/cy8C+RHxiJMrj1aXbaq+cHvLb/PQqaCVf4PZa1DbGx+xGGkkYMlSI1okitDEZdp29qlrNJBYOgs8ZRxZkZHbmxhs6+PezfvZch0YTTAK1OG5GCQDpXRNTLxIo5vvf8D3nwi3UoKel6gLdpBeVyCNnmRbI00GwWsdQKfBDXiaST+KwO+pIlehMKwRoDzRYDI6lZbnFUcb+viZNvjnIuBat91XxlkRMLGgNJHVWuYlfoEoWixMXIJFB34wTW3ebj7VNh4mOjpBNh8q6lVBtcvHV+jCqTjM8qUchm6fFWUW8xUdBheYOZdC7PleQM0XQKswxtdol6jxMdI3fWafTFsnR4HJzQRIp6bv5HcKj/Q6TZGOpUkaFLFXaWDxGR/Wzx2agyGpnI67jlCnqpwIiS4Vw8gaiXyZQ0NFcdjloPljIksOJdvBKbyU54dATrxDBbl/uZeH8Ii2ycHzAy7SCnxrDV1+JpcuNpWsgas4vVzR58Zh2PRcZtcXEwkmbvpTAnx89RbTJTa6/CmSvjDAT5XJeNmhoTSxcvJplIcb5SxohGu9OFLTuDLxicH7CkzcWuPUkeWp6i4ISNdwRpleGiquG3//2lSWtg0FTuaXETrK1iPBbBJJcZ+OMOcm4Jz50rWBBN0N97gOFJBaxGziolTh36K952P9t/9hK9O568NnPOt+Chbo31C3P0nowwdvwgw/0HAfDbJc7PTHMiPMrgxCUS6QksWhTTxCmSR9/AW46TS01xsrefmGTn5cE4v9l/hC5/E2va/bi0PL1Xpui6/8vcvuKO+RMYn6lgb7DiEl3MTIzy/rF9JAUno+EoRitk1RSyJKMW4cLwOS5fGOHSmQEuTMVJjMVZoI3TmUtxFJ0PbF6WZ8sc372bRD7Hhs2Pg6OeJ55+hs75ABdjEsqZMJtuayXU2EnkisLgid9yZKyEu6UVJRpmamoaOREnl81QyitYLLMMj/bTLeTp8YoMpSQCDRWe3f5T3HmRwTf30PrwN7CvfQBRVaG1jcrxQ3MBqSz4gHryDF5O0DddQauWyGdFOhbXcV+TyOi0wqoHHyU1dpHca9/FbpxFafTiWfsoCw0S+tkRXt7xJ9L5cVRFJRrOcPfd62j98U8YW7eF8QujeBs9CNVOTh2fJ4FSEaYLFUq5FNNDKbJ5ndd3HCOXyZDJqjxs97F2Yw/j6RjlQhZbi58el4+Jd3tZ3l6LZ/tLbH3uR1yOnuaFF19kw4JGfh5SWbMwSldjLZl0moKS/DfvQFLjw8FJ1gbbMPi9ZIpl2gs6V2JGXFYfZyejqANnsK37Gka7DVtjIzvfeIeR3+3C9Ng99PRswuNvJXz+NAtaGhiT3Sy9Pcgip5FEtojZYMSiF+YHBILL6L73Ef4yfBa7u4ZJdRpDV5CGWyuUDBYK6SgDb/+BoqkaYzEFx04zc36UTRtWsjLYydDRAyxrdDJkNfHYVzezeGkHq5Z1ELoQRRQE2uocTMyk5wd0tjbz7JNPcKSvD7PZSCqVhoqOQRYp53PIWhmtVMIgCMiCTlnT0Y0PYLRa6E+HiR3YxypJonvb11mxeg1WTUdRs2Rm83S11FERBRRFmR/wy6dWX1t/1Dk3NMhxfc0AuK82H+Od7ffO2T9zg545gMFjszc84LDO0/kplfDZr9lngJsN+Bveb9bpS0UiAAAAAABJRU5ErkJggg==",imageSize:ne+"px",onClick:d?function(){return"false"}:"",children:!x&&(0,e.createComponentVNode)(2,t.ImageButton.Item,{bold:!0,width:"64px",selected:c,content:P,tooltip:"Click to disable main button",tooltipPosition:"bottom-end",icon:_,iconColor:"gold",iconSize:X,iconPosition:$,onClick:Y})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Color States",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:C,onClick:q}),children:S.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:C?.5:0,vertical:C,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEXAwMDBr16vk0uORiz/o7HyfxiZbDXWzMzhbA3//wD////tHCQAAP/4ior/ADOAgIDAwMAAAAAzmQDdkuRxAAAAAXRSTlMAQObYZgAAAKxJREFUOI3dksESgyAMRG0FE4I22P//2IaAVdB0em3Xy477SJYZhuFfdDO1AXdD4xtwRd77o5t6wKt20wPlN2QVewUgQqAAiD0QYxQCJYc5zCAEtisUcBkgmUAZ6ErGWh9oeSwE6k+3yHNACIIPgMzQONsWYOZ90QXAiRK7g2K7gtNKayXKjdoOcv4pX+IcGoBMqIA26TswSU6HmueSpLlRcjK0AaOpL97rb+gFHckLe1QlljQAAAAASUVORK5CYII=",imageSize:C?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Available Colors",buttons:(0,e.createComponentVNode)(2,t.Button.Checkbox,{content:"Vertical",checked:h,onClick:ae}),children:m.map(function(Z){return(0,e.createComponentVNode)(2,t.ImageButton,{m:h?.5:0,vertical:h,color:Z,content:Z,image:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAJ1BMVEUAAABeGFCgXZN2PnKqqqq/vr/T09PycWFIHUFeKlNLHEtVWWOOj5g02k6OAAAAAXRSTlMAQObYZgAAAFdJREFUKJFjYBhEgFEQDATgAkImLkDgrIgQME0vSy8LRhYoBwISBdLLy1HNSCsvT0MWwLDWGAwQAp0rZ+3evXLWDGSBM2dQBWYCAUkCHB1g0IAreAYCAACm2zDykxPL4AAAAABJRU5ErkJggg==",imageSize:h?"48px":"24px",onClick:d?function(){return"false"}:""},Z)})})],4)}},21394:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Input",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var b=(0,a.useLocalState)(k,"number",0),p=b[0],i=b[1],c=(0,a.useLocalState)(k,"text","Sample text"),s=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onChange:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onInput:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onChange:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(f,u){return i(u)}return d}(),children:function(){function d(f){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:f.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:f.displayValue*4}),f.inputElement]})}return d}()})})})]})})}},43932:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Input",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"number",0),p=V[0],i=V[1],c=(0,a.useLocalState)(k,"text","Sample text"),s=c[0],l=c[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onChange:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:s,onInput:function(){function d(f,u){return l(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onChange:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:p,minValue:-100,maxValue:100,onDrag:function(){function d(f,u){return i(u)}return d}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,t.DraggableControl,{value:p,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function d(f,u){return i(u)}return d}(),children:function(){function d(f){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:f.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:f.displayValue*4}),f.inputElement]})}return d}()})})})]})})}},43932:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036),t=r.meta={title:"Popper",render:function(){function m(){return(0,e.createComponentVNode)(2,o)}return m}()},o=function(){return(0,e.createFragment)([(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),options:{placement:"bottom"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.createComponentVNode)(2,a.Popper,{popperContent:(0,e.createComponentVNode)(2,a.Box,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),options:{placement:"right"},children:(0,e.createComponentVNode)(2,a.Box,{style:{border:"5px solid white",height:"500px",width:"100px"}})})],4)}},33270:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"ProgressBar",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var b=(0,a.useLocalState)(k,"progress",.5),p=b[0],i=b[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(p+.1)}return c}()})]})]})}},77766:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"ProgressBar",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"progress",.5),p=V[0],i=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:p,children:["Value: ",Number(p).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function c(){return i(p-.1)}return c}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function c(){return i(p+.1)}return c}()})]})]})}},77766:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}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)},S=function(k,b){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)]})})]})})}},30187:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** + */var t=r.meta={title:"Stack",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}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)},S=function(k,V){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)]})})]})})}},30187:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(27108),t=n(36036),o=n(49968);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var m=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,b){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var m=r.meta={title:"Storage",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},S=function(k,V){return window.localStorage?(0,e.createComponentVNode)(2,t.Section,{title:"Local Storage",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"recycle",onClick:function(){function p(){localStorage.clear(),a.storage.clear()}return p}(),children:"Clear"}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Keys in use",children:localStorage.length}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Remaining space",children:(0,o.formatSiUnit)(localStorage.remainingSpace,0,"B")})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"Local storage is not available."})}},46554:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],S=function(k,b){var p=(0,a.useLocalState)(b,"tabIndex",0),i=p[0],c=p[1],s=(0,a.useLocalState)(b,"tabProps",{}),l=s[0],d=s[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function f(){return d(Object.assign({},l,{vertical:!l.vertical}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function f(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function f(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function f(){return d(Object.assign({},l,{icon:!l.icon}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function f(){return d(Object.assign({},l,{fluid:!l.fluid}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function f(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return f}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:m.map(function(f,u){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function v(){return c(u)}return v}(),children:f},u)})})})],4)}},53276:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** + */var o=r.meta={title:"Tabs",render:function(){function y(){return(0,e.createComponentVNode)(2,S)}return y}()},m=["Tab #1","Tab #2","Tab #3","Tab #4"],S=function(k,V){var p=(0,a.useLocalState)(V,"tabIndex",0),i=p[0],c=p[1],s=(0,a.useLocalState)(V,"tabProps",{}),l=s[0],d=s[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:l.vertical,onClick:function(){function f(){return d(Object.assign({},l,{vertical:!l.vertical}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"leftSlot",checked:l.leftSlot,onClick:function(){function f(){return d(Object.assign({},l,{leftSlot:!l.leftSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"rightSlot",checked:l.rightSlot,onClick:function(){function f(){return d(Object.assign({},l,{rightSlot:!l.rightSlot}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"icon",checked:l.icon,onClick:function(){function f(){return d(Object.assign({},l,{icon:!l.icon}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"fluid",checked:l.fluid,onClick:function(){function f(){return d(Object.assign({},l,{fluid:!l.fluid}))}return f}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"left aligned",checked:l.leftAligned,onClick:function(){function f(){return d(Object.assign({},l,{leftAligned:!l.leftAligned}))}return f}()})]}),(0,e.createComponentVNode)(2,t.Section,{fitted:!0,children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:l.vertical,fluid:l.fluid,textAlign:l.leftAligned&&"left",children:m.map(function(f,u){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:u===i,icon:l.icon&&"info-circle",leftSlot:l.leftSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:l.rightSlot&&(0,e.createComponentVNode)(2,t.Button,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){function C(){return c(u)}return C}(),children:f},u)})})})],4)}},53276:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(72253),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Themes",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var b=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=b[0],i=b[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:p,onInput:function(){function c(s,l){return i(l)}return c}()})})})})}},28717:function(I,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(95996),t=n(36036);/** + */var o=r.meta={title:"Themes",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},m=function(y,k){var V=(0,a.useLocalState)(k,"kitchenSinkTheme"),p=V[0],i=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:p,onInput:function(){function c(s,l){return i(l)}return c}()})})})})}},28717:function(L,r,n){"use strict";r.__esModule=!0,r.meta=void 0;var e=n(89005),a=n(95996),t=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var o=r.meta={title:"Tooltip",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},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(k){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},37168:function(I,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** + */var o=r.meta={title:"Tooltip",render:function(){function S(){return(0,e.createComponentVNode)(2,m)}return S}()},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(k){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:k,content:k},k)})})]})}},37168:function(L,r,n){"use strict";r.__esModule=!0,r.BoxWithSampleText=void 0;var e=n(89005),a=n(36036);/** * @file * @copyright 2021 Aleksej Komarov * @license MIT - */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},41639:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},24226:function(){},39108:function(){},21039:function(){},51862:function(){},56856:function(){},63489:function(){},1965:function(){},1272:function(){},74757:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},73358:function(){},32882:function(){},70752:function(I,r,n){var e={"./pai_advsecrecords.js":96572,"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_camera_bug.js":79592,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_encoder.js":43816,"./pai_gps_module.js":88895,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_sec_chem.js":19873,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=70752},59395:function(I,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_request_console.js":57635,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=59395},32054:function(I,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":79571,"./AgentCard.js":79571,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AutoDoc":76511,"./AutoDoc.js":76511,"./Autolathe":59179,"./Autolathe.js":59179,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceRiftScanner":13995,"./BluespaceRiftScanner.js":13995,"./BluespaceRiftServer":25530,"./BluespaceRiftServer.js":25530,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BorgPanel":42570,"./BorgPanel.js":42570,"./BotClean":20464,"./BotClean.js":20464,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./CentcomPodLauncher":65875,"./CentcomPodLauncher/":65875,"./CentcomPodLauncher/DelayHelper":22794,"./CentcomPodLauncher/DelayHelper.tsx":22794,"./CentcomPodLauncher/PodBays":23749,"./CentcomPodLauncher/PodBays.tsx":23749,"./CentcomPodLauncher/PodLaunch":8507,"./CentcomPodLauncher/PodLaunch.tsx":8507,"./CentcomPodLauncher/PodSounds":15802,"./CentcomPodLauncher/PodSounds.tsx":15802,"./CentcomPodLauncher/PodStatusPage":94577,"./CentcomPodLauncher/PodStatusPage.tsx":94577,"./CentcomPodLauncher/PresetsPage":30590,"./CentcomPodLauncher/PresetsPage.tsx":30590,"./CentcomPodLauncher/ReverseMenu":72932,"./CentcomPodLauncher/ReverseMenu.tsx":72932,"./CentcomPodLauncher/StylePage":68569,"./CentcomPodLauncher/StylePage.tsx":68569,"./CentcomPodLauncher/Tabs":8179,"./CentcomPodLauncher/Tabs.tsx":8179,"./CentcomPodLauncher/Timing":18885,"./CentcomPodLauncher/Timing.tsx":18885,"./CentcomPodLauncher/ViewTabHolder":76417,"./CentcomPodLauncher/ViewTabHolder.tsx":76417,"./CentcomPodLauncher/constants":7144,"./CentcomPodLauncher/constants.ts":7144,"./CentcomPodLauncher/hooks":20345,"./CentcomPodLauncher/hooks.ts":20345,"./CentcomPodLauncher/index":65875,"./CentcomPodLauncher/index.tsx":65875,"./CentcomPodLauncher/types":16780,"./CentcomPodLauncher/types.ts":16780,"./Changelog":12226,"./Changelog.js":12226,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./Customat":94848,"./Customat.js":94848,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./Electropack":82565,"./Electropack.js":82565,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GasAnalyzer":68703,"./GasAnalyzer.js":68703,"./GasFreezer":27546,"./GasFreezer.js":27546,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./ImplantPad":75926,"./ImplantPad.js":75926,"./Instrument":25471,"./Instrument.js":25471,"./ItemPixelShift":65021,"./ItemPixelShift.js":65021,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./LaborClaimConsole":40951,"./LaborClaimConsole.js":40951,"./LawManager":9525,"./LawManager.js":9525,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./Mimicking":52306,"./Mimicking.js":52306,"./Minesweeper":66238,"./Minesweeper.js":66238,"./MiniGamesMenu":21385,"./MiniGamesMenu.js":21385,"./MiningVendor":87684,"./MiningVendor.js":87684,"./Multitool":97955,"./Multitool.js":97955,"./Newscaster":64713,"./Newscaster.js":64713,"./NinjaBloodScan":97351,"./NinjaBloodScan.js":97351,"./NinjaMindScan":32989,"./NinjaMindScan.js":32989,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":30373,"./PAI.js":30373,"./PDA":85175,"./PDA.js":85175,"./PDAPainter":38280,"./PDAPainter.js":38280,"./Pacman":68654,"./Pacman.js":68654,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PodTracking":94158,"./PodTracking.js":94158,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./QuestConsole":7485,"./QuestConsole.js":7485,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RequestManager":3786,"./RequestManager.js":3786,"./RndConsole":16475,"./RndConsole.js":16475,"./RndConsoleComponents":13472,"./RndConsoleComponents/":13472,"./RndConsoleComponents/CurrentLevels":93098,"./RndConsoleComponents/CurrentLevels.js":93098,"./RndConsoleComponents/DataDiskMenu":19192,"./RndConsoleComponents/DataDiskMenu.js":19192,"./RndConsoleComponents/DeconstructionMenu":20887,"./RndConsoleComponents/DeconstructionMenu.js":20887,"./RndConsoleComponents/LatheCategory":10666,"./RndConsoleComponents/LatheCategory.js":10666,"./RndConsoleComponents/LatheChemicalStorage":52285,"./RndConsoleComponents/LatheChemicalStorage.js":52285,"./RndConsoleComponents/LatheMainMenu":71964,"./RndConsoleComponents/LatheMainMenu.js":71964,"./RndConsoleComponents/LatheMaterialStorage":17906,"./RndConsoleComponents/LatheMaterialStorage.js":17906,"./RndConsoleComponents/LatheMaterials":83706,"./RndConsoleComponents/LatheMaterials.js":83706,"./RndConsoleComponents/LatheMenu":76749,"./RndConsoleComponents/LatheMenu.js":76749,"./RndConsoleComponents/LatheSearch":74698,"./RndConsoleComponents/LatheSearch.js":74698,"./RndConsoleComponents/MainMenu":17180,"./RndConsoleComponents/MainMenu.js":17180,"./RndConsoleComponents/RndNavButton":63459,"./RndConsoleComponents/RndNavButton.js":63459,"./RndConsoleComponents/RndNavbar":94942,"./RndConsoleComponents/RndNavbar.js":94942,"./RndConsoleComponents/RndRoute":12059,"./RndConsoleComponents/RndRoute.js":12059,"./RndConsoleComponents/SettingsMenu":52580,"./RndConsoleComponents/SettingsMenu.js":52580,"./RndConsoleComponents/index":13472,"./RndConsoleComponents/index.js":13472,"./RoboQuest":40026,"./RoboQuest.js":40026,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpiderOS":7957,"./SpiderOS.js":7957,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./SyndieCargoConsole":99279,"./SyndieCargoConsole.js":99279,"./TTSSeedsExplorer":44852,"./TTSSeedsExplorer.js":44852,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThiefKit":69566,"./ThiefKit.js":69566,"./TransferValve":20035,"./TransferValve.js":20035,"./Uplink":52847,"./Uplink.js":52847,"./UploadPanel":80949,"./UploadPanel.js":80949,"./VampireSpecMenu":8946,"./VampireSpecMenu.js":8946,"./VampireTrophiesStatus":45770,"./VampireTrophiesStatus.js":45770,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./Workshop":30995,"./Workshop.js":30995,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./manually-routed/KitchenSink":25443,"./manually-routed/KitchenSink.js":25443,"./pai/pai_advsecrecords":96572,"./pai/pai_advsecrecords.js":96572,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_camera_bug":79592,"./pai/pai_camera_bug.js":79592,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_encoder":43816,"./pai/pai_encoder.js":43816,"./pai/pai_gps_module":88895,"./pai/pai_gps_module.js":88895,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_sec_chem":19873,"./pai/pai_sec_chem.js":19873,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_request_console":57635,"./pda/pda_request_console.js":57635,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=32054},4085:function(I,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,I.exports=a,a.id=4085},10320:function(I,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(I,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(I,r,n){"use strict";var e=n(45015),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(I,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),I.exports=function(S){m[o][S]=!0}},35483:function(I,r,n){"use strict";var e=n(50233).charAt;I.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(I,r,n){"use strict";var e=n(21287),a=TypeError;I.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(I,r,n){"use strict";var e=n(77568),a=String,t=TypeError;I.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(I){"use strict";I.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(I,r,n){"use strict";var e=n(40033);I.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(I,r,n){"use strict";var e=n(70377),a=n(58310),t=n(16210),o=n(55747),m=n(77568),S=n(45299),y=n(2281),k=n(89393),b=n(37909),p=n(55938),i=n(73936),c=n(21287),s=n(36917),l=n(76649),d=n(24697),f=n(16738),u=n(5419),v=u.enforce,V=u.get,C=t.Int8Array,h=C&&C.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=C&&s(C),B=h&&s(h),L=Object.prototype,T=t.TypeError,A=d("toStringTag"),w=f("TYPED_ARRAY_TAG"),E="TypedArrayConstructor",O=e&&!!l&&y(t.opera)!=="Opera",P=!1,M,R,F,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(){function ne(ce){if(!m(ce))return!1;var q=y(ce);return q==="DataView"||S(_,q)||S(U,q)}return ne}(),$=function(ce){var q=s(ce);if(m(q)){var ae=V(q);return ae&&S(ae,E)?ae[E]:$(q)}},G=function(ce){if(!m(ce))return!1;var q=y(ce);return S(_,q)||S(U,q)},oe=function(ce){if(G(ce))return ce;throw new T("Target is not a typed array")},X=function(ce){if(o(ce)&&(!l||c(x,ce)))return ce;throw new T(k(ce)+" is not a typed array constructor")},ve=function(ce,q,ae,J){if(a){if(ae)for(var Y in _){var Q=t[Y];if(Q&&S(Q.prototype,ce))try{delete Q.prototype[ce]}catch(Z){try{Q.prototype[ce]=q}catch(te){}}}(!B[ce]||ae)&&p(B,ce,ae?q:O&&h[ce]||q,J)}},me=function(ce,q,ae){var J,Y;if(a){if(l){if(ae){for(J in _)if(Y=t[J],Y&&S(Y,ce))try{delete Y[ce]}catch(Q){}}if(!x[ce]||ae)try{return p(x,ce,ae?q:O&&x[ce]||q)}catch(Q){}else return}for(J in _)Y=t[J],Y&&(!Y[ce]||ae)&&p(Y,ce,q)}};for(M in _)R=t[M],F=R&&R.prototype,F?v(F)[E]=R:O=!1;for(M in U)R=t[M],F=R&&R.prototype,F&&(v(F)[E]=R);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function ne(){throw new T("Incorrect invocation")}return ne}(),O))for(M in _)t[M]&&l(t[M],x);if((!O||!B||B===L)&&(B=x.prototype,O))for(M in _)t[M]&&l(t[M].prototype,B);if(O&&s(N)!==B&&l(N,B),a&&!S(B,A)){P=!0,i(B,A,{configurable:!0,get:function(){function ne(){return m(this)?this[w]:void 0}return ne}()});for(M in _)t[M]&&b(t[M],w,M)}I.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:P&&w,aTypedArray:oe,aTypedArrayConstructor:X,exportTypedArrayMethod:ve,exportTypedArrayStaticMethod:me,getTypedArrayConstructor:$,isView:W,isTypedArray:G,TypedArray:x,TypedArrayPrototype:B}},37336:function(I,r,n){"use strict";var e=n(16210),a=n(67250),t=n(58310),o=n(70377),m=n(70520),S=n(37909),y=n(73936),k=n(30145),b=n(40033),p=n(60077),i=n(61365),c=n(10188),s=n(43806),l=n(95867),d=n(91784),f=n(36917),u=n(76649),v=n(88471),V=n(54602),C=n(5781),h=n(5774),g=n(84925),N=n(5419),x=m.PROPER,B=m.CONFIGURABLE,L="ArrayBuffer",T="DataView",A="prototype",w="Wrong length",E="Wrong index",O=N.getterFor(L),P=N.getterFor(T),M=N.set,R=e[L],F=R,_=F&&F[A],U=e[T],W=U&&U[A],$=Object.prototype,G=e.Array,oe=e.RangeError,X=a(v),ve=a([].reverse),me=d.pack,ne=d.unpack,ce=function(re){return[re&255]},q=function(re){return[re&255,re>>8&255]},ae=function(re){return[re&255,re>>8&255,re>>16&255,re>>24&255]},J=function(re){return re[3]<<24|re[2]<<16|re[1]<<8|re[0]},Y=function(re){return me(l(re),23,4)},Q=function(re){return me(re,52,8)},Z=function(re,de,Ce){y(re[A],de,{configurable:!0,get:function(){function pe(){return Ce(this)[de]}return pe}()})},te=function(re,de,Ce,pe){var Be=P(re),ke=s(Ce),Ee=!!pe;if(ke+de>Be.byteLength)throw new oe(E);var Re=Be.bytes,_e=ke+Be.byteOffset,Pe=V(Re,_e,_e+de);return Ee?Pe:ve(Pe)},se=function(re,de,Ce,pe,Be,ke){var Ee=P(re),Re=s(Ce),_e=pe(+Be),Pe=!!ke;if(Re+de>Ee.byteLength)throw new oe(E);for(var Ne=Ee.bytes,Se=Re+Ee.byteOffset,H=0;HBe)throw new oe("Wrong offset");if(Ce=Ce===void 0?Be-ke:c(Ce),ke+Ce>Be)throw new oe(w);M(this,{type:T,buffer:re,byteLength:Ce,byteOffset:ke,bytes:pe.bytes}),t||(this.buffer=re,this.byteLength=Ce,this.byteOffset=ke)}return D}(),W=U[A],t&&(Z(F,"byteLength",O),Z(U,"buffer",P),Z(U,"byteLength",P),Z(U,"byteOffset",P)),k(W,{getInt8:function(){function D(re){return te(this,1,re)[0]<<24>>24}return D}(),getUint8:function(){function D(re){return te(this,1,re)[0]}return D}(),getInt16:function(){function D(re){var de=te(this,2,re,arguments.length>1?arguments[1]:!1);return(de[1]<<8|de[0])<<16>>16}return D}(),getUint16:function(){function D(re){var de=te(this,2,re,arguments.length>1?arguments[1]:!1);return de[1]<<8|de[0]}return D}(),getInt32:function(){function D(re){return J(te(this,4,re,arguments.length>1?arguments[1]:!1))}return D}(),getUint32:function(){function D(re){return J(te(this,4,re,arguments.length>1?arguments[1]:!1))>>>0}return D}(),getFloat32:function(){function D(re){return ne(te(this,4,re,arguments.length>1?arguments[1]:!1),23)}return D}(),getFloat64:function(){function D(re){return ne(te(this,8,re,arguments.length>1?arguments[1]:!1),52)}return D}(),setInt8:function(){function D(re,de){se(this,1,re,ce,de)}return D}(),setUint8:function(){function D(re,de){se(this,1,re,ce,de)}return D}(),setInt16:function(){function D(re,de){se(this,2,re,q,de,arguments.length>2?arguments[2]:!1)}return D}(),setUint16:function(){function D(re,de){se(this,2,re,q,de,arguments.length>2?arguments[2]:!1)}return D}(),setInt32:function(){function D(re,de){se(this,4,re,ae,de,arguments.length>2?arguments[2]:!1)}return D}(),setUint32:function(){function D(re,de){se(this,4,re,ae,de,arguments.length>2?arguments[2]:!1)}return D}(),setFloat32:function(){function D(re,de){se(this,4,re,Y,de,arguments.length>2?arguments[2]:!1)}return D}(),setFloat64:function(){function D(re,de){se(this,8,re,Q,de,arguments.length>2?arguments[2]:!1)}return D}()});else{var ye=x&&R.name!==L;!b(function(){R(1)})||!b(function(){new R(-1)})||b(function(){return new R,new R(1.5),new R(NaN),R.length!==1||ye&&!B})?(F=function(){function D(re){return p(this,_),C(new R(s(re)),this,F)}return D}(),F[A]=_,_.constructor=F,h(F,R)):ye&&B&&S(R,"name",L),u&&f(W)!==$&&u(W,$);var fe=new U(new F(2)),Ie=a(W.setInt8);fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&k(W,{setInt8:function(){function D(re,de){Ie(this,re,de<<24>>24)}return D}(),setUint8:function(){function D(re,de){Ie(this,re,de<<24>>24)}return D}()},{unsafe:!0})}g(F,L),g(U,T),I.exports={ArrayBuffer:F,DataView:U}},71447:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),m=Math.min;I.exports=[].copyWithin||function(){function S(y,k){var b=e(this),p=t(b),i=a(y,p),c=a(k,p),s=arguments.length>2?arguments[2]:void 0,l=m((s===void 0?p:a(s,p))-c,p-i),d=1;for(c0;)c in b?b[i]=b[c]:o(b,i),i+=d,c+=d;return b}return S}()},88471:function(I,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);I.exports=function(){function o(m){for(var S=e(this),y=t(S),k=arguments.length,b=a(k>1?arguments[1]:void 0,y),p=k>2?arguments[2]:void 0,i=p===void 0?y:a(p,y);i>b;)S[b++]=m;return S}return o}()},35601:function(I,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");I.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(I,r,n){"use strict";var e=n(24760);I.exports=function(a,t,o){for(var m=0,S=arguments.length>2?o:e(t),y=new a(S);S>m;)y[m]=t[m++];return y}},73174:function(I,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),m=n(76571),S=n(1031),y=n(24760),k=n(60102),b=n(77455),p=n(59201),i=Array;I.exports=function(){function c(s){var l=t(s),d=S(this),f=arguments.length,u=f>1?arguments[1]:void 0,v=u!==void 0;v&&(u=e(u,f>2?arguments[2]:void 0));var V=p(l),C=0,h,g,N,x,B,L;if(V&&!(this===i&&m(V)))for(g=d?new this:[],x=b(l,V),B=x.next;!(N=a(B,x)).done;C++)L=v?o(x,u,[N.value,C],!0):N.value,k(g,C,L);else for(h=y(l),g=d?new this(h):i(h);h>C;C++)L=v?u(l[C],C):l[C],k(g,C,L);return g.length=C,g}return c}()},14211:function(I,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(S){return function(y,k,b){var p=e(y),i=t(p);if(i===0)return!S&&-1;var c=a(b,i),s;if(S&&k!==k){for(;i>c;)if(s=p[c++],s!==s)return!0}else for(;i>c;c++)if((S||c in p)&&p[c]===k)return S||c||0;return!S&&-1}};I.exports={includes:o(!0),indexOf:o(!1)}},22603:function(I,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),m=n(24760),S=n(57823),y=a([].push),k=function(p){var i=p===1,c=p===2,s=p===3,l=p===4,d=p===6,f=p===7,u=p===5||d;return function(v,V,C,h){for(var g=o(v),N=t(g),x=m(N),B=e(V,C),L=0,T=h||S,A=i?T(v,x):c||f?T(v,0):void 0,w,E;x>L;L++)if((u||L in N)&&(w=N[L],E=B(w,L,g),p))if(i)A[L]=E;else if(E)switch(p){case 3:return!0;case 5:return w;case 6:return L;case 2:y(A,w)}else switch(p){case 4:return!1;case 7:y(A,w)}return d?-1:s||l?l:A}};I.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},1325:function(I,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),m=n(55528),S=Math.min,y=[].lastIndexOf,k=!!y&&1/[1].lastIndexOf(1,-0)<0,b=m("lastIndexOf"),p=k||!b;I.exports=p?function(){function i(c){if(k)return e(y,this,arguments)||0;var s=a(this),l=o(s);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=S(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in s&&s[d]===c)return d||0;return-1}return i}():y},44091:function(I,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");I.exports=function(m){return t>=51||!e(function(){var S=[],y=S.constructor={};return y[o]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},55528:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(I,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),m=TypeError,S="Reduce of empty array with no initial value",y=function(b){return function(p,i,c,s){var l=a(p),d=t(l),f=o(l);if(e(i),f===0&&c<2)throw new m(S);var u=b?f-1:0,v=b?-1:1;if(c<2)for(;;){if(u in d){s=d[u],u+=v;break}if(u+=v,b?u<0:f<=u)throw new m(S)}for(;b?u>=0:f>u;u+=v)u in d&&(s=i(s,d[u],u,l));return s}};I.exports={left:y(!1),right:y(!0)}},13345:function(I,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(S){return S instanceof TypeError}}();I.exports=m?function(S,y){if(a(S)&&!o(S,"length").writable)throw new t("Cannot set read only .length");return S.length=y}:function(S,y){return S.length=y}},54602:function(I,r,n){"use strict";var e=n(67250);I.exports=e([].slice)},90274:function(I,r,n){"use strict";var e=n(54602),a=Math.floor,t=function(m,S){var y=m.length;if(y<8)for(var k=1,b,p;k0;)m[p]=m[--p];p!==k++&&(m[p]=b)}else for(var i=a(y/2),c=t(e(m,0,i),S),s=t(e(m,i),S),l=c.length,d=s.length,f=0,u=0;f1?arguments[1]:void 0),E;E=E?E.next:A.first;)for(w(E.value,E.key,this);E&&E.removed;)E=E.previous}return L}(),has:function(){function L(T){return!!B(this,T)}return L}()}),t(g,V?{get:function(){function L(T){var A=B(this,T);return A&&A.value}return L}(),set:function(){function L(T,A){return x(this,T===0?0:T,A)}return L}()}:{add:function(){function L(T){return x(this,T=T===0?0:T,T)}return L}()}),i&&a(g,"size",{configurable:!0,get:function(){function L(){return N(this).size}return L}()}),h}return f}(),setStrong:function(){function f(u,v,V){var C=v+" Iterator",h=d(v),g=d(C);k(u,v,function(N,x){l(this,{type:C,target:N,state:h(N),kind:x,last:null})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=null,b(void 0,!0)):b(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},V?"entries":"values",!V,!0),p(v)}return f}()}},39895:function(I,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),m=n(30365),S=n(42871),y=n(77568),k=n(49450),b=n(22603),p=n(45299),i=n(5419),c=i.set,s=i.getterFor,l=b.find,d=b.findIndex,f=e([].splice),u=0,v=function(g){return g.frozen||(g.frozen=new V)},V=function(){this.entries=[]},C=function(g,N){return l(g.entries,function(x){return x[0]===N})};V.prototype={get:function(){function h(g){var N=C(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!C(this,g)}return h}(),set:function(){function h(g,N){var x=C(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&f(this.entries,N,1),!!~N}return h}()},I.exports={getConstructor:function(){function h(g,N,x,B){var L=g(function(E,O){o(E,T),c(E,{type:N,id:u++,frozen:null}),S(O)||k(O,E[B],{that:E,AS_ENTRIES:x})}),T=L.prototype,A=s(N),w=function(){function E(O,P,M){var R=A(O),F=t(m(P),!0);return F===!0?v(R).set(P,M):F[R.id]=M,O}return E}();return a(T,{delete:function(){function E(O){var P=A(this);if(!y(O))return!1;var M=t(O);return M===!0?v(P).delete(O):M&&p(M,P.id)&&delete M[P.id]}return E}(),has:function(){function E(O){var P=A(this);if(!y(O))return!1;var M=t(O);return M===!0?v(P).has(O):M&&p(M,P.id)}return E}()}),a(T,x?{get:function(){function E(O){var P=A(this);if(y(O)){var M=t(O);if(M===!0)return v(P).get(O);if(M)return M[P.id]}}return E}(),set:function(){function E(O,P){return w(this,O,P)}return E}()}:{add:function(){function E(O){return w(this,O,!0)}return E}()}),L}return h}()}},45150:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),m=n(55938),S=n(81969),y=n(49450),k=n(60077),b=n(55747),p=n(42871),i=n(77568),c=n(40033),s=n(92490),l=n(84925),d=n(5781);I.exports=function(f,u,v){var V=f.indexOf("Map")!==-1,C=f.indexOf("Weak")!==-1,h=V?"set":"add",g=a[f],N=g&&g.prototype,x=g,B={},L=function(R){var F=t(N[R]);m(N,R,R==="add"?function(){function _(U){return F(this,U===0?0:U),this}return _}():R==="delete"?function(_){return C&&!i(_)?!1:F(this,_===0?0:_)}:R==="get"?function(){function _(U){return C&&!i(U)?void 0:F(this,U===0?0:U)}return _}():R==="has"?function(){function _(U){return C&&!i(U)?!1:F(this,U===0?0:U)}return _}():function(){function _(U,W){return F(this,U===0?0:U,W),this}return _}())},T=o(f,!b(g)||!(C||N.forEach&&!c(function(){new g().entries().next()})));if(T)x=v.getConstructor(u,f,V,h),S.enable();else if(o(f,!0)){var A=new x,w=A[h](C?{}:-0,1)!==A,E=c(function(){A.has(1)}),O=s(function(M){new g(M)}),P=!C&&c(function(){for(var M=new g,R=5;R--;)M[h](R,R);return!M.has(-0)});O||(x=u(function(M,R){k(M,N);var F=d(new g,M,x);return p(R)||y(R,F[h],{that:F,AS_ENTRIES:V}),F}),x.prototype=N,N.constructor=x),(E||P)&&(L("delete"),L("has"),V&&L("get")),(P||w)&&L(h),C&&N.clear&&delete N.clear}return B[f]=x,e({global:!0,constructor:!0,forced:x!==g},B),l(x,f),C||v.setStrong(x,f,V),x}},5774:function(I,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);I.exports=function(m,S,y){for(var k=a(S),b=o.f,p=t.f,i=0;i"+p+""}},5959:function(I){"use strict";I.exports=function(r,n){return{value:r,done:n}}},37909:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=e?function(o,m,S){return a.f(o,m,t(1,S))}:function(o,m,S){return o[m]=S,o}},87458:function(I){"use strict";I.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(I,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);I.exports=function(o,m,S){e?a.f(o,m,t(0,S)):o[m]=S}},67206:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,m=isFinite,S=Math.abs,y=Date.prototype,k=y.toISOString,b=e(y.getTime),p=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),s=e(y.getUTCMilliseconds),l=e(y.getUTCMinutes),d=e(y.getUTCMonth),f=e(y.getUTCSeconds);I.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function u(){if(!m(b(this)))throw new o("Invalid time value");var v=this,V=i(v),C=s(v),h=V<0?"-":V>9999?"+":"";return h+t(S(V),h?6:4,0)+"-"+t(d(v)+1,2,0)+"-"+t(p(v),2,0)+"T"+t(c(v),2,0)+":"+t(l(v),2,0)+":"+t(f(v),2,0)+"."+t(C,3,0)+"Z"}return u}():k},10886:function(I,r,n){"use strict";var e=n(30365),a=n(13396),t=TypeError;I.exports=function(o){if(e(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new t("Incorrect hint");return a(this,o)}},73936:function(I,r,n){"use strict";var e=n(20001),a=n(74595);I.exports=function(t,o,m){return m.get&&e(m.get,o,{getter:!0}),m.set&&e(m.set,o,{setter:!0}),a.f(t,o,m)}},55938:function(I,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);I.exports=function(m,S,y,k){k||(k={});var b=k.enumerable,p=k.name!==void 0?k.name:S;if(e(y)&&t(y,p,k),k.global)b?m[S]=y:o(S,y);else{try{k.unsafe?m[S]&&(b=!0):delete m[S]}catch(i){}b?m[S]=y:a.f(m,S,{value:y,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return m}},30145:function(I,r,n){"use strict";var e=n(55938);I.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},18231:function(I,r,n){"use strict";var e=n(16210),a=Object.defineProperty;I.exports=function(t,o){try{a(e,t,{value:o,configurable:!0,writable:!0})}catch(m){e[t]=o}return o}},95108:function(I,r,n){"use strict";var e=n(89393),a=TypeError;I.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(I,r,n){"use strict";var e=n(16210),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);I.exports=function(m){return o?t.createElement(m):{}}},21291:function(I){"use strict";var r=TypeError,n=9007199254740991;I.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},89453:function(I){"use strict";I.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50503:function(I,r,n){"use strict";var e=n(83309),a=e.match(/firefox\/(\d+)/i);I.exports=!!a&&+a[1]},79725:function(I,r,n){"use strict";var e=n(83309);I.exports=/MSIE|Trident/.test(e)},16647:function(I,r,n){"use strict";var e=n(83309);I.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},27770:function(I,r,n){"use strict";var e=n(83309);I.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81663:function(I,r,n){"use strict";var e=n(10753);I.exports=e==="NODE"},52854:function(I,r,n){"use strict";var e=n(83309);I.exports=/web0s(?!.*chrome)/i.test(e)},83309:function(I,r,n){"use strict";var e=n(16210),a=e.navigator,t=a&&a.userAgent;I.exports=t?String(t):""},83141:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,S=m&&m.v8,y,k;S&&(y=S.split("."),k=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!k&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(k=+y[1]))),I.exports=k},44981:function(I,r,n){"use strict";var e=n(83309),a=e.match(/AppleWebKit\/(\d+)\./);I.exports=!!a&&+a[1]},10753:function(I,r,n){"use strict";var e=n(16210),a=n(83309),t=n(7462),o=function(S){return a.slice(0,S.length)===S};I.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()},63964:function(I,r,n){"use strict";var e=n(16210),a=n(27193).f,t=n(37909),o=n(55938),m=n(18231),S=n(5774),y=n(41314);I.exports=function(k,b){var p=k.target,i=k.global,c=k.stat,s,l,d,f,u,v;if(i?l=e:c?l=e[p]||m(p,{}):l=e[p]&&e[p].prototype,l)for(d in b){if(u=b[d],k.dontCallGetSet?(v=a(l,d),f=v&&v.value):f=l[d],s=y(i?d:p+(c?".":"#")+d,k.forced),!s&&f!==void 0){if(typeof u==typeof f)continue;S(u,f)}(k.sham||f&&f.sham)&&t(u,"sham",!0),o(l,d,u,k)}}},40033:function(I){"use strict";I.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(I,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),m=n(24697),S=n(37909),y=m("species"),k=RegExp.prototype;I.exports=function(b,p,i,c){var s=m(b),l=!o(function(){var v={};return v[s]=function(){return 7},""[b](v)!==7}),d=l&&!o(function(){var v=!1,V=/a/;return b==="split"&&(V={},V.constructor={},V.constructor[y]=function(){return V},V.flags="",V[s]=/./[s]),V.exec=function(){return v=!0,null},V[s](""),!v});if(!l||!d||i){var f=/./[s],u=p(s,""[b],function(v,V,C,h,g){var N=V.exec;return N===t||N===k.exec?l&&!g?{done:!0,value:e(f,V,C,h)}:{done:!0,value:e(v,C,V,h)}:{done:!1}});a(String.prototype,b,u[0]),a(k,s,u[1])}c&&S(k[s],"sham",!0)}},65561:function(I,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),m=function(y,k,b,p,i,c,s,l){for(var d=i,f=0,u=s?o(s,l):!1,v,V;f0&&e(v)?(V=a(v),d=m(y,k,v,V,d,c-1)-1):(t(d+1),y[d]=v),d++),f++;return d};I.exports=m},50730:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(I,r,n){"use strict";var e=n(55050),a=Function.prototype,t=a.apply,o=a.call;I.exports=typeof Reflect=="object"&&Reflect.apply||(e?o.bind(t):function(){return o.apply(t,arguments)})},75754:function(I,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);I.exports=function(m,S){return a(m),S===void 0?m:t?o(m,S):function(){return m.apply(S,arguments)}}},55050:function(I,r,n){"use strict";var e=n(40033);I.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(I,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),m=n(54602),S=n(55050),y=Function,k=e([].concat),b=e([].join),p={},i=function(s,l,d){if(!o(p,l)){for(var f=[],u=0;u]*>)/g,k=/\$([$&'`]|\d{1,2})/g;I.exports=function(b,p,i,c,s,l){var d=i+b.length,f=c.length,u=k;return s!==void 0&&(s=a(s),u=y),m(l,u,function(v,V){var C;switch(o(V,0)){case"$":return"$";case"&":return b;case"`":return S(p,0,i);case"'":return S(p,d);case"<":C=s[S(V,1,-1)];break;default:var h=+V;if(h===0)return v;if(h>f){var g=t(h/10);return g===0?v:g<=f?c[g-1]===void 0?o(V,1):c[g-1]+o(V,1):v}C=c[h-1]}return C===void 0?"":C})}},16210:function(I,r,n){"use strict";var e=function(t){return t&&t.Math===Math&&t};I.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof n.g=="object"&&n.g)||e(!1)||function(){return this}()||Function("return this")()},45299:function(I,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);I.exports=Object.hasOwn||function(){function o(m,S){return t(a(m),S)}return o}()},79195:function(I){"use strict";I.exports={}},72259:function(I){"use strict";I.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(I,r,n){"use strict";var e=n(4009);I.exports=e("document","documentElement")},36223:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);I.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(I){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(k,b,p){var i=r(p),c=p*8-b-1,s=(1<>1,d=b===23?e(2,-24)-e(2,-77):0,f=k<0||k===0&&1/k<0?1:0,u=0,v,V,C;for(k=n(k),k!==k||k===1/0?(V=k!==k?1:0,v=s):(v=a(t(k)/o),C=e(2,-v),k*C<1&&(v--,C*=2),v+l>=1?k+=d/C:k+=d*e(2,1-l),k*C>=2&&(v++,C/=2),v+l>=s?(V=0,v=s):v+l>=1?(V=(k*C-1)*e(2,b),v+=l):(V=k*e(2,l-1)*e(2,b),v=0));b>=8;)i[u++]=V&255,V/=256,b-=8;for(v=v<0;)i[u++]=v&255,v/=256,c-=8;return i[u-1]|=f*128,i},S=function(k,b){var p=k.length,i=p*8-b-1,c=(1<>1,l=i-7,d=p-1,f=k[d--],u=f&127,v;for(f>>=7;l>0;)u=u*256+k[d--],l-=8;for(v=u&(1<<-l)-1,u>>=-l,l+=b;l>0;)v=v*256+k[d--],l-=8;if(u===0)u=1-s;else{if(u===c)return v?NaN:f?-1/0:1/0;v+=e(2,b),u-=s}return(f?-1:1)*v*e(2,u-b)};I.exports={pack:m,unpack:S}},37457:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,m=e("".split);I.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(S){return t(S)==="String"?m(S,""):o(S)}:o},5781:function(I,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);I.exports=function(o,m,S){var y,k;return t&&e(y=m.constructor)&&y!==S&&a(k=y.prototype)&&k!==S.prototype&&t(o,k),o}},40492:function(I,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),I.exports=t.inspectSource},81969:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),m=n(45299),S=n(74595).f,y=n(37310),k=n(81644),b=n(81834),p=n(16738),i=n(50730),c=!1,s=p("meta"),l=0,d=function(g){S(g,s,{value:{objectID:"O"+l++,weakData:{}}})},f=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!m(g,s)){if(!b(g))return"F";if(!N)return"E";d(g)}return g[s].objectID},u=function(g,N){if(!m(g,s)){if(!b(g))return!0;if(!N)return!1;d(g)}return g[s].weakData},v=function(g){return i&&c&&b(g)&&!m(g,s)&&d(g),g},V=function(){C.enable=function(){},c=!0;var g=y.f,N=a([].splice),x={};x[s]=1,g(x).length&&(y.f=function(B){for(var L=g(B),T=0,A=L.length;TB;B++)if(T=O(l[B]),T&&y(s,T))return T;return new c(!1)}N=k(l,x)}for(A=V?l.next:N.next;!(w=a(A,N)).done;){try{T=O(w.value)}catch(P){p(N,"throw",P)}if(typeof T=="object"&&T&&y(s,T))return T}return new c(!1)}},28649:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);I.exports=function(o,m,S){var y,k;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw S;return S}y=e(y,o)}catch(b){k=!0,y=b}if(m==="throw")throw S;if(k)throw y;return a(y),S}},5656:function(I,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),m=n(83967),S=function(){return this};I.exports=function(y,k,b,p){var i=k+" Iterator";return y.prototype=a(e,{next:t(+!p,b)}),o(y,i,!1,!0),m[i]=S,y}},65574:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),m=n(55747),S=n(5656),y=n(36917),k=n(76649),b=n(84925),p=n(37909),i=n(55938),c=n(24697),s=n(83967),l=n(67635),d=o.PROPER,f=o.CONFIGURABLE,u=l.IteratorPrototype,v=l.BUGGY_SAFARI_ITERATORS,V=c("iterator"),C="keys",h="values",g="entries",N=function(){return this};I.exports=function(x,B,L,T,A,w,E){S(L,B,T);var O=function(X){if(X===A&&_)return _;if(!v&&X&&X in R)return R[X];switch(X){case C:return function(){function ve(){return new L(this,X)}return ve}();case h:return function(){function ve(){return new L(this,X)}return ve}();case g:return function(){function ve(){return new L(this,X)}return ve}()}return function(){return new L(this)}},P=B+" Iterator",M=!1,R=x.prototype,F=R[V]||R["@@iterator"]||A&&R[A],_=!v&&F||O(A),U=B==="Array"&&R.entries||F,W,$,G;if(U&&(W=y(U.call(new x)),W!==Object.prototype&&W.next&&(!t&&y(W)!==u&&(k?k(W,u):m(W[V])||i(W,V,N)),b(W,P,!0,!0),t&&(s[P]=N))),d&&A===h&&F&&F.name!==h&&(!t&&f?p(R,"name",h):(M=!0,_=function(){function oe(){return a(F,this)}return oe}())),A)if($={values:O(h),keys:w?_:O(C),entries:O(g)},E)for(G in $)(v||M||!(G in R))&&i(R,G,$[G]);else e({target:B,proto:!0,forced:v||M},$);return(!t||E)&&R[V]!==_&&i(R,V,_,{name:A}),s[B]=_,$}},67635:function(I,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),m=n(36917),S=n(55938),y=n(24697),k=n(4493),b=y("iterator"),p=!1,i,c,s;[].keys&&(s=[].keys(),"next"in s?(c=m(m(s)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[b].call(d)!==d});l?i={}:k&&(i=o(i)),a(i[b])||S(i,b,function(){return this}),I.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},83967:function(I){"use strict";I.exports={}},24760:function(I,r,n){"use strict";var e=n(10188);I.exports=function(a){return e(a.length)}},20001:function(I,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),m=n(58310),S=n(70520).CONFIGURABLE,y=n(40492),k=n(5419),b=k.enforce,p=k.get,i=String,c=Object.defineProperty,s=e("".slice),l=e("".replace),d=e([].join),f=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),v=I.exports=function(V,C,h){s(i(C),0,7)==="Symbol("&&(C="["+l(i(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(C="get "+C),h&&h.setter&&(C="set "+C),(!o(V,"name")||S&&V.name!==C)&&(m?c(V,"name",{value:C,configurable:!0}):V.name=C),f&&h&&o(h,"arity")&&V.length!==h.arity&&c(V,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(V,"prototype",{writable:!1}):V.prototype&&(V.prototype=void 0)}catch(N){}var g=b(V);return o(g,"source")||(g.source=d(u,typeof C=="string"?C:"")),V};Function.prototype.toString=v(function(){function V(){return t(this)&&p(this).source||y(this)}return V}(),"toString")},82040:function(I){"use strict";var r=Math.expm1,n=Math.exp;I.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||r(-2e-17)!==-2e-17?function(){function e(a){var t=+a;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}return e}():r},14950:function(I,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};I.exports=function(S,y,k,b){var p=+S,i=a(p),c=e(p);if(ik||l!==l?c*(1/0):c*l}},95867:function(I,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;I.exports=Math.fround||function(){function m(S){return e(S,a,t,o)}return m}()},75002:function(I){"use strict";var r=Math.log,n=Math.LOG10E;I.exports=Math.log10||function(){function e(a){return r(a)*n}return e}()},90874:function(I){"use strict";var r=Math.log;I.exports=Math.log1p||function(){function n(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:r(1+a)}return n}()},22172:function(I){"use strict";I.exports=Math.sign||function(){function r(n){var e=+n;return e===0||e!==e?e:e<0?-1:1}return r}()},21119:function(I){"use strict";var r=Math.ceil,n=Math.floor;I.exports=Math.trunc||function(){function e(a){var t=+a;return(t>0?n:r)(t)}return e}()},37713:function(I,r,n){"use strict";var e=n(16210),a=n(44915),t=n(75754),o=n(60375).set,m=n(9547),S=n(27770),y=n(16647),k=n(52854),b=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,s=e.Promise,l=a("queueMicrotask"),d,f,u,v,V;if(!l){var C=new m,h=function(){var N,x;for(b&&(N=c.domain)&&N.exit();x=C.get();)try{x()}catch(B){throw C.head&&d(),B}N&&N.enter()};!S&&!b&&!k&&p&&i?(f=!0,u=i.createTextNode(""),new p(h).observe(u,{characterData:!0}),d=function(){u.data=f=!f}):!y&&s&&s.resolve?(v=s.resolve(void 0),v.constructor=s,V=t(v.then,v),d=function(){V(h)}):b?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(N){C.head||d(),C.add(N)}}I.exports=l},81837:function(I,r,n){"use strict";var e=n(10320),a=TypeError,t=function(m){var S,y;this.promise=new m(function(k,b){if(S!==void 0||y!==void 0)throw new a("Bad Promise constructor");S=k,y=b}),this.resolve=e(S),this.reject=e(y)};I.exports.f=function(o){return new t(o)}},86213:function(I,r,n){"use strict";var e=n(72586),a=TypeError;I.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(I,r,n){"use strict";var e=n(16210),a=e.isFinite;I.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=t("".charAt),k=e.parseFloat,b=e.Symbol,p=b&&b.iterator,i=1/k(S+"-0")!==-1/0||p&&!a(function(){k(Object(p))});I.exports=i?function(){function c(s){var l=m(o(s)),d=k(l);return d===0&&y(l,0)==="-"?-0:d}return c}():k},13693:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=e.parseInt,k=e.Symbol,b=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=y(S+"08")!==8||y(S+"0x16")!==22||b&&!a(function(){y(Object(b))});I.exports=c?function(){function s(l,d){var f=m(o(l));return y(f,d>>>0||(i(p,f)?16:10))}return s}():y},41143:function(I,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),m=n(18450),S=n(89235),y=n(12867),k=n(46771),b=n(37457),p=Object.assign,i=Object.defineProperty,c=a([].concat);I.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var s={},l={},d=Symbol("assign detection"),f="abcdefghijklmnopqrst";return s[d]=7,f.split("").forEach(function(u){l[u]=u}),p({},s)[d]!==7||m(p({},l)).join("")!==f})?function(){function s(l,d){for(var f=k(l),u=arguments.length,v=1,V=S.f,C=y.f;u>v;)for(var h=b(arguments[v++]),g=V?c(m(h),V(h)):m(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(C,h,B))&&(f[B]=h[B]);return f}return s}():p},80674:function(I,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),m=n(5315),S=n(12689),y=n(19417),k=">",b="<",p="prototype",i="script",c=y("IE_PROTO"),s=function(){},l=function(C){return b+i+k+C+b+"/"+i+k},d=function(C){C.write(l("")),C.close();var h=C.parentWindow.Object;return C=null,h},f=function(){var C=S("iframe"),h="java"+i+":",g;return C.style.display="none",m.appendChild(C),C.src=String(h),g=C.contentWindow.document,g.open(),g.write(l("document.F=Object")),g.close(),g.F},u,v=function(){try{u=new ActiveXObject("htmlfile")}catch(h){}v=typeof document!="undefined"?document.domain&&u?d(u):f():d(u);for(var C=t.length;C--;)delete v[p][t[C]];return v()};o[c]=!0,I.exports=Object.create||function(){function V(C,h){var g;return C!==null?(s[p]=e(C),g=new s,s[p]=null,g[c]=C):g=v(),h===void 0?g:a.f(g,h)}return V}()},24239:function(I,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),m=n(57591),S=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(k,b){o(k);for(var p=m(b),i=S(b),c=i.length,s=0,l;c>s;)t.f(k,l=i[s++],p[l]);return k}return y}()},74595:function(I,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),m=n(767),S=TypeError,y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,b="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(s,l,d){if(o(s),l=m(l),o(d),typeof s=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var f=k(s,l);f&&f[i]&&(s[l]=d.value,d={configurable:p in d?d[p]:f[p],enumerable:b in d?d[b]:f[b],writable:!1})}return y(s,l,d)}return c}():y:function(){function c(s,l,d){if(o(s),l=m(l),o(d),a)try{return y(s,l,d)}catch(f){}if("get"in d||"set"in d)throw new S("Accessors not supported");return"value"in d&&(s[l]=d.value),s}return c}()},27193:function(I,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),m=n(57591),S=n(767),y=n(45299),k=n(36223),b=Object.getOwnPropertyDescriptor;r.f=e?b:function(){function p(i,c){if(i=m(i),c=S(c),k)try{return b(i,c)}catch(s){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return p}()},81644:function(I,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(k){try{return t(k)}catch(b){return o(m)}};I.exports.f=function(){function y(k){return m&&e(k)==="Window"?S(k):t(a(k))}return y}()},37310:function(I,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},89235:function(I,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(I,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),m=n(9225),S=o("IE_PROTO"),y=Object,k=y.prototype;I.exports=m?y.getPrototypeOf:function(b){var p=t(b);if(e(p,S))return p[S];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof y?k:null}},81834:function(I,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),m=Object.isExtensible,S=e(function(){m(1)});I.exports=S||o?function(){function y(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:m?m(k):!0}return y}():m},21287:function(I,r,n){"use strict";var e=n(67250);I.exports=e({}.isPrototypeOf)},53726:function(I,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,m=n(79195),S=e([].push);I.exports=function(y,k){var b=t(y),p=0,i=[],c;for(c in b)!a(m,c)&&a(b,c)&&S(i,c);for(;k.length>p;)a(b,c=k[p++])&&(~o(i,c)||S(i,c));return i}},18450:function(I,r,n){"use strict";var e=n(53726),a=n(89453);I.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867:function(I,r){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!n.call({1:2},1);r.f=a?function(){function t(o){var m=e(this,o);return!!m&&m.enumerable}return t}():n},57377:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(40033),o=n(44981);I.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},76649:function(I,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);I.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,S={},y;try{y=e(Object.prototype,"__proto__","set"),y(S,[]),m=S instanceof Array}catch(k){}return function(){function k(b,p){return t(b),o(p),a(b)&&(m?y(b,p):b.__proto__=p),b}return k}()}():void 0)},70915:function(I,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),m=n(18450),S=n(57591),y=n(12867).f,k=t(y),b=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!k(c,2)}),i=function(s){return function(l){for(var d=S(l),f=m(d),u=p&&o(d)===null,v=f.length,V=0,C=[],h;v>V;)h=f[V++],(!e||(u?h in d:k(d,h)))&&b(C,s?[h,d[h]]:d[h]);return C}};I.exports={entries:i(!0),values:i(!1)}},2509:function(I,r,n){"use strict";var e=n(2650),a=n(2281);I.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(I,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;I.exports=function(m,S){var y,k;if(S==="string"&&a(y=m.toString)&&!t(k=e(y,m))||a(y=m.valueOf)&&!t(k=e(y,m))||S!=="string"&&a(y=m.toString)&&!t(k=e(y,m)))return k;throw new o("Can't convert object to primitive value")}},97921:function(I,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),m=n(30365),S=a([].concat);I.exports=e("Reflect","ownKeys")||function(){function y(k){var b=t.f(m(k)),p=o.f;return p?S(b,p(k)):b}return y}()},61765:function(I,r,n){"use strict";var e=n(16210);I.exports=e},10729:function(I){"use strict";I.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(I,r,n){"use strict";var e=n(16210),a=n(67512),t=n(55747),o=n(41314),m=n(40492),S=n(24697),y=n(10753),k=n(4493),b=n(83141),p=a&&a.prototype,i=S("species"),c=!1,s=t(e.PromiseRejectionEvent),l=o("Promise",function(){var d=m(a),f=d!==String(a);if(!f&&b===66||k&&!(p.catch&&p.finally))return!0;if(!b||b<51||!/native code/.test(d)){var u=new a(function(C){C(1)}),v=function(h){h(function(){},function(){})},V=u.constructor={};if(V[i]=v,c=u.then(function(){})instanceof v,!c)return!0}return!f&&(y==="BROWSER"||y==="DENO")&&!s});I.exports={CONSTRUCTOR:l,REJECTION_EVENT:s,SUBCLASSING:c}},67512:function(I,r,n){"use strict";var e=n(16210);I.exports=e.Promise},66628:function(I,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);I.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var S=t.f(o),y=S.resolve;return y(m),S.promise}},48199:function(I,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;I.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(I,r,n){"use strict";var e=n(74595).f;I.exports=function(a,t,o){o in a||e(a,o,{configurable:!0,get:function(){function m(){return t[o]}return m}(),set:function(){function m(S){t[o]=S}return m}()})}},9547:function(I){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(){function n(e){var a={item:e,next:null},t=this.tail;t?t.next=a:this.head=a,this.tail=a}return n}(),get:function(){function n(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}return n}()},I.exports=r},28340:function(I,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),m=n(14489),S=TypeError;I.exports=function(y,k){var b=y.exec;if(t(b)){var p=e(b,y,k);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,k);throw new S("RegExp#exec called on incompatible receiver")}},14489:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),m=n(62115),S=n(16639),y=n(80674),k=n(5419).get,b=n(39173),p=n(35688),i=S("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,s=c,l=a("".charAt),d=a("".indexOf),f=a("".replace),u=a("".slice),v=function(){var g=/a/,N=/b*/g;return e(c,g,"a"),e(c,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),V=m.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0,h=v||C||V||b||p;h&&(s=function(){function g(N){var x=this,B=k(x),L=t(N),T=B.raw,A,w,E,O,P,M,R;if(T)return T.lastIndex=x.lastIndex,A=e(s,T,L),x.lastIndex=T.lastIndex,A;var F=B.groups,_=V&&x.sticky,U=e(o,x),W=x.source,$=0,G=L;if(_&&(U=f(U,"y",""),d(U,"g")===-1&&(U+="g"),G=u(L,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&l(L,x.lastIndex-1)!=="\n")&&(W="(?: "+W+")",G=" "+G,$++),w=new RegExp("^(?:"+W+")",U)),C&&(w=new RegExp("^"+W+"$(?!\\s)",U)),v&&(E=x.lastIndex),O=e(c,_?w:x,G),_?O?(O.input=u(O.input,$),O[0]=u(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:v&&O&&(x.lastIndex=x.global?O.index+O[0].length:E),C&&O&&O.length>1&&e(i,O[0],w,function(){for(P=1;Pb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(I,r,n){"use strict";var e=n(42871),a=TypeError;I.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=Object.getOwnPropertyDescriptor;I.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},5700:function(I){"use strict";I.exports=Object.is||function(){function r(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}return r}()},78362:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(55747),o=n(10753),m=n(83309),S=n(54602),y=n(24986),k=e.Function,b=/MSIE .\./.test(m)||o==="BUN"&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();I.exports=function(p,i){var c=i?2:1;return b?function(s,l){var d=y(arguments.length,1)>c,f=t(s)?s:k(s),u=d?S(arguments,c):[],v=d?function(){a(f,this,u)}:f;return i?p(v,l):p(v)}:p}},58491:function(I,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),m=t("species");I.exports=function(S){var y=e(S);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function k(){return this}return k}()})}},84925:function(I,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");I.exports=function(m,S,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:S})}},19417:function(I,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");I.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(I,r,n){"use strict";var e=n(4493),a=n(16210),t=n(18231),o="__core-js_shared__",m=I.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(I,r,n){"use strict";var e=n(40095);I.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(I,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),m=o("species");I.exports=function(S,y){var k=e(S).constructor,b;return k===void 0||t(b=e(k)[m])?y:a(b)}},88539:function(I,r,n){"use strict";var e=n(40033);I.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(I,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),m=e("".charAt),S=e("".charCodeAt),y=e("".slice),k=function(p){return function(i,c){var s=t(o(i)),l=a(c),d=s.length,f,u;return l<0||l>=d?p?"":void 0:(f=S(s,l),f<55296||f>56319||l+1===d||(u=S(s,l+1))<56320||u>57343?p?m(s,l):f:p?y(s,l,l+2):(f-55296<<10)+(u-56320)+65536)}};I.exports={codeAt:k(!1),charAt:k(!0)}},34125:function(I,r,n){"use strict";var e=n(83309);I.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(I,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),m=n(16952),S=e(o),y=e("".slice),k=Math.ceil,b=function(i){return function(c,s,l){var d=t(m(c)),f=a(s),u=d.length,v=l===void 0?" ":t(l),V,C;return f<=u||v===""?d:(V=f-u,C=S(v,k(V/v.length)),C.length>V&&(C=y(C,0,V)),i?d+C:C+d)}};I.exports={start:b(!1),end:b(!0)}},62443:function(I,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;I.exports=function(){function m(S){var y=a(t(this)),k="",b=e(S);if(b<0||b===1/0)throw new o("Wrong number of repetitions");for(;b>0;(b>>>=1)&&(y+=y))b&1&&(k+=y);return k}return m}()},43476:function(I,r,n){"use strict";var e=n(92648).end,a=n(90012);I.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";I.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},43885:function(I,r,n){"use strict";var e=n(92648).start,a=n(90012);I.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(I,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),m=e("".replace),S=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var c=t(a(i));return p&1&&(c=m(c,S,"")),p&2&&(c=m(c,y,"$1")),c}};I.exports={start:k(1),end:k(2),trim:k(3)}},52357:function(I,r,n){"use strict";var e=n(83141),a=n(40033),t=n(16210),o=t.String;I.exports=!!Object.getOwnPropertySymbols&&!a(function(){var m=Symbol("symbol detection");return!o(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&e&&e<41})},52360:function(I,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);I.exports=function(){var m=a("Symbol"),S=m&&m.prototype,y=S&&S.valueOf,k=t("toPrimitive");S&&!S[k]&&o(S,k,function(b){return e(y,this)},{arity:1})}},66570:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(75754),o=n(55747),m=n(45299),S=n(40033),y=n(5315),k=n(54602),b=n(12689),p=n(24986),i=n(27770),c=n(81663),s=e.setImmediate,l=e.clearImmediate,d=e.process,f=e.Dispatch,u=e.Function,v=e.MessageChannel,V=e.String,C=0,h={},g="onreadystatechange",N,x,B,L;S(function(){N=e.location});var T=function(P){if(m(h,P)){var M=h[P];delete h[P],M()}},A=function(P){return function(){T(P)}},w=function(P){T(P.data)},E=function(P){e.postMessage(V(P),N.protocol+"//"+N.host)};(!s||!l)&&(s=function(){function O(P){p(arguments.length,1);var M=o(P)?P:u(P),R=k(arguments,1);return h[++C]=function(){a(M,void 0,R)},x(C),C}return O}(),l=function(){function O(P){delete h[P]}return O}(),c?x=function(P){d.nextTick(A(P))}:f&&f.now?x=function(P){f.now(A(P))}:v&&!i?(B=new v,L=B.port2,B.port1.onmessage=w,x=t(L.postMessage,L)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!S(E)?(x=E,e.addEventListener("message",w,!1)):g in b("script")?x=function(P){y.appendChild(b("script"))[g]=function(){y.removeChild(this),T(P)}}:x=function(P){setTimeout(A(P),0)}),I.exports={set:s,clear:l}},46438:function(I,r,n){"use strict";var e=n(67250);I.exports=e(1 .valueOf)},13912:function(I,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;I.exports=function(o,m){var S=e(o);return S<0?a(S+m,0):t(S,m)}},61484:function(I,r,n){"use strict";var e=n(24843),a=TypeError;I.exports=function(t){var o=e(t,"number");if(typeof o=="number")throw new a("Can't convert number to bigint");return BigInt(o)}},43806:function(I,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;I.exports=function(o){if(o===void 0)return 0;var m=e(o),S=a(m);if(m!==S)throw new t("Wrong length or index");return S}},57591:function(I,r,n){"use strict";var e=n(37457),a=n(16952);I.exports=function(t){return e(a(t))}},61365:function(I,r,n){"use strict";var e=n(21119);I.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(I,r,n){"use strict";var e=n(61365),a=Math.min;I.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(I,r,n){"use strict";var e=n(16952),a=Object;I.exports=function(t){return a(e(t))}},56043:function(I,r,n){"use strict";var e=n(16140),a=RangeError;I.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},16140:function(I,r,n){"use strict";var e=n(61365),a=RangeError;I.exports=function(t){var o=e(t);if(o<0)throw new a("The argument can't be less than 0");return o}},24843:function(I,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),m=n(13396),S=n(24697),y=TypeError,k=S("toPrimitive");I.exports=function(b,p){if(!a(b)||t(b))return b;var i=o(b,k),c;if(i){if(p===void 0&&(p="default"),c=e(i,b,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(b,p)}},767:function(I,r,n){"use strict";var e=n(24843),a=n(71399);I.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(I,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",I.exports=String(t)==="[object z]"},12605:function(I,r,n){"use strict";var e=n(2281),a=String;I.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409:function(I){"use strict";var r=Math.round;I.exports=function(n){var e=r(n);return e<0?0:e>255?255:e&255}},89393:function(I){"use strict";var r=String;I.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(58310),m=n(86563),S=n(4246),y=n(37336),k=n(60077),b=n(87458),p=n(37909),i=n(5841),c=n(10188),s=n(43806),l=n(56043),d=n(15409),f=n(767),u=n(45299),v=n(2281),V=n(77568),C=n(71399),h=n(80674),g=n(21287),N=n(76649),x=n(37310).f,B=n(3805),L=n(22603).forEach,T=n(58491),A=n(73936),w=n(74595),E=n(27193),O=n(78008),P=n(5419),M=n(5781),R=P.get,F=P.set,_=P.enforce,U=w.f,W=E.f,$=a.RangeError,G=y.ArrayBuffer,oe=G.prototype,X=y.DataView,ve=S.NATIVE_ARRAY_BUFFER_VIEWS,me=S.TYPED_ARRAY_TAG,ne=S.TypedArray,ce=S.TypedArrayPrototype,q=S.isTypedArray,ae="BYTES_PER_ELEMENT",J="Wrong length",Y=function(fe,Ie){A(fe,Ie,{configurable:!0,get:function(){function D(){return R(this)[Ie]}return D}()})},Q=function(fe){var Ie;return g(oe,fe)||(Ie=v(fe))==="ArrayBuffer"||Ie==="SharedArrayBuffer"},Z=function(fe,Ie){return q(fe)&&!C(Ie)&&Ie in fe&&i(+Ie)&&Ie>=0},te=function(){function ye(fe,Ie){return Ie=f(Ie),Z(fe,Ie)?b(2,fe[Ie]):W(fe,Ie)}return ye}(),se=function(){function ye(fe,Ie,D){return Ie=f(Ie),Z(fe,Ie)&&V(D)&&u(D,"value")&&!u(D,"get")&&!u(D,"set")&&!D.configurable&&(!u(D,"writable")||D.writable)&&(!u(D,"enumerable")||D.enumerable)?(fe[Ie]=D.value,fe):U(fe,Ie,D)}return ye}();o?(ve||(E.f=te,w.f=se,Y(ce,"buffer"),Y(ce,"byteOffset"),Y(ce,"byteLength"),Y(ce,"length")),e({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:te,defineProperty:se}),I.exports=function(ye,fe,Ie){var D=ye.match(/\d+/)[0]/8,re=ye+(Ie?"Clamped":"")+"Array",de="get"+ye,Ce="set"+ye,pe=a[re],Be=pe,ke=Be&&Be.prototype,Ee={},Re=function(H,ue){var Ve=R(H);return Ve.view[de](ue*D+Ve.byteOffset,!0)},_e=function(H,ue,Ve){var be=R(H);be.view[Ce](ue*D+be.byteOffset,Ie?d(Ve):Ve,!0)},Pe=function(H,ue){U(H,ue,{get:function(){function Ve(){return Re(this,ue)}return Ve}(),set:function(){function Ve(be){return _e(this,ue,be)}return Ve}(),enumerable:!0})};ve?m&&(Be=fe(function(Se,H,ue,Ve){return k(Se,ke),M(function(){return V(H)?Q(H)?Ve!==void 0?new pe(H,l(ue,D),Ve):ue!==void 0?new pe(H,l(ue,D)):new pe(H):q(H)?O(Be,H):t(B,Be,H):new pe(s(H))}(),Se,Be)}),N&&N(Be,ne),L(x(pe),function(Se){Se in Be||p(Be,Se,pe[Se])}),Be.prototype=ke):(Be=fe(function(Se,H,ue,Ve){k(Se,ke);var be=0,Le=0,we,Me,Ae;if(!V(H))Ae=s(H),Me=Ae*D,we=new G(Me);else if(Q(H)){we=H,Le=l(ue,D);var De=H.byteLength;if(Ve===void 0){if(De%D)throw new $(J);if(Me=De-Le,Me<0)throw new $(J)}else if(Me=c(Ve)*D,Me+Le>De)throw new $(J);Ae=Me/D}else return q(H)?O(Be,H):t(B,Be,H);for(F(Se,{buffer:we,byteOffset:Le,byteLength:Me,length:Ae,view:new X(we)});be1?arguments[1]:void 0,v=u!==void 0,V=y(d),C,h,g,N,x,B,L,T;if(V&&!k(V))for(L=S(d,V),T=L.next,d=[];!(B=a(T,L)).done;)d.push(B.value);for(v&&f>2&&(u=e(u,arguments[2])),h=m(d),g=new(p(l))(h),N=b(g),C=0;h>C;C++)x=v?u(d[C],C):d[C],g[C]=N?i(x):+x;return g}return c}()},31082:function(I,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;I.exports=function(m){return t(a(m,o(m)))}},16738:function(I,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);I.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},1062:function(I,r,n){"use strict";var e=n(52357);I.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(I,r,n){"use strict";var e=n(58310),a=n(40033);I.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(I){"use strict";var r=TypeError;I.exports=function(n,e){if(n=51||!a(function(){var u=[];return u[s]=!1,u.concat()[0]!==u}),d=function(v){if(!o(v))return!1;var V=v[s];return V!==void 0?!!V:t(v)},f=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:f},{concat:function(){function u(v){var V=m(this),C=b(V,0),h=0,g,N,x,B,L;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return m}()})},68933:function(I,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(I,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},64094:function(I,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},13455:function(I,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},32384:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),m=n(24760),S=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(k){var b=o(this),p=m(b),i;return t(k),i=S(b,0),i.length=a(i,b,b,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(I,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),m=n(61365),S=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var k=arguments.length?arguments[0]:void 0,b=t(this),p=o(b),i=S(b,0);return i.length=a(i,b,b,p,0,k===void 0?1:m(k)),i}return y}()})},25579:function(I,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(I,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(I,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),o("includes")},43894:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),m=a([].indexOf),S=!!m&&1/m([1],1,-0)<0,y=S||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function k(b){var p=arguments.length>1?arguments[1]:void 0;return S?m(this,b,p)||0:t(this,b,p)}return k}()})},99636:function(I,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(I,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),m=n(74595).f,S=n(65574),y=n(5959),k=n(4493),b=n(58310),p="Array Iterator",i=o.set,c=o.getterFor(p);I.exports=S(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,f=l.index++;if(!d||f>=d.length)return l.target=null,y(void 0,!0);switch(l.kind){case"keys":return y(f,!1);case"values":return y(d[f],!1)}return y([f,d[f]],!1)},"values");var s=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&b&&s.name!=="values")try{m(s,"name",{value:"values"})}catch(l){}},94432:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),m=n(55528),S=a([].join),y=t!==Object,k=y||!m("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function b(p){return S(o(this),p===void 0?",":p)}return b}()})},24683:function(I,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(I,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},32089:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),m=Array,S=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:S},{of:function(){function y(){for(var k=0,b=arguments.length,p=new(t(this)?this:m)(b);b>k;)o(p,k,arguments[k++]);return p.length=b,p}return y}()})},29645:function(I,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function k(b){return a(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},60206:function(I,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function k(b){var p=arguments.length;return a(this,b,p,p>1?arguments[1]:void 0)}return k}()})},4788:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function S(){return t(this)&&(this.length=this.length),o(this)}return S}()})},58672:function(I,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),m=n(13912),S=n(24760),y=n(57591),k=n(60102),b=n(24697),p=n(44091),i=n(54602),c=p("slice"),s=b("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function f(u,v){var V=y(this),C=S(V),h=m(u,C),g=m(v===void 0?C:v,C),N,x,B;if(a(V)&&(N=V.constructor,t(N)&&(N===l||a(N.prototype))?N=void 0:o(N)&&(N=N[s],N===null&&(N=void 0)),N===l||N===void 0))return i(V,h,g);for(x=new(N===void 0?l:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return m}()})},48968:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),m=n(24760),S=n(95108),y=n(12605),k=n(40033),b=n(90274),p=n(55528),i=n(50503),c=n(79725),s=n(83141),l=n(44981),d=[],f=a(d.sort),u=a(d.push),v=k(function(){d.sort(void 0)}),V=k(function(){d.sort(null)}),C=p("sort"),h=!k(function(){if(s)return s<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var x="",B,L,T,A;for(B=65;B<76;B++){switch(L=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(A=0;A<47;A++)d.push({k:L+A,v:T})}for(d.sort(function(w,E){return E.v-w.v}),A=0;Ay(T)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var L=o(this);if(h)return B===void 0?f(L):f(L,B);var T=[],A=m(L),w,E;for(E=0;EV-N+g;B--)p(v,B-1)}else if(g>N)for(B=V-N;B>C;B--)L=B+N-1,T=B+g-1,L in v?v[T]=v[L]:p(v,T);for(B=0;B9490626562425156e-8?o(p)+S:a(p-1+m(p-1)*m(p+1))}return k}()})},59660:function(I,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var k=+y;return!isFinite(k)||k===0?k:k<0?-m(-k):t(k+o(k*k+1))}var S=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:S},{asinh:m})},15383:function(I,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(S){var y=+S;return y===0?y:t((1+y)/(1-y))/2}return m}()})},92866:function(I,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(S){var y=+S;return a(y)*o(t(y),.3333333333333333)}return m}()})},86107:function(I,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(S){var y=S>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},29248:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,m=Math.E,S=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:S},{cosh:function(){function y(k){var b=a(o(k)-1)+1;return(b+1/(b*m*m))*(m/2)}return y}()})},52540:function(I,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(I,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(I,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function S(y,k){for(var b=0,p=0,i=arguments.length,c=0,s,l;p0?(l=s/c,b+=l*l):b+=s;return c===1/0?1/0:c*o(b)}return S}()})},6522:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(S,y){var k=65535,b=+S,p=+y,i=k&b,c=k&p;return 0|i*c+((k&b>>>16)*c+i*(k&p>>>16)<<16>>>0)}return m}()})},95542:function(I,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(I,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(I,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},57400:function(I,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,m=Math.exp,S=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function k(b){var p=+b;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(S/2)}return k}()})},54800:function(I,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var S=+m,y=a(S),k=a(-S);return y===1/0?1:k===1/0?-1:(y-k)/(t(S)+t(-S))}return o}()})},15709:function(I,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(I,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(16210),m=n(61765),S=n(67250),y=n(41314),k=n(45299),b=n(5781),p=n(21287),i=n(71399),c=n(24843),s=n(40033),l=n(37310).f,d=n(27193).f,f=n(74595).f,u=n(46438),v=n(92648).trim,V="Number",C=o[V],h=m[V],g=C.prototype,N=o.TypeError,x=S("".slice),B=S("".charCodeAt),L=function(M){var R=c(M,"number");return typeof R=="bigint"?R:T(R)},T=function(M){var R=c(M,"number"),F,_,U,W,$,G,oe,X;if(i(R))throw new N("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=v(R),F=B(R,0),F===43||F===45){if(_=B(R,2),_===88||_===120)return NaN}else if(F===48){switch(B(R,1)){case 66:case 98:U=2,W=49;break;case 79:case 111:U=8,W=55;break;default:return+R}for($=x(R,2),G=$.length,oe=0;oeW)return NaN;return parseInt($,U)}}return+R},A=y(V,!C(" 0o1")||!C("0b1")||C("+0x1")),w=function(M){return p(g,M)&&s(function(){u(M)})},E=function(){function P(M){var R=arguments.length<1?0:C(L(M));return w(this)?b(Object(R),this,E):R}return P}();E.prototype=g,A&&!a&&(g.constructor=E),e({global:!0,constructor:!0,wrap:!0,forced:A},{Number:E});var O=function(M,R){for(var F=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),_=0,U;F.length>_;_++)k(R,U=F[_])&&!k(M,U)&&f(M,U,d(R,U))};a&&h&&O(m[V],h),(A||a)&&O(m[V],C)},324:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(I,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(I,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(I,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},55323:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(I,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),m=n(62443),S=n(40033),y=RangeError,k=String,b=Math.floor,p=a(m),i=a("".slice),c=a(1 .toFixed),s=function(C,h,g){return h===0?g:h%2===1?s(C,h-1,g*C):s(C*C,h/2,g)},l=function(C){for(var h=0,g=C;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(C,h,g){for(var N=-1,x=g;++N<6;)x+=h*C[N],C[N]=x%1e7,x=b(x/1e7)},f=function(C,h){for(var g=6,N=0;--g>=0;)N+=C[g],C[g]=b(N/h),N=N%h*1e7},u=function(C){for(var h=6,g="";--h>=0;)if(g!==""||h===0||C[h]!==0){var N=k(C[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},v=S(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!S(function(){c({})});e({target:"Number",proto:!0,forced:v},{toFixed:function(){function V(C){var h=o(this),g=t(C),N=[0,0,0,0,0,0],x="",B="0",L,T,A,w;if(g<0||g>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(L=l(h*s(2,69,1))-69,T=L<0?h*s(2,-L,1):h/s(2,L,1),T*=4503599627370496,L=52-L,L>0){for(d(N,0,T),A=g;A>=7;)d(N,1e7,0),A-=7;for(d(N,s(10,A,1),0),A=L-1;A>=23;)f(N,8388608),A-=23;f(N,1<0?(w=B.length,B=x+(w<=g?"0."+p("0",g-w)+B:i(B,0,w-g)+"."+i(B,w-g))):B=x+B,B}return V}()})},23532:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),m=a(1 .toPrecision),S=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:S},{toPrecision:function(){function y(k){return k===void 0?m(o(this)):m(o(this),k)}return y}()})},87119:function(I,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(k,b){S.f(m(this),k,{get:o(b),enumerable:!0,configurable:!0})}return y}()})},31943:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(k,b){S.f(m(this),k,{set:o(b),enumerable:!0,configurable:!0})}return y}()})},85028:function(I,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(I,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),m=n(81969).onFreeze,S=Object.freeze,y=t(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function k(b){return S&&o(b)?S(m(b)):b}return k}()})},43331:function(I,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var S={};return a(m,function(y,k){t(S,y,k)},{AS_ENTRIES:!0}),S}return o}()})},62289:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,m=n(58310),S=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getOwnPropertyDescriptor:function(){function y(k,b){return o(t(k),b)}return y}()})},56196:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),m=n(27193),S=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(k){for(var b=o(k),p=m.f,i=t(b),c={},s=0,l,d;i.length>s;)d=p(b,l=i[s++]),d!==void 0&&S(c,l,d);return c}return y}()})},2950:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(I,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),m=n(46771),S=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:S},{getOwnPropertySymbols:function(){function y(k){var b=o.f;return b?b(m(k)):[]}return y}()})},44205:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),m=n(9225),S=a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getPrototypeOf:function(){function y(k){return o(t(k))}return y}()})},83186:function(I,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isFrozen,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function k(b){return!t(b)||m&&o(b)==="ArrayBuffer"?!0:S?S(b):!1}return k}()})},13411:function(I,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isSealed,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function k(b){return!t(b)||m&&o(b)==="ArrayBuffer"?!0:S?S(b):!1}return k}()})},76882:function(I,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(I,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function S(y){return t(a(y))}return S}()})},53118:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(b){var p=o(this),i=m(b),c;do if(c=y(p,i))return c.get;while(p=S(p))}return k}()})},42514:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(b){var p=o(this),i=m(b),c;do if(c=y(p,i))return c.set;while(p=S(p))}return k}()})},84353:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.preventExtensions,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function k(b){return S&&a(b)?S(t(b)):b}return k}()})},62987:function(I,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.seal,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function k(b){return S&&a(b)?S(t(b)):b}return k}()})},48993:function(I,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(I,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(I,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(I,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(I,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function k(b){var p=this,i=o.f(p),c=i.resolve,s=i.reject,l=m(function(){var d=t(p.resolve),f=[],u=0,v=1;S(b,function(V){var C=u++,h=!1;v++,a(d,p,V).then(function(g){h||(h=!0,f[C]=g,--v||c(f))},s)}),--v||c(f)});return l.error&&s(l.value),i.promise}return k}()})},70641:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),m=n(4009),S=n(55747),y=n(55938),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&S(o)){var b=m("Promise").prototype.catch;k.catch!==b&&y(k,"catch",b,{unsafe:!0})}},75946:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),m=n(91495),S=n(55938),y=n(76649),k=n(84925),b=n(58491),p=n(10320),i=n(55747),c=n(77568),s=n(60077),l=n(28987),d=n(60375).set,f=n(37713),u=n(72259),v=n(10729),V=n(9547),C=n(5419),h=n(67512),g=n(74854),N=n(81837),x="Promise",B=g.CONSTRUCTOR,L=g.REJECTION_EVENT,T=g.SUBCLASSING,A=C.getterFor(x),w=C.set,E=h&&h.prototype,O=h,P=E,M=o.TypeError,R=o.document,F=o.process,_=N.f,U=_,W=!!(R&&R.createEvent&&o.dispatchEvent),$="unhandledrejection",G="rejectionhandled",oe=0,X=1,ve=2,me=1,ne=2,ce,q,ae,J,Y=function(Ce){var pe;return c(Ce)&&i(pe=Ce.then)?pe:!1},Q=function(Ce,pe){var Be=pe.value,ke=pe.state===X,Ee=ke?Ce.ok:Ce.fail,Re=Ce.resolve,_e=Ce.reject,Pe=Ce.domain,Ne,Se,H;try{Ee?(ke||(pe.rejection===ne&&fe(pe),pe.rejection=me),Ee===!0?Ne=Be:(Pe&&Pe.enter(),Ne=Ee(Be),Pe&&(Pe.exit(),H=!0)),Ne===Ce.promise?_e(new M("Promise-chain cycle")):(Se=Y(Ne))?m(Se,Ne,Re,_e):Re(Ne)):_e(Be)}catch(ue){Pe&&!H&&Pe.exit(),_e(ue)}},Z=function(Ce,pe){Ce.notified||(Ce.notified=!0,f(function(){for(var Be=Ce.reactions,ke;ke=Be.get();)Q(ke,Ce);Ce.notified=!1,pe&&!Ce.rejection&&se(Ce)}))},te=function(Ce,pe,Be){var ke,Ee;W?(ke=R.createEvent("Event"),ke.promise=pe,ke.reason=Be,ke.initEvent(Ce,!1,!0),o.dispatchEvent(ke)):ke={promise:pe,reason:Be},!L&&(Ee=o["on"+Ce])?Ee(ke):Ce===$&&u("Unhandled promise rejection",Be)},se=function(Ce){m(d,o,function(){var pe=Ce.facade,Be=Ce.value,ke=ye(Ce),Ee;if(ke&&(Ee=v(function(){t?F.emit("unhandledRejection",Be,pe):te($,pe,Be)}),Ce.rejection=t||ye(Ce)?ne:me,Ee.error))throw Ee.value})},ye=function(Ce){return Ce.rejection!==me&&!Ce.parent},fe=function(Ce){m(d,o,function(){var pe=Ce.facade;t?F.emit("rejectionHandled",pe):te(G,pe,Ce.value)})},Ie=function(Ce,pe,Be){return function(ke){Ce(pe,ke,Be)}},D=function(Ce,pe,Be){Ce.done||(Ce.done=!0,Be&&(Ce=Be),Ce.value=pe,Ce.state=ve,Z(Ce,!0))},re=function(Ce,pe,Be){if(!Ce.done){Ce.done=!0,Be&&(Ce=Be);try{if(Ce.facade===pe)throw new M("Promise can't be resolved itself");var ke=Y(pe);ke?f(function(){var Ee={done:!1};try{m(ke,pe,Ie(re,Ee,Ce),Ie(D,Ee,Ce))}catch(Re){D(Ee,Re,Ce)}}):(Ce.value=pe,Ce.state=X,Z(Ce,!1))}catch(Ee){D({done:!1},Ee,Ce)}}};if(B&&(O=function(){function de(Ce){s(this,P),p(Ce),m(ce,this);var pe=A(this);try{Ce(Ie(re,pe),Ie(D,pe))}catch(Be){D(pe,Be)}}return de}(),P=O.prototype,ce=function(){function de(Ce){w(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:oe,value:null})}return de}(),ce.prototype=S(P,"then",function(){function de(Ce,pe){var Be=A(this),ke=_(l(this,O));return Be.parent=!0,ke.ok=i(Ce)?Ce:!0,ke.fail=i(pe)&&pe,ke.domain=t?F.domain:void 0,Be.state===oe?Be.reactions.add(ke):f(function(){Q(ke,Be)}),ke.promise}return de}()),q=function(){var Ce=new ce,pe=A(Ce);this.promise=Ce,this.resolve=Ie(re,pe),this.reject=Ie(D,pe)},N.f=_=function(Ce){return Ce===O||Ce===ae?new q(Ce):U(Ce)},!a&&i(h)&&E!==Object.prototype)){J=E.then,T||S(E,"then",function(){function de(Ce,pe){var Be=this;return new O(function(ke,Ee){m(J,Be,ke,Ee)}).then(Ce,pe)}return de}(),{unsafe:!0});try{delete E.constructor}catch(de){}y&&y(E,P)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),b(x)},69861:function(I,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),m=n(4009),S=n(55747),y=n(28987),k=n(66628),b=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function s(){}return s}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function s(l){var d=y(this,m("Promise")),f=S(l);return this.then(f?function(u){return k(d,l()).then(function(){return u})}:l,f?function(u){return k(d,l()).then(function(){throw u})}:l)}return s}()}),!a&&S(t)){var c=m("Promise").prototype.finally;p.finally!==c&&b(p,"finally",c,{unsafe:!0})}},53092:function(I,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(81702)},16937:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function k(b){var p=this,i=o.f(p),c=i.reject,s=m(function(){var l=t(p.resolve);S(b,function(d){a(l,p,d).then(i.resolve,c)})});return s.error&&c(s.value),i.promise}return k}()})},41719:function(I,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var S=a.f(this),y=S.reject;return y(m),S.promise}return o}()})},81702:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),m=n(74854).CONSTRUCTOR,S=n(66628),y=a("Promise"),k=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function b(p){return S(k&&this===y?o:this,p)}return b}()})},29674:function(I,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),m=n(40033),S=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:S},{apply:function(){function y(k,b,p){return a(t(k),b,o(p))}return y}()})},81543:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),m=n(32606),S=n(30365),y=n(77568),k=n(80674),b=n(40033),p=a("Reflect","construct"),i=Object.prototype,c=[].push,s=b(function(){function f(){}return!(p(function(){},[],f)instanceof f)}),l=!b(function(){p(function(){})}),d=s||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function f(u,v){m(u),S(v);var V=arguments.length<3?u:m(arguments[2]);if(l&&!s)return p(u,v,V);if(u===V){switch(v.length){case 0:return new u;case 1:return new u(v[0]);case 2:return new u(v[0],v[1]);case 3:return new u(v[0],v[1],v[2]);case 4:return new u(v[0],v[1],v[2],v[3])}var C=[null];return t(c,C,v),new(t(o,u,C))}var h=V.prototype,g=k(y(h)?h:i),N=t(u,g,v);return y(N)?N:g}return f}()})},9373:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),m=n(74595),S=n(40033),y=S(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function k(b,p,i){t(b);var c=o(p);t(i);try{return m.f(b,c,i),!0}catch(s){return!1}}return k}()})},45093:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,S){var y=t(a(m),S);return y&&!y.configurable?!1:delete m[S]}return o}()})},5815:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(S,y){return o.f(t(S),y)}return m}()})},88527:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(S){return t(a(S))}return m}()})},63074:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),m=n(98373),S=n(27193),y=n(36917);function k(b,p){var i=arguments.length<3?b:arguments[2],c,s;if(o(b)===i)return b[p];if(c=S.f(b,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(s=y(b)))return k(s,p,i)}e({target:"Reflect",stat:!0},{get:k})},66390:function(I,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},50551:function(I,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(S){t(S);try{var y=a("Object","preventExtensions");return y&&y(S),!0}catch(k){return!1}}return m}()})},63915:function(I,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(S,y){a(S),t(y);try{return o(S,y),!0}catch(k){return!1}}return m}()})},92046:function(I,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),m=n(98373),S=n(40033),y=n(74595),k=n(27193),b=n(36917),p=n(87458);function i(s,l,d){var f=arguments.length<4?s:arguments[3],u=k.f(t(s),l),v,V,C;if(!u){if(o(V=b(s)))return i(V,l,d,f);u=p(0)}if(m(u)){if(u.writable===!1||!o(f))return!1;if(v=k.f(f,l)){if(v.get||v.set||v.writable===!1)return!1;v.value=d,y.f(f,l,v)}else y.f(f,l,p(0,d))}else{if(C=u.set,C===void 0)return!1;a(C,f,d)}return!0}var c=S(function(){var s=function(){},l=y.f(new s,"a",{configurable:!0});return Reflect.set(s.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(I,r,n){"use strict";var e=n(58310),a=n(16210),t=n(67250),o=n(41314),m=n(5781),S=n(37909),y=n(80674),k=n(37310).f,b=n(21287),p=n(72586),i=n(12605),c=n(73392),s=n(62115),l=n(34550),d=n(55938),f=n(40033),u=n(45299),v=n(5419).enforce,V=n(58491),C=n(24697),h=n(39173),g=n(35688),N=C("match"),x=a.RegExp,B=x.prototype,L=a.SyntaxError,T=t(B.exec),A=t("".charAt),w=t("".replace),E=t("".indexOf),O=t("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,R=/a/g,F=new x(M)!==M,_=s.MISSED_STICKY,U=s.UNSUPPORTED_Y,W=e&&(!F||_||h||g||f(function(){return R[N]=!1,x(M)!==M||x(R)===R||String(x(M,"i"))!=="/a/i"})),$=function(ne){for(var ce=ne.length,q=0,ae="",J=!1,Y;q<=ce;q++){if(Y=A(ne,q),Y==="\\"){ae+=Y+A(ne,++q);continue}!J&&Y==="."?ae+="[\\s\\S]":(Y==="["?J=!0:Y==="]"&&(J=!1),ae+=Y)}return ae},G=function(ne){for(var ce=ne.length,q=0,ae="",J=[],Y=y(null),Q=!1,Z=!1,te=0,se="",ye;q<=ce;q++){if(ye=A(ne,q),ye==="\\")ye+=A(ne,++q);else if(ye==="]")Q=!1;else if(!Q)switch(!0){case ye==="[":Q=!0;break;case ye==="(":if(ae+=ye,O(ne,q+1,q+3)==="?:")continue;T(P,O(ne,q+1))&&(q+=2,Z=!0),te++;continue;case(ye===">"&&Z):if(se===""||u(Y,se))throw new L("Invalid capture group name");Y[se]=!0,J[J.length]=[se,te],Z=!1,se="";continue}Z?se+=ye:ae+=ye}return[ae,J]};if(o("RegExp",W)){for(var oe=function(){function me(ne,ce){var q=b(B,this),ae=p(ne),J=ce===void 0,Y=[],Q=ne,Z,te,se,ye,fe,Ie;if(!q&&ae&&J&&ne.constructor===oe)return ne;if((ae||b(B,ne))&&(ne=ne.source,J&&(ce=c(Q))),ne=ne===void 0?"":i(ne),ce=ce===void 0?"":i(ce),Q=ne,h&&"dotAll"in M&&(te=!!ce&&E(ce,"s")>-1,te&&(ce=w(ce,/s/g,""))),Z=ce,_&&"sticky"in M&&(se=!!ce&&E(ce,"y")>-1,se&&U&&(ce=w(ce,/y/g,""))),g&&(ye=G(ne),ne=ye[0],Y=ye[1]),fe=m(x(ne,ce),q?this:B,oe),(te||se||Y.length)&&(Ie=v(fe),te&&(Ie.dotAll=!0,Ie.raw=oe($(ne),Z)),se&&(Ie.sticky=!0),Y.length&&(Ie.groups=Y)),ne!==Q)try{S(fe,"source",Q===""?"(?:)":Q)}catch(D){}return fe}return me}(),X=k(x),ve=0;X.length>ve;)l(oe,x,X[ve++]);B.constructor=oe,oe.prototype=B,d(a,"RegExp",oe,{constructor:!0})}V("RegExp")},79669:function(I,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(I,r,n){"use strict";var e=n(16210),a=n(58310),t=n(73936),o=n(70901),m=n(40033),S=e.RegExp,y=S.prototype,k=a&&m(function(){var b=!0;try{S(".","d")}catch(u){b=!1}var p={},i="",c=b?"dgimsy":"gimsy",s=function(v,V){Object.defineProperty(p,v,{get:function(){function C(){return i+=V,!0}return C}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};b&&(l.hasIndices="d");for(var d in l)s(d,l[d]);var f=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return f!==c||i!==c});k&&t(y,"flags",{configurable:!0,get:o})},57983:function(I,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),m=n(40033),S=n(73392),y="toString",k=RegExp.prototype,b=k[y],p=m(function(){return b.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&b.name!==y;(p||i)&&a(k,y,function(){function c(){var s=t(this),l=o(s.source),d=o(S(s));return"/"+l+"/"+d}return c}(),{unsafe:!0})},1963:function(I,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(I,r,n){"use strict";n(1963)},95309:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},82256:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(I,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(I,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),m=n(12605),S=n(86213),y=n(16952),k=n(45490),b=n(4493),p=a("".slice),i=Math.min,c=k("endsWith"),s=!b&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!s&&!c},{endsWith:function(){function l(d){var f=m(y(this));S(d);var u=arguments.length>1?arguments[1]:void 0,v=f.length,V=u===void 0?v:i(o(u),v),C=m(d);return p(f,V-C.length,V)===C}return l}()})},39308:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},75008:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},9867:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,m=String.fromCharCode,S=String.fromCodePoint,y=a([].join),k=!!S&&S.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function b(p){for(var i=[],c=arguments.length,s=0,l;c>s;){if(l=+arguments[s++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[s]=l<65536?m(l):m(((l-=65536)>>10)+55296,l%1024+56320)}return y(i,"")}return b}()})},43673:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),m=n(12605),S=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!S("includes")},{includes:function(){function k(b){return!!~y(m(o(this)),m(t(b)),arguments.length>1?arguments[1]:void 0)}return k}()})},56027:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(I,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),m=n(5959),S="String Iterator",y=t.set,k=t.getterFor(S);o(String,"String",function(b){y(this,{type:S,string:a(b),index:0})},function(){function b(){var p=k(this),i=p.string,c=p.index,s;return c>=i.length?m(void 0,!0):(s=e(i,c),p.index+=s.length,m(s,!1))}return b}())},50340:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},22515:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(10188),S=n(12605),y=n(16952),k=n(78060),b=n(35483),p=n(28340);a("match",function(i,c,s){return[function(){function l(d){var f=y(this),u=o(d)?void 0:k(d,i);return u?e(u,d,f):new RegExp(d)[i](S(f))}return l}(),function(l){var d=t(this),f=S(l),u=s(c,d,f);if(u.done)return u.value;if(!d.global)return p(d,f);var v=d.unicode;d.lastIndex=0;for(var V=[],C=0,h;(h=p(d,f))!==null;){var g=S(h[0]);V[C]=g,g===""&&(d.lastIndex=b(f,m(d.lastIndex),v)),C++}return C===0?null:V}]})},5143:function(I,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(I,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(I,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),m=n(12605),S=n(24760),y=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function b(p){var i=t(o(p).raw),c=S(i);if(!c)return"";for(var s=arguments.length,l=[],d=0;;){if(y(l,m(i[d++])),d===c)return k(l,"");d")!=="7"});o("replace",function(w,E,O){var P=T?"$":"$0";return[function(){function M(R,F){var _=c(this),U=k(R)?void 0:l(R,v);return U?a(U,R,_,F):a(E,i(_),R,F)}return M}(),function(M,R){var F=S(this),_=i(M);if(typeof R=="string"&&N(R,P)===-1&&N(R,"$<")===-1){var U=O(E,F,_,R);if(U.done)return U.value}var W=y(R);W||(R=i(R));var $=F.global,G;$&&(G=F.unicode,F.lastIndex=0);for(var oe=[],X;X=f(F,_),!(X===null||(g(oe,X),!$));){var ve=i(X[0]);ve===""&&(F.lastIndex=s(_,p(F.lastIndex),G))}for(var me="",ne=0,ce=0;ce=ne&&(me+=x(_,ne,ae)+Y,ne=ae+q.length)}return me+x(_,ne)}]},!A||!L||T)},63272:function(I,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(16952),S=n(5700),y=n(12605),k=n(78060),b=n(28340);a("search",function(p,i,c){return[function(){function s(l){var d=m(this),f=o(l)?void 0:k(l,p);return f?e(f,l,d):new RegExp(l)[p](y(d))}return s}(),function(s){var l=t(this),d=y(s),f=c(i,l,d);if(f.done)return f.value;var u=l.lastIndex;S(u,0)||(l.lastIndex=0);var v=b(l,d);return S(l.lastIndex,u)||(l.lastIndex=u),v===null?-1:v.index}]})},34325:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(I,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),m=n(42871),S=n(16952),y=n(28987),k=n(35483),b=n(10188),p=n(12605),i=n(78060),c=n(28340),s=n(62115),l=n(40033),d=s.UNSUPPORTED_Y,f=4294967295,u=Math.min,v=a([].push),V=a("".slice),C=!l(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(L,T){return L===void 0&&T===0?[]:e(N,this,L,T)}:N;return[function(){function L(T,A){var w=S(this),E=m(T)?void 0:i(T,g);return E?e(E,T,w,A):e(B,p(w),T,A)}return L}(),function(L,T){var A=o(this),w=p(L);if(!h){var E=x(B,A,w,T,B!==N);if(E.done)return E.value}var O=y(A,RegExp),P=A.unicode,M=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(d?"g":"y"),R=new O(d?"^(?:"+A.source+")":A,M),F=T===void 0?f:T>>>0;if(F===0)return[];if(w.length===0)return c(R,w)===null?[w]:[];for(var _=0,U=0,W=[];U1?arguments[1]:void 0,f.length)),v=m(d);return p(f,u,u+v.length)===v}return l}()})},74498:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(I,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(I,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(I,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(I,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(I,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(I,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(I,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(67250),m=n(4493),S=n(58310),y=n(52357),k=n(40033),b=n(45299),p=n(21287),i=n(30365),c=n(57591),s=n(767),l=n(12605),d=n(87458),f=n(80674),u=n(18450),v=n(37310),V=n(81644),C=n(89235),h=n(27193),g=n(74595),N=n(24239),x=n(12867),B=n(55938),L=n(73936),T=n(16639),A=n(19417),w=n(79195),E=n(16738),O=n(24697),P=n(55557),M=n(85889),R=n(52360),F=n(84925),_=n(5419),U=n(22603).forEach,W=A("hidden"),$="Symbol",G="prototype",oe=_.set,X=_.getterFor($),ve=Object[G],me=a.Symbol,ne=me&&me[G],ce=a.RangeError,q=a.TypeError,ae=a.QObject,J=h.f,Y=g.f,Q=V.f,Z=x.f,te=o([].push),se=T("symbols"),ye=T("op-symbols"),fe=T("wks"),Ie=!ae||!ae[G]||!ae[G].findChild,D=function(Ne,Se,H){var ue=J(ve,Se);ue&&delete ve[Se],Y(Ne,Se,H),ue&&Ne!==ve&&Y(ve,Se,ue)},re=S&&k(function(){return f(Y({},"a",{get:function(){function Pe(){return Y(this,"a",{value:7}).a}return Pe}()})).a!==7})?D:Y,de=function(Ne,Se){var H=se[Ne]=f(ne);return oe(H,{type:$,tag:Ne,description:Se}),S||(H.description=Se),H},Ce=function(){function Pe(Ne,Se,H){Ne===ve&&Ce(ye,Se,H),i(Ne);var ue=s(Se);return i(H),b(se,ue)?(H.enumerable?(b(Ne,W)&&Ne[W][ue]&&(Ne[W][ue]=!1),H=f(H,{enumerable:d(0,!1)})):(b(Ne,W)||Y(Ne,W,d(1,f(null))),Ne[W][ue]=!0),re(Ne,ue,H)):Y(Ne,ue,H)}return Pe}(),pe=function(){function Pe(Ne,Se){i(Ne);var H=c(Se),ue=u(H).concat(_e(H));return U(ue,function(Ve){(!S||t(ke,H,Ve))&&Ce(Ne,Ve,H[Ve])}),Ne}return Pe}(),Be=function(){function Pe(Ne,Se){return Se===void 0?f(Ne):pe(f(Ne),Se)}return Pe}(),ke=function(){function Pe(Ne){var Se=s(Ne),H=t(Z,this,Se);return this===ve&&b(se,Se)&&!b(ye,Se)?!1:H||!b(this,Se)||!b(se,Se)||b(this,W)&&this[W][Se]?H:!0}return Pe}(),Ee=function(){function Pe(Ne,Se){var H=c(Ne),ue=s(Se);if(!(H===ve&&b(se,ue)&&!b(ye,ue))){var Ve=J(H,ue);return Ve&&b(se,ue)&&!(b(H,W)&&H[W][ue])&&(Ve.enumerable=!0),Ve}}return Pe}(),Re=function(){function Pe(Ne){var Se=Q(c(Ne)),H=[];return U(Se,function(ue){!b(se,ue)&&!b(w,ue)&&te(H,ue)}),H}return Pe}(),_e=function(Ne){var Se=Ne===ve,H=Q(Se?ye:c(Ne)),ue=[];return U(H,function(Ve){b(se,Ve)&&(!Se||b(ve,Ve))&&te(ue,se[Ve])}),ue};y||(me=function(){function Pe(){if(p(ne,this))throw new q("Symbol is not a constructor");var Ne=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),Se=E(Ne),H=function(){function ue(Ve){var be=this===void 0?a:this;be===ve&&t(H,ye,Ve),b(be,W)&&b(be[W],Se)&&(be[W][Se]=!1);var Le=d(1,Ve);try{re(be,Se,Le)}catch(we){if(!(we instanceof ce))throw we;D(be,Se,Le)}}return ue}();return S&&Ie&&re(ve,Se,{configurable:!0,set:H}),de(Se,Ne)}return Pe}(),ne=me[G],B(ne,"toString",function(){function Pe(){return X(this).tag}return Pe}()),B(me,"withoutSetter",function(Pe){return de(E(Pe),Pe)}),x.f=ke,g.f=Ce,N.f=pe,h.f=Ee,v.f=V.f=Re,C.f=_e,P.f=function(Pe){return de(O(Pe),Pe)},S&&(L(ne,"description",{configurable:!0,get:function(){function Pe(){return X(this).description}return Pe}()}),m||B(ve,"propertyIsEnumerable",ke,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:me}),U(u(fe),function(Pe){M(Pe)}),e({target:$,stat:!0,forced:!y},{useSetter:function(){function Pe(){Ie=!0}return Pe}(),useSimple:function(){function Pe(){Ie=!1}return Pe}()}),e({target:"Object",stat:!0,forced:!y,sham:!S},{create:Be,defineProperty:Ce,defineProperties:pe,getOwnPropertyDescriptor:Ee}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Re}),R(),F(me,$),w[W]=!0},10933:function(I,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),m=n(45299),S=n(55747),y=n(21287),k=n(12605),b=n(73936),p=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&S(i)&&(!("description"in c)||i().description!==void 0)){var s={},l=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=y(c,this)?new i(g):g===void 0?i():i(g);return g===""&&(s[N]=!0),N}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",f=o(c.valueOf),u=o(c.toString),v=/^Symbol\((.*)\)[^)]+$/,V=o("".replace),C=o("".slice);b(c,"description",{configurable:!0,get:function(){function h(){var g=f(this);if(m(s,g))return"";var N=u(g),x=d?C(N,7,-1):V(N,v,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(I,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),m=n(16639),S=n(66570),y=m("string-to-symbol-registry"),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{for:function(){function b(p){var i=o(p);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,k[c]=i,c}return b}()})},53795:function(I,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(I,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(I,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(I,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(I,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),m=n(16639),S=n(66570),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{keyFor:function(){function k(b){if(!t(b))throw new TypeError(o(b)+" is not a symbol");if(a(y,b))return y[b]}return k}()})},48058:function(I,r,n){"use strict";var e=n(85889);e("match")},51583:function(I,r,n){"use strict";var e=n(85889);e("replace")},82403:function(I,r,n){"use strict";var e=n(85889);e("search")},34265:function(I,r,n){"use strict";var e=n(85889);e("species")},3295:function(I,r,n){"use strict";var e=n(85889);e("split")},1078:function(I,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(I,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(I,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(I,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),m=a.aTypedArray,S=a.exportTypedArrayMethod;S("copyWithin",function(){function y(k,b){return o(m(this),k,b,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(I,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},58166:function(I,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),m=n(91495),S=n(67250),y=n(40033),k=e.aTypedArray,b=e.exportTypedArrayMethod,p=S("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function s(){return c++}return s}()}),c!==1});b("fill",function(){function c(s){var l=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(s):+s;return m(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(I,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function S(y){var k=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,k)}return S}())},13917:function(I,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},43820:function(I,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},80756:function(I,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},70567:function(I,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},19852:function(I,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(S){a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},40379:function(I,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(I,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},81069:function(I,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60037:function(I,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},44195:function(I,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},66756:function(I,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},63689:function(I,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),m=n(34570),S=n(24697),y=S("iterator"),k=e.Uint8Array,b=t(m.values),p=t(m.keys),i=t(m.entries),c=o.aTypedArray,s=o.exportTypedArrayMethod,l=k&&k.prototype,d=!a(function(){l[y].call([1])}),f=!!l&&l.values&&l[y]===l.values&&l.values.name==="values",u=function(){function v(){return b(c(this))}return v}();s("entries",function(){function v(){return i(c(this))}return v}(),d),s("keys",function(){function v(){return p(c(this))}return v}(),d),s("values",u,d||!f,{name:"values"}),s(y,u,d||!f,{name:"values"})},5659:function(I,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function S(y){return m(t(this),y)}return S}())},25014:function(I,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function S(y){var k=arguments.length;return a(t,o(this),k>1?[y,arguments[1]]:[y])}return S}())},32189:function(I,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function S(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(k,b){return new(t(k))(b)})}return S}())},23030:function(I,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var S=0,y=arguments.length,k=new(t(this))(y);y>S;)k[S]=arguments[S++];return k}return m}(),a)},49110:function(I,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},24309:function(I,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},56445:function(I,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var S=this,y=a(S).length,k=o(y/2),b=0,p;b1?arguments[1]:void 0,1),V=S(u);if(l)return a(i,this,V,v);var C=this.length,h=o(V),g=0;if(h+v>C)throw new k("Wrong length");for(;gs;)d[s]=i[s++];return d}return k}(),y)},88739:function(I,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60415:function(I,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),m=n(90274),S=n(4246),y=n(50503),k=n(79725),b=n(83141),p=n(44981),i=S.aTypedArray,c=S.exportTypedArrayMethod,s=e.Uint16Array,l=s&&a(s.prototype.sort),d=!!l&&!(t(function(){l(new s(2),null)})&&t(function(){l(new s(2),{})})),f=!!l&&!t(function(){if(b)return b<74;if(y)return y<67;if(k)return!0;if(p)return p<602;var v=new s(516),V=Array(516),C,h;for(C=0;C<516;C++)h=C%4,v[C]=515-C,V[C]=C-2*h+3;for(l(v,function(g,N){return(g/4|0)-(N/4|0)}),C=0;C<516;C++)if(v[C]!==V[C])return!0}),u=function(V){return function(C,h){return V!==void 0?+V(C,h)||0:h!==h?-1:C!==C?1:C===0&&h===0?1/C>0&&1/h<0?1:-1:C>h}};c("sort",function(){function v(V){return V!==void 0&&o(V),f?l(this,V):m(i(this),u(V))}return v}(),!f||d)},72532:function(I,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),m=e.aTypedArray,S=e.exportTypedArrayMethod;S("subarray",function(){function y(k,b){var p=m(this),i=p.length,c=t(k,i),s=o(p);return new s(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((b===void 0?i:t(b,i))-c))}return y}())},62207:function(I,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),m=n(54602),S=e.Int8Array,y=t.aTypedArray,k=t.exportTypedArrayMethod,b=[].toLocaleString,p=!!S&&o(function(){b.call(new S(1))}),i=o(function(){return[1,2].toLocaleString()!==new S([1,2]).toLocaleString()})||!o(function(){S.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function c(){return a(b,p?m(y(this)):y(this),m(arguments))}return c}(),i)},906:function(I,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(16210),o=n(67250),m=t.Uint8Array,S=m&&m.prototype||{},y=[].toString,k=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return k(this)}return p}());var b=S.toString!==y;e("toString",y,b)},78824:function(I,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},72846:function(I,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},24575:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},71968:function(I,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()},!0)},80040:function(I,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),m=n(81969),S=n(45150),y=n(39895),k=n(77568),b=n(5419).enforce,p=n(40033),i=n(21820),c=Object,s=Array.isArray,l=c.isExtensible,d=c.isFrozen,f=c.isSealed,u=c.freeze,v=c.seal,V=!a.ActiveXObject&&"ActiveXObject"in a,C,h=function(E){return function(){function O(){return E(this,arguments.length?arguments[0]:void 0)}return O}()},g=S("WeakMap",h,y),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var E=u([]);return x(new g,E,1),!d(E)})};if(i)if(V){C=y.getConstructor(h,"WeakMap",!0),m.enable();var L=t(N.delete),T=t(N.has),A=t(N.get);o(N,{delete:function(){function w(E){if(k(E)&&!l(E)){var O=b(this);return O.frozen||(O.frozen=new C),L(this,E)||O.frozen.delete(E)}return L(this,E)}return w}(),has:function(){function w(E){if(k(E)&&!l(E)){var O=b(this);return O.frozen||(O.frozen=new C),T(this,E)||O.frozen.has(E)}return T(this,E)}return w}(),get:function(){function w(E){if(k(E)&&!l(E)){var O=b(this);return O.frozen||(O.frozen=new C),T(this,E)?A(this,E):O.frozen.get(E)}return A(this,E)}return w}(),set:function(){function w(E,O){if(k(E)&&!l(E)){var P=b(this);P.frozen||(P.frozen=new C),T(this,E)?x(this,E,O):P.frozen.set(E,O)}else x(this,E,O);return this}return w}()})}else B()&&o(N,{set:function(){function w(E,O){var P;return s(E)&&(d(E)?P=u:f(E)&&(P=v)),x(this,E,O),P&&P(E),this}return w}()})},90846:function(I,r,n){"use strict";n(80040)},67042:function(I,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(I,r,n){"use strict";n(67042)},5606:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(I,r,n){"use strict";n(5606),n(27807)},25764:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(37713),o=n(10320),m=n(24986),S=n(40033),y=n(58310),k=S(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function b(p){m(arguments.length,1),t(o(p))}return b}()})},27807:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},45569:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(I,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(I,r,n){"use strict";n(45569),n(5213)},7435:function(I){"use strict";/** + */var t=r.BoxWithSampleText=function(){function o(m){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,a.Box,Object.assign({},m,{children:[(0,e.createComponentVNode)(2,a.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,a.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))}return o}()},67160:function(){},23542:function(){},30386:function(){},98996:function(){},41639:function(){},50578:function(){},4444:function(){},77870:function(){},23632:function(){},24226:function(){},39108:function(){},21039:function(){},51862:function(){},56856:function(){},63489:function(){},1965:function(){},1272:function(){},74757:function(){},11714:function(){},73492:function(){},49641:function(){},17570:function(){},61858:function(){},73358:function(){},32882:function(){},70752:function(L,r,n){var e={"./pai_advsecrecords.js":96572,"./pai_atmosphere.js":80818,"./pai_bioscan.js":23903,"./pai_camera_bug.js":79592,"./pai_directives.js":64988,"./pai_doorjack.js":13813,"./pai_encoder.js":43816,"./pai_gps_module.js":88895,"./pai_main_menu.js":66025,"./pai_manifest.js":2983,"./pai_medrecords.js":40758,"./pai_messenger.js":98599,"./pai_radio.js":50775,"./pai_sec_chem.js":19873,"./pai_secrecords.js":48623,"./pai_signaler.js":47297};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=70752},59395:function(L,r,n){var e={"./pda_atmos_scan.js":78532,"./pda_janitor.js":40253,"./pda_main_menu.js":58293,"./pda_manifest.js":58059,"./pda_medical.js":18147,"./pda_messenger.js":77595,"./pda_mule.js":24635,"./pda_notes.js":97085,"./pda_power.js":57513,"./pda_request_console.js":57635,"./pda_secbot.js":99808,"./pda_security.js":77168,"./pda_signaler.js":21773,"./pda_status_display.js":81857,"./pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=59395},32054:function(L,r,n){var e={"./AICard":1090,"./AICard.js":1090,"./AIFixer":39454,"./AIFixer.js":39454,"./APC":88422,"./APC.js":88422,"./ATM":99660,"./ATM.js":99660,"./AccountsUplinkTerminal":86423,"./AccountsUplinkTerminal.js":86423,"./AgentCard":79571,"./AgentCard.js":79571,"./AiAirlock":56793,"./AiAirlock.js":56793,"./AirAlarm":72475,"./AirAlarm.js":72475,"./AirlockAccessController":12333,"./AirlockAccessController.js":12333,"./AirlockElectronics":28736,"./AirlockElectronics.js":28736,"./AlertModal":47365,"./AlertModal.tsx":47365,"./AppearanceChanger":71824,"./AppearanceChanger.js":71824,"./AtmosAlertConsole":72285,"./AtmosAlertConsole.js":72285,"./AtmosControl":65805,"./AtmosControl.js":65805,"./AtmosFilter":87816,"./AtmosFilter.js":87816,"./AtmosMixer":52977,"./AtmosMixer.js":52977,"./AtmosPump":11748,"./AtmosPump.js":11748,"./AutoDoc":76511,"./AutoDoc.js":76511,"./Autolathe":59179,"./Autolathe.js":59179,"./Biogenerator":64273,"./Biogenerator.js":64273,"./BlueSpaceArtilleryControl":18621,"./BlueSpaceArtilleryControl.js":18621,"./BluespaceRiftScanner":13995,"./BluespaceRiftScanner.js":13995,"./BluespaceRiftServer":25530,"./BluespaceRiftServer.js":25530,"./BluespaceTap":27629,"./BluespaceTap.js":27629,"./BodyScanner":33758,"./BodyScanner.js":33758,"./BorgPanel":42570,"./BorgPanel.js":42570,"./BotClean":20464,"./BotClean.js":20464,"./BotSecurity":74439,"./BotSecurity.js":74439,"./BrigCells":10833,"./BrigCells.js":10833,"./BrigTimer":45761,"./BrigTimer.js":45761,"./CameraConsole":26300,"./CameraConsole.js":26300,"./Canister":52927,"./Canister.js":52927,"./CardComputer":51793,"./CardComputer.js":51793,"./CargoConsole":64083,"./CargoConsole.js":64083,"./CentcomPodLauncher":65875,"./CentcomPodLauncher/":65875,"./CentcomPodLauncher/DelayHelper":22794,"./CentcomPodLauncher/DelayHelper.tsx":22794,"./CentcomPodLauncher/PodBays":23749,"./CentcomPodLauncher/PodBays.tsx":23749,"./CentcomPodLauncher/PodLaunch":8507,"./CentcomPodLauncher/PodLaunch.tsx":8507,"./CentcomPodLauncher/PodSounds":15802,"./CentcomPodLauncher/PodSounds.tsx":15802,"./CentcomPodLauncher/PodStatusPage":94577,"./CentcomPodLauncher/PodStatusPage.tsx":94577,"./CentcomPodLauncher/PresetsPage":30590,"./CentcomPodLauncher/PresetsPage.tsx":30590,"./CentcomPodLauncher/ReverseMenu":72932,"./CentcomPodLauncher/ReverseMenu.tsx":72932,"./CentcomPodLauncher/StylePage":68569,"./CentcomPodLauncher/StylePage.tsx":68569,"./CentcomPodLauncher/Tabs":8179,"./CentcomPodLauncher/Tabs.tsx":8179,"./CentcomPodLauncher/Timing":18885,"./CentcomPodLauncher/Timing.tsx":18885,"./CentcomPodLauncher/ViewTabHolder":76417,"./CentcomPodLauncher/ViewTabHolder.tsx":76417,"./CentcomPodLauncher/constants":7144,"./CentcomPodLauncher/constants.ts":7144,"./CentcomPodLauncher/hooks":20345,"./CentcomPodLauncher/hooks.ts":20345,"./CentcomPodLauncher/index":65875,"./CentcomPodLauncher/index.tsx":65875,"./CentcomPodLauncher/types":16780,"./CentcomPodLauncher/types.ts":16780,"./Changelog":12226,"./Changelog.js":12226,"./CheckboxListInputModal":91360,"./CheckboxListInputModal.tsx":91360,"./ChemDispenser":36108,"./ChemDispenser.js":36108,"./ChemHeater":13146,"./ChemHeater.js":13146,"./ChemMaster":56541,"./ChemMaster.tsx":56541,"./CloningConsole":37173,"./CloningConsole.js":37173,"./CoinMint":18259,"./CoinMint.tsx":18259,"./ColorPickerModal":93858,"./ColorPickerModal.tsx":93858,"./CommunicationsComputer":63818,"./CommunicationsComputer.js":63818,"./Contractor":21813,"./Contractor.js":21813,"./ConveyorSwitch":54151,"./ConveyorSwitch.js":54151,"./CrewMonitor":73169,"./CrewMonitor.js":73169,"./Cryo":63987,"./Cryo.js":63987,"./CryopodConsole":86099,"./CryopodConsole.js":86099,"./Customat":94848,"./Customat.js":94848,"./DNAModifier":12692,"./DNAModifier.js":12692,"./DestinationTagger":41074,"./DestinationTagger.js":41074,"./DisposalBin":46500,"./DisposalBin.js":46500,"./DnaVault":33233,"./DnaVault.js":33233,"./EFTPOS":17263,"./EFTPOS.js":17263,"./ERTManager":76382,"./ERTManager.js":76382,"./Electropack":82565,"./Electropack.js":82565,"./EvolutionMenu":36730,"./EvolutionMenu.js":36730,"./ExosuitFabricator":17370,"./ExosuitFabricator.js":17370,"./ExternalAirlockController":97086,"./ExternalAirlockController.js":97086,"./FaxMachine":96142,"./FaxMachine.js":96142,"./FloorPainter":83767,"./FloorPainter.js":83767,"./GPS":53424,"./GPS.js":53424,"./GasAnalyzer":68703,"./GasAnalyzer.js":68703,"./GasFreezer":27546,"./GasFreezer.js":27546,"./GeneModder":89124,"./GeneModder.js":89124,"./GenericCrewManifest":73053,"./GenericCrewManifest.js":73053,"./GhostHudPanel":42914,"./GhostHudPanel.js":42914,"./GlandDispenser":25825,"./GlandDispenser.js":25825,"./HandheldChemDispenser":67834,"./HandheldChemDispenser.js":67834,"./ImplantPad":75926,"./ImplantPad.js":75926,"./Instrument":25471,"./Instrument.js":25471,"./ItemPixelShift":65021,"./ItemPixelShift.js":65021,"./KeyComboModal":13618,"./KeyComboModal.tsx":13618,"./KeycardAuth":35655,"./KeycardAuth.js":35655,"./LaborClaimConsole":40951,"./LaborClaimConsole.js":40951,"./LawManager":9525,"./LawManager.js":9525,"./ListInputModal":90447,"./ListInputModal.tsx":90447,"./Loadout":26826,"./Loadout.tsx":26826,"./MechBayConsole":72106,"./MechBayConsole.js":72106,"./MechaControlConsole":7466,"./MechaControlConsole.js":7466,"./MedicalRecords":79625,"./MedicalRecords.js":79625,"./Mimicking":52306,"./Mimicking.js":52306,"./Minesweeper":66238,"./Minesweeper.js":66238,"./MiniGamesMenu":21385,"./MiniGamesMenu.js":21385,"./MiningVendor":87684,"./MiningVendor.js":87684,"./Multitool":97955,"./Multitool.js":97955,"./Newscaster":64713,"./Newscaster.js":64713,"./NinjaBloodScan":97351,"./NinjaBloodScan.js":97351,"./NinjaMindScan":32989,"./NinjaMindScan.js":32989,"./NuclearBomb":41166,"./NuclearBomb.js":41166,"./NumberInputModal":52416,"./NumberInputModal.tsx":52416,"./OperatingComputer":1218,"./OperatingComputer.js":1218,"./Orbit":46892,"./Orbit.js":46892,"./OreRedemption":15421,"./OreRedemption.js":15421,"./PAI":30373,"./PAI.js":30373,"./PDA":85175,"./PDA.js":85175,"./PDAPainter":38280,"./PDAPainter.js":38280,"./Pacman":68654,"./Pacman.js":68654,"./PersonalCrafting":33388,"./PersonalCrafting.js":33388,"./Photocopier":56150,"./Photocopier.js":56150,"./PodTracking":94158,"./PodTracking.js":94158,"./PoolController":84676,"./PoolController.js":84676,"./PortablePump":57003,"./PortablePump.js":57003,"./PortableScrubber":70069,"./PortableScrubber.js":70069,"./PortableTurret":59955,"./PortableTurret.js":59955,"./PowerMonitor":61631,"./PowerMonitor.js":61631,"./PrisonerImplantManager":50992,"./PrisonerImplantManager.js":50992,"./QuestConsole":7485,"./QuestConsole.js":7485,"./RCD":94813,"./RCD.js":94813,"./RPD":18738,"./RPD.js":18738,"./Radio":80299,"./Radio.js":80299,"./RankedListInputModal":14846,"./RankedListInputModal.tsx":14846,"./ReagentsEditor":58262,"./ReagentsEditor.tsx":58262,"./RequestConsole":25472,"./RequestConsole.js":25472,"./RequestManager":3786,"./RequestManager.js":3786,"./RndConsole":16475,"./RndConsole.js":16475,"./RndConsoleComponents":13472,"./RndConsoleComponents/":13472,"./RndConsoleComponents/CurrentLevels":93098,"./RndConsoleComponents/CurrentLevels.js":93098,"./RndConsoleComponents/DataDiskMenu":19192,"./RndConsoleComponents/DataDiskMenu.js":19192,"./RndConsoleComponents/DeconstructionMenu":20887,"./RndConsoleComponents/DeconstructionMenu.js":20887,"./RndConsoleComponents/LatheCategory":10666,"./RndConsoleComponents/LatheCategory.js":10666,"./RndConsoleComponents/LatheChemicalStorage":52285,"./RndConsoleComponents/LatheChemicalStorage.js":52285,"./RndConsoleComponents/LatheMainMenu":71964,"./RndConsoleComponents/LatheMainMenu.js":71964,"./RndConsoleComponents/LatheMaterialStorage":17906,"./RndConsoleComponents/LatheMaterialStorage.js":17906,"./RndConsoleComponents/LatheMaterials":83706,"./RndConsoleComponents/LatheMaterials.js":83706,"./RndConsoleComponents/LatheMenu":76749,"./RndConsoleComponents/LatheMenu.js":76749,"./RndConsoleComponents/LatheSearch":74698,"./RndConsoleComponents/LatheSearch.js":74698,"./RndConsoleComponents/MainMenu":17180,"./RndConsoleComponents/MainMenu.js":17180,"./RndConsoleComponents/RndNavButton":63459,"./RndConsoleComponents/RndNavButton.js":63459,"./RndConsoleComponents/RndNavbar":94942,"./RndConsoleComponents/RndNavbar.js":94942,"./RndConsoleComponents/RndRoute":12059,"./RndConsoleComponents/RndRoute.js":12059,"./RndConsoleComponents/SettingsMenu":52580,"./RndConsoleComponents/SettingsMenu.js":52580,"./RndConsoleComponents/index":13472,"./RndConsoleComponents/index.js":13472,"./RoboQuest":40026,"./RoboQuest.js":40026,"./RobotSelfDiagnosis":26109,"./RobotSelfDiagnosis.js":26109,"./RoboticsControlConsole":97997,"./RoboticsControlConsole.js":97997,"./Safe":54431,"./Safe.js":54431,"./SatelliteControl":29740,"./SatelliteControl.js":29740,"./SecureStorage":44162,"./SecureStorage.js":44162,"./SecurityRecords":6272,"./SecurityRecords.js":6272,"./SeedExtractor":5099,"./SeedExtractor.js":5099,"./ShuttleConsole":2916,"./ShuttleConsole.js":2916,"./ShuttleManipulator":39401,"./ShuttleManipulator.js":39401,"./Sleeper":88284,"./Sleeper.js":88284,"./SlotMachine":21597,"./SlotMachine.js":21597,"./Smartfridge":46348,"./Smartfridge.js":46348,"./Smes":86162,"./Smes.js":86162,"./SolarControl":63584,"./SolarControl.js":63584,"./SpawnersMenu":38096,"./SpawnersMenu.js":38096,"./SpiderOS":7957,"./SpiderOS.js":7957,"./StationAlertConsole":38307,"./StationAlertConsole.js":38307,"./StripMenu":39409,"./StripMenu.tsx":39409,"./SuitStorage":69514,"./SuitStorage.js":69514,"./SupermatterMonitor":15022,"./SupermatterMonitor.js":15022,"./SyndicateComputerSimple":46029,"./SyndicateComputerSimple.js":46029,"./SyndieCargoConsole":99279,"./SyndieCargoConsole.js":99279,"./TTSSeedsExplorer":44852,"./TTSSeedsExplorer.js":44852,"./TachyonArray":56441,"./TachyonArray.js":56441,"./Tank":1754,"./Tank.js":1754,"./TankDispenser":7579,"./TankDispenser.js":7579,"./TcommsCore":16136,"./TcommsCore.js":16136,"./TcommsRelay":88046,"./TcommsRelay.js":88046,"./Teleporter":20802,"./Teleporter.js":20802,"./TextInputModal":24410,"./TextInputModal.tsx":24410,"./ThiefKit":69566,"./ThiefKit.js":69566,"./TransferValve":20035,"./TransferValve.js":20035,"./Uplink":52847,"./Uplink.js":52847,"./UploadPanel":80949,"./UploadPanel.js":80949,"./VampireSpecMenu":8946,"./VampireSpecMenu.js":8946,"./VampireTrophiesStatus":45770,"./VampireTrophiesStatus.js":45770,"./Vending":12261,"./Vending.js":12261,"./VolumeMixer":68971,"./VolumeMixer.js":68971,"./VotePanel":2510,"./VotePanel.js":2510,"./Wires":30138,"./Wires.js":30138,"./Workshop":30995,"./Workshop.js":30995,"./common/AccessList":49148,"./common/AccessList.js":49148,"./common/AtmosScan":26991,"./common/AtmosScan.js":26991,"./common/BeakerContents":85870,"./common/BeakerContents.js":85870,"./common/ComplexModal":3939,"./common/ComplexModal.js":3939,"./common/CrewManifest":41874,"./common/CrewManifest.js":41874,"./common/InputButtons":19203,"./common/InputButtons.tsx":19203,"./common/InterfaceLockNoticeBox":195,"./common/InterfaceLockNoticeBox.js":195,"./common/Loader":51057,"./common/Loader.tsx":51057,"./common/LoginInfo":321,"./common/LoginInfo.js":321,"./common/LoginScreen":5485,"./common/LoginScreen.js":5485,"./common/Operating":62411,"./common/Operating.js":62411,"./common/Signaler":13545,"./common/Signaler.js":13545,"./common/SimpleRecords":41984,"./common/SimpleRecords.js":41984,"./common/TemporaryNotice":22091,"./common/TemporaryNotice.js":22091,"./manually-routed/KitchenSink":25443,"./manually-routed/KitchenSink.js":25443,"./pai/pai_advsecrecords":96572,"./pai/pai_advsecrecords.js":96572,"./pai/pai_atmosphere":80818,"./pai/pai_atmosphere.js":80818,"./pai/pai_bioscan":23903,"./pai/pai_bioscan.js":23903,"./pai/pai_camera_bug":79592,"./pai/pai_camera_bug.js":79592,"./pai/pai_directives":64988,"./pai/pai_directives.js":64988,"./pai/pai_doorjack":13813,"./pai/pai_doorjack.js":13813,"./pai/pai_encoder":43816,"./pai/pai_encoder.js":43816,"./pai/pai_gps_module":88895,"./pai/pai_gps_module.js":88895,"./pai/pai_main_menu":66025,"./pai/pai_main_menu.js":66025,"./pai/pai_manifest":2983,"./pai/pai_manifest.js":2983,"./pai/pai_medrecords":40758,"./pai/pai_medrecords.js":40758,"./pai/pai_messenger":98599,"./pai/pai_messenger.js":98599,"./pai/pai_radio":50775,"./pai/pai_radio.js":50775,"./pai/pai_sec_chem":19873,"./pai/pai_sec_chem.js":19873,"./pai/pai_secrecords":48623,"./pai/pai_secrecords.js":48623,"./pai/pai_signaler":47297,"./pai/pai_signaler.js":47297,"./pda/pda_atmos_scan":78532,"./pda/pda_atmos_scan.js":78532,"./pda/pda_janitor":40253,"./pda/pda_janitor.js":40253,"./pda/pda_main_menu":58293,"./pda/pda_main_menu.js":58293,"./pda/pda_manifest":58059,"./pda/pda_manifest.js":58059,"./pda/pda_medical":18147,"./pda/pda_medical.js":18147,"./pda/pda_messenger":77595,"./pda/pda_messenger.js":77595,"./pda/pda_mule":24635,"./pda/pda_mule.js":24635,"./pda/pda_notes":97085,"./pda/pda_notes.js":97085,"./pda/pda_power":57513,"./pda/pda_power.js":57513,"./pda/pda_request_console":57635,"./pda/pda_request_console.js":57635,"./pda/pda_secbot":99808,"./pda/pda_secbot.js":99808,"./pda/pda_security":77168,"./pda/pda_security.js":77168,"./pda/pda_signaler":21773,"./pda/pda_signaler.js":21773,"./pda/pda_status_display":81857,"./pda/pda_status_display.js":81857,"./pda/pda_supplyrecords":70287,"./pda/pda_supplyrecords.js":70287};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=32054},4085:function(L,r,n){var e={"./Blink.stories.js":51364,"./BlockQuote.stories.js":32453,"./Box.stories.js":83531,"./Button.stories.js":74198,"./ByondUi.stories.js":51956,"./Collapsible.stories.js":17466,"./Flex.stories.js":89241,"./ImageButton.stories.js":48779,"./Input.stories.js":21394,"./Popper.stories.js":43932,"./ProgressBar.stories.js":33270,"./Stack.stories.js":77766,"./Storage.stories.js":30187,"./Tabs.stories.js":46554,"./Themes.stories.js":53276,"./Tooltip.stories.js":28717};function a(o){var m=t(o);return n(m)}function t(o){if(!n.o(e,o)){var m=new Error("Cannot find module '"+o+"'");throw m.code="MODULE_NOT_FOUND",m}return e[o]}a.keys=function(){return Object.keys(e)},a.resolve=t,L.exports=a,a.id=4085},10320:function(L,r,n){"use strict";var e=n(55747),a=n(89393),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a function")}},32606:function(L,r,n){"use strict";var e=n(1031),a=n(89393),t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not a constructor")}},35908:function(L,r,n){"use strict";var e=n(45015),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t("Can't set "+a(o)+" as a prototype")}},80575:function(L,r,n){"use strict";var e=n(24697),a=n(80674),t=n(74595).f,o=e("unscopables"),m=Array.prototype;m[o]===void 0&&t(m,o,{configurable:!0,value:a(null)}),L.exports=function(S){m[o][S]=!0}},35483:function(L,r,n){"use strict";var e=n(50233).charAt;L.exports=function(a,t,o){return t+(o?e(a,t).length:1)}},60077:function(L,r,n){"use strict";var e=n(21287),a=TypeError;L.exports=function(t,o){if(e(o,t))return t;throw new a("Incorrect invocation")}},30365:function(L,r,n){"use strict";var e=n(77568),a=String,t=TypeError;L.exports=function(o){if(e(o))return o;throw new t(a(o)+" is not an object")}},70377:function(L){"use strict";L.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},3782:function(L,r,n){"use strict";var e=n(40033);L.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},4246:function(L,r,n){"use strict";var e=n(70377),a=n(58310),t=n(16210),o=n(55747),m=n(77568),S=n(45299),y=n(2281),k=n(89393),V=n(37909),p=n(55938),i=n(73936),c=n(21287),s=n(36917),l=n(76649),d=n(24697),f=n(16738),u=n(5419),C=u.enforce,b=u.get,v=t.Int8Array,h=v&&v.prototype,g=t.Uint8ClampedArray,N=g&&g.prototype,x=v&&s(v),B=h&&s(h),I=Object.prototype,T=t.TypeError,E=d("toStringTag"),w=f("TYPED_ARRAY_TAG"),A="TypedArrayConstructor",O=e&&!!l&&y(t.opera)!=="Opera",M=!1,P,R,F,_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(){function ne(ce){if(!m(ce))return!1;var q=y(ce);return q==="DataView"||S(_,q)||S(U,q)}return ne}(),$=function(ce){var q=s(ce);if(m(q)){var ae=b(q);return ae&&S(ae,A)?ae[A]:$(q)}},G=function(ce){if(!m(ce))return!1;var q=y(ce);return S(_,q)||S(U,q)},oe=function(ce){if(G(ce))return ce;throw new T("Target is not a typed array")},X=function(ce){if(o(ce)&&(!l||c(x,ce)))return ce;throw new T(k(ce)+" is not a typed array constructor")},Ce=function(ce,q,ae,J){if(a){if(ae)for(var Y in _){var Q=t[Y];if(Q&&S(Q.prototype,ce))try{delete Q.prototype[ce]}catch(Z){try{Q.prototype[ce]=q}catch(te){}}}(!B[ce]||ae)&&p(B,ce,ae?q:O&&h[ce]||q,J)}},me=function(ce,q,ae){var J,Y;if(a){if(l){if(ae){for(J in _)if(Y=t[J],Y&&S(Y,ce))try{delete Y[ce]}catch(Q){}}if(!x[ce]||ae)try{return p(x,ce,ae?q:O&&x[ce]||q)}catch(Q){}else return}for(J in _)Y=t[J],Y&&(!Y[ce]||ae)&&p(Y,ce,q)}};for(P in _)R=t[P],F=R&&R.prototype,F?C(F)[A]=R:O=!1;for(P in U)R=t[P],F=R&&R.prototype,F&&(C(F)[A]=R);if((!O||!o(x)||x===Function.prototype)&&(x=function(){function ne(){throw new T("Incorrect invocation")}return ne}(),O))for(P in _)t[P]&&l(t[P],x);if((!O||!B||B===I)&&(B=x.prototype,O))for(P in _)t[P]&&l(t[P].prototype,B);if(O&&s(N)!==B&&l(N,B),a&&!S(B,E)){M=!0,i(B,E,{configurable:!0,get:function(){function ne(){return m(this)?this[w]:void 0}return ne}()});for(P in _)t[P]&&V(t[P],w,P)}L.exports={NATIVE_ARRAY_BUFFER_VIEWS:O,TYPED_ARRAY_TAG:M&&w,aTypedArray:oe,aTypedArrayConstructor:X,exportTypedArrayMethod:Ce,exportTypedArrayStaticMethod:me,getTypedArrayConstructor:$,isView:W,isTypedArray:G,TypedArray:x,TypedArrayPrototype:B}},37336:function(L,r,n){"use strict";var e=n(16210),a=n(67250),t=n(58310),o=n(70377),m=n(70520),S=n(37909),y=n(73936),k=n(30145),V=n(40033),p=n(60077),i=n(61365),c=n(10188),s=n(43806),l=n(95867),d=n(91784),f=n(36917),u=n(76649),C=n(88471),b=n(54602),v=n(5781),h=n(5774),g=n(84925),N=n(5419),x=m.PROPER,B=m.CONFIGURABLE,I="ArrayBuffer",T="DataView",E="prototype",w="Wrong length",A="Wrong index",O=N.getterFor(I),M=N.getterFor(T),P=N.set,R=e[I],F=R,_=F&&F[E],U=e[T],W=U&&U[E],$=Object.prototype,G=e.Array,oe=e.RangeError,X=a(C),Ce=a([].reverse),me=d.pack,ne=d.unpack,ce=function(re){return[re&255]},q=function(re){return[re&255,re>>8&255]},ae=function(re){return[re&255,re>>8&255,re>>16&255,re>>24&255]},J=function(re){return re[3]<<24|re[2]<<16|re[1]<<8|re[0]},Y=function(re){return me(l(re),23,4)},Q=function(re){return me(re,52,8)},Z=function(re,de,ve){y(re[E],de,{configurable:!0,get:function(){function pe(){return ve(this)[de]}return pe}()})},te=function(re,de,ve,pe){var Be=M(re),ke=s(ve),Ee=!!pe;if(ke+de>Be.byteLength)throw new oe(A);var Re=Be.bytes,_e=ke+Be.byteOffset,Pe=b(Re,_e,_e+de);return Ee?Pe:Ce(Pe)},se=function(re,de,ve,pe,Be,ke){var Ee=M(re),Re=s(ve),_e=pe(+Be),Pe=!!ke;if(Re+de>Ee.byteLength)throw new oe(A);for(var Ne=Ee.bytes,Se=Re+Ee.byteOffset,H=0;HBe)throw new oe("Wrong offset");if(ve=ve===void 0?Be-ke:c(ve),ke+ve>Be)throw new oe(w);P(this,{type:T,buffer:re,byteLength:ve,byteOffset:ke,bytes:pe.bytes}),t||(this.buffer=re,this.byteLength=ve,this.byteOffset=ke)}return D}(),W=U[E],t&&(Z(F,"byteLength",O),Z(U,"buffer",M),Z(U,"byteLength",M),Z(U,"byteOffset",M)),k(W,{getInt8:function(){function D(re){return te(this,1,re)[0]<<24>>24}return D}(),getUint8:function(){function D(re){return te(this,1,re)[0]}return D}(),getInt16:function(){function D(re){var de=te(this,2,re,arguments.length>1?arguments[1]:!1);return(de[1]<<8|de[0])<<16>>16}return D}(),getUint16:function(){function D(re){var de=te(this,2,re,arguments.length>1?arguments[1]:!1);return de[1]<<8|de[0]}return D}(),getInt32:function(){function D(re){return J(te(this,4,re,arguments.length>1?arguments[1]:!1))}return D}(),getUint32:function(){function D(re){return J(te(this,4,re,arguments.length>1?arguments[1]:!1))>>>0}return D}(),getFloat32:function(){function D(re){return ne(te(this,4,re,arguments.length>1?arguments[1]:!1),23)}return D}(),getFloat64:function(){function D(re){return ne(te(this,8,re,arguments.length>1?arguments[1]:!1),52)}return D}(),setInt8:function(){function D(re,de){se(this,1,re,ce,de)}return D}(),setUint8:function(){function D(re,de){se(this,1,re,ce,de)}return D}(),setInt16:function(){function D(re,de){se(this,2,re,q,de,arguments.length>2?arguments[2]:!1)}return D}(),setUint16:function(){function D(re,de){se(this,2,re,q,de,arguments.length>2?arguments[2]:!1)}return D}(),setInt32:function(){function D(re,de){se(this,4,re,ae,de,arguments.length>2?arguments[2]:!1)}return D}(),setUint32:function(){function D(re,de){se(this,4,re,ae,de,arguments.length>2?arguments[2]:!1)}return D}(),setFloat32:function(){function D(re,de){se(this,4,re,Y,de,arguments.length>2?arguments[2]:!1)}return D}(),setFloat64:function(){function D(re,de){se(this,8,re,Q,de,arguments.length>2?arguments[2]:!1)}return D}()});else{var ye=x&&R.name!==I;!V(function(){R(1)})||!V(function(){new R(-1)})||V(function(){return new R,new R(1.5),new R(NaN),R.length!==1||ye&&!B})?(F=function(){function D(re){return p(this,_),v(new R(s(re)),this,F)}return D}(),F[E]=_,_.constructor=F,h(F,R)):ye&&B&&S(R,"name",I),u&&f(W)!==$&&u(W,$);var fe=new U(new F(2)),Le=a(W.setInt8);fe.setInt8(0,2147483648),fe.setInt8(1,2147483649),(fe.getInt8(0)||!fe.getInt8(1))&&k(W,{setInt8:function(){function D(re,de){Le(this,re,de<<24>>24)}return D}(),setUint8:function(){function D(re,de){Le(this,re,de<<24>>24)}return D}()},{unsafe:!0})}g(F,I),g(U,T),L.exports={ArrayBuffer:F,DataView:U}},71447:function(L,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760),o=n(95108),m=Math.min;L.exports=[].copyWithin||function(){function S(y,k){var V=e(this),p=t(V),i=a(y,p),c=a(k,p),s=arguments.length>2?arguments[2]:void 0,l=m((s===void 0?p:a(s,p))-c,p-i),d=1;for(c0;)c in V?V[i]=V[c]:o(V,i),i+=d,c+=d;return V}return S}()},88471:function(L,r,n){"use strict";var e=n(46771),a=n(13912),t=n(24760);L.exports=function(){function o(m){for(var S=e(this),y=t(S),k=arguments.length,V=a(k>1?arguments[1]:void 0,y),p=k>2?arguments[2]:void 0,i=p===void 0?y:a(p,y);i>V;)S[V++]=m;return S}return o}()},35601:function(L,r,n){"use strict";var e=n(22603).forEach,a=n(55528),t=a("forEach");L.exports=t?[].forEach:function(){function o(m){return e(this,m,arguments.length>1?arguments[1]:void 0)}return o}()},78008:function(L,r,n){"use strict";var e=n(24760);L.exports=function(a,t,o){for(var m=0,S=arguments.length>2?o:e(t),y=new a(S);S>m;)y[m]=t[m++];return y}},73174:function(L,r,n){"use strict";var e=n(75754),a=n(91495),t=n(46771),o=n(40125),m=n(76571),S=n(1031),y=n(24760),k=n(60102),V=n(77455),p=n(59201),i=Array;L.exports=function(){function c(s){var l=t(s),d=S(this),f=arguments.length,u=f>1?arguments[1]:void 0,C=u!==void 0;C&&(u=e(u,f>2?arguments[2]:void 0));var b=p(l),v=0,h,g,N,x,B,I;if(b&&!(this===i&&m(b)))for(g=d?new this:[],x=V(l,b),B=x.next;!(N=a(B,x)).done;v++)I=C?o(x,u,[N.value,v],!0):N.value,k(g,v,I);else for(h=y(l),g=d?new this(h):i(h);h>v;v++)I=C?u(l[v],v):l[v],k(g,v,I);return g.length=v,g}return c}()},14211:function(L,r,n){"use strict";var e=n(57591),a=n(13912),t=n(24760),o=function(S){return function(y,k,V){var p=e(y),i=t(p);if(i===0)return!S&&-1;var c=a(V,i),s;if(S&&k!==k){for(;i>c;)if(s=p[c++],s!==s)return!0}else for(;i>c;c++)if((S||c in p)&&p[c]===k)return S||c||0;return!S&&-1}};L.exports={includes:o(!0),indexOf:o(!1)}},22603:function(L,r,n){"use strict";var e=n(75754),a=n(67250),t=n(37457),o=n(46771),m=n(24760),S=n(57823),y=a([].push),k=function(p){var i=p===1,c=p===2,s=p===3,l=p===4,d=p===6,f=p===7,u=p===5||d;return function(C,b,v,h){for(var g=o(C),N=t(g),x=m(N),B=e(b,v),I=0,T=h||S,E=i?T(C,x):c||f?T(C,0):void 0,w,A;x>I;I++)if((u||I in N)&&(w=N[I],A=B(w,I,g),p))if(i)E[I]=A;else if(A)switch(p){case 3:return!0;case 5:return w;case 6:return I;case 2:y(E,w)}else switch(p){case 4:return!1;case 7:y(E,w)}return d?-1:s||l?l:E}};L.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},1325:function(L,r,n){"use strict";var e=n(61267),a=n(57591),t=n(61365),o=n(24760),m=n(55528),S=Math.min,y=[].lastIndexOf,k=!!y&&1/[1].lastIndexOf(1,-0)<0,V=m("lastIndexOf"),p=k||!V;L.exports=p?function(){function i(c){if(k)return e(y,this,arguments)||0;var s=a(this),l=o(s);if(l===0)return-1;var d=l-1;for(arguments.length>1&&(d=S(d,t(arguments[1]))),d<0&&(d=l+d);d>=0;d--)if(d in s&&s[d]===c)return d||0;return-1}return i}():y},44091:function(L,r,n){"use strict";var e=n(40033),a=n(24697),t=n(83141),o=a("species");L.exports=function(m){return t>=51||!e(function(){var S=[],y=S.constructor={};return y[o]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},55528:function(L,r,n){"use strict";var e=n(40033);L.exports=function(a,t){var o=[][a];return!!o&&e(function(){o.call(null,t||function(){return 1},1)})}},56844:function(L,r,n){"use strict";var e=n(10320),a=n(46771),t=n(37457),o=n(24760),m=TypeError,S="Reduce of empty array with no initial value",y=function(V){return function(p,i,c,s){var l=a(p),d=t(l),f=o(l);if(e(i),f===0&&c<2)throw new m(S);var u=V?f-1:0,C=V?-1:1;if(c<2)for(;;){if(u in d){s=d[u],u+=C;break}if(u+=C,V?u<0:f<=u)throw new m(S)}for(;V?u>=0:f>u;u+=C)u in d&&(s=i(s,d[u],u,l));return s}};L.exports={left:y(!1),right:y(!0)}},13345:function(L,r,n){"use strict";var e=n(58310),a=n(37386),t=TypeError,o=Object.getOwnPropertyDescriptor,m=e&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(S){return S instanceof TypeError}}();L.exports=m?function(S,y){if(a(S)&&!o(S,"length").writable)throw new t("Cannot set read only .length");return S.length=y}:function(S,y){return S.length=y}},54602:function(L,r,n){"use strict";var e=n(67250);L.exports=e([].slice)},90274:function(L,r,n){"use strict";var e=n(54602),a=Math.floor,t=function(m,S){var y=m.length;if(y<8)for(var k=1,V,p;k0;)m[p]=m[--p];p!==k++&&(m[p]=V)}else for(var i=a(y/2),c=t(e(m,0,i),S),s=t(e(m,i),S),l=c.length,d=s.length,f=0,u=0;f1?arguments[1]:void 0),A;A=A?A.next:E.first;)for(w(A.value,A.key,this);A&&A.removed;)A=A.previous}return I}(),has:function(){function I(T){return!!B(this,T)}return I}()}),t(g,b?{get:function(){function I(T){var E=B(this,T);return E&&E.value}return I}(),set:function(){function I(T,E){return x(this,T===0?0:T,E)}return I}()}:{add:function(){function I(T){return x(this,T=T===0?0:T,T)}return I}()}),i&&a(g,"size",{configurable:!0,get:function(){function I(){return N(this).size}return I}()}),h}return f}(),setStrong:function(){function f(u,C,b){var v=C+" Iterator",h=d(C),g=d(v);k(u,C,function(N,x){l(this,{type:v,target:N,state:h(N),kind:x,last:null})},function(){for(var N=g(this),x=N.kind,B=N.last;B&&B.removed;)B=B.previous;return!N.target||!(N.last=B=B?B.next:N.state.first)?(N.target=null,V(void 0,!0)):V(x==="keys"?B.key:x==="values"?B.value:[B.key,B.value],!1)},b?"entries":"values",!b,!0),p(C)}return f}()}},39895:function(L,r,n){"use strict";var e=n(67250),a=n(30145),t=n(81969).getWeakData,o=n(60077),m=n(30365),S=n(42871),y=n(77568),k=n(49450),V=n(22603),p=n(45299),i=n(5419),c=i.set,s=i.getterFor,l=V.find,d=V.findIndex,f=e([].splice),u=0,C=function(g){return g.frozen||(g.frozen=new b)},b=function(){this.entries=[]},v=function(g,N){return l(g.entries,function(x){return x[0]===N})};b.prototype={get:function(){function h(g){var N=v(this,g);if(N)return N[1]}return h}(),has:function(){function h(g){return!!v(this,g)}return h}(),set:function(){function h(g,N){var x=v(this,g);x?x[1]=N:this.entries.push([g,N])}return h}(),delete:function(){function h(g){var N=d(this.entries,function(x){return x[0]===g});return~N&&f(this.entries,N,1),!!~N}return h}()},L.exports={getConstructor:function(){function h(g,N,x,B){var I=g(function(A,O){o(A,T),c(A,{type:N,id:u++,frozen:null}),S(O)||k(O,A[B],{that:A,AS_ENTRIES:x})}),T=I.prototype,E=s(N),w=function(){function A(O,M,P){var R=E(O),F=t(m(M),!0);return F===!0?C(R).set(M,P):F[R.id]=P,O}return A}();return a(T,{delete:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).delete(O):P&&p(P,M.id)&&delete P[M.id]}return A}(),has:function(){function A(O){var M=E(this);if(!y(O))return!1;var P=t(O);return P===!0?C(M).has(O):P&&p(P,M.id)}return A}()}),a(T,x?{get:function(){function A(O){var M=E(this);if(y(O)){var P=t(O);if(P===!0)return C(M).get(O);if(P)return P[M.id]}}return A}(),set:function(){function A(O,M){return w(this,O,M)}return A}()}:{add:function(){function A(O){return w(this,O,!0)}return A}()}),I}return h}()}},45150:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(67250),o=n(41314),m=n(55938),S=n(81969),y=n(49450),k=n(60077),V=n(55747),p=n(42871),i=n(77568),c=n(40033),s=n(92490),l=n(84925),d=n(5781);L.exports=function(f,u,C){var b=f.indexOf("Map")!==-1,v=f.indexOf("Weak")!==-1,h=b?"set":"add",g=a[f],N=g&&g.prototype,x=g,B={},I=function(R){var F=t(N[R]);m(N,R,R==="add"?function(){function _(U){return F(this,U===0?0:U),this}return _}():R==="delete"?function(_){return v&&!i(_)?!1:F(this,_===0?0:_)}:R==="get"?function(){function _(U){return v&&!i(U)?void 0:F(this,U===0?0:U)}return _}():R==="has"?function(){function _(U){return v&&!i(U)?!1:F(this,U===0?0:U)}return _}():function(){function _(U,W){return F(this,U===0?0:U,W),this}return _}())},T=o(f,!V(g)||!(v||N.forEach&&!c(function(){new g().entries().next()})));if(T)x=C.getConstructor(u,f,b,h),S.enable();else if(o(f,!0)){var E=new x,w=E[h](v?{}:-0,1)!==E,A=c(function(){E.has(1)}),O=s(function(P){new g(P)}),M=!v&&c(function(){for(var P=new g,R=5;R--;)P[h](R,R);return!P.has(-0)});O||(x=u(function(P,R){k(P,N);var F=d(new g,P,x);return p(R)||y(R,F[h],{that:F,AS_ENTRIES:b}),F}),x.prototype=N,N.constructor=x),(A||M)&&(I("delete"),I("has"),b&&I("get")),(M||w)&&I(h),v&&N.clear&&delete N.clear}return B[f]=x,e({global:!0,constructor:!0,forced:x!==g},B),l(x,f),v||C.setStrong(x,f,b),x}},5774:function(L,r,n){"use strict";var e=n(45299),a=n(97921),t=n(27193),o=n(74595);L.exports=function(m,S,y){for(var k=a(S),V=o.f,p=t.f,i=0;i"+p+""}},5959:function(L){"use strict";L.exports=function(r,n){return{value:r,done:n}}},37909:function(L,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);L.exports=e?function(o,m,S){return a.f(o,m,t(1,S))}:function(o,m,S){return o[m]=S,o}},87458:function(L){"use strict";L.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},60102:function(L,r,n){"use strict";var e=n(58310),a=n(74595),t=n(87458);L.exports=function(o,m,S){e?a.f(o,m,t(0,S)):o[m]=S}},67206:function(L,r,n){"use strict";var e=n(67250),a=n(40033),t=n(24051).start,o=RangeError,m=isFinite,S=Math.abs,y=Date.prototype,k=y.toISOString,V=e(y.getTime),p=e(y.getUTCDate),i=e(y.getUTCFullYear),c=e(y.getUTCHours),s=e(y.getUTCMilliseconds),l=e(y.getUTCMinutes),d=e(y.getUTCMonth),f=e(y.getUTCSeconds);L.exports=a(function(){return k.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){k.call(new Date(NaN))})?function(){function u(){if(!m(V(this)))throw new o("Invalid time value");var C=this,b=i(C),v=s(C),h=b<0?"-":b>9999?"+":"";return h+t(S(b),h?6:4,0)+"-"+t(d(C)+1,2,0)+"-"+t(p(C),2,0)+"T"+t(c(C),2,0)+":"+t(l(C),2,0)+":"+t(f(C),2,0)+"."+t(v,3,0)+"Z"}return u}():k},10886:function(L,r,n){"use strict";var e=n(30365),a=n(13396),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)}},73936:function(L,r,n){"use strict";var e=n(20001),a=n(74595);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)}},55938:function(L,r,n){"use strict";var e=n(55747),a=n(74595),t=n(20001),o=n(18231);L.exports=function(m,S,y,k){k||(k={});var V=k.enumerable,p=k.name!==void 0?k.name:S;if(e(y)&&t(y,p,k),k.global)V?m[S]=y:o(S,y);else{try{k.unsafe?m[S]&&(V=!0):delete m[S]}catch(i){}V?m[S]=y:a.f(m,S,{value:y,enumerable:!1,configurable:!k.nonConfigurable,writable:!k.nonWritable})}return m}},30145:function(L,r,n){"use strict";var e=n(55938);L.exports=function(a,t,o){for(var m in t)e(a,m,t[m],o);return a}},18231:function(L,r,n){"use strict";var e=n(16210),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}},95108:function(L,r,n){"use strict";var e=n(89393),a=TypeError;L.exports=function(t,o){if(!delete t[o])throw new a("Cannot delete property "+e(o)+" of "+e(t))}},58310:function(L,r,n){"use strict";var e=n(40033);L.exports=!e(function(){return Object.defineProperty({},1,{get:function(){function a(){return 7}return a}()})[1]!==7})},12689:function(L,r,n){"use strict";var e=n(16210),a=n(77568),t=e.document,o=a(t)&&a(t.createElement);L.exports=function(m){return o?t.createElement(m):{}}},21291:function(L){"use strict";var r=TypeError,n=9007199254740991;L.exports=function(e){if(e>n)throw r("Maximum allowed index exceeded");return e}},89453:function(L){"use strict";L.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},50503:function(L,r,n){"use strict";var e=n(83309),a=e.match(/firefox\/(\d+)/i);L.exports=!!a&&+a[1]},79725:function(L,r,n){"use strict";var e=n(83309);L.exports=/MSIE|Trident/.test(e)},16647:function(L,r,n){"use strict";var e=n(83309);L.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},27770:function(L,r,n){"use strict";var e=n(83309);L.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},81663:function(L,r,n){"use strict";var e=n(10753);L.exports=e==="NODE"},52854:function(L,r,n){"use strict";var e=n(83309);L.exports=/web0s(?!.*chrome)/i.test(e)},83309:function(L,r,n){"use strict";var e=n(16210),a=e.navigator,t=a&&a.userAgent;L.exports=t?String(t):""},83141:function(L,r,n){"use strict";var e=n(16210),a=n(83309),t=e.process,o=e.Deno,m=t&&t.versions||o&&o.version,S=m&&m.v8,y,k;S&&(y=S.split("."),k=y[0]>0&&y[0]<4?1:+(y[0]+y[1])),!k&&a&&(y=a.match(/Edge\/(\d+)/),(!y||y[1]>=74)&&(y=a.match(/Chrome\/(\d+)/),y&&(k=+y[1]))),L.exports=k},44981:function(L,r,n){"use strict";var e=n(83309),a=e.match(/AppleWebKit\/(\d+)\./);L.exports=!!a&&+a[1]},10753:function(L,r,n){"use strict";var e=n(16210),a=n(83309),t=n(7462),o=function(S){return a.slice(0,S.length)===S};L.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}()},63964:function(L,r,n){"use strict";var e=n(16210),a=n(27193).f,t=n(37909),o=n(55938),m=n(18231),S=n(5774),y=n(41314);L.exports=function(k,V){var p=k.target,i=k.global,c=k.stat,s,l,d,f,u,C;if(i?l=e:c?l=e[p]||m(p,{}):l=e[p]&&e[p].prototype,l)for(d in V){if(u=V[d],k.dontCallGetSet?(C=a(l,d),f=C&&C.value):f=l[d],s=y(i?d:p+(c?".":"#")+d,k.forced),!s&&f!==void 0){if(typeof u==typeof f)continue;S(u,f)}(k.sham||f&&f.sham)&&t(u,"sham",!0),o(l,d,u,k)}}},40033:function(L){"use strict";L.exports=function(r){try{return!!r()}catch(n){return!0}}},79942:function(L,r,n){"use strict";n(79669);var e=n(91495),a=n(55938),t=n(14489),o=n(40033),m=n(24697),S=n(37909),y=m("species"),k=RegExp.prototype;L.exports=function(V,p,i,c){var s=m(V),l=!o(function(){var C={};return C[s]=function(){return 7},""[V](C)!==7}),d=l&&!o(function(){var C=!1,b=/a/;return V==="split"&&(b={},b.constructor={},b.constructor[y]=function(){return b},b.flags="",b[s]=/./[s]),b.exec=function(){return C=!0,null},b[s](""),!C});if(!l||!d||i){var f=/./[s],u=p(s,""[V],function(C,b,v,h,g){var N=b.exec;return N===t||N===k.exec?l&&!g?{done:!0,value:e(f,b,v,h)}:{done:!0,value:e(C,v,b,h)}:{done:!1}});a(String.prototype,V,u[0]),a(k,s,u[1])}c&&S(k[s],"sham",!0)}},65561:function(L,r,n){"use strict";var e=n(37386),a=n(24760),t=n(21291),o=n(75754),m=function(y,k,V,p,i,c,s,l){for(var d=i,f=0,u=s?o(s,l):!1,C,b;f0&&e(C)?(b=a(C),d=m(y,k,C,b,d,c-1)-1):(t(d+1),y[d]=C),d++),f++;return d};L.exports=m},50730:function(L,r,n){"use strict";var e=n(40033);L.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},61267:function(L,r,n){"use strict";var e=n(55050),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)})},75754:function(L,r,n){"use strict";var e=n(71138),a=n(10320),t=n(55050),o=e(e.bind);L.exports=function(m,S){return a(m),S===void 0?m:t?o(m,S):function(){return m.apply(S,arguments)}}},55050:function(L,r,n){"use strict";var e=n(40033);L.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},66284:function(L,r,n){"use strict";var e=n(67250),a=n(10320),t=n(77568),o=n(45299),m=n(54602),S=n(55050),y=Function,k=e([].concat),V=e([].join),p={},i=function(s,l,d){if(!o(p,l)){for(var f=[],u=0;u]*>)/g,k=/\$([$&'`]|\d{1,2})/g;L.exports=function(V,p,i,c,s,l){var d=i+V.length,f=c.length,u=k;return s!==void 0&&(s=a(s),u=y),m(l,u,function(C,b){var v;switch(o(b,0)){case"$":return"$";case"&":return V;case"`":return S(p,0,i);case"'":return S(p,d);case"<":v=s[S(b,1,-1)];break;default:var h=+b;if(h===0)return C;if(h>f){var g=t(h/10);return g===0?C:g<=f?c[g-1]===void 0?o(b,1):c[g-1]+o(b,1):C}v=c[h-1]}return v===void 0?"":v})}},16210:function(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")()},45299:function(L,r,n){"use strict";var e=n(67250),a=n(46771),t=e({}.hasOwnProperty);L.exports=Object.hasOwn||function(){function o(m,S){return t(a(m),S)}return o}()},79195:function(L){"use strict";L.exports={}},72259:function(L){"use strict";L.exports=function(r,n){try{arguments.length}catch(e){}}},5315:function(L,r,n){"use strict";var e=n(4009);L.exports=e("document","documentElement")},36223:function(L,r,n){"use strict";var e=n(58310),a=n(40033),t=n(12689);L.exports=!e&&!a(function(){return Object.defineProperty(t("div"),"a",{get:function(){function o(){return 7}return o}()}).a!==7})},91784:function(L){"use strict";var r=Array,n=Math.abs,e=Math.pow,a=Math.floor,t=Math.log,o=Math.LN2,m=function(k,V,p){var i=r(p),c=p*8-V-1,s=(1<>1,d=V===23?e(2,-24)-e(2,-77):0,f=k<0||k===0&&1/k<0?1:0,u=0,C,b,v;for(k=n(k),k!==k||k===1/0?(b=k!==k?1:0,C=s):(C=a(t(k)/o),v=e(2,-C),k*v<1&&(C--,v*=2),C+l>=1?k+=d/v:k+=d*e(2,1-l),k*v>=2&&(C++,v/=2),C+l>=s?(b=0,C=s):C+l>=1?(b=(k*v-1)*e(2,V),C+=l):(b=k*e(2,l-1)*e(2,V),C=0));V>=8;)i[u++]=b&255,b/=256,V-=8;for(C=C<0;)i[u++]=C&255,C/=256,c-=8;return i[u-1]|=f*128,i},S=function(k,V){var p=k.length,i=p*8-V-1,c=(1<>1,l=i-7,d=p-1,f=k[d--],u=f&127,C;for(f>>=7;l>0;)u=u*256+k[d--],l-=8;for(C=u&(1<<-l)-1,u>>=-l,l+=V;l>0;)C=C*256+k[d--],l-=8;if(u===0)u=1-s;else{if(u===c)return C?NaN:f?-1/0:1/0;C+=e(2,V),u-=s}return(f?-1:1)*C*e(2,u-V)};L.exports={pack:m,unpack:S}},37457:function(L,r,n){"use strict";var e=n(67250),a=n(40033),t=n(7462),o=Object,m=e("".split);L.exports=a(function(){return!o("z").propertyIsEnumerable(0)})?function(S){return t(S)==="String"?m(S,""):o(S)}:o},5781:function(L,r,n){"use strict";var e=n(55747),a=n(77568),t=n(76649);L.exports=function(o,m,S){var y,k;return t&&e(y=m.constructor)&&y!==S&&a(k=y.prototype)&&k!==S.prototype&&t(o,k),o}},40492:function(L,r,n){"use strict";var e=n(67250),a=n(55747),t=n(40095),o=e(Function.toString);a(t.inspectSource)||(t.inspectSource=function(m){return o(m)}),L.exports=t.inspectSource},81969:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(79195),o=n(77568),m=n(45299),S=n(74595).f,y=n(37310),k=n(81644),V=n(81834),p=n(16738),i=n(50730),c=!1,s=p("meta"),l=0,d=function(g){S(g,s,{value:{objectID:"O"+l++,weakData:{}}})},f=function(g,N){if(!o(g))return typeof g=="symbol"?g:(typeof g=="string"?"S":"P")+g;if(!m(g,s)){if(!V(g))return"F";if(!N)return"E";d(g)}return g[s].objectID},u=function(g,N){if(!m(g,s)){if(!V(g))return!0;if(!N)return!1;d(g)}return g[s].weakData},C=function(g){return i&&c&&V(g)&&!m(g,s)&&d(g),g},b=function(){v.enable=function(){},c=!0;var g=y.f,N=a([].splice),x={};x[s]=1,g(x).length&&(y.f=function(B){for(var I=g(B),T=0,E=I.length;TB;B++)if(T=O(l[B]),T&&y(s,T))return T;return new c(!1)}N=k(l,x)}for(E=b?l.next:N.next;!(w=a(E,N)).done;){try{T=O(w.value)}catch(M){p(N,"throw",M)}if(typeof T=="object"&&T&&y(s,T))return T}return new c(!1)}},28649:function(L,r,n){"use strict";var e=n(91495),a=n(30365),t=n(78060);L.exports=function(o,m,S){var y,k;a(o);try{if(y=t(o,"return"),!y){if(m==="throw")throw S;return S}y=e(y,o)}catch(V){k=!0,y=V}if(m==="throw")throw S;if(k)throw y;return a(y),S}},5656:function(L,r,n){"use strict";var e=n(67635).IteratorPrototype,a=n(80674),t=n(87458),o=n(84925),m=n(83967),S=function(){return this};L.exports=function(y,k,V,p){var i=k+" Iterator";return y.prototype=a(e,{next:t(+!p,V)}),o(y,i,!1,!0),m[i]=S,y}},65574:function(L,r,n){"use strict";var e=n(63964),a=n(91495),t=n(4493),o=n(70520),m=n(55747),S=n(5656),y=n(36917),k=n(76649),V=n(84925),p=n(37909),i=n(55938),c=n(24697),s=n(83967),l=n(67635),d=o.PROPER,f=o.CONFIGURABLE,u=l.IteratorPrototype,C=l.BUGGY_SAFARI_ITERATORS,b=c("iterator"),v="keys",h="values",g="entries",N=function(){return this};L.exports=function(x,B,I,T,E,w,A){S(I,B,T);var O=function(X){if(X===E&&_)return _;if(!C&&X&&X in R)return R[X];switch(X){case v:return function(){function Ce(){return new I(this,X)}return Ce}();case h:return function(){function Ce(){return new I(this,X)}return Ce}();case g:return function(){function Ce(){return new I(this,X)}return Ce}()}return function(){return new I(this)}},M=B+" Iterator",P=!1,R=x.prototype,F=R[b]||R["@@iterator"]||E&&R[E],_=!C&&F||O(E),U=B==="Array"&&R.entries||F,W,$,G;if(U&&(W=y(U.call(new x)),W!==Object.prototype&&W.next&&(!t&&y(W)!==u&&(k?k(W,u):m(W[b])||i(W,b,N)),V(W,M,!0,!0),t&&(s[M]=N))),d&&E===h&&F&&F.name!==h&&(!t&&f?p(R,"name",h):(P=!0,_=function(){function oe(){return a(F,this)}return oe}())),E)if($={values:O(h),keys:w?_:O(v),entries:O(g)},A)for(G in $)(C||P||!(G in R))&&i(R,G,$[G]);else e({target:B,proto:!0,forced:C||P},$);return(!t||A)&&R[b]!==_&&i(R,b,_,{name:E}),s[B]=_,$}},67635:function(L,r,n){"use strict";var e=n(40033),a=n(55747),t=n(77568),o=n(80674),m=n(36917),S=n(55938),y=n(24697),k=n(4493),V=y("iterator"),p=!1,i,c,s;[].keys&&(s=[].keys(),"next"in s?(c=m(m(s)),c!==Object.prototype&&(i=c)):p=!0);var l=!t(i)||e(function(){var d={};return i[V].call(d)!==d});l?i={}:k&&(i=o(i)),a(i[V])||S(i,V,function(){return this}),L.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},83967:function(L){"use strict";L.exports={}},24760:function(L,r,n){"use strict";var e=n(10188);L.exports=function(a){return e(a.length)}},20001:function(L,r,n){"use strict";var e=n(67250),a=n(40033),t=n(55747),o=n(45299),m=n(58310),S=n(70520).CONFIGURABLE,y=n(40492),k=n(5419),V=k.enforce,p=k.get,i=String,c=Object.defineProperty,s=e("".slice),l=e("".replace),d=e([].join),f=m&&!a(function(){return c(function(){},"length",{value:8}).length!==8}),u=String(String).split("String"),C=L.exports=function(b,v,h){s(i(v),0,7)==="Symbol("&&(v="["+l(i(v),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),h&&h.getter&&(v="get "+v),h&&h.setter&&(v="set "+v),(!o(b,"name")||S&&b.name!==v)&&(m?c(b,"name",{value:v,configurable:!0}):b.name=v),f&&h&&o(h,"arity")&&b.length!==h.arity&&c(b,"length",{value:h.arity});try{h&&o(h,"constructor")&&h.constructor?m&&c(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch(N){}var g=V(b);return o(g,"source")||(g.source=d(u,typeof v=="string"?v:"")),b};Function.prototype.toString=C(function(){function b(){return t(this)&&p(this).source||y(this)}return b}(),"toString")},82040:function(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},14950:function(L,r,n){"use strict";var e=n(22172),a=Math.abs,t=2220446049250313e-31,o=1/t,m=function(y){return y+o-o};L.exports=function(S,y,k,V){var p=+S,i=a(p),c=e(p);if(ik||l!==l?c*(1/0):c*l}},95867:function(L,r,n){"use strict";var e=n(14950),a=11920928955078125e-23,t=34028234663852886e22,o=11754943508222875e-54;L.exports=Math.fround||function(){function m(S){return e(S,a,t,o)}return m}()},75002: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}()},90874: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}()},22172: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}()},21119: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}()},37713:function(L,r,n){"use strict";var e=n(16210),a=n(44915),t=n(75754),o=n(60375).set,m=n(9547),S=n(27770),y=n(16647),k=n(52854),V=n(81663),p=e.MutationObserver||e.WebKitMutationObserver,i=e.document,c=e.process,s=e.Promise,l=a("queueMicrotask"),d,f,u,C,b;if(!l){var v=new m,h=function(){var N,x;for(V&&(N=c.domain)&&N.exit();x=v.get();)try{x()}catch(B){throw v.head&&d(),B}N&&N.enter()};!S&&!V&&!k&&p&&i?(f=!0,u=i.createTextNode(""),new p(h).observe(u,{characterData:!0}),d=function(){u.data=f=!f}):!y&&s&&s.resolve?(C=s.resolve(void 0),C.constructor=s,b=t(C.then,C),d=function(){b(h)}):V?d=function(){c.nextTick(h)}:(o=t(o,e),d=function(){o(h)}),l=function(N){v.head||d(),v.add(N)}}L.exports=l},81837:function(L,r,n){"use strict";var e=n(10320),a=TypeError,t=function(m){var S,y;this.promise=new m(function(k,V){if(S!==void 0||y!==void 0)throw new a("Bad Promise constructor");S=k,y=V}),this.resolve=e(S),this.reject=e(y)};L.exports.f=function(o){return new t(o)}},86213:function(L,r,n){"use strict";var e=n(72586),a=TypeError;L.exports=function(t){if(e(t))throw new a("The method doesn't accept regular expressions");return t}},3294:function(L,r,n){"use strict";var e=n(16210),a=e.isFinite;L.exports=Number.isFinite||function(){function t(o){return typeof o=="number"&&a(o)}return t}()},28506:function(L,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=t("".charAt),k=e.parseFloat,V=e.Symbol,p=V&&V.iterator,i=1/k(S+"-0")!==-1/0||p&&!a(function(){k(Object(p))});L.exports=i?function(){function c(s){var l=m(o(s)),d=k(l);return d===0&&y(l,0)==="-"?-0:d}return c}():k},13693:function(L,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(12605),m=n(92648).trim,S=n(4198),y=e.parseInt,k=e.Symbol,V=k&&k.iterator,p=/^[+-]?0x/i,i=t(p.exec),c=y(S+"08")!==8||y(S+"0x16")!==22||V&&!a(function(){y(Object(V))});L.exports=c?function(){function s(l,d){var f=m(o(l));return y(f,d>>>0||(i(p,f)?16:10))}return s}():y},41143:function(L,r,n){"use strict";var e=n(58310),a=n(67250),t=n(91495),o=n(40033),m=n(18450),S=n(89235),y=n(12867),k=n(46771),V=n(37457),p=Object.assign,i=Object.defineProperty,c=a([].concat);L.exports=!p||o(function(){if(e&&p({b:1},p(i({},"a",{enumerable:!0,get:function(){function u(){i(this,"b",{value:3,enumerable:!1})}return u}()}),{b:2})).b!==1)return!0;var s={},l={},d=Symbol("assign detection"),f="abcdefghijklmnopqrst";return s[d]=7,f.split("").forEach(function(u){l[u]=u}),p({},s)[d]!==7||m(p({},l)).join("")!==f})?function(){function s(l,d){for(var f=k(l),u=arguments.length,C=1,b=S.f,v=y.f;u>C;)for(var h=V(arguments[C++]),g=b?c(m(h),b(h)):m(h),N=g.length,x=0,B;N>x;)B=g[x++],(!e||t(v,h,B))&&(f[B]=h[B]);return f}return s}():p},80674:function(L,r,n){"use strict";var e=n(30365),a=n(24239),t=n(89453),o=n(79195),m=n(5315),S=n(12689),y=n(19417),k=">",V="<",p="prototype",i="script",c=y("IE_PROTO"),s=function(){},l=function(v){return V+i+k+v+V+"/"+i+k},d=function(v){v.write(l("")),v.close();var h=v.parentWindow.Object;return v=null,h},f=function(){var v=S("iframe"),h="java"+i+":",g;return v.style.display="none",m.appendChild(v),v.src=String(h),g=v.contentWindow.document,g.open(),g.write(l("document.F=Object")),g.close(),g.F},u,C=function(){try{u=new ActiveXObject("htmlfile")}catch(h){}C=typeof document!="undefined"?document.domain&&u?d(u):f():d(u);for(var v=t.length;v--;)delete C[p][t[v]];return C()};o[c]=!0,L.exports=Object.create||function(){function b(v,h){var g;return v!==null?(s[p]=e(v),g=new s,s[p]=null,g[c]=v):g=C(),h===void 0?g:a.f(g,h)}return b}()},24239:function(L,r,n){"use strict";var e=n(58310),a=n(80944),t=n(74595),o=n(30365),m=n(57591),S=n(18450);r.f=e&&!a?Object.defineProperties:function(){function y(k,V){o(k);for(var p=m(V),i=S(V),c=i.length,s=0,l;c>s;)t.f(k,l=i[s++],p[l]);return k}return y}()},74595:function(L,r,n){"use strict";var e=n(58310),a=n(36223),t=n(80944),o=n(30365),m=n(767),S=TypeError,y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,V="enumerable",p="configurable",i="writable";r.f=e?t?function(){function c(s,l,d){if(o(s),l=m(l),o(d),typeof s=="function"&&l==="prototype"&&"value"in d&&i in d&&!d[i]){var f=k(s,l);f&&f[i]&&(s[l]=d.value,d={configurable:p in d?d[p]:f[p],enumerable:V in d?d[V]:f[V],writable:!1})}return y(s,l,d)}return c}():y:function(){function c(s,l,d){if(o(s),l=m(l),o(d),a)try{return y(s,l,d)}catch(f){}if("get"in d||"set"in d)throw new S("Accessors not supported");return"value"in d&&(s[l]=d.value),s}return c}()},27193:function(L,r,n){"use strict";var e=n(58310),a=n(91495),t=n(12867),o=n(87458),m=n(57591),S=n(767),y=n(45299),k=n(36223),V=Object.getOwnPropertyDescriptor;r.f=e?V:function(){function p(i,c){if(i=m(i),c=S(c),k)try{return V(i,c)}catch(s){}if(y(i,c))return o(!a(t.f,i,c),i[c])}return p}()},81644:function(L,r,n){"use strict";var e=n(7462),a=n(57591),t=n(37310).f,o=n(54602),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(k){try{return t(k)}catch(V){return o(m)}};L.exports.f=function(){function y(k){return m&&e(k)==="Window"?S(k):t(a(k))}return y}()},37310:function(L,r,n){"use strict";var e=n(53726),a=n(89453),t=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(){function o(m){return e(m,t)}return o}()},89235:function(L,r){"use strict";r.f=Object.getOwnPropertySymbols},36917:function(L,r,n){"use strict";var e=n(45299),a=n(55747),t=n(46771),o=n(19417),m=n(9225),S=o("IE_PROTO"),y=Object,k=y.prototype;L.exports=m?y.getPrototypeOf:function(V){var p=t(V);if(e(p,S))return p[S];var i=p.constructor;return a(i)&&p instanceof i?i.prototype:p instanceof y?k:null}},81834:function(L,r,n){"use strict";var e=n(40033),a=n(77568),t=n(7462),o=n(3782),m=Object.isExtensible,S=e(function(){m(1)});L.exports=S||o?function(){function y(k){return!a(k)||o&&t(k)==="ArrayBuffer"?!1:m?m(k):!0}return y}():m},21287:function(L,r,n){"use strict";var e=n(67250);L.exports=e({}.isPrototypeOf)},53726:function(L,r,n){"use strict";var e=n(67250),a=n(45299),t=n(57591),o=n(14211).indexOf,m=n(79195),S=e([].push);L.exports=function(y,k){var V=t(y),p=0,i=[],c;for(c in V)!a(m,c)&&a(V,c)&&S(i,c);for(;k.length>p;)a(V,c=k[p++])&&(~o(i,c)||S(i,c));return i}},18450:function(L,r,n){"use strict";var e=n(53726),a=n(89453);L.exports=Object.keys||function(){function t(o){return e(o,a)}return t}()},12867: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},57377:function(L,r,n){"use strict";var e=n(4493),a=n(16210),t=n(40033),o=n(44981);L.exports=e||!t(function(){if(!(o&&o<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete a[m]}})},76649:function(L,r,n){"use strict";var e=n(38656),a=n(77568),t=n(16952),o=n(35908);L.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,S={},y;try{y=e(Object.prototype,"__proto__","set"),y(S,[]),m=S instanceof Array}catch(k){}return function(){function k(V,p){return t(V),o(p),a(V)&&(m?y(V,p):V.__proto__=p),V}return k}()}():void 0)},70915:function(L,r,n){"use strict";var e=n(58310),a=n(40033),t=n(67250),o=n(36917),m=n(18450),S=n(57591),y=n(12867).f,k=t(y),V=t([].push),p=e&&a(function(){var c=Object.create(null);return c[2]=2,!k(c,2)}),i=function(s){return function(l){for(var d=S(l),f=m(d),u=p&&o(d)===null,C=f.length,b=0,v=[],h;C>b;)h=f[b++],(!e||(u?h in d:k(d,h)))&&V(v,s?[h,d[h]]:d[h]);return v}};L.exports={entries:i(!0),values:i(!1)}},2509:function(L,r,n){"use strict";var e=n(2650),a=n(2281);L.exports=e?{}.toString:function(){function t(){return"[object "+a(this)+"]"}return t}()},13396:function(L,r,n){"use strict";var e=n(91495),a=n(55747),t=n(77568),o=TypeError;L.exports=function(m,S){var y,k;if(S==="string"&&a(y=m.toString)&&!t(k=e(y,m))||a(y=m.valueOf)&&!t(k=e(y,m))||S!=="string"&&a(y=m.toString)&&!t(k=e(y,m)))return k;throw new o("Can't convert object to primitive value")}},97921:function(L,r,n){"use strict";var e=n(4009),a=n(67250),t=n(37310),o=n(89235),m=n(30365),S=a([].concat);L.exports=e("Reflect","ownKeys")||function(){function y(k){var V=t.f(m(k)),p=o.f;return p?S(V,p(k)):V}return y}()},61765:function(L,r,n){"use strict";var e=n(16210);L.exports=e},10729:function(L){"use strict";L.exports=function(r){try{return{error:!1,value:r()}}catch(n){return{error:!0,value:n}}}},74854:function(L,r,n){"use strict";var e=n(16210),a=n(67512),t=n(55747),o=n(41314),m=n(40492),S=n(24697),y=n(10753),k=n(4493),V=n(83141),p=a&&a.prototype,i=S("species"),c=!1,s=t(e.PromiseRejectionEvent),l=o("Promise",function(){var d=m(a),f=d!==String(a);if(!f&&V===66||k&&!(p.catch&&p.finally))return!0;if(!V||V<51||!/native code/.test(d)){var u=new a(function(v){v(1)}),C=function(h){h(function(){},function(){})},b=u.constructor={};if(b[i]=C,c=u.then(function(){})instanceof C,!c)return!0}return!f&&(y==="BROWSER"||y==="DENO")&&!s});L.exports={CONSTRUCTOR:l,REJECTION_EVENT:s,SUBCLASSING:c}},67512:function(L,r,n){"use strict";var e=n(16210);L.exports=e.Promise},66628:function(L,r,n){"use strict";var e=n(30365),a=n(77568),t=n(81837);L.exports=function(o,m){if(e(o),a(m)&&m.constructor===o)return m;var S=t.f(o),y=S.resolve;return y(m),S.promise}},48199:function(L,r,n){"use strict";var e=n(67512),a=n(92490),t=n(74854).CONSTRUCTOR;L.exports=t||!a(function(o){e.all(o).then(void 0,function(){})})},34550:function(L,r,n){"use strict";var e=n(74595).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(S){t[o]=S}return m}()})}},9547: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},28340:function(L,r,n){"use strict";var e=n(91495),a=n(30365),t=n(55747),o=n(7462),m=n(14489),S=TypeError;L.exports=function(y,k){var V=y.exec;if(t(V)){var p=e(V,y,k);return p!==null&&a(p),p}if(o(y)==="RegExp")return e(m,y,k);throw new S("RegExp#exec called on incompatible receiver")}},14489:function(L,r,n){"use strict";var e=n(91495),a=n(67250),t=n(12605),o=n(70901),m=n(62115),S=n(16639),y=n(80674),k=n(5419).get,V=n(39173),p=n(35688),i=S("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,s=c,l=a("".charAt),d=a("".indexOf),f=a("".replace),u=a("".slice),C=function(){var g=/a/,N=/b*/g;return e(c,g,"a"),e(c,N,"a"),g.lastIndex!==0||N.lastIndex!==0}(),b=m.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,h=C||v||b||V||p;h&&(s=function(){function g(N){var x=this,B=k(x),I=t(N),T=B.raw,E,w,A,O,M,P,R;if(T)return T.lastIndex=x.lastIndex,E=e(s,T,I),x.lastIndex=T.lastIndex,E;var F=B.groups,_=b&&x.sticky,U=e(o,x),W=x.source,$=0,G=I;if(_&&(U=f(U,"y",""),d(U,"g")===-1&&(U+="g"),G=u(I,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&l(I,x.lastIndex-1)!=="\n")&&(W="(?: "+W+")",G=" "+G,$++),w=new RegExp("^(?:"+W+")",U)),v&&(w=new RegExp("^"+W+"$(?!\\s)",U)),C&&(A=x.lastIndex),O=e(c,_?w:x,G),_?O?(O.input=u(O.input,$),O[0]=u(O[0],$),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:C&&O&&(x.lastIndex=x.global?O.index+O[0].length:A),v&&O&&O.length>1&&e(i,O[0],w,function(){for(M=1;Mb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},16952:function(L,r,n){"use strict";var e=n(42871),a=TypeError;L.exports=function(t){if(e(t))throw new a("Can't call method on "+t);return t}},44915:function(L,r,n){"use strict";var e=n(16210),a=n(58310),t=Object.getOwnPropertyDescriptor;L.exports=function(o){if(!a)return e[o];var m=t(e,o);return m&&m.value}},5700: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}()},78362:function(L,r,n){"use strict";var e=n(16210),a=n(61267),t=n(55747),o=n(10753),m=n(83309),S=n(54602),y=n(24986),k=e.Function,V=/MSIE .\./.test(m)||o==="BUN"&&function(){var p=e.Bun.version.split(".");return p.length<3||p[0]==="0"&&(p[1]<3||p[1]==="3"&&p[2]==="0")}();L.exports=function(p,i){var c=i?2:1;return V?function(s,l){var d=y(arguments.length,1)>c,f=t(s)?s:k(s),u=d?S(arguments,c):[],C=d?function(){a(f,this,u)}:f;return i?p(C,l):p(C)}:p}},58491:function(L,r,n){"use strict";var e=n(4009),a=n(73936),t=n(24697),o=n(58310),m=t("species");L.exports=function(S){var y=e(S);o&&y&&!y[m]&&a(y,m,{configurable:!0,get:function(){function k(){return this}return k}()})}},84925:function(L,r,n){"use strict";var e=n(74595).f,a=n(45299),t=n(24697),o=t("toStringTag");L.exports=function(m,S,y){m&&!y&&(m=m.prototype),m&&!a(m,o)&&e(m,o,{configurable:!0,value:S})}},19417:function(L,r,n){"use strict";var e=n(16639),a=n(16738),t=e("keys");L.exports=function(o){return t[o]||(t[o]=a(o))}},40095:function(L,r,n){"use strict";var e=n(4493),a=n(16210),t=n(18231),o="__core-js_shared__",m=L.exports=a[o]||t(o,{});(m.versions||(m.versions=[])).push({version:"3.38.1",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},16639:function(L,r,n){"use strict";var e=n(40095);L.exports=function(a,t){return e[a]||(e[a]=t||{})}},28987:function(L,r,n){"use strict";var e=n(30365),a=n(32606),t=n(42871),o=n(24697),m=o("species");L.exports=function(S,y){var k=e(S).constructor,V;return k===void 0||t(V=e(k)[m])?y:a(V)}},88539:function(L,r,n){"use strict";var e=n(40033);L.exports=function(a){return e(function(){var t=""[a]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},50233:function(L,r,n){"use strict";var e=n(67250),a=n(61365),t=n(12605),o=n(16952),m=e("".charAt),S=e("".charCodeAt),y=e("".slice),k=function(p){return function(i,c){var s=t(o(i)),l=a(c),d=s.length,f,u;return l<0||l>=d?p?"":void 0:(f=S(s,l),f<55296||f>56319||l+1===d||(u=S(s,l+1))<56320||u>57343?p?m(s,l):f:p?y(s,l,l+2):(f-55296<<10)+(u-56320)+65536)}};L.exports={codeAt:k(!1),charAt:k(!0)}},34125:function(L,r,n){"use strict";var e=n(83309);L.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},24051:function(L,r,n){"use strict";var e=n(67250),a=n(10188),t=n(12605),o=n(62443),m=n(16952),S=e(o),y=e("".slice),k=Math.ceil,V=function(i){return function(c,s,l){var d=t(m(c)),f=a(s),u=d.length,C=l===void 0?" ":t(l),b,v;return f<=u||C===""?d:(b=f-u,v=S(C,k(b/C.length)),v.length>b&&(v=y(v,0,b)),i?d+v:v+d)}};L.exports={start:V(!1),end:V(!0)}},62443:function(L,r,n){"use strict";var e=n(61365),a=n(12605),t=n(16952),o=RangeError;L.exports=function(){function m(S){var y=a(t(this)),k="",V=e(S);if(V<0||V===1/0)throw new o("Wrong number of repetitions");for(;V>0;(V>>>=1)&&(y+=y))V&1&&(k+=y);return k}return m}()},43476:function(L,r,n){"use strict";var e=n(92648).end,a=n(90012);L.exports=a("trimEnd")?function(){function t(){return e(this)}return t}():"".trimEnd},90012:function(L,r,n){"use strict";var e=n(70520).PROPER,a=n(40033),t=n(4198),o="\u200B\x85\u180E";L.exports=function(m){return a(function(){return!!t[m]()||o[m]()!==o||e&&t[m].name!==m})}},43885:function(L,r,n){"use strict";var e=n(92648).start,a=n(90012);L.exports=a("trimStart")?function(){function t(){return e(this)}return t}():"".trimStart},92648:function(L,r,n){"use strict";var e=n(67250),a=n(16952),t=n(12605),o=n(4198),m=e("".replace),S=RegExp("^["+o+"]+"),y=RegExp("(^|[^"+o+"])["+o+"]+$"),k=function(p){return function(i){var c=t(a(i));return p&1&&(c=m(c,S,"")),p&2&&(c=m(c,y,"$1")),c}};L.exports={start:k(1),end:k(2),trim:k(3)}},52357:function(L,r,n){"use strict";var e=n(83141),a=n(40033),t=n(16210),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})},52360:function(L,r,n){"use strict";var e=n(91495),a=n(4009),t=n(24697),o=n(55938);L.exports=function(){var m=a("Symbol"),S=m&&m.prototype,y=S&&S.valueOf,k=t("toPrimitive");S&&!S[k]&&o(S,k,function(V){return e(y,this)},{arity:1})}},66570:function(L,r,n){"use strict";var e=n(52357);L.exports=e&&!!Symbol.for&&!!Symbol.keyFor},60375:function(L,r,n){"use strict";var e=n(16210),a=n(61267),t=n(75754),o=n(55747),m=n(45299),S=n(40033),y=n(5315),k=n(54602),V=n(12689),p=n(24986),i=n(27770),c=n(81663),s=e.setImmediate,l=e.clearImmediate,d=e.process,f=e.Dispatch,u=e.Function,C=e.MessageChannel,b=e.String,v=0,h={},g="onreadystatechange",N,x,B,I;S(function(){N=e.location});var T=function(M){if(m(h,M)){var P=h[M];delete h[M],P()}},E=function(M){return function(){T(M)}},w=function(M){T(M.data)},A=function(M){e.postMessage(b(M),N.protocol+"//"+N.host)};(!s||!l)&&(s=function(){function O(M){p(arguments.length,1);var P=o(M)?M:u(M),R=k(arguments,1);return h[++v]=function(){a(P,void 0,R)},x(v),v}return O}(),l=function(){function O(M){delete h[M]}return O}(),c?x=function(M){d.nextTick(E(M))}:f&&f.now?x=function(M){f.now(E(M))}:C&&!i?(B=new C,I=B.port2,B.port1.onmessage=w,x=t(I.postMessage,I)):e.addEventListener&&o(e.postMessage)&&!e.importScripts&&N&&N.protocol!=="file:"&&!S(A)?(x=A,e.addEventListener("message",w,!1)):g in V("script")?x=function(M){y.appendChild(V("script"))[g]=function(){y.removeChild(this),T(M)}}:x=function(M){setTimeout(E(M),0)}),L.exports={set:s,clear:l}},46438:function(L,r,n){"use strict";var e=n(67250);L.exports=e(1 .valueOf)},13912:function(L,r,n){"use strict";var e=n(61365),a=Math.max,t=Math.min;L.exports=function(o,m){var S=e(o);return S<0?a(S+m,0):t(S,m)}},61484:function(L,r,n){"use strict";var e=n(24843),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)}},43806:function(L,r,n){"use strict";var e=n(61365),a=n(10188),t=RangeError;L.exports=function(o){if(o===void 0)return 0;var m=e(o),S=a(m);if(m!==S)throw new t("Wrong length or index");return S}},57591:function(L,r,n){"use strict";var e=n(37457),a=n(16952);L.exports=function(t){return e(a(t))}},61365:function(L,r,n){"use strict";var e=n(21119);L.exports=function(a){var t=+a;return t!==t||t===0?0:e(t)}},10188:function(L,r,n){"use strict";var e=n(61365),a=Math.min;L.exports=function(t){var o=e(t);return o>0?a(o,9007199254740991):0}},46771:function(L,r,n){"use strict";var e=n(16952),a=Object;L.exports=function(t){return a(e(t))}},56043:function(L,r,n){"use strict";var e=n(16140),a=RangeError;L.exports=function(t,o){var m=e(t);if(m%o)throw new a("Wrong offset");return m}},16140:function(L,r,n){"use strict";var e=n(61365),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}},24843:function(L,r,n){"use strict";var e=n(91495),a=n(77568),t=n(71399),o=n(78060),m=n(13396),S=n(24697),y=TypeError,k=S("toPrimitive");L.exports=function(V,p){if(!a(V)||t(V))return V;var i=o(V,k),c;if(i){if(p===void 0&&(p="default"),c=e(i,V,p),!a(c)||t(c))return c;throw new y("Can't convert object to primitive value")}return p===void 0&&(p="number"),m(V,p)}},767:function(L,r,n){"use strict";var e=n(24843),a=n(71399);L.exports=function(t){var o=e(t,"string");return a(o)?o:o+""}},2650:function(L,r,n){"use strict";var e=n(24697),a=e("toStringTag"),t={};t[a]="z",L.exports=String(t)==="[object z]"},12605:function(L,r,n){"use strict";var e=n(2281),a=String;L.exports=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(t)}},15409: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}},89393:function(L){"use strict";var r=String;L.exports=function(n){try{return r(n)}catch(e){return"Object"}}},80185:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(58310),m=n(86563),S=n(4246),y=n(37336),k=n(60077),V=n(87458),p=n(37909),i=n(5841),c=n(10188),s=n(43806),l=n(56043),d=n(15409),f=n(767),u=n(45299),C=n(2281),b=n(77568),v=n(71399),h=n(80674),g=n(21287),N=n(76649),x=n(37310).f,B=n(3805),I=n(22603).forEach,T=n(58491),E=n(73936),w=n(74595),A=n(27193),O=n(78008),M=n(5419),P=n(5781),R=M.get,F=M.set,_=M.enforce,U=w.f,W=A.f,$=a.RangeError,G=y.ArrayBuffer,oe=G.prototype,X=y.DataView,Ce=S.NATIVE_ARRAY_BUFFER_VIEWS,me=S.TYPED_ARRAY_TAG,ne=S.TypedArray,ce=S.TypedArrayPrototype,q=S.isTypedArray,ae="BYTES_PER_ELEMENT",J="Wrong length",Y=function(fe,Le){E(fe,Le,{configurable:!0,get:function(){function D(){return R(this)[Le]}return D}()})},Q=function(fe){var Le;return g(oe,fe)||(Le=C(fe))==="ArrayBuffer"||Le==="SharedArrayBuffer"},Z=function(fe,Le){return q(fe)&&!v(Le)&&Le in fe&&i(+Le)&&Le>=0},te=function(){function ye(fe,Le){return Le=f(Le),Z(fe,Le)?V(2,fe[Le]):W(fe,Le)}return ye}(),se=function(){function ye(fe,Le,D){return Le=f(Le),Z(fe,Le)&&b(D)&&u(D,"value")&&!u(D,"get")&&!u(D,"set")&&!D.configurable&&(!u(D,"writable")||D.writable)&&(!u(D,"enumerable")||D.enumerable)?(fe[Le]=D.value,fe):U(fe,Le,D)}return ye}();o?(Ce||(A.f=te,w.f=se,Y(ce,"buffer"),Y(ce,"byteOffset"),Y(ce,"byteLength"),Y(ce,"length")),e({target:"Object",stat:!0,forced:!Ce},{getOwnPropertyDescriptor:te,defineProperty:se}),L.exports=function(ye,fe,Le){var D=ye.match(/\d+/)[0]/8,re=ye+(Le?"Clamped":"")+"Array",de="get"+ye,ve="set"+ye,pe=a[re],Be=pe,ke=Be&&Be.prototype,Ee={},Re=function(H,ue){var Ve=R(H);return Ve.view[de](ue*D+Ve.byteOffset,!0)},_e=function(H,ue,Ve){var be=R(H);be.view[ve](ue*D+be.byteOffset,Le?d(Ve):Ve,!0)},Pe=function(H,ue){U(H,ue,{get:function(){function Ve(){return Re(this,ue)}return Ve}(),set:function(){function Ve(be){return _e(this,ue,be)}return Ve}(),enumerable:!0})};Ce?m&&(Be=fe(function(Se,H,ue,Ve){return k(Se,ke),P(function(){return b(H)?Q(H)?Ve!==void 0?new pe(H,l(ue,D),Ve):ue!==void 0?new pe(H,l(ue,D)):new pe(H):q(H)?O(Be,H):t(B,Be,H):new pe(s(H))}(),Se,Be)}),N&&N(Be,ne),I(x(pe),function(Se){Se in Be||p(Be,Se,pe[Se])}),Be.prototype=ke):(Be=fe(function(Se,H,ue,Ve){k(Se,ke);var be=0,Ie=0,we,Me,Ae;if(!b(H))Ae=s(H),Me=Ae*D,we=new G(Me);else if(Q(H)){we=H,Ie=l(ue,D);var De=H.byteLength;if(Ve===void 0){if(De%D)throw new $(J);if(Me=De-Ie,Me<0)throw new $(J)}else if(Me=c(Ve)*D,Me+Ie>De)throw new $(J);Ae=Me/D}else return q(H)?O(Be,H):t(B,Be,H);for(F(Se,{buffer:we,byteOffset:Ie,byteLength:Me,length:Ae,view:new X(we)});be1?arguments[1]:void 0,C=u!==void 0,b=y(d),v,h,g,N,x,B,I,T;if(b&&!k(b))for(I=S(d,b),T=I.next,d=[];!(B=a(T,I)).done;)d.push(B.value);for(C&&f>2&&(u=e(u,arguments[2])),h=m(d),g=new(p(l))(h),N=V(g),v=0;h>v;v++)x=C?u(d[v],v):d[v],g[v]=N?i(x):+x;return g}return c}()},31082:function(L,r,n){"use strict";var e=n(4246),a=n(28987),t=e.aTypedArrayConstructor,o=e.getTypedArrayConstructor;L.exports=function(m){return t(a(m,o(m)))}},16738:function(L,r,n){"use strict";var e=n(67250),a=0,t=Math.random(),o=e(1 .toString);L.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+o(++a+t,36)}},1062:function(L,r,n){"use strict";var e=n(52357);L.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},80944:function(L,r,n){"use strict";var e=n(58310),a=n(40033);L.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},24986:function(L){"use strict";var r=TypeError;L.exports=function(n,e){if(n=51||!a(function(){var u=[];return u[s]=!1,u.concat()[0]!==u}),d=function(C){if(!o(C))return!1;var b=C[s];return b!==void 0?!!b:t(C)},f=!l||!p("concat");e({target:"Array",proto:!0,arity:1,forced:f},{concat:function(){function u(C){var b=m(this),v=V(b,0),h=0,g,N,x,B,I;for(g=-1,x=arguments.length;g1?arguments[1]:void 0)}return m}()})},68933:function(L,r,n){"use strict";var e=n(63964),a=n(88471),t=n(80575);e({target:"Array",proto:!0},{fill:a}),t("fill")},47830:function(L,r,n){"use strict";var e=n(63964),a=n(22603).filter,t=n(44091),o=t("filter");e({target:"Array",proto:!0,forced:!o},{filter:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},64094:function(L,r,n){"use strict";var e=n(63964),a=n(22603).findIndex,t=n(80575),o="findIndex",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{findIndex:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},13455:function(L,r,n){"use strict";var e=n(63964),a=n(22603).find,t=n(80575),o="find",m=!0;o in[]&&Array(1)[o](function(){m=!1}),e({target:"Array",proto:!0,forced:m},{find:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),t(o)},32384:function(L,r,n){"use strict";var e=n(63964),a=n(65561),t=n(10320),o=n(46771),m=n(24760),S=n(57823);e({target:"Array",proto:!0},{flatMap:function(){function y(k){var V=o(this),p=m(V),i;return t(k),i=S(V,0),i.length=a(i,V,V,p,0,1,k,arguments.length>1?arguments[1]:void 0),i}return y}()})},61915:function(L,r,n){"use strict";var e=n(63964),a=n(65561),t=n(46771),o=n(24760),m=n(61365),S=n(57823);e({target:"Array",proto:!0},{flat:function(){function y(){var k=arguments.length?arguments[0]:void 0,V=t(this),p=o(V),i=S(V,0);return i.length=a(i,V,V,p,0,k===void 0?1:m(k)),i}return y}()})},25579:function(L,r,n){"use strict";var e=n(63964),a=n(35601);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},63532:function(L,r,n){"use strict";var e=n(63964),a=n(73174),t=n(92490),o=!t(function(m){Array.from(m)});e({target:"Array",stat:!0,forced:o},{from:a})},33425:function(L,r,n){"use strict";var e=n(63964),a=n(14211).includes,t=n(40033),o=n(80575),m=t(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:m},{includes:function(){function S(y){return a(this,y,arguments.length>1?arguments[1]:void 0)}return S}()}),o("includes")},43894:function(L,r,n){"use strict";var e=n(63964),a=n(71138),t=n(14211).indexOf,o=n(55528),m=a([].indexOf),S=!!m&&1/m([1],1,-0)<0,y=S||!o("indexOf");e({target:"Array",proto:!0,forced:y},{indexOf:function(){function k(V){var p=arguments.length>1?arguments[1]:void 0;return S?m(this,V,p)||0:t(this,V,p)}return k}()})},99636:function(L,r,n){"use strict";var e=n(63964),a=n(37386);e({target:"Array",stat:!0},{isArray:a})},34570:function(L,r,n){"use strict";var e=n(57591),a=n(80575),t=n(83967),o=n(5419),m=n(74595).f,S=n(65574),y=n(5959),k=n(4493),V=n(58310),p="Array Iterator",i=o.set,c=o.getterFor(p);L.exports=S(Array,"Array",function(l,d){i(this,{type:p,target:e(l),index:0,kind:d})},function(){var l=c(this),d=l.target,f=l.index++;if(!d||f>=d.length)return l.target=null,y(void 0,!0);switch(l.kind){case"keys":return y(f,!1);case"values":return y(d[f],!1)}return y([f,d[f]],!1)},"values");var s=t.Arguments=t.Array;if(a("keys"),a("values"),a("entries"),!k&&V&&s.name!=="values")try{m(s,"name",{value:"values"})}catch(l){}},94432:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37457),o=n(57591),m=n(55528),S=a([].join),y=t!==Object,k=y||!m("join",",");e({target:"Array",proto:!0,forced:k},{join:function(){function V(p){return S(o(this),p===void 0?",":p)}return V}()})},24683:function(L,r,n){"use strict";var e=n(63964),a=n(1325);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},69984:function(L,r,n){"use strict";var e=n(63964),a=n(22603).map,t=n(44091),o=t("map");e({target:"Array",proto:!0,forced:!o},{map:function(){function m(S){return a(this,S,arguments.length>1?arguments[1]:void 0)}return m}()})},32089:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(1031),o=n(60102),m=Array,S=a(function(){function y(){}return!(m.of.call(y)instanceof y)});e({target:"Array",stat:!0,forced:S},{of:function(){function y(){for(var k=0,V=arguments.length,p=new(t(this)?this:m)(V);V>k;)o(p,k,arguments[k++]);return p.length=V,p}return y}()})},29645:function(L,r,n){"use strict";var e=n(63964),a=n(56844).right,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduceRight");e({target:"Array",proto:!0,forced:y},{reduceRight:function(){function k(V){return a(this,V,arguments.length,arguments.length>1?arguments[1]:void 0)}return k}()})},60206:function(L,r,n){"use strict";var e=n(63964),a=n(56844).left,t=n(55528),o=n(83141),m=n(81663),S=!m&&o>79&&o<83,y=S||!t("reduce");e({target:"Array",proto:!0,forced:y},{reduce:function(){function k(V){var p=arguments.length;return a(this,V,p,p>1?arguments[1]:void 0)}return k}()})},4788:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(37386),o=a([].reverse),m=[1,2];e({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){function S(){return t(this)&&(this.length=this.length),o(this)}return S}()})},58672:function(L,r,n){"use strict";var e=n(63964),a=n(37386),t=n(1031),o=n(77568),m=n(13912),S=n(24760),y=n(57591),k=n(60102),V=n(24697),p=n(44091),i=n(54602),c=p("slice"),s=V("species"),l=Array,d=Math.max;e({target:"Array",proto:!0,forced:!c},{slice:function(){function f(u,C){var b=y(this),v=S(b),h=m(u,v),g=m(C===void 0?v:C,v),N,x,B;if(a(b)&&(N=b.constructor,t(N)&&(N===l||a(N.prototype))?N=void 0:o(N)&&(N=N[s],N===null&&(N=void 0)),N===l||N===void 0))return i(b,h,g);for(x=new(N===void 0?l:N)(d(g-h,0)),B=0;h1?arguments[1]:void 0)}return m}()})},48968:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(10320),o=n(46771),m=n(24760),S=n(95108),y=n(12605),k=n(40033),V=n(90274),p=n(55528),i=n(50503),c=n(79725),s=n(83141),l=n(44981),d=[],f=a(d.sort),u=a(d.push),C=k(function(){d.sort(void 0)}),b=k(function(){d.sort(null)}),v=p("sort"),h=!k(function(){if(s)return s<70;if(!(i&&i>3)){if(c)return!0;if(l)return l<603;var x="",B,I,T,E;for(B=65;B<76;B++){switch(I=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:T=3;break;case 68:case 71:T=4;break;default:T=2}for(E=0;E<47;E++)d.push({k:I+E,v:T})}for(d.sort(function(w,A){return A.v-w.v}),E=0;Ey(T)?1:-1}};e({target:"Array",proto:!0,forced:g},{sort:function(){function x(B){B!==void 0&&t(B);var I=o(this);if(h)return B===void 0?f(I):f(I,B);var T=[],E=m(I),w,A;for(A=0;Ab-N+g;B--)p(C,B-1)}else if(g>N)for(B=b-N;B>v;B--)I=B+N-1,T=B+g-1,I in C?C[T]=C[I]:p(C,T);for(B=0;B9490626562425156e-8?o(p)+S:a(p-1+m(p-1)*m(p+1))}return k}()})},59660:function(L,r,n){"use strict";var e=n(63964),a=Math.asinh,t=Math.log,o=Math.sqrt;function m(y){var k=+y;return!isFinite(k)||k===0?k:k<0?-m(-k):t(k+o(k*k+1))}var S=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:S},{asinh:m})},15383:function(L,r,n){"use strict";var e=n(63964),a=Math.atanh,t=Math.log,o=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:o},{atanh:function(){function m(S){var y=+S;return y===0?y:t((1+y)/(1-y))/2}return m}()})},92866:function(L,r,n){"use strict";var e=n(63964),a=n(22172),t=Math.abs,o=Math.pow;e({target:"Math",stat:!0},{cbrt:function(){function m(S){var y=+S;return a(y)*o(t(y),.3333333333333333)}return m}()})},86107:function(L,r,n){"use strict";var e=n(63964),a=Math.floor,t=Math.log,o=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(){function m(S){var y=S>>>0;return y?31-a(t(y+.5)*o):32}return m}()})},29248:function(L,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.cosh,o=Math.abs,m=Math.E,S=!t||t(710)===1/0;e({target:"Math",stat:!0,forced:S},{cosh:function(){function y(k){var V=a(o(k)-1)+1;return(V+1/(V*m*m))*(m/2)}return y}()})},52540:function(L,r,n){"use strict";var e=n(63964),a=n(82040);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},79007:function(L,r,n){"use strict";var e=n(63964),a=n(95867);e({target:"Math",stat:!0},{fround:a})},77199:function(L,r,n){"use strict";var e=n(63964),a=Math.hypot,t=Math.abs,o=Math.sqrt,m=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(){function S(y,k){for(var V=0,p=0,i=arguments.length,c=0,s,l;p0?(l=s/c,V+=l*l):V+=s;return c===1/0?1/0:c*o(V)}return S}()})},6522:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=Math.imul,o=a(function(){return t(4294967295,5)!==-5||t.length!==2});e({target:"Math",stat:!0,forced:o},{imul:function(){function m(S,y){var k=65535,V=+S,p=+y,i=k&V,c=k&p;return 0|i*c+((k&V>>>16)*c+i*(k&p>>>16)<<16>>>0)}return m}()})},95542:function(L,r,n){"use strict";var e=n(63964),a=n(75002);e({target:"Math",stat:!0},{log10:a})},2966:function(L,r,n){"use strict";var e=n(63964),a=n(90874);e({target:"Math",stat:!0},{log1p:a})},20997:function(L,r,n){"use strict";var e=n(63964),a=Math.log,t=Math.LN2;e({target:"Math",stat:!0},{log2:function(){function o(m){return a(m)/t}return o}()})},57400:function(L,r,n){"use strict";var e=n(63964),a=n(22172);e({target:"Math",stat:!0},{sign:a})},45571:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(82040),o=Math.abs,m=Math.exp,S=Math.E,y=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:y},{sinh:function(){function k(V){var p=+V;return o(p)<1?(t(p)-t(-p))/2:(m(p-1)-m(-p-1))*(S/2)}return k}()})},54800:function(L,r,n){"use strict";var e=n(63964),a=n(82040),t=Math.exp;e({target:"Math",stat:!0},{tanh:function(){function o(m){var S=+m,y=a(S),k=a(-S);return y===1/0?1:k===1/0?-1:(y-k)/(t(S)+t(-S))}return o}()})},15709:function(L,r,n){"use strict";var e=n(84925);e(Math,"Math",!0)},76059:function(L,r,n){"use strict";var e=n(63964),a=n(21119);e({target:"Math",stat:!0},{trunc:a})},96614:function(L,r,n){"use strict";var e=n(63964),a=n(4493),t=n(58310),o=n(16210),m=n(61765),S=n(67250),y=n(41314),k=n(45299),V=n(5781),p=n(21287),i=n(71399),c=n(24843),s=n(40033),l=n(37310).f,d=n(27193).f,f=n(74595).f,u=n(46438),C=n(92648).trim,b="Number",v=o[b],h=m[b],g=v.prototype,N=o.TypeError,x=S("".slice),B=S("".charCodeAt),I=function(P){var R=c(P,"number");return typeof R=="bigint"?R:T(R)},T=function(P){var R=c(P,"number"),F,_,U,W,$,G,oe,X;if(i(R))throw new N("Cannot convert a Symbol value to a number");if(typeof R=="string"&&R.length>2){if(R=C(R),F=B(R,0),F===43||F===45){if(_=B(R,2),_===88||_===120)return NaN}else if(F===48){switch(B(R,1)){case 66:case 98:U=2,W=49;break;case 79:case 111:U=8,W=55;break;default:return+R}for($=x(R,2),G=$.length,oe=0;oeW)return NaN;return parseInt($,U)}}return+R},E=y(b,!v(" 0o1")||!v("0b1")||v("+0x1")),w=function(P){return p(g,P)&&s(function(){u(P)})},A=function(){function M(P){var R=arguments.length<1?0:v(I(P));return w(this)?V(Object(R),this,A):R}return M}();A.prototype=g,E&&!a&&(g.constructor=A),e({global:!0,constructor:!0,wrap:!0,forced:E},{Number:A});var O=function(P,R){for(var F=t?l(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),_=0,U;F.length>_;_++)k(R,U=F[_])&&!k(P,U)&&f(P,U,d(R,U))};a&&h&&O(m[b],h),(E||a)&&O(m[b],v)},324:function(L,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},90426:function(L,r,n){"use strict";var e=n(63964),a=n(3294);e({target:"Number",stat:!0},{isFinite:a})},95443:function(L,r,n){"use strict";var e=n(63964),a=n(5841);e({target:"Number",stat:!0},{isInteger:a})},87968:function(L,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0},{isNaN:function(){function a(t){return t!==t}return a}()})},55007:function(L,r,n){"use strict";var e=n(63964),a=n(5841),t=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(){function o(m){return a(m)&&t(m)<=9007199254740991}return o}()})},55323:function(L,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},13521:function(L,r,n){"use strict";var e=n(63964);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},5006:function(L,r,n){"use strict";var e=n(63964),a=n(28506);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},99009:function(L,r,n){"use strict";var e=n(63964),a=n(13693);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},85770:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(61365),o=n(46438),m=n(62443),S=n(40033),y=RangeError,k=String,V=Math.floor,p=a(m),i=a("".slice),c=a(1 .toFixed),s=function(v,h,g){return h===0?g:h%2===1?s(v,h-1,g*v):s(v*v,h/2,g)},l=function(v){for(var h=0,g=v;g>=4096;)h+=12,g/=4096;for(;g>=2;)h+=1,g/=2;return h},d=function(v,h,g){for(var N=-1,x=g;++N<6;)x+=h*v[N],v[N]=x%1e7,x=V(x/1e7)},f=function(v,h){for(var g=6,N=0;--g>=0;)N+=v[g],v[g]=V(N/h),N=N%h*1e7},u=function(v){for(var h=6,g="";--h>=0;)if(g!==""||h===0||v[h]!==0){var N=k(v[h]);g=g===""?N:g+p("0",7-N.length)+N}return g},C=S(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!S(function(){c({})});e({target:"Number",proto:!0,forced:C},{toFixed:function(){function b(v){var h=o(this),g=t(v),N=[0,0,0,0,0,0],x="",B="0",I,T,E,w;if(g<0||g>20)throw new y("Incorrect fraction digits");if(h!==h)return"NaN";if(h<=-1e21||h>=1e21)return k(h);if(h<0&&(x="-",h=-h),h>1e-21)if(I=l(h*s(2,69,1))-69,T=I<0?h*s(2,-I,1):h/s(2,I,1),T*=4503599627370496,I=52-I,I>0){for(d(N,0,T),E=g;E>=7;)d(N,1e7,0),E-=7;for(d(N,s(10,E,1),0),E=I-1;E>=23;)f(N,8388608),E-=23;f(N,1<0?(w=B.length,B=x+(w<=g?"0."+p("0",g-w)+B:i(B,0,w-g)+"."+i(B,w-g))):B=x+B,B}return b}()})},23532:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(40033),o=n(46438),m=a(1 .toPrecision),S=t(function(){return m(1,void 0)!=="1"})||!t(function(){m({})});e({target:"Number",proto:!0,forced:S},{toPrecision:function(){function y(k){return k===void 0?m(o(this)):m(o(this),k)}return y}()})},87119:function(L,r,n){"use strict";var e=n(63964),a=n(41143);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},78618:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(80674);e({target:"Object",stat:!0,sham:!a},{create:t})},27129:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(){function y(k,V){S.f(m(this),k,{get:o(V),enumerable:!0,configurable:!0})}return y}()})},31943:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(24239).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!a},{defineProperties:t})},3579:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(74595).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!a},{defineProperty:t})},97397:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(10320),m=n(46771),S=n(74595);a&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(){function y(k,V){S.f(m(this),k,{set:o(V),enumerable:!0,configurable:!0})}return y}()})},85028:function(L,r,n){"use strict";var e=n(63964),a=n(70915).entries;e({target:"Object",stat:!0},{entries:function(){function t(o){return a(o)}return t}()})},8225:function(L,r,n){"use strict";var e=n(63964),a=n(50730),t=n(40033),o=n(77568),m=n(81969).onFreeze,S=Object.freeze,y=t(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!a},{freeze:function(){function k(V){return S&&o(V)?S(m(V)):V}return k}()})},43331:function(L,r,n){"use strict";var e=n(63964),a=n(49450),t=n(60102);e({target:"Object",stat:!0},{fromEntries:function(){function o(m){var S={};return a(m,function(y,k){t(S,y,k)},{AS_ENTRIES:!0}),S}return o}()})},62289:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(57591),o=n(27193).f,m=n(58310),S=!m||a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getOwnPropertyDescriptor:function(){function y(k,V){return o(t(k),V)}return y}()})},56196:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(97921),o=n(57591),m=n(27193),S=n(60102);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(){function y(k){for(var V=o(k),p=m.f,i=t(V),c={},s=0,l,d;i.length>s;)d=p(V,l=i[s++]),d!==void 0&&S(c,l,d);return c}return y}()})},2950:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(81644).f,o=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:t})},28603:function(L,r,n){"use strict";var e=n(63964),a=n(52357),t=n(40033),o=n(89235),m=n(46771),S=!a||t(function(){o.f(1)});e({target:"Object",stat:!0,forced:S},{getOwnPropertySymbols:function(){function y(k){var V=o.f;return V?V(m(k)):[]}return y}()})},44205:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(46771),o=n(36917),m=n(9225),S=a(function(){o(1)});e({target:"Object",stat:!0,forced:S,sham:!m},{getPrototypeOf:function(){function y(k){return o(t(k))}return y}()})},83186:function(L,r,n){"use strict";var e=n(63964),a=n(81834);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},76065:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isFrozen,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isFrozen:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},13411:function(L,r,n){"use strict";var e=n(63964),a=n(40033),t=n(77568),o=n(7462),m=n(3782),S=Object.isSealed,y=m||a(function(){S(1)});e({target:"Object",stat:!0,forced:y},{isSealed:function(){function k(V){return!t(V)||m&&o(V)==="ArrayBuffer"?!0:S?S(V):!1}return k}()})},76882:function(L,r,n){"use strict";var e=n(63964),a=n(5700);e({target:"Object",stat:!0},{is:a})},26634:function(L,r,n){"use strict";var e=n(63964),a=n(46771),t=n(18450),o=n(40033),m=o(function(){t(1)});e({target:"Object",stat:!0,forced:m},{keys:function(){function S(y){return t(a(y))}return S}()})},53118:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.get;while(p=S(p))}return k}()})},42514:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(57377),o=n(46771),m=n(767),S=n(36917),y=n(27193).f;a&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(){function k(V){var p=o(this),i=m(V),c;do if(c=y(p,i))return c.set;while(p=S(p))}return k}()})},84353:function(L,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.preventExtensions,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{preventExtensions:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},62987:function(L,r,n){"use strict";var e=n(63964),a=n(77568),t=n(81969).onFreeze,o=n(50730),m=n(40033),S=Object.seal,y=m(function(){S(1)});e({target:"Object",stat:!0,forced:y,sham:!o},{seal:function(){function k(V){return S&&a(V)?S(t(V)):V}return k}()})},48993:function(L,r,n){"use strict";var e=n(63964),a=n(76649);e({target:"Object",stat:!0},{setPrototypeOf:a})},52917:function(L,r,n){"use strict";var e=n(2650),a=n(55938),t=n(2509);e||a(Object.prototype,"toString",t,{unsafe:!0})},4972:function(L,r,n){"use strict";var e=n(63964),a=n(70915).values;e({target:"Object",stat:!0},{values:function(){function t(o){return a(o)}return t}()})},28913:function(L,r,n){"use strict";var e=n(63964),a=n(28506);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},36382:function(L,r,n){"use strict";var e=n(63964),a=n(13693);e({global:!0,forced:parseInt!==a},{parseInt:a})},48865:function(L,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{all:function(){function k(V){var p=this,i=o.f(p),c=i.resolve,s=i.reject,l=m(function(){var d=t(p.resolve),f=[],u=0,C=1;S(V,function(b){var v=u++,h=!1;C++,a(d,p,b).then(function(g){h||(h=!0,f[v]=g,--C||c(f))},s)}),--C||c(f)});return l.error&&s(l.value),i.promise}return k}()})},70641:function(L,r,n){"use strict";var e=n(63964),a=n(4493),t=n(74854).CONSTRUCTOR,o=n(67512),m=n(4009),S=n(55747),y=n(55938),k=o&&o.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(){function p(i){return this.then(void 0,i)}return p}()}),!a&&S(o)){var V=m("Promise").prototype.catch;k.catch!==V&&y(k,"catch",V,{unsafe:!0})}},75946:function(L,r,n){"use strict";var e=n(63964),a=n(4493),t=n(81663),o=n(16210),m=n(91495),S=n(55938),y=n(76649),k=n(84925),V=n(58491),p=n(10320),i=n(55747),c=n(77568),s=n(60077),l=n(28987),d=n(60375).set,f=n(37713),u=n(72259),C=n(10729),b=n(9547),v=n(5419),h=n(67512),g=n(74854),N=n(81837),x="Promise",B=g.CONSTRUCTOR,I=g.REJECTION_EVENT,T=g.SUBCLASSING,E=v.getterFor(x),w=v.set,A=h&&h.prototype,O=h,M=A,P=o.TypeError,R=o.document,F=o.process,_=N.f,U=_,W=!!(R&&R.createEvent&&o.dispatchEvent),$="unhandledrejection",G="rejectionhandled",oe=0,X=1,Ce=2,me=1,ne=2,ce,q,ae,J,Y=function(ve){var pe;return c(ve)&&i(pe=ve.then)?pe:!1},Q=function(ve,pe){var Be=pe.value,ke=pe.state===X,Ee=ke?ve.ok:ve.fail,Re=ve.resolve,_e=ve.reject,Pe=ve.domain,Ne,Se,H;try{Ee?(ke||(pe.rejection===ne&&fe(pe),pe.rejection=me),Ee===!0?Ne=Be:(Pe&&Pe.enter(),Ne=Ee(Be),Pe&&(Pe.exit(),H=!0)),Ne===ve.promise?_e(new P("Promise-chain cycle")):(Se=Y(Ne))?m(Se,Ne,Re,_e):Re(Ne)):_e(Be)}catch(ue){Pe&&!H&&Pe.exit(),_e(ue)}},Z=function(ve,pe){ve.notified||(ve.notified=!0,f(function(){for(var Be=ve.reactions,ke;ke=Be.get();)Q(ke,ve);ve.notified=!1,pe&&!ve.rejection&&se(ve)}))},te=function(ve,pe,Be){var ke,Ee;W?(ke=R.createEvent("Event"),ke.promise=pe,ke.reason=Be,ke.initEvent(ve,!1,!0),o.dispatchEvent(ke)):ke={promise:pe,reason:Be},!I&&(Ee=o["on"+ve])?Ee(ke):ve===$&&u("Unhandled promise rejection",Be)},se=function(ve){m(d,o,function(){var pe=ve.facade,Be=ve.value,ke=ye(ve),Ee;if(ke&&(Ee=C(function(){t?F.emit("unhandledRejection",Be,pe):te($,pe,Be)}),ve.rejection=t||ye(ve)?ne:me,Ee.error))throw Ee.value})},ye=function(ve){return ve.rejection!==me&&!ve.parent},fe=function(ve){m(d,o,function(){var pe=ve.facade;t?F.emit("rejectionHandled",pe):te(G,pe,ve.value)})},Le=function(ve,pe,Be){return function(ke){ve(pe,ke,Be)}},D=function(ve,pe,Be){ve.done||(ve.done=!0,Be&&(ve=Be),ve.value=pe,ve.state=Ce,Z(ve,!0))},re=function(ve,pe,Be){if(!ve.done){ve.done=!0,Be&&(ve=Be);try{if(ve.facade===pe)throw new P("Promise can't be resolved itself");var ke=Y(pe);ke?f(function(){var Ee={done:!1};try{m(ke,pe,Le(re,Ee,ve),Le(D,Ee,ve))}catch(Re){D(Ee,Re,ve)}}):(ve.value=pe,ve.state=X,Z(ve,!1))}catch(Ee){D({done:!1},Ee,ve)}}};if(B&&(O=function(){function de(ve){s(this,M),p(ve),m(ce,this);var pe=E(this);try{ve(Le(re,pe),Le(D,pe))}catch(Be){D(pe,Be)}}return de}(),M=O.prototype,ce=function(){function de(ve){w(this,{type:x,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:oe,value:null})}return de}(),ce.prototype=S(M,"then",function(){function de(ve,pe){var Be=E(this),ke=_(l(this,O));return Be.parent=!0,ke.ok=i(ve)?ve:!0,ke.fail=i(pe)&&pe,ke.domain=t?F.domain:void 0,Be.state===oe?Be.reactions.add(ke):f(function(){Q(ke,Be)}),ke.promise}return de}()),q=function(){var ve=new ce,pe=E(ve);this.promise=ve,this.resolve=Le(re,pe),this.reject=Le(D,pe)},N.f=_=function(ve){return ve===O||ve===ae?new q(ve):U(ve)},!a&&i(h)&&A!==Object.prototype)){J=A.then,T||S(A,"then",function(){function de(ve,pe){var Be=this;return new O(function(ke,Ee){m(J,Be,ke,Ee)}).then(ve,pe)}return de}(),{unsafe:!0});try{delete A.constructor}catch(de){}y&&y(A,M)}e({global:!0,constructor:!0,wrap:!0,forced:B},{Promise:O}),k(O,x,!1,!0),V(x)},69861:function(L,r,n){"use strict";var e=n(63964),a=n(4493),t=n(67512),o=n(40033),m=n(4009),S=n(55747),y=n(28987),k=n(66628),V=n(55938),p=t&&t.prototype,i=!!t&&o(function(){p.finally.call({then:function(){function s(){}return s}()},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:i},{finally:function(){function s(l){var d=y(this,m("Promise")),f=S(l);return this.then(f?function(u){return k(d,l()).then(function(){return u})}:l,f?function(u){return k(d,l()).then(function(){throw u})}:l)}return s}()}),!a&&S(t)){var c=m("Promise").prototype.finally;p.finally!==c&&V(p,"finally",c,{unsafe:!0})}},53092:function(L,r,n){"use strict";n(75946),n(48865),n(70641),n(16937),n(41719),n(81702)},16937:function(L,r,n){"use strict";var e=n(63964),a=n(91495),t=n(10320),o=n(81837),m=n(10729),S=n(49450),y=n(48199);e({target:"Promise",stat:!0,forced:y},{race:function(){function k(V){var p=this,i=o.f(p),c=i.reject,s=m(function(){var l=t(p.resolve);S(V,function(d){a(l,p,d).then(i.resolve,c)})});return s.error&&c(s.value),i.promise}return k}()})},41719:function(L,r,n){"use strict";var e=n(63964),a=n(81837),t=n(74854).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:t},{reject:function(){function o(m){var S=a.f(this),y=S.reject;return y(m),S.promise}return o}()})},81702:function(L,r,n){"use strict";var e=n(63964),a=n(4009),t=n(4493),o=n(67512),m=n(74854).CONSTRUCTOR,S=n(66628),y=a("Promise"),k=t&&!m;e({target:"Promise",stat:!0,forced:t||m},{resolve:function(){function V(p){return S(k&&this===y?o:this,p)}return V}()})},29674:function(L,r,n){"use strict";var e=n(63964),a=n(61267),t=n(10320),o=n(30365),m=n(40033),S=!m(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:S},{apply:function(){function y(k,V,p){return a(t(k),V,o(p))}return y}()})},81543:function(L,r,n){"use strict";var e=n(63964),a=n(4009),t=n(61267),o=n(66284),m=n(32606),S=n(30365),y=n(77568),k=n(80674),V=n(40033),p=a("Reflect","construct"),i=Object.prototype,c=[].push,s=V(function(){function f(){}return!(p(function(){},[],f)instanceof f)}),l=!V(function(){p(function(){})}),d=s||l;e({target:"Reflect",stat:!0,forced:d,sham:d},{construct:function(){function f(u,C){m(u),S(C);var b=arguments.length<3?u:m(arguments[2]);if(l&&!s)return p(u,C,b);if(u===b){switch(C.length){case 0:return new u;case 1:return new u(C[0]);case 2:return new u(C[0],C[1]);case 3:return new u(C[0],C[1],C[2]);case 4:return new u(C[0],C[1],C[2],C[3])}var v=[null];return t(c,v,C),new(t(o,u,v))}var h=b.prototype,g=k(y(h)?h:i),N=t(u,g,C);return y(N)?N:g}return f}()})},9373:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(767),m=n(74595),S=n(40033),y=S(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:y,sham:!a},{defineProperty:function(){function k(V,p,i){t(V);var c=o(p);t(i);try{return m.f(V,c,i),!0}catch(s){return!1}}return k}()})},45093:function(L,r,n){"use strict";var e=n(63964),a=n(30365),t=n(27193).f;e({target:"Reflect",stat:!0},{deleteProperty:function(){function o(m,S){var y=t(a(m),S);return y&&!y.configurable?!1:delete m[S]}return o}()})},5815:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(30365),o=n(27193);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(){function m(S,y){return o.f(t(S),y)}return m}()})},88527:function(L,r,n){"use strict";var e=n(63964),a=n(30365),t=n(36917),o=n(9225);e({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(){function m(S){return t(a(S))}return m}()})},63074:function(L,r,n){"use strict";var e=n(63964),a=n(91495),t=n(77568),o=n(30365),m=n(98373),S=n(27193),y=n(36917);function k(V,p){var i=arguments.length<3?V:arguments[2],c,s;if(o(V)===i)return V[p];if(c=S.f(V,p),c)return m(c)?c.value:c.get===void 0?void 0:a(c.get,i);if(t(s=y(V)))return k(s,p,i)}e({target:"Reflect",stat:!0},{get:k})},66390:function(L,r,n){"use strict";var e=n(63964);e({target:"Reflect",stat:!0},{has:function(){function a(t,o){return o in t}return a}()})},7784:function(L,r,n){"use strict";var e=n(63964),a=n(30365),t=n(81834);e({target:"Reflect",stat:!0},{isExtensible:function(){function o(m){return a(m),t(m)}return o}()})},50551:function(L,r,n){"use strict";var e=n(63964),a=n(97921);e({target:"Reflect",stat:!0},{ownKeys:a})},76483:function(L,r,n){"use strict";var e=n(63964),a=n(4009),t=n(30365),o=n(50730);e({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(){function m(S){t(S);try{var y=a("Object","preventExtensions");return y&&y(S),!0}catch(k){return!1}}return m}()})},63915:function(L,r,n){"use strict";var e=n(63964),a=n(30365),t=n(35908),o=n(76649);o&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(){function m(S,y){a(S),t(y);try{return o(S,y),!0}catch(k){return!1}}return m}()})},92046:function(L,r,n){"use strict";var e=n(63964),a=n(91495),t=n(30365),o=n(77568),m=n(98373),S=n(40033),y=n(74595),k=n(27193),V=n(36917),p=n(87458);function i(s,l,d){var f=arguments.length<4?s:arguments[3],u=k.f(t(s),l),C,b,v;if(!u){if(o(b=V(s)))return i(b,l,d,f);u=p(0)}if(m(u)){if(u.writable===!1||!o(f))return!1;if(C=k.f(f,l)){if(C.get||C.set||C.writable===!1)return!1;C.value=d,y.f(f,l,C)}else y.f(f,l,p(0,d))}else{if(v=u.set,v===void 0)return!1;a(v,f,d)}return!0}var c=S(function(){var s=function(){},l=y.f(new s,"a",{configurable:!0});return Reflect.set(s.prototype,"a",1,l)!==!1});e({target:"Reflect",stat:!0,forced:c},{set:i})},51454:function(L,r,n){"use strict";var e=n(58310),a=n(16210),t=n(67250),o=n(41314),m=n(5781),S=n(37909),y=n(80674),k=n(37310).f,V=n(21287),p=n(72586),i=n(12605),c=n(73392),s=n(62115),l=n(34550),d=n(55938),f=n(40033),u=n(45299),C=n(5419).enforce,b=n(58491),v=n(24697),h=n(39173),g=n(35688),N=v("match"),x=a.RegExp,B=x.prototype,I=a.SyntaxError,T=t(B.exec),E=t("".charAt),w=t("".replace),A=t("".indexOf),O=t("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,R=/a/g,F=new x(P)!==P,_=s.MISSED_STICKY,U=s.UNSUPPORTED_Y,W=e&&(!F||_||h||g||f(function(){return R[N]=!1,x(P)!==P||x(R)===R||String(x(P,"i"))!=="/a/i"})),$=function(ne){for(var ce=ne.length,q=0,ae="",J=!1,Y;q<=ce;q++){if(Y=E(ne,q),Y==="\\"){ae+=Y+E(ne,++q);continue}!J&&Y==="."?ae+="[\\s\\S]":(Y==="["?J=!0:Y==="]"&&(J=!1),ae+=Y)}return ae},G=function(ne){for(var ce=ne.length,q=0,ae="",J=[],Y=y(null),Q=!1,Z=!1,te=0,se="",ye;q<=ce;q++){if(ye=E(ne,q),ye==="\\")ye+=E(ne,++q);else if(ye==="]")Q=!1;else if(!Q)switch(!0){case ye==="[":Q=!0;break;case ye==="(":if(ae+=ye,O(ne,q+1,q+3)==="?:")continue;T(M,O(ne,q+1))&&(q+=2,Z=!0),te++;continue;case(ye===">"&&Z):if(se===""||u(Y,se))throw new I("Invalid capture group name");Y[se]=!0,J[J.length]=[se,te],Z=!1,se="";continue}Z?se+=ye:ae+=ye}return[ae,J]};if(o("RegExp",W)){for(var oe=function(){function me(ne,ce){var q=V(B,this),ae=p(ne),J=ce===void 0,Y=[],Q=ne,Z,te,se,ye,fe,Le;if(!q&&ae&&J&&ne.constructor===oe)return ne;if((ae||V(B,ne))&&(ne=ne.source,J&&(ce=c(Q))),ne=ne===void 0?"":i(ne),ce=ce===void 0?"":i(ce),Q=ne,h&&"dotAll"in P&&(te=!!ce&&A(ce,"s")>-1,te&&(ce=w(ce,/s/g,""))),Z=ce,_&&"sticky"in P&&(se=!!ce&&A(ce,"y")>-1,se&&U&&(ce=w(ce,/y/g,""))),g&&(ye=G(ne),ne=ye[0],Y=ye[1]),fe=m(x(ne,ce),q?this:B,oe),(te||se||Y.length)&&(Le=C(fe),te&&(Le.dotAll=!0,Le.raw=oe($(ne),Z)),se&&(Le.sticky=!0),Y.length&&(Le.groups=Y)),ne!==Q)try{S(fe,"source",Q===""?"(?:)":Q)}catch(D){}return fe}return me}(),X=k(x),Ce=0;X.length>Ce;)l(oe,x,X[Ce++]);B.constructor=oe,oe.prototype=B,d(a,"RegExp",oe,{constructor:!0})}b("RegExp")},79669:function(L,r,n){"use strict";var e=n(63964),a=n(14489);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},23057:function(L,r,n){"use strict";var e=n(16210),a=n(58310),t=n(73936),o=n(70901),m=n(40033),S=e.RegExp,y=S.prototype,k=a&&m(function(){var V=!0;try{S(".","d")}catch(u){V=!1}var p={},i="",c=V?"dgimsy":"gimsy",s=function(C,b){Object.defineProperty(p,C,{get:function(){function v(){return i+=b,!0}return v}()})},l={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};V&&(l.hasIndices="d");for(var d in l)s(d,l[d]);var f=Object.getOwnPropertyDescriptor(y,"flags").get.call(p);return f!==c||i!==c});k&&t(y,"flags",{configurable:!0,get:o})},57983:function(L,r,n){"use strict";var e=n(70520).PROPER,a=n(55938),t=n(30365),o=n(12605),m=n(40033),S=n(73392),y="toString",k=RegExp.prototype,V=k[y],p=m(function(){return V.call({source:"a",flags:"b"})!=="/a/b"}),i=e&&V.name!==y;(p||i)&&a(k,y,function(){function c(){var s=t(this),l=o(s.source),d=o(S(s));return"/"+l+"/"+d}return c}(),{unsafe:!0})},1963:function(L,r,n){"use strict";var e=n(45150),a=n(41028);e("Set",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},17953:function(L,r,n){"use strict";n(1963)},95309:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(){function o(m){return a(this,"a","name",m)}return o}()})},82256:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("big")},{big:function(){function o(){return a(this,"big","","")}return o}()})},49484:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("blink")},{blink:function(){function o(){return a(this,"blink","","")}return o}()})},38931:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("bold")},{bold:function(){function o(){return a(this,"b","","")}return o}()})},30442:function(L,r,n){"use strict";var e=n(63964),a=n(50233).codeAt;e({target:"String",proto:!0},{codePointAt:function(){function t(o){return a(this,o)}return t}()})},6403:function(L,r,n){"use strict";var e=n(63964),a=n(71138),t=n(27193).f,o=n(10188),m=n(12605),S=n(86213),y=n(16952),k=n(45490),V=n(4493),p=a("".slice),i=Math.min,c=k("endsWith"),s=!V&&!c&&!!function(){var l=t(String.prototype,"endsWith");return l&&!l.writable}();e({target:"String",proto:!0,forced:!s&&!c},{endsWith:function(){function l(d){var f=m(y(this));S(d);var u=arguments.length>1?arguments[1]:void 0,C=f.length,b=u===void 0?C:i(o(u),C),v=m(d);return p(f,b-v.length,b)===v}return l}()})},39308:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){function o(){return a(this,"tt","","")}return o}()})},91550:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(){function o(m){return a(this,"font","color",m)}return o}()})},75008:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(){function o(m){return a(this,"font","size",m)}return o}()})},9867:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(13912),o=RangeError,m=String.fromCharCode,S=String.fromCodePoint,y=a([].join),k=!!S&&S.length!==1;e({target:"String",stat:!0,arity:1,forced:k},{fromCodePoint:function(){function V(p){for(var i=[],c=arguments.length,s=0,l;c>s;){if(l=+arguments[s++],t(l,1114111)!==l)throw new o(l+" is not a valid code point");i[s]=l<65536?m(l):m(((l-=65536)>>10)+55296,l%1024+56320)}return y(i,"")}return V}()})},43673:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(86213),o=n(16952),m=n(12605),S=n(45490),y=a("".indexOf);e({target:"String",proto:!0,forced:!S("includes")},{includes:function(){function k(V){return!!~y(m(o(this)),m(t(V)),arguments.length>1?arguments[1]:void 0)}return k}()})},56027:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("italics")},{italics:function(){function o(){return a(this,"i","","")}return o}()})},12354:function(L,r,n){"use strict";var e=n(50233).charAt,a=n(12605),t=n(5419),o=n(65574),m=n(5959),S="String Iterator",y=t.set,k=t.getterFor(S);o(String,"String",function(V){y(this,{type:S,string:a(V),index:0})},function(){function V(){var p=k(this),i=p.string,c=p.index,s;return c>=i.length?m(void 0,!0):(s=e(i,c),p.index+=s.length,m(s,!1))}return V}())},50340:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("link")},{link:function(){function o(m){return a(this,"a","href",m)}return o}()})},22515:function(L,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(10188),S=n(12605),y=n(16952),k=n(78060),V=n(35483),p=n(28340);a("match",function(i,c,s){return[function(){function l(d){var f=y(this),u=o(d)?void 0:k(d,i);return u?e(u,d,f):new RegExp(d)[i](S(f))}return l}(),function(l){var d=t(this),f=S(l),u=s(c,d,f);if(u.done)return u.value;if(!d.global)return p(d,f);var C=d.unicode;d.lastIndex=0;for(var b=[],v=0,h;(h=p(d,f))!==null;){var g=S(h[0]);b[v]=g,g===""&&(d.lastIndex=V(f,m(d.lastIndex),C)),v++}return v===0?null:b}]})},5143:function(L,r,n){"use strict";var e=n(63964),a=n(24051).end,t=n(34125);e({target:"String",proto:!0,forced:t},{padEnd:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},93514:function(L,r,n){"use strict";var e=n(63964),a=n(24051).start,t=n(34125);e({target:"String",proto:!0,forced:t},{padStart:function(){function o(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}return o}()})},5416:function(L,r,n){"use strict";var e=n(63964),a=n(67250),t=n(57591),o=n(46771),m=n(12605),S=n(24760),y=a([].push),k=a([].join);e({target:"String",stat:!0},{raw:function(){function V(p){var i=t(o(p).raw),c=S(i);if(!c)return"";for(var s=arguments.length,l=[],d=0;;){if(y(l,m(i[d++])),d===c)return k(l,"");d")!=="7"});o("replace",function(w,A,O){var M=T?"$":"$0";return[function(){function P(R,F){var _=c(this),U=k(R)?void 0:l(R,C);return U?a(U,R,_,F):a(A,i(_),R,F)}return P}(),function(P,R){var F=S(this),_=i(P);if(typeof R=="string"&&N(R,M)===-1&&N(R,"$<")===-1){var U=O(A,F,_,R);if(U.done)return U.value}var W=y(R);W||(R=i(R));var $=F.global,G;$&&(G=F.unicode,F.lastIndex=0);for(var oe=[],X;X=f(F,_),!(X===null||(g(oe,X),!$));){var Ce=i(X[0]);Ce===""&&(F.lastIndex=s(_,p(F.lastIndex),G))}for(var me="",ne=0,ce=0;ce=ne&&(me+=x(_,ne,ae)+Y,ne=ae+q.length)}return me+x(_,ne)}]},!E||!I||T)},63272:function(L,r,n){"use strict";var e=n(91495),a=n(79942),t=n(30365),o=n(42871),m=n(16952),S=n(5700),y=n(12605),k=n(78060),V=n(28340);a("search",function(p,i,c){return[function(){function s(l){var d=m(this),f=o(l)?void 0:k(l,p);return f?e(f,l,d):new RegExp(l)[p](y(d))}return s}(),function(s){var l=t(this),d=y(s),f=c(i,l,d);if(f.done)return f.value;var u=l.lastIndex;S(u,0)||(l.lastIndex=0);var C=V(l,d);return S(l.lastIndex,u)||(l.lastIndex=u),C===null?-1:C.index}]})},34325:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("small")},{small:function(){function o(){return a(this,"small","","")}return o}()})},39930:function(L,r,n){"use strict";var e=n(91495),a=n(67250),t=n(79942),o=n(30365),m=n(42871),S=n(16952),y=n(28987),k=n(35483),V=n(10188),p=n(12605),i=n(78060),c=n(28340),s=n(62115),l=n(40033),d=s.UNSUPPORTED_Y,f=4294967295,u=Math.min,C=a([].push),b=a("".slice),v=!l(function(){var g=/(?:)/,N=g.exec;g.exec=function(){return N.apply(this,arguments)};var x="ab".split(g);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),h="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;t("split",function(g,N,x){var B="0".split(void 0,0).length?function(I,T){return I===void 0&&T===0?[]:e(N,this,I,T)}:N;return[function(){function I(T,E){var w=S(this),A=m(T)?void 0:i(T,g);return A?e(A,T,w,E):e(B,p(w),T,E)}return I}(),function(I,T){var E=o(this),w=p(I);if(!h){var A=x(B,E,w,T,B!==N);if(A.done)return A.value}var O=y(E,RegExp),M=E.unicode,P=(E.ignoreCase?"i":"")+(E.multiline?"m":"")+(E.unicode?"u":"")+(d?"g":"y"),R=new O(d?"^(?:"+E.source+")":E,P),F=T===void 0?f:T>>>0;if(F===0)return[];if(w.length===0)return c(R,w)===null?[w]:[];for(var _=0,U=0,W=[];U1?arguments[1]:void 0,f.length)),C=m(d);return p(f,u,u+C.length)===C}return l}()})},74498:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("strike")},{strike:function(){function o(){return a(this,"strike","","")}return o}()})},15812:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sub")},{sub:function(){function o(){return a(this,"sub","","")}return o}()})},57726:function(L,r,n){"use strict";var e=n(63964),a=n(72506),t=n(88539);e({target:"String",proto:!0,forced:t("sup")},{sup:function(){function o(){return a(this,"sup","","")}return o}()})},70604:function(L,r,n){"use strict";n(99159);var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},85404:function(L,r,n){"use strict";var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},99159:function(L,r,n){"use strict";var e=n(63964),a=n(43476);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},34965:function(L,r,n){"use strict";n(85404);var e=n(63964),a=n(43885);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},8448:function(L,r,n){"use strict";var e=n(63964),a=n(92648).trim,t=n(90012);e({target:"String",proto:!0,forced:t("trim")},{trim:function(){function o(){return a(this)}return o}()})},79250:function(L,r,n){"use strict";var e=n(85889);e("asyncIterator")},49899:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(91495),o=n(67250),m=n(4493),S=n(58310),y=n(52357),k=n(40033),V=n(45299),p=n(21287),i=n(30365),c=n(57591),s=n(767),l=n(12605),d=n(87458),f=n(80674),u=n(18450),C=n(37310),b=n(81644),v=n(89235),h=n(27193),g=n(74595),N=n(24239),x=n(12867),B=n(55938),I=n(73936),T=n(16639),E=n(19417),w=n(79195),A=n(16738),O=n(24697),M=n(55557),P=n(85889),R=n(52360),F=n(84925),_=n(5419),U=n(22603).forEach,W=E("hidden"),$="Symbol",G="prototype",oe=_.set,X=_.getterFor($),Ce=Object[G],me=a.Symbol,ne=me&&me[G],ce=a.RangeError,q=a.TypeError,ae=a.QObject,J=h.f,Y=g.f,Q=b.f,Z=x.f,te=o([].push),se=T("symbols"),ye=T("op-symbols"),fe=T("wks"),Le=!ae||!ae[G]||!ae[G].findChild,D=function(Ne,Se,H){var ue=J(Ce,Se);ue&&delete Ce[Se],Y(Ne,Se,H),ue&&Ne!==Ce&&Y(Ce,Se,ue)},re=S&&k(function(){return f(Y({},"a",{get:function(){function Pe(){return Y(this,"a",{value:7}).a}return Pe}()})).a!==7})?D:Y,de=function(Ne,Se){var H=se[Ne]=f(ne);return oe(H,{type:$,tag:Ne,description:Se}),S||(H.description=Se),H},ve=function(){function Pe(Ne,Se,H){Ne===Ce&&ve(ye,Se,H),i(Ne);var ue=s(Se);return i(H),V(se,ue)?(H.enumerable?(V(Ne,W)&&Ne[W][ue]&&(Ne[W][ue]=!1),H=f(H,{enumerable:d(0,!1)})):(V(Ne,W)||Y(Ne,W,d(1,f(null))),Ne[W][ue]=!0),re(Ne,ue,H)):Y(Ne,ue,H)}return Pe}(),pe=function(){function Pe(Ne,Se){i(Ne);var H=c(Se),ue=u(H).concat(_e(H));return U(ue,function(Ve){(!S||t(ke,H,Ve))&&ve(Ne,Ve,H[Ve])}),Ne}return Pe}(),Be=function(){function Pe(Ne,Se){return Se===void 0?f(Ne):pe(f(Ne),Se)}return Pe}(),ke=function(){function Pe(Ne){var Se=s(Ne),H=t(Z,this,Se);return this===Ce&&V(se,Se)&&!V(ye,Se)?!1:H||!V(this,Se)||!V(se,Se)||V(this,W)&&this[W][Se]?H:!0}return Pe}(),Ee=function(){function Pe(Ne,Se){var H=c(Ne),ue=s(Se);if(!(H===Ce&&V(se,ue)&&!V(ye,ue))){var Ve=J(H,ue);return Ve&&V(se,ue)&&!(V(H,W)&&H[W][ue])&&(Ve.enumerable=!0),Ve}}return Pe}(),Re=function(){function Pe(Ne){var Se=Q(c(Ne)),H=[];return U(Se,function(ue){!V(se,ue)&&!V(w,ue)&&te(H,ue)}),H}return Pe}(),_e=function(Ne){var Se=Ne===Ce,H=Q(Se?ye:c(Ne)),ue=[];return U(H,function(Ve){V(se,Ve)&&(!Se||V(Ce,Ve))&&te(ue,se[Ve])}),ue};y||(me=function(){function Pe(){if(p(ne,this))throw new q("Symbol is not a constructor");var Ne=!arguments.length||arguments[0]===void 0?void 0:l(arguments[0]),Se=A(Ne),H=function(){function ue(Ve){var be=this===void 0?a:this;be===Ce&&t(H,ye,Ve),V(be,W)&&V(be[W],Se)&&(be[W][Se]=!1);var Ie=d(1,Ve);try{re(be,Se,Ie)}catch(we){if(!(we instanceof ce))throw we;D(be,Se,Ie)}}return ue}();return S&&Le&&re(Ce,Se,{configurable:!0,set:H}),de(Se,Ne)}return Pe}(),ne=me[G],B(ne,"toString",function(){function Pe(){return X(this).tag}return Pe}()),B(me,"withoutSetter",function(Pe){return de(A(Pe),Pe)}),x.f=ke,g.f=ve,N.f=pe,h.f=Ee,C.f=b.f=Re,v.f=_e,M.f=function(Pe){return de(O(Pe),Pe)},S&&(I(ne,"description",{configurable:!0,get:function(){function Pe(){return X(this).description}return Pe}()}),m||B(Ce,"propertyIsEnumerable",ke,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!y,sham:!y},{Symbol:me}),U(u(fe),function(Pe){P(Pe)}),e({target:$,stat:!0,forced:!y},{useSetter:function(){function Pe(){Le=!0}return Pe}(),useSimple:function(){function Pe(){Le=!1}return Pe}()}),e({target:"Object",stat:!0,forced:!y,sham:!S},{create:Be,defineProperty:ve,defineProperties:pe,getOwnPropertyDescriptor:Ee}),e({target:"Object",stat:!0,forced:!y},{getOwnPropertyNames:Re}),R(),F(me,$),w[W]=!0},10933:function(L,r,n){"use strict";var e=n(63964),a=n(58310),t=n(16210),o=n(67250),m=n(45299),S=n(55747),y=n(21287),k=n(12605),V=n(73936),p=n(5774),i=t.Symbol,c=i&&i.prototype;if(a&&S(i)&&(!("description"in c)||i().description!==void 0)){var s={},l=function(){function h(){var g=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),N=y(c,this)?new i(g):g===void 0?i():i(g);return g===""&&(s[N]=!0),N}return h}();p(l,i),l.prototype=c,c.constructor=l;var d=String(i("description detection"))==="Symbol(description detection)",f=o(c.valueOf),u=o(c.toString),C=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),v=o("".slice);V(c,"description",{configurable:!0,get:function(){function h(){var g=f(this);if(m(s,g))return"";var N=u(g),x=d?v(N,7,-1):b(N,C,"$1");return x===""?void 0:x}return h}()}),e({global:!0,constructor:!0,forced:!0},{Symbol:l})}},30828:function(L,r,n){"use strict";var e=n(63964),a=n(4009),t=n(45299),o=n(12605),m=n(16639),S=n(66570),y=m("string-to-symbol-registry"),k=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{for:function(){function V(p){var i=o(p);if(t(y,i))return y[i];var c=a("Symbol")(i);return y[i]=c,k[c]=i,c}return V}()})},53795:function(L,r,n){"use strict";var e=n(85889);e("hasInstance")},87806:function(L,r,n){"use strict";var e=n(85889);e("isConcatSpreadable")},64677:function(L,r,n){"use strict";var e=n(85889);e("iterator")},33313:function(L,r,n){"use strict";n(49899),n(30828),n(6862),n(53008),n(28603)},6862:function(L,r,n){"use strict";var e=n(63964),a=n(45299),t=n(71399),o=n(89393),m=n(16639),S=n(66570),y=m("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!S},{keyFor:function(){function k(V){if(!t(V))throw new TypeError(o(V)+" is not a symbol");if(a(y,V))return y[V]}return k}()})},48058:function(L,r,n){"use strict";var e=n(85889);e("match")},51583:function(L,r,n){"use strict";var e=n(85889);e("replace")},82403:function(L,r,n){"use strict";var e=n(85889);e("search")},34265:function(L,r,n){"use strict";var e=n(85889);e("species")},3295:function(L,r,n){"use strict";var e=n(85889);e("split")},1078:function(L,r,n){"use strict";var e=n(85889),a=n(52360);e("toPrimitive"),a()},63207:function(L,r,n){"use strict";var e=n(4009),a=n(85889),t=n(84925);a("toStringTag"),t(e("Symbol"),"Symbol")},80520:function(L,r,n){"use strict";var e=n(85889);e("unscopables")},99872:function(L,r,n){"use strict";var e=n(67250),a=n(4246),t=n(71447),o=e(t),m=a.aTypedArray,S=a.exportTypedArrayMethod;S("copyWithin",function(){function y(k,V){return o(m(this),k,V,arguments.length>2?arguments[2]:void 0)}return y}())},73364:function(L,r,n){"use strict";var e=n(4246),a=n(22603).every,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("every",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},58166:function(L,r,n){"use strict";var e=n(4246),a=n(88471),t=n(61484),o=n(2281),m=n(91495),S=n(67250),y=n(40033),k=e.aTypedArray,V=e.exportTypedArrayMethod,p=S("".slice),i=y(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){function s(){return c++}return s}()}),c!==1});V("fill",function(){function c(s){var l=arguments.length;k(this);var d=p(o(this),0,3)==="Big"?t(s):+s;return m(a,this,d,l>1?arguments[1]:void 0,l>2?arguments[2]:void 0)}return c}(),i)},23793:function(L,r,n){"use strict";var e=n(4246),a=n(22603).filter,t=n(45399),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("filter",function(){function S(y){var k=a(o(this),y,arguments.length>1?arguments[1]:void 0);return t(this,k)}return S}())},13917:function(L,r,n){"use strict";var e=n(4246),a=n(22603).findIndex,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("findIndex",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},43820:function(L,r,n){"use strict";var e=n(4246),a=n(22603).find,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("find",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},80756:function(L,r,n){"use strict";var e=n(80185);e("Float32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},70567:function(L,r,n){"use strict";var e=n(80185);e("Float64",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},19852:function(L,r,n){"use strict";var e=n(4246),a=n(22603).forEach,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("forEach",function(){function m(S){a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},40379:function(L,r,n){"use strict";var e=n(86563),a=n(4246).exportTypedArrayStaticMethod,t=n(3805);a("from",t,e)},92770:function(L,r,n){"use strict";var e=n(4246),a=n(14211).includes,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("includes",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},81069:function(L,r,n){"use strict";var e=n(4246),a=n(14211).indexOf,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("indexOf",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60037:function(L,r,n){"use strict";var e=n(80185);e("Int16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},44195:function(L,r,n){"use strict";var e=n(80185);e("Int32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},66756:function(L,r,n){"use strict";var e=n(80185);e("Int8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},63689:function(L,r,n){"use strict";var e=n(16210),a=n(40033),t=n(67250),o=n(4246),m=n(34570),S=n(24697),y=S("iterator"),k=e.Uint8Array,V=t(m.values),p=t(m.keys),i=t(m.entries),c=o.aTypedArray,s=o.exportTypedArrayMethod,l=k&&k.prototype,d=!a(function(){l[y].call([1])}),f=!!l&&l.values&&l[y]===l.values&&l.values.name==="values",u=function(){function C(){return V(c(this))}return C}();s("entries",function(){function C(){return i(c(this))}return C}(),d),s("keys",function(){function C(){return p(c(this))}return C}(),d),s("values",u,d||!f,{name:"values"}),s(y,u,d||!f,{name:"values"})},5659:function(L,r,n){"use strict";var e=n(4246),a=n(67250),t=e.aTypedArray,o=e.exportTypedArrayMethod,m=a([].join);o("join",function(){function S(y){return m(t(this),y)}return S}())},25014:function(L,r,n){"use strict";var e=n(4246),a=n(61267),t=n(1325),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("lastIndexOf",function(){function S(y){var k=arguments.length;return a(t,o(this),k>1?[y,arguments[1]]:[y])}return S}())},32189:function(L,r,n){"use strict";var e=n(4246),a=n(22603).map,t=n(31082),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("map",function(){function S(y){return a(o(this),y,arguments.length>1?arguments[1]:void 0,function(k,V){return new(t(k))(V)})}return S}())},23030:function(L,r,n){"use strict";var e=n(4246),a=n(86563),t=e.aTypedArrayConstructor,o=e.exportTypedArrayStaticMethod;o("of",function(){function m(){for(var S=0,y=arguments.length,k=new(t(this))(y);y>S;)k[S]=arguments[S++];return k}return m}(),a)},49110:function(L,r,n){"use strict";var e=n(4246),a=n(56844).right,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduceRight",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},24309:function(L,r,n){"use strict";var e=n(4246),a=n(56844).left,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("reduce",function(){function m(S){var y=arguments.length;return a(t(this),S,y,y>1?arguments[1]:void 0)}return m}())},56445:function(L,r,n){"use strict";var e=n(4246),a=e.aTypedArray,t=e.exportTypedArrayMethod,o=Math.floor;t("reverse",function(){function m(){for(var S=this,y=a(S).length,k=o(y/2),V=0,p;V1?arguments[1]:void 0,1),b=S(u);if(l)return a(i,this,b,C);var v=this.length,h=o(b),g=0;if(h+C>v)throw new k("Wrong length");for(;gs;)d[s]=i[s++];return d}return k}(),y)},88739:function(L,r,n){"use strict";var e=n(4246),a=n(22603).some,t=e.aTypedArray,o=e.exportTypedArrayMethod;o("some",function(){function m(S){return a(t(this),S,arguments.length>1?arguments[1]:void 0)}return m}())},60415:function(L,r,n){"use strict";var e=n(16210),a=n(71138),t=n(40033),o=n(10320),m=n(90274),S=n(4246),y=n(50503),k=n(79725),V=n(83141),p=n(44981),i=S.aTypedArray,c=S.exportTypedArrayMethod,s=e.Uint16Array,l=s&&a(s.prototype.sort),d=!!l&&!(t(function(){l(new s(2),null)})&&t(function(){l(new s(2),{})})),f=!!l&&!t(function(){if(V)return V<74;if(y)return y<67;if(k)return!0;if(p)return p<602;var C=new s(516),b=Array(516),v,h;for(v=0;v<516;v++)h=v%4,C[v]=515-v,b[v]=v-2*h+3;for(l(C,function(g,N){return(g/4|0)-(N/4|0)}),v=0;v<516;v++)if(C[v]!==b[v])return!0}),u=function(b){return function(v,h){return b!==void 0?+b(v,h)||0:h!==h?-1:v!==v?1:v===0&&h===0?1/v>0&&1/h<0?1:-1:v>h}};c("sort",function(){function C(b){return b!==void 0&&o(b),f?l(this,b):m(i(this),u(b))}return C}(),!f||d)},72532:function(L,r,n){"use strict";var e=n(4246),a=n(10188),t=n(13912),o=n(31082),m=e.aTypedArray,S=e.exportTypedArrayMethod;S("subarray",function(){function y(k,V){var p=m(this),i=p.length,c=t(k,i),s=o(p);return new s(p.buffer,p.byteOffset+c*p.BYTES_PER_ELEMENT,a((V===void 0?i:t(V,i))-c))}return y}())},62207:function(L,r,n){"use strict";var e=n(16210),a=n(61267),t=n(4246),o=n(40033),m=n(54602),S=e.Int8Array,y=t.aTypedArray,k=t.exportTypedArrayMethod,V=[].toLocaleString,p=!!S&&o(function(){V.call(new S(1))}),i=o(function(){return[1,2].toLocaleString()!==new S([1,2]).toLocaleString()})||!o(function(){S.prototype.toLocaleString.call([1,2])});k("toLocaleString",function(){function c(){return a(V,p?m(y(this)):y(this),m(arguments))}return c}(),i)},906:function(L,r,n){"use strict";var e=n(4246).exportTypedArrayMethod,a=n(40033),t=n(16210),o=n(67250),m=t.Uint8Array,S=m&&m.prototype||{},y=[].toString,k=o([].join);a(function(){y.call({})})&&(y=function(){function p(){return k(this)}return p}());var V=S.toString!==y;e("toString",y,V)},78824:function(L,r,n){"use strict";var e=n(80185);e("Uint16",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},72846:function(L,r,n){"use strict";var e=n(80185);e("Uint32",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},24575:function(L,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()})},71968:function(L,r,n){"use strict";var e=n(80185);e("Uint8",function(a){return function(){function t(o,m,S){return a(this,o,m,S)}return t}()},!0)},80040:function(L,r,n){"use strict";var e=n(50730),a=n(16210),t=n(67250),o=n(30145),m=n(81969),S=n(45150),y=n(39895),k=n(77568),V=n(5419).enforce,p=n(40033),i=n(21820),c=Object,s=Array.isArray,l=c.isExtensible,d=c.isFrozen,f=c.isSealed,u=c.freeze,C=c.seal,b=!a.ActiveXObject&&"ActiveXObject"in a,v,h=function(A){return function(){function O(){return A(this,arguments.length?arguments[0]:void 0)}return O}()},g=S("WeakMap",h,y),N=g.prototype,x=t(N.set),B=function(){return e&&p(function(){var A=u([]);return x(new g,A,1),!d(A)})};if(i)if(b){v=y.getConstructor(h,"WeakMap",!0),m.enable();var I=t(N.delete),T=t(N.has),E=t(N.get);o(N,{delete:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),I(this,A)||O.frozen.delete(A)}return I(this,A)}return w}(),has:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)||O.frozen.has(A)}return T(this,A)}return w}(),get:function(){function w(A){if(k(A)&&!l(A)){var O=V(this);return O.frozen||(O.frozen=new v),T(this,A)?E(this,A):O.frozen.get(A)}return E(this,A)}return w}(),set:function(){function w(A,O){if(k(A)&&!l(A)){var M=V(this);M.frozen||(M.frozen=new v),T(this,A)?x(this,A,O):M.frozen.set(A,O)}else x(this,A,O);return this}return w}()})}else B()&&o(N,{set:function(){function w(A,O){var M;return s(A)&&(d(A)?M=u:f(A)&&(M=C)),x(this,A,O),M&&M(A),this}return w}()})},90846:function(L,r,n){"use strict";n(80040)},67042:function(L,r,n){"use strict";var e=n(45150),a=n(39895);e("WeakSet",function(t){return function(){function o(){return t(this,arguments.length?arguments[0]:void 0)}return o}()},a)},40348:function(L,r,n){"use strict";n(67042)},5606:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==t},{clearImmediate:t})},83006:function(L,r,n){"use strict";n(5606),n(27807)},25764:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(37713),o=n(10320),m=n(24986),S=n(40033),y=n(58310),k=S(function(){return y&&Object.getOwnPropertyDescriptor(a,"queueMicrotask").value.length!==1});e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k},{queueMicrotask:function(){function V(p){m(arguments.length,1),t(o(p))}return V}()})},27807:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(60375).set,o=n(78362),m=a.setImmediate?o(t,!1):t;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==m},{setImmediate:m})},45569:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==o},{setInterval:o})},5213:function(L,r,n){"use strict";var e=n(63964),a=n(16210),t=n(78362),o=t(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==o},{setTimeout:o})},69401:function(L,r,n){"use strict";n(45569),n(5213)},7435:function(L){"use strict";/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var r,n=[],e=[],a=function(){if(0)var b;window.onunload=function(){return r&&r.close()}},t=function(b){return e.push(b)},o=function(b){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,f){if(typeof f=="object"){if(f===null)return f;if(p.includes(f))return"[circular ref]";p.push(f);var u=f instanceof Error||f.code&&f.message&&f.message.includes("Error");return u?{__error__:!0,string:String(f),stack:f.stack}:Array.isArray(f)?f.map(i):f}return i(f)},s=JSON.stringify(b,c);return p=null,s},m=function(b){if(0)var p,i,c},S=function(b,p){if(0)var i,c,s},y=function(){};I.exports={subscribe:t,sendMessage:m,sendLogEntry:S,setupHotReloading:y}}},xt={};function ie(I){var r=xt[I];if(r!==void 0)return r.exports;var n=xt[I]={exports:{}};return Xt[I](n,n.exports,ie),n.exports}(function(){ie.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(I){if(typeof window=="object")return window}}()})(),function(){ie.o=function(I,r){return Object.prototype.hasOwnProperty.call(I,r)}}();var Dn={};(function(){"use strict";ie(33313),ie(10933),ie(79250),ie(53795),ie(87806),ie(64677),ie(48058),ie(51583),ie(82403),ie(34265),ie(3295),ie(1078),ie(63207),ie(80520),ie(39600),ie(93237),ie(32057),ie(68933),ie(47830),ie(13455),ie(64094),ie(61915),ie(32384),ie(25579),ie(63532),ie(33425),ie(43894),ie(99636),ie(34570),ie(94432),ie(24683),ie(69984),ie(32089),ie(60206),ie(29645),ie(4788),ie(58672),ie(19356),ie(48968),ie(49852),ie(2712),ie(864),ie(54243),ie(75621),ie(26267),ie(50095),ie(33451),ie(74587),ie(25082),ie(47421),ie(32122),ie(6306),ie(90216),ie(84663),ie(92332),ie(98329),ie(9631),ie(47091),ie(59660),ie(15383),ie(92866),ie(86107),ie(29248),ie(52540),ie(79007),ie(77199),ie(6522),ie(95542),ie(2966),ie(20997),ie(57400),ie(45571),ie(54800),ie(15709),ie(76059),ie(96614),ie(324),ie(90426),ie(95443),ie(87968),ie(55007),ie(55323),ie(13521),ie(5006),ie(99009),ie(85770),ie(23532),ie(87119),ie(78618),ie(27129),ie(31943),ie(3579),ie(97397),ie(85028),ie(8225),ie(43331),ie(62289),ie(56196),ie(2950),ie(44205),ie(76882),ie(83186),ie(76065),ie(13411),ie(26634),ie(53118),ie(42514),ie(84353),ie(62987),ie(48993),ie(52917),ie(4972),ie(28913),ie(36382),ie(53092),ie(69861),ie(29674),ie(81543),ie(9373),ie(45093),ie(63074),ie(5815),ie(88527),ie(66390),ie(7784),ie(50551),ie(76483),ie(92046),ie(63915),ie(51454),ie(79669),ie(23057),ie(57983),ie(17953),ie(30442),ie(6403),ie(9867),ie(43673),ie(12354),ie(22515),ie(5143),ie(93514),ie(5416),ie(11619),ie(44590),ie(63272),ie(39930),ie(4038),ie(8448),ie(70604),ie(34965),ie(95309),ie(82256),ie(49484),ie(38931),ie(39308),ie(91550),ie(75008),ie(56027),ie(50340),ie(34325),ie(74498),ie(15812),ie(57726),ie(80756),ie(70567),ie(66756),ie(60037),ie(44195),ie(24575),ie(71968),ie(78824),ie(72846),ie(99872),ie(73364),ie(58166),ie(23793),ie(43820),ie(13917),ie(19852),ie(40379),ie(92770),ie(81069),ie(63689),ie(5659),ie(25014),ie(32189),ie(23030),ie(24309),ie(49110),ie(56445),ie(30939),ie(48321),ie(88739),ie(60415),ie(72532),ie(62207),ie(906),ie(90846),ie(40348),ie(83006),ie(25764),ie(69401),ie(95012),ie(30236)})(),function(){"use strict";var I=ie(89005);ie(67160),ie(23542),ie(30386),ie(98996),ie(41639),ie(50578),ie(4444),ie(77870),ie(39108),ie(21039),ie(51862),ie(56856),ie(1272),ie(74757),ie(1965),ie(63489),ie(24226),ie(11714),ie(73492),ie(49641),ie(17570),ie(61858),ie(73358),ie(32882),ie(23632);var r=ie(85822),n=ie(7435),e=ie(56518),a=ie(26427),t=ie(18498),o=ie(49060),m=ie(72178),S=ie(24826),y;/** + */var r,n=[],e=[],a=function(){if(0)var V;window.onunload=function(){return r&&r.close()}},t=function(V){return e.push(V)},o=function(V){var p=[],i=function(d){return typeof d=="number"&&!Number.isFinite(d)?{__number__:String(d)}:typeof d=="undefined"?{__undefined__:!0}:d},c=function(d,f){if(typeof f=="object"){if(f===null)return f;if(p.includes(f))return"[circular ref]";p.push(f);var u=f instanceof Error||f.code&&f.message&&f.message.includes("Error");return u?{__error__:!0,string:String(f),stack:f.stack}:Array.isArray(f)?f.map(i):f}return i(f)},s=JSON.stringify(V,c);return p=null,s},m=function(V){if(0)var p,i,c},S=function(V,p){if(0)var i,c,s},y=function(){};L.exports={subscribe:t,sendMessage:m,sendLogEntry:S,setupHotReloading:y}}},xt={};function ie(L){var r=xt[L];if(r!==void 0)return r.exports;var n=xt[L]={exports:{}};return Xt[L](n,n.exports,ie),n.exports}(function(){ie.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(L){if(typeof window=="object")return window}}()})(),function(){ie.o=function(L,r){return Object.prototype.hasOwnProperty.call(L,r)}}();var Dn={};(function(){"use strict";ie(33313),ie(10933),ie(79250),ie(53795),ie(87806),ie(64677),ie(48058),ie(51583),ie(82403),ie(34265),ie(3295),ie(1078),ie(63207),ie(80520),ie(39600),ie(93237),ie(32057),ie(68933),ie(47830),ie(13455),ie(64094),ie(61915),ie(32384),ie(25579),ie(63532),ie(33425),ie(43894),ie(99636),ie(34570),ie(94432),ie(24683),ie(69984),ie(32089),ie(60206),ie(29645),ie(4788),ie(58672),ie(19356),ie(48968),ie(49852),ie(2712),ie(864),ie(54243),ie(75621),ie(26267),ie(50095),ie(33451),ie(74587),ie(25082),ie(47421),ie(32122),ie(6306),ie(90216),ie(84663),ie(92332),ie(98329),ie(9631),ie(47091),ie(59660),ie(15383),ie(92866),ie(86107),ie(29248),ie(52540),ie(79007),ie(77199),ie(6522),ie(95542),ie(2966),ie(20997),ie(57400),ie(45571),ie(54800),ie(15709),ie(76059),ie(96614),ie(324),ie(90426),ie(95443),ie(87968),ie(55007),ie(55323),ie(13521),ie(5006),ie(99009),ie(85770),ie(23532),ie(87119),ie(78618),ie(27129),ie(31943),ie(3579),ie(97397),ie(85028),ie(8225),ie(43331),ie(62289),ie(56196),ie(2950),ie(44205),ie(76882),ie(83186),ie(76065),ie(13411),ie(26634),ie(53118),ie(42514),ie(84353),ie(62987),ie(48993),ie(52917),ie(4972),ie(28913),ie(36382),ie(53092),ie(69861),ie(29674),ie(81543),ie(9373),ie(45093),ie(63074),ie(5815),ie(88527),ie(66390),ie(7784),ie(50551),ie(76483),ie(92046),ie(63915),ie(51454),ie(79669),ie(23057),ie(57983),ie(17953),ie(30442),ie(6403),ie(9867),ie(43673),ie(12354),ie(22515),ie(5143),ie(93514),ie(5416),ie(11619),ie(44590),ie(63272),ie(39930),ie(4038),ie(8448),ie(70604),ie(34965),ie(95309),ie(82256),ie(49484),ie(38931),ie(39308),ie(91550),ie(75008),ie(56027),ie(50340),ie(34325),ie(74498),ie(15812),ie(57726),ie(80756),ie(70567),ie(66756),ie(60037),ie(44195),ie(24575),ie(71968),ie(78824),ie(72846),ie(99872),ie(73364),ie(58166),ie(23793),ie(43820),ie(13917),ie(19852),ie(40379),ie(92770),ie(81069),ie(63689),ie(5659),ie(25014),ie(32189),ie(23030),ie(24309),ie(49110),ie(56445),ie(30939),ie(48321),ie(88739),ie(60415),ie(72532),ie(62207),ie(906),ie(90846),ie(40348),ie(83006),ie(25764),ie(69401),ie(95012),ie(30236)})(),function(){"use strict";var L=ie(89005);ie(67160),ie(23542),ie(30386),ie(98996),ie(41639),ie(50578),ie(4444),ie(77870),ie(39108),ie(21039),ie(51862),ie(56856),ie(1272),ie(74757),ie(1965),ie(63489),ie(24226),ie(11714),ie(73492),ie(49641),ie(17570),ie(61858),ie(73358),ie(32882),ie(23632);var r=ie(85822),n=ie(7435),e=ie(56518),a=ie(26427),t=ie(18498),o=ie(49060),m=ie(72178),S=ie(24826),y;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var k=(0,m.configureStore)(),b=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=ie(71253),c=i.getRoutedComponent,s=c(k);return(0,I.createComponentVNode)(2,m.StoreProvider,{store:k,children:(0,I.createComponentVNode)(2,s)})}),p=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,S.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),k.subscribe(b),Byond.subscribe(function(c,s){return k.dispatch({type:c,payload:s})})};p()}()})();})(); + */r.perf.mark("inception",(y=window.performance)==null||(y=y.timing)==null?void 0:y.navigationStart),r.perf.mark("init");var k=(0,m.configureStore)(),V=(0,o.createRenderer)(function(){(0,a.loadIconRefMap)();var i=ie(71253),c=i.getRoutedComponent,s=c(k);return(0,L.createComponentVNode)(2,m.StoreProvider,{store:k,children:(0,L.createComponentVNode)(2,s)})}),p=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",p);return}(0,S.setupGlobalEvents)(),(0,e.setupHotKeys)(),(0,t.captureExternalLinks)(),k.subscribe(V),Byond.subscribe(function(c,s){return k.dispatch({type:c,payload:s})})};p()}()})();})();