From 14e1f6abc49ff43005dcf9fefddf7b44fef30194 Mon Sep 17 00:00:00 2001 From: Runa-Dacino Date: Fri, 15 Mar 2024 17:53:55 +0100 Subject: [PATCH 1/3] add(colours): Ports matrix/colormate stuff from CHOMP Original PR: https://github.com/CHOMPStation2/CHOMPStation2/pull/6159 Original Author: https://github.com/BlackMajor --- code/__defines/color_priority.dm | 11 + code/__defines/lum.dm | 4 + code/_helpers/icons.dm | 4 +- code/_helpers/icons/flatten.dm | 268 +++++++ code/_helpers/icons_ch.dm | 665 ++++++++++++++++++ code/_helpers/type2type.dm | 129 ++++ code/datums/browser.dm | 85 +++ code/datums/interfaces/appearance.dm | 143 ++++ code/game/atoms.dm | 55 ++ code/game/machinery/painter_vr.dm | 325 +++++++-- code/matrices/color_matrix.dm | 240 +++++++ .../preference_setup/loadout/gear_tweaks.dm | 43 +- code/modules/mob/mob_helpers.dm | 6 +- icons/system/blank_32x32.dmi | Bin 0 -> 209 bytes tgui/packages/tgui/interfaces/ColorMate.jsx | 413 +++++++++++ tgui/packages/tgui/interfaces/ColorMate.tsx | 67 -- vorestation.dme | 6 + 17 files changed, 2321 insertions(+), 143 deletions(-) create mode 100644 code/__defines/color_priority.dm create mode 100644 code/__defines/lum.dm create mode 100644 code/_helpers/icons/flatten.dm create mode 100644 code/_helpers/icons_ch.dm create mode 100644 code/datums/interfaces/appearance.dm create mode 100644 code/matrices/color_matrix.dm create mode 100644 icons/system/blank_32x32.dmi create mode 100644 tgui/packages/tgui/interfaces/ColorMate.jsx delete mode 100644 tgui/packages/tgui/interfaces/ColorMate.tsx diff --git a/code/__defines/color_priority.dm b/code/__defines/color_priority.dm new file mode 100644 index 00000000000..e88784987f8 --- /dev/null +++ b/code/__defines/color_priority.dm @@ -0,0 +1,11 @@ +//different types of atom colorations +///only used by rare effects like greentext coloring mobs and when admins varedit color +#define ADMIN_COLOUR_PRIORITY 1 +///e.g. purple effect of the revenant on a mob, black effect when mob electrocuted +#define TEMPORARY_COLOUR_PRIORITY 2 +///color splashed onto an atom (e.g. paint on turf) +#define WASHABLE_COLOUR_PRIORITY 3 +///color inherent to the atom (e.g. blob color) +#define FIXED_COLOUR_PRIORITY 4 +///how many priority levels there are. +#define COLOUR_PRIORITY_AMOUNT 4 diff --git a/code/__defines/lum.dm b/code/__defines/lum.dm new file mode 100644 index 00000000000..942462b5732 --- /dev/null +++ b/code/__defines/lum.dm @@ -0,0 +1,4 @@ +//Luma coefficients suggested for HDTVs. If you change these, make sure they add up to 1. +#define LUMA_R 0.213 +#define LUMA_G 0.715 +#define LUMA_B 0.072 diff --git a/code/_helpers/icons.dm b/code/_helpers/icons.dm index 9fd9e185002..414238fcaad 100644 --- a/code/_helpers/icons.dm +++ b/code/_helpers/icons.dm @@ -80,8 +80,8 @@ Blend(M, ICON_ADD) /proc/BlendRGB(rgb1, rgb2, amount) - var/list/RGB1 = rgb2num(rgb1) - var/list/RGB2 = rgb2num(rgb2) + var/list/RGB1 = ReadRGB(rgb1) + var/list/RGB2 = ReadRGB(rgb2) // add missing alpha if needed if(RGB1.len < RGB2.len) RGB1 += 255 diff --git a/code/_helpers/icons/flatten.dm b/code/_helpers/icons/flatten.dm new file mode 100644 index 00000000000..0435f7b6e1e --- /dev/null +++ b/code/_helpers/icons/flatten.dm @@ -0,0 +1,268 @@ +//? File contains functions to generate flat /icon's from things. +//? This is obviously expensive. Very, very expensive. +//? new get_flat_icon is faster, but, really, don't use these unless you need to. +//? Chances are unless you are: +//? - sending to html/browser (for non character preview purposes) +//? - taking photos +//? - doing complex icon operations that can't be done with filters/overlays +//? you probably don't need to use these. + +/** + * Generates an icon with all 4 directions of something. + * + * @params + * - A - appearancelike object. + * - no_anim - flatten out animations + */ +/proc/get_compound_icon(atom/A, no_anim) + var/mutable_appearance/N = new + N.appearance = A + N.dir = NORTH + var/icon/north = get_flat_icon(N, NORTH, no_anim = no_anim) + N.dir = SOUTH + var/icon/south = get_flat_icon(N, SOUTH, no_anim = no_anim) + N.dir = EAST + var/icon/east = get_flat_icon(N, EAST, no_anim = no_anim) + N.dir = WEST + var/icon/west = get_flat_icon(N, WEST, no_anim = no_anim) + qdel(N) + //Starts with a blank icon because of byond bugs. + var/icon/full = icon('icons/system/blank_32x32.dmi', "") + full.Insert(north, dir = NORTH) + full.Insert(south, dir = SOUTH) + full.Insert(east, dir = EAST) + full.Insert(west, dir = WEST) + qdel(north) + qdel(south) + qdel(east) + qdel(west) + return full + +/proc/get_flat_icon(appearance/appearancelike, dir, no_anim) + if(!dir && isloc(appearancelike)) + dir = appearancelike.dir + return _get_flat_icon(appearancelike, dir, no_anim, null, TRUE) + +/proc/_get_flat_icon(image/A, defdir, no_anim, deficon, start) + // start with blank image + var/static/icon/template = icon('icons/system/blank_32x32.dmi', "") + + #define BLANK icon(template) + + #define INDEX_X_LOW 1 + #define INDEX_X_HIGH 2 + #define INDEX_Y_LOW 3 + #define INDEX_Y_HIGH 4 + + #define flatX1 flat_size[INDEX_X_LOW] + #define flatX2 flat_size[INDEX_X_HIGH] + #define flatY1 flat_size[INDEX_Y_LOW] + #define flatY2 flat_size[INDEX_Y_HIGH] + #define addX1 add_size[INDEX_X_LOW] + #define addX2 add_size[INDEX_X_HIGH] + #define addY1 add_size[INDEX_Y_LOW] + #define addY2 add_size[INDEX_Y_HIGH] + + // invis? skip. + if(!A || A.alpha <= 0) + return BLANK + + // detect if state exists + var/icon/icon = A.icon || deficon + var/state = A.icon_state + var/none = !icon + if(!none) + var/list/states = icon_states(icon) + if(!(state in states)) + if(!("" in states)) + none = TRUE + else + state = "" + + // determine if there's directionals + // propagate forced direcitons down if and only if A has a direction + // todo: this results in a mismatch if someone is facing east but their overlays are facing south. + var/dir + if(start || !A.dir) + dir = defdir + else + dir = A.dir + var/ourdir = dir + if(!none && ourdir != SOUTH) + if(length(icon_states(icon(icon, state, NORTH)))) + else if(length(icon_states(icon(icon, state, EAST)))) + else if(length(icon_states(icon(icon, state, WEST)))) + else + ourdir = SOUTH + + // start generating + if(!A.overlays.len && !A.underlays.len) + // we don't even have ourselves! + if(none) + return BLANK + // no overlays/underlays, we're done, just mix in ourselves + var/icon/self_icon = icon(icon(icon, state, ourdir), "", SOUTH, no_anim? 1 : null) + if(A.alpha < 255) + self_icon.Blend(rgb(255, 255, 255, A.alpha), ICON_MULTIPLY) + if(A.color) + if(islist(A.color)) + self_icon.MapColors(arglist(A.color)) + else + self_icon.Blend(A.color, ICON_MULTIPLY) + return self_icon + + // safety/performance check + if((A.overlays.len + A.underlays.len) > 80) + // we use fucking insertion check + // > 80 = death. + CRASH("get_flat_icon tried to process more than 80 layers") + + // otherwise, we have to blend in all overlays/underlays. + var/icon/flat = BLANK + var/list/appearance/gathered = list() + var/appearance/copying + var/appearance/comparing + var/i + var/appearance/self + var/current_layer + + if(!none) + // add the atom itself + self = image(icon = icon, icon_state = state, layer = A.layer, dir = ourdir) + self.color = A.color + self.alpha = A.alpha + self.blend_mode = A.blend_mode + gathered[self] = A.layer + + // gather + for(copying as anything in A.overlays) + // todo: better handling + if(copying.plane != FLOAT_PLANE && copying.plane != A.plane) + // we don't care probably HUD or something lol + continue + current_layer = copying.layer + // if it's float layer, shove it right above atom. + if(current_layer < 0) + if(current_layer < -1000) + CRASH("who the hell is using -1000 or below on float layers?") + current_layer = A.layer + (1000 + current_layer) / 1000 + // else, add 1 so it doesn't potentially collide on float + else + ++current_layer + + // inject with insertion sort + for(i in 1 to gathered.len) + comparing = gathered[i] + if(current_layer < gathered[comparing]) + gathered.Insert(i, copying) + // associate + gathered[copying] = current_layer + + for(copying as anything in A.underlays) + // todo: better handling + if(copying.plane != FLOAT_PLANE && copying.plane != A.plane) + // we don't care probably HUD or something lol + continue + current_layer = copying.layer + // if it's float layer, shove it right below atom. + if(current_layer < 0) + if(current_layer < -1000) + CRASH("who the hell is using -1000 or below on float layers?") + current_layer = A.layer - (1000 + current_layer) / 1000 + // else, subtract 1 so it doesn't potentially collide on float + else + --current_layer + + // inject with insertion sort + for(i in 1 to gathered.len) + comparing = gathered[i] + if(current_layer < gathered[comparing]) + gathered.Insert(i, copying) + // associate + gathered[copying] = current_layer + + // adding icon we're mixing in + var/icon/adding + // current dimensions + var/list/flat_size = list(1, flat.Width(), 1, flat.Height()) + // adding dimensions + var/list/add_size[4] + // blend mode + var/blend_mode + + // blend in layers + for(copying as anything in gathered) + // if invis, skip + if(copying.alpha == 0) + continue + + // detect if it's literally ourselves + if(copying == self) + // blend in normally (no sense doing otherwise unless we're on map) + // we can't assume we're on map. + blend_mode = BLEND_OVERLAY + adding = icon(icon, state, ourdir) + else + // use full get_flat_icon + blend_mode = copying.blend_mode + adding = _get_flat_icon(copying, defdir, no_anim, icon) + + // if we got nothing, skip + if(!adding) + continue + + // detect adding size, taking into account copying overlay's pixel offsets + add_size[INDEX_X_LOW] = min(flatX1, copying.pixel_x + 1) + add_size[INDEX_X_HIGH] = max(flatX2, copying.pixel_x + adding.Width()) + add_size[INDEX_Y_LOW] = min(flatY1, copying.pixel_y + 1) + add_size[INDEX_Y_HIGH] = max(flatY2, copying.pixel_y + adding.Height()) + + // resize flat to fit if necessary + if(flat_size ~! add_size) + flat.Crop( + addX1 - flatX1 + 1, + addY1 - flatY1 + 1, + addX2 - flatX1 + 1, + addY2 - flatY1 + 1 + ) + flat_size = add_size.Copy() + + // blend the overlay/underlay in + flat.Blend(adding, blendMode2iconMode(blend_mode), copying.pixel_x + 2 - flatX1, copying.pixel_y + 2 - flatY1) + + // apply colors + if(A.color) + if(islist(A.color)) + flat.MapColors(arglist(A.color)) + else + flat.Blend(A.color, ICON_MULTIPLY) + + // apply alpha + if(A.alpha < 255) + flat.Blend(rgb(255, 255, 255, A.alpha), ICON_MULTIPLY) + + // finalize + if(no_anim) + // clean up frames + var/icon/cleaned = icon() + cleaned.Insert(flat, "", SOUTH, 1, 0) + return cleaned + else + // just return flat as SOUTH + return icon(flat, "", SOUTH) + + #undef flatX1 + #undef flatX2 + #undef flatY1 + #undef flatY2 + #undef addX1 + #undef addX2 + #undef addY1 + #undef addY2 + + #undef INDEX_X_LOW + #undef INDEX_X_HIGH + #undef INDEX_Y_LOW + #undef INDEX_Y_HIGH + + #undef BLANK diff --git a/code/_helpers/icons_ch.dm b/code/_helpers/icons_ch.dm new file mode 100644 index 00000000000..ff0f884e0fd --- /dev/null +++ b/code/_helpers/icons_ch.dm @@ -0,0 +1,665 @@ +/* +IconProcs README + +A BYOND library for manipulating icons and colors + +by Lummox JR + +version 1.0 + +The IconProcs library was made to make a lot of common icon operations much easier. BYOND's icon manipulation +routines are very capable but some of the advanced capabilities like using alpha transparency can be unintuitive to beginners. + +CHANGING ICONS + +Several new procs have been added to the /icon datum to simplify working with icons. To use them, +remember you first need to setup an /icon var like so: + +GLOBAL_DATUM_INIT(my_icon, /icon, new('iconfile.dmi')) + +icon/ChangeOpacity(amount = 1) + A very common operation in DM is to try to make an icon more or less transparent. Making an icon more + transparent is usually much easier than making it less so, however. This proc basically is a frontend + for MapColors() which can change opacity any way you like, in much the same way that SetIntensity() + can make an icon lighter or darker. If amount is 0.5, the opacity of the icon will be cut in half. + If amount is 2, opacity is doubled and anything more than half-opaque will become fully opaque. +icon/GrayScale() + Converts the icon to grayscale instead of a fully colored icon. Alpha values are left intact. +icon/ColorTone(tone) + Similar to GrayScale(), this proc converts the icon to a range of black -> tone -> white, where tone is an + RGB color (its alpha is ignored). This can be used to create a sepia tone or similar effect. + See also the global ColorTone() proc. +icon/MinColors(icon) + The icon is blended with a second icon where the minimum of each RGB pixel is the result. + Transparency may increase, as if the icons were blended with ICON_ADD. You may supply a color in place of an icon. +icon/MaxColors(icon) + The icon is blended with a second icon where the maximum of each RGB pixel is the result. + Opacity may increase, as if the icons were blended with ICON_OR. You may supply a color in place of an icon. +icon/Opaque(background = "#000000") + All alpha values are set to 255 throughout the icon. Transparent pixels become black, or whatever background color you specify. +icon/BecomeAlphaMask() + You can convert a simple grayscale icon into an alpha mask to use with other icons very easily with this proc. + The black parts become transparent, the white parts stay white, and anything in between becomes a translucent shade of white. +icon/AddAlphaMask(mask) + The alpha values of the mask icon will be blended with the current icon. Anywhere the mask is opaque, + the current icon is untouched. Anywhere the mask is transparent, the current icon becomes transparent. + Where the mask is translucent, the current icon becomes more transparent. +icon/UseAlphaMask(mask, mode) + Sometimes you may want to take the alpha values from one icon and use them on a different icon. + This proc will do that. Just supply the icon whose alpha mask you want to use, and src will change + so it has the same colors as before but uses the mask for opacity. + +COLOR MANAGEMENT AND HSV + +RGB isn't the only way to represent color. Sometimes it's more useful to work with a model called HSV, which stands for hue, saturation, and value. + + * The hue of a color describes where it is along the color wheel. It goes from red to yellow to green to + cyan to blue to magenta and back to red. + * The saturation of a color is how much color is in it. A color with low saturation will be more gray, + and with no saturation at all it is a shade of gray. + * The value of a color determines how bright it is. A high-value color is vivid, moderate value is dark, + and no value at all is black. + +Just as BYOND uses "#rrggbb" to represent RGB values, a similar format is used for HSV: "#hhhssvv". The hue is three +hex digits because it ranges from 0 to 0x5FF. + + * 0 to 0xFF - red to yellow + * 0x100 to 0x1FF - yellow to green + * 0x200 to 0x2FF - green to cyan + * 0x300 to 0x3FF - cyan to blue + * 0x400 to 0x4FF - blue to magenta + * 0x500 to 0x5FF - magenta to red + +Knowing this, you can figure out that red is "#000ffff" in HSV format, which is hue 0 (red), saturation 255 (as colorful as possible), +value 255 (as bright as possible). Green is "#200ffff" and blue is "#400ffff". + +More than one HSV color can match the same RGB color. + +Here are some procs you can use for color management: + +ReadRGB(rgb) + Takes an RGB string like "#ffaa55" and converts it to a list such as list(255,170,85). If an RGBA format is used + that includes alpha, the list will have a fourth item for the alpha value. +hsv(hue, sat, val, apha) + Counterpart to rgb(), this takes the values you input and converts them to a string in "#hhhssvv" or "#hhhssvvaa" + format. Alpha is not included in the result if null. +ReadHSV(rgb) + Takes an HSV string like "#100FF80" and converts it to a list such as list(256,255,128). If an HSVA format is used that + includes alpha, the list will have a fourth item for the alpha value. +RGBtoHSV(rgb) + Takes an RGB or RGBA string like "#ffaa55" and converts it into an HSV or HSVA color such as "#080aaff". +HSVtoRGB(hsv) + Takes an HSV or HSVA string like "#080aaff" and converts it into an RGB or RGBA color such as "#ff55aa". +BlendRGB(rgb1, rgb2, amount) + Blends between two RGB or RGBA colors using regular RGB blending. If amount is 0, the first color is the result; + if 1, the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. + The returned value is an RGB or RGBA color. +BlendHSV(hsv1, hsv2, amount) + Blends between two HSV or HSVA colors using HSV blending, which tends to produce nicer results than regular RGB + blending because the brightness of the color is left intact. If amount is 0, the first color is the result; if 1, + the second color is the result. 0.5 produces an average of the two. Values outside the 0 to 1 range are allowed as well. + The returned value is an HSV or HSVA color. +BlendRGBasHSV(rgb1, rgb2, amount) + Like BlendHSV(), but the colors used and the return value are RGB or RGBA colors. The blending is done in HSV form. +HueToAngle(hue) + Converts a hue to an angle range of 0 to 360. Angle 0 is red, 120 is green, and 240 is blue. +AngleToHue(hue) + Converts an angle to a hue in the valid range. +RotateHue(hsv, angle) + Takes an HSV or HSVA value and rotates the hue forward through red, green, and blue by an angle from 0 to 360. + (Rotating red by 60� produces yellow.) The result is another HSV or HSVA color with the same saturation and value + as the original, but a different hue. +GrayScale(rgb) + Takes an RGB or RGBA color and converts it to grayscale. Returns an RGB or RGBA string. +ColorTone(rgb, tone) + Similar to GrayScale(), this proc converts an RGB or RGBA color to a range of black -> tone -> white instead of + using strict shades of gray. The tone value is an RGB color; any alpha value is ignored. +*/ + +/* +Get Flat Icon DEMO by DarkCampainger + +This is a test for the get flat icon proc, modified approprietly for icons and their states. +Probably not a good idea to run this unless you want to see how the proc works in detail. +mob + icon = 'old_or_unused.dmi' + icon_state = "green" + + Login() + // Testing image underlays + underlays += image(icon='old_or_unused.dmi',icon_state="red") + underlays += image(icon='old_or_unused.dmi',icon_state="red", pixel_x = 32) + underlays += image(icon='old_or_unused.dmi',icon_state="red", pixel_x = -32) + + // Testing image overlays + add_overlay(image(icon='old_or_unused.dmi',icon_state="green", pixel_x = 32, pixel_y = -32)) + add_overlay(image(icon='old_or_unused.dmi',icon_state="green", pixel_x = 32, pixel_y = 32)) + add_overlay(image(icon='old_or_unused.dmi',icon_state="green", pixel_x = -32, pixel_y = -32)) + + // Testing icon file overlays (defaults to mob's state) + add_overlay('_flat_demoIcons2.dmi') + + // Testing icon_state overlays (defaults to mob's icon) + add_overlay("white") + + // Testing dynamic icon overlays + var/icon/I = icon('old_or_unused.dmi', icon_state="aqua") + I.Shift(NORTH,16,1) + add_overlay(I) + + // Testing dynamic image overlays + I=image(icon=I,pixel_x = -32, pixel_y = 32) + add_overlay(I) + + // Testing object types (and layers) + add_overlay(/obj/effect/overlayTest) + + loc = locate (10,10,1) + verb + Browse_Icon() + set name = "1. Browse Icon" + // Give it a name for the cache + var/iconName = "[ckey(src.name)]_flattened.dmi" + // Send the icon to src's local cache + src<

") + + Output_Icon() + set name = "2. Output Icon" + to_chat(src, "Icon is: [icon2base64html(get_flat_icon(src))]") + + Label_Icon() + set name = "3. Label Icon" + // Give it a name for the cache + var/iconName = "[ckey(src.name)]_flattened.dmi" + // Copy the file to the rsc manually + var/icon/I = fcopy_rsc(get_flat_icon(src)) + // Send the icon to src's local cache + src< 57 && ch < 65) || (ch > 70 && ch < 97) || ch > 102) + break + ++digits + if(digits == 8) + break + + var/single = digits < 6 + if(digits != 3 && digits != 4 && digits != 6 && digits != 8) + return + if(digits == 4 || digits == 8) + usealpha = 1 + for(i=start, digits>0, ++i) + ch = text2ascii(rgb, i) + if(ch >= 48 && ch <= 57) + ch -= 48 + else if(ch >= 65 && ch <= 70) + ch -= 55 + else if(ch >= 97 && ch <= 102) + ch -= 87 + else + break + --digits + switch(which) + if(0) + r = (r << 4) | ch + if(single) + r |= r << 4 + ++which + else if(!(digits & 1)) + ++which + if(1) + g = (g << 4) | ch + if(single) + g |= g << 4 + ++which + else if(!(digits & 1)) + ++which + if(2) + b = (b << 4) | ch + if(single) + b |= b << 4 + ++which + else if(!(digits & 1)) + ++which + if(3) + alpha = (alpha << 4) | ch + if(single) + alpha |= alpha << 4 + + . = list(r, g, b) + if(usealpha) + . += alpha + +/proc/ReadHSV(hsv) + if(!hsv) + return + + // interpret the HSV or HSVA value + var/i=1,start=1 + if(text2ascii(hsv) == 35) + ++start // skip opening # + var/ch,which=0,hue=0,sat=0,val=0,alpha=0,usealpha + var/digits=0 + for(i=start, i<=length(hsv), ++i) + ch = text2ascii(hsv, i) + if(ch < 48 || (ch > 57 && ch < 65) || (ch > 70 && ch < 97) || ch > 102) + break + ++digits + if(digits == 9) + break + if(digits > 7) + usealpha = 1 + if(digits <= 4) + ++which + if(digits <= 2) + ++which + for(i=start, digits>0, ++i) + ch = text2ascii(hsv, i) + if(ch >= 48 && ch <= 57) + ch -= 48 + else if(ch >= 65 && ch <= 70) + ch -= 55 + else if(ch >= 97 && ch <= 102) + ch -= 87 + else + break + --digits + switch(which) + if(0) + hue = (hue << 4) | ch + if(digits == (usealpha ? 6 : 4)) + ++which + if(1) + sat = (sat << 4) | ch + if(digits == (usealpha ? 4 : 2)) + ++which + if(2) + val = (val << 4) | ch + if(digits == (usealpha ? 2 : 0)) + ++which + if(3) + alpha = (alpha << 4) | ch + + . = list(hue, sat, val) + if(usealpha) + . += alpha + +/proc/HSVtoRGB(hsv) + if(!hsv) + return "#000000" + var/list/HSV = ReadHSV(hsv) + if(!HSV) + return "#000000" + + var/hue = HSV[1] + var/sat = HSV[2] + var/val = HSV[3] + + // Compress hue into easier-to-manage range + hue -= hue >> 8 + if(hue >= 0x5fa) + hue -= 0x5fa + + var/hi,mid,lo,r,g,b + hi = val + lo = round((255 - sat) * val / 255, 1) + mid = lo + round(abs(round(hue, 510) - hue) * (hi - lo) / 255, 1) + if(hue >= 765) + if(hue >= 1275) {r=hi; g=lo; b=mid} + else if(hue >= 1020) {r=mid; g=lo; b=hi } + else {r=lo; g=mid; b=hi } + else + if(hue >= 510) {r=lo; g=hi; b=mid} + else if(hue >= 255) {r=mid; g=hi; b=lo } + else {r=hi; g=mid; b=lo } + + return (HSV.len > 3) ? rgb(r,g,b,HSV[4]) : rgb(r,g,b) + +/proc/RGBtoHSV(rgb) + if(!rgb) + return "#0000000" + var/list/RGB = ReadRGB(rgb) + if(!RGB) + return "#0000000" + + var/r = RGB[1] + var/g = RGB[2] + var/b = RGB[3] + var/hi = max(r,g,b) + var/lo = min(r,g,b) + + var/val = hi + var/sat = hi ? round((hi-lo) * 255 / hi, 1) : 0 + var/hue = 0 + + if(sat) + var/dir + var/mid + if(hi == r) + if(lo == b) {hue=0; dir=1; mid=g} + else {hue=1535; dir=-1; mid=b} + else if(hi == g) + if(lo == r) {hue=512; dir=1; mid=b} + else {hue=511; dir=-1; mid=r} + else if(hi == b) + if(lo == g) {hue=1024; dir=1; mid=r} + else {hue=1023; dir=-1; mid=g} + hue += dir * round((mid-lo) * 255 / (hi-lo), 1) + + return hsv(hue, sat, val, (RGB.len>3 ? RGB[4] : null)) + +/proc/hsv(hue, sat, val, alpha) + if(hue < 0 || hue >= 1536) + hue %= 1536 + if(hue < 0) + hue += 1536 + if((hue & 0xFF) == 0xFF) + ++hue + if(hue >= 1536) + hue = 0 + if(sat < 0) + sat = 0 + if(sat > 255) + sat = 255 + if(val < 0) + val = 0 + if(val > 255) + val = 255 + . = "#" + . += TO_HEX_DIGIT(hue >> 8) + . += TO_HEX_DIGIT(hue >> 4) + . += TO_HEX_DIGIT(hue) + . += TO_HEX_DIGIT(sat >> 4) + . += TO_HEX_DIGIT(sat) + . += TO_HEX_DIGIT(val >> 4) + . += TO_HEX_DIGIT(val) + if(!isnull(alpha)) + if(alpha < 0) + alpha = 0 + if(alpha > 255) + alpha = 255 + . += TO_HEX_DIGIT(alpha >> 4) + . += TO_HEX_DIGIT(alpha) + +/* + Smooth blend between HSV colors + + amount=0 is the first color + amount=1 is the second color + amount=0.5 is directly between the two colors + + amount<0 or amount>1 are allowed + */ +/proc/BlendHSV(hsv1, hsv2, amount) + var/list/HSV1 = ReadHSV(hsv1) + var/list/HSV2 = ReadHSV(hsv2) + + // add missing alpha if needed + if(HSV1.len < HSV2.len) + HSV1 += 255 + else if(HSV2.len < HSV1.len) + HSV2 += 255 + var/usealpha = HSV1.len > 3 + + // normalize hsv values in case anything is screwy + if(HSV1[1] > 1536) + HSV1[1] %= 1536 + if(HSV2[1] > 1536) + HSV2[1] %= 1536 + if(HSV1[1] < 0) + HSV1[1] += 1536 + if(HSV2[1] < 0) + HSV2[1] += 1536 + if(!HSV1[3]) {HSV1[1] = 0; HSV1[2] = 0} + if(!HSV2[3]) {HSV2[1] = 0; HSV2[2] = 0} + + // no value for one color means don't change saturation + if(!HSV1[3]) + HSV1[2] = HSV2[2] + if(!HSV2[3]) + HSV2[2] = HSV1[2] + // no saturation for one color means don't change hues + if(!HSV1[2]) + HSV1[1] = HSV2[1] + if(!HSV2[2]) + HSV2[1] = HSV1[1] + + // Compress hues into easier-to-manage range + HSV1[1] -= HSV1[1] >> 8 + HSV2[1] -= HSV2[1] >> 8 + + var/hue_diff = HSV2[1] - HSV1[1] + if(hue_diff > 765) + hue_diff -= 1530 + else if(hue_diff <= -765) + hue_diff += 1530 + + var/hue = round(HSV1[1] + hue_diff * amount, 1) + var/sat = round(HSV1[2] + (HSV2[2] - HSV1[2]) * amount, 1) + var/val = round(HSV1[3] + (HSV2[3] - HSV1[3]) * amount, 1) + var/alpha = usealpha ? round(HSV1[4] + (HSV2[4] - HSV1[4]) * amount, 1) : null + + // normalize hue + if(hue < 0 || hue >= 1530) + hue %= 1530 + if(hue < 0) + hue += 1530 + // decompress hue + hue += round(hue / 255) + + return hsv(hue, sat, val, alpha) + +/proc/BlendRGBasHSV(rgb1, rgb2, amount) + return HSVtoRGB(RGBtoHSV(rgb1), RGBtoHSV(rgb2), amount) + +/proc/HueToAngle(hue) + // normalize hsv in case anything is screwy + if(hue < 0 || hue >= 1536) + hue %= 1536 + if(hue < 0) + hue += 1536 + // Compress hue into easier-to-manage range + hue -= hue >> 8 + return hue / (1530/360) + +/proc/AngleToHue(angle) + // normalize hsv in case anything is screwy + if(angle < 0 || angle >= 360) + angle -= 360 * round(angle / 360) + var/hue = angle * (1530/360) + // Decompress hue + hue += round(hue / 255) + return hue + + +// positive angle rotates forward through red->green->blue +/proc/RotateHue(hsv, angle) + var/list/HSV = ReadHSV(hsv) + + // normalize hsv in case anything is screwy + if(HSV[1] >= 1536) + HSV[1] %= 1536 + if(HSV[1] < 0) + HSV[1] += 1536 + + // Compress hue into easier-to-manage range + HSV[1] -= HSV[1] >> 8 + + if(angle < 0 || angle >= 360) + angle -= 360 * round(angle / 360) + HSV[1] = round(HSV[1] + angle * (1530/360), 1) + + // normalize hue + if(HSV[1] < 0 || HSV[1] >= 1530) + HSV[1] %= 1530 + if(HSV[1] < 0) + HSV[1] += 1530 + // decompress hue + HSV[1] += round(HSV[1] / 255) + + return hsv(HSV[1], HSV[2], HSV[3], (HSV.len > 3 ? HSV[4] : null)) + +// Convert an rgb color to grayscale +/proc/GrayScale(rgb) + var/list/RGB = ReadRGB(rgb) + var/gray = RGB[1]*0.3 + RGB[2]*0.59 + RGB[3]*0.11 + return (RGB.len > 3) ? rgb(gray, gray, gray, RGB[4]) : rgb(gray, gray, gray) + +// Change grayscale color to black->tone->white range +/proc/ColorTone(rgb, tone) + var/list/RGB = ReadRGB(rgb) + var/list/TONE = ReadRGB(tone) + + var/gray = RGB[1]*0.3 + RGB[2]*0.59 + RGB[3]*0.11 + var/tone_gray = TONE[1]*0.3 + TONE[2]*0.59 + TONE[3]*0.11 + + if(gray <= tone_gray) + return BlendRGB("#000000", tone, gray/(tone_gray || 1)) + else + return BlendRGB(tone, "#ffffff", (gray-tone_gray)/((255-tone_gray) || 1)) + + +//Used in the OLD chem colour mixing algorithm +/proc/GetColors(hex) + hex = uppertext(hex) + // No alpha set? Default to full alpha. + if(length(hex) == 7) + hex += "FF" + var/hi1 = text2ascii(hex, 2) // R + var/lo1 = text2ascii(hex, 3) // R + var/hi2 = text2ascii(hex, 4) // G + var/lo2 = text2ascii(hex, 5) // G + var/hi3 = text2ascii(hex, 6) // B + var/lo3 = text2ascii(hex, 7) // B + var/hi4 = text2ascii(hex, 8) // A + var/lo4 = text2ascii(hex, 9) // A + return list(((hi1>= 65 ? hi1-55 : hi1-48)<<4) | (lo1 >= 65 ? lo1-55 : lo1-48), + ((hi2 >= 65 ? hi2-55 : hi2-48)<<4) | (lo2 >= 65 ? lo2-55 : lo2-48), + ((hi3 >= 65 ? hi3-55 : hi3-48)<<4) | (lo3 >= 65 ? lo3-55 : lo3-48), + ((hi4 >= 65 ? hi4-55 : hi4-48)<<4) | (lo4 >= 65 ? lo4-55 : lo4-48)) + +//Interface for using DrawBox() to draw 1 pixel on a coordinate. +//Returns the same icon specifed in the argument, but with the pixel drawn +/proc/DrawPixel(icon/I,colour,drawX,drawY) + if(!I) + return 0 + + var/Iwidth = I.Width() + var/Iheight = I.Height() + + if(drawX > Iwidth || drawX <= 0) + return 0 + if(drawY > Iheight || drawY <= 0) + return 0 + + I.DrawBox(colour,drawX, drawY) + return I + + +//Interface for easy drawing of one pixel on an atom. +/atom/proc/DrawPixelOn(colour, drawX, drawY) + var/icon/I = new(icon) + var/icon/J = DrawPixel(I, colour, drawX, drawY) + if(J) //Only set the icon if it succeeded, the icon without the pixel is 1000x better than a black square. + icon = J + return J + return 0 + +//Hook, override to run code on- wait this is images +//Images have dir without being an atom, so they get their own definition. +//Lame. +/image/proc/setDir(newdir) + dir = newdir + +/* Gives the result RGB of a RGB string after a matrix transformation. No alpha. + * Input: rr, rg, rb, gr, gg, gb, br, bg, bb, cr, cg, cb + * Output: RGB string + */ +/proc/RGBMatrixTransform(list/color, list/cm) + ASSERT(cm.len >= 9) + if(cm.len < 12) // fill in the rest + for(var/i in 1 to (12 - cm.len)) + cm += 0 + if(!islist(color)) + color = ReadRGB(color) + color[1] = color[1] * cm[1] + color[2] * cm[2] + color[3] * cm[3] + cm[10] * 255 + color[2] = color[1] * cm[4] + color[2] * cm[5] + color[3] * cm[6] + cm[11] * 255 + color[3] = color[1] * cm[7] + color[2] * cm[8] + color[3] * cm[9] + cm[12] * 255 + return rgb(color[1], color[2], color[3]) diff --git a/code/_helpers/type2type.dm b/code/_helpers/type2type.dm index 8bd45bbfc76..1479a07d354 100644 --- a/code/_helpers/type2type.dm +++ b/code/_helpers/type2type.dm @@ -183,6 +183,88 @@ var/hex_to_work_on = copytext(hex,5,7) return hex2num(hex_to_work_on) +/** + * Convert HSL to RGB + */ +/proc/hsl2rgb(hue, saturation, lightness) + var/red + var/green + var/blue + + if(saturation == 0) + red = lightness * 255 + green = red + blue = red + else + var/a;var/b; + if(lightness < 0.5) + b = lightness * (1 + saturation) + else + b = (lightness + saturation) - (saturation * lightness) + a = 2 * lightness - b + + red = round(255 * hue2rgb(a, b, hue + (1/3)), 1) + green = round(255 * hue2rgb(a, b, hue), 1) + blue = round(255 * hue2rgb(a, b, hue - (1/3)), 1) + + return list(red, green, blue) + +/** + * Convert RBG to HSL + */ +/proc/rgb2hsl(red, green, blue) + red /= 255 + green /= 255 + blue /= 255 + + var/max = max(red, green, blue) + var/min = min(red, green, blue) + var/range = max - min + + var/hue = 0 + var/saturation = 0 + var/lightness = 0 + + lightness = (max + min) / 2 + if(range != 0) + if(lightness < 0.5) + saturation = range / (max + min) + else + saturation = range / (2 - max - min) + + var/dred = ((max - red) / (6 * max)) + 0.5 + var/dgreen = ((max - green) / (6 * max)) + 0.5 + var/dblue = ((max - blue) / (6 * max)) + 0.5 + + if(max == red) + hue = dblue - dgreen + else if(max == green) + hue = dred - dblue + (1 / 3) + else + hue = dgreen - dred + (2 / 3) + if(hue < 0) + hue++ + else if(hue > 1) + hue-- + + return list(hue, saturation, lightness) + +/** + * Convert hue to RGB + */ +/proc/hue2rgb(a, b, hue) + if(hue < 0) + hue++ + else if(hue > 1) + hue-- + if(6*hue < 1) + return (a + (b - a) * 6 * hue) + if(2*hue < 1) + return b + if(3*hue < 2) + return (a + (b - a) * ((2 / 3) - hue) * 6) + return a + // heat2color functions. Adapted from: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/ /proc/heat2color(temp) return rgb(heat2color_r(temp), heat2color_g(temp), heat2color_b(temp)) @@ -211,6 +293,53 @@ else . = max(0, min(255, 138.5177312231 * log(temp - 10) - 305.0447927307)) +/** + * Assumes format #RRGGBB #rrggbb + */ +/proc/color_hex2num(A) + if(!A || length(A) != length_char(A)) + return 0 + var/R = hex2num(copytext(A, 2, 4)) + var/G = hex2num(copytext(A, 4, 6)) + var/B = hex2num(copytext(A, 6, 8)) + return R+G+B + +/** + *! Word of warning: + * Using a matrix like this as a color value will simplify it back to a string after being set. + */ +/proc/color_hex2color_matrix(string) + var/length = length(string) + if((length != 7 && length != 9) || length != length_char(string)) + return color_matrix_identity() + var/r = hex2num(copytext(string, 2, 4)) / 255 + var/g = hex2num(copytext(string, 4, 6)) / 255 + var/b = hex2num(copytext(string, 6, 8)) / 255 + var/a = 1 + if(length == 9) + a = hex2num(copytext(string, 8, 10)) / 255 + if(!isnum(r) || !isnum(g) || !isnum(b) || !isnum(a)) + return color_matrix_identity() + return list( + r,0,0,0,0, + g,0,0,0,0, + b,0,0,0,0, + a,0,0,0,0, + ) + +/** + * Will drop all values not on the diagonal. + */ +/proc/color_matrix2color_hex(list/the_matrix) + if(!istype(the_matrix) || the_matrix.len != 20) + return "#ffffffff" + return rgb( + the_matrix[1] * 255, // R + the_matrix[6] * 255, // G + the_matrix[11] * 255, // B + the_matrix[16] * 255, // A + ) + // Very ugly, BYOND doesn't support unix time and rounding errors make it really hard to convert it to BYOND time. // returns "YYYY-MM-DD" by default /proc/unix2date(timestamp, seperator = "-") diff --git a/code/datums/browser.dm b/code/datums/browser.dm index 62aa9aab864..e38b78ab4d4 100644 --- a/code/datums/browser.dm +++ b/code/datums/browser.dm @@ -380,3 +380,88 @@ . |= GLOB.bitfields[bitfield][flag] else return + +/datum/browser/modal/color_matrix_picker + var/color_matrix + +/datum/browser/modal/color_matrix_picker/New(mob/user, message, title, button1 = "Ok", button2, button3, stealfocus = TRUE, timeout = 0, list/values) + if(!user) + return + if(!values) + values = list(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0) + if(values.len < 12) + values.len = 12 + var/list/output = list() + output += "
" + output += "[message]" +#define MATRIX_FIELD(field, default) " " + output += "

" + output += MATRIX_FIELD("rr", values[1]) + output += MATRIX_FIELD("gr", values[4]) + output += MATRIX_FIELD("br", values[7]) + output += "

" + output += MATRIX_FIELD("rg", values[2]) + output += MATRIX_FIELD("gg", values[5]) + output += MATRIX_FIELD("bg", values[8]) + output += "

" + output += MATRIX_FIELD("rb", values[3]) + output += MATRIX_FIELD("gb", values[6]) + output += MATRIX_FIELD("bb", values[9]) + output += "

" + output += MATRIX_FIELD("cr", values[10]) + output += MATRIX_FIELD("cg", values[11]) + output += MATRIX_FIELD("cb", values[12]) + output += "

" +#undef MATRIX_FIELD + + output += {"
+ "} + + if (button2) + output += {""} + + if (button3) + output += {""} + output += {"
"} + + ..(user, ckey("[user]-[message]-[title]-[world.time]-[rand(1,10000)]"), title, 800, 400, src, stealfocus, timeout) + set_content(output.Join("")) + +/datum/browser/modal/color_matrix_picker/Topic(href, list/href_list) + if(href_list["close"] || !user) + opentime = 0 + return + if(href_list["button"]) + var/button = text2num(href_list["button"]) + if(ISINRANGE(button, 1, 3)) + selectedbutton = button + var/list/cm = rgb_construct_color_matrix( + text2num(href_list["rr"]), + text2num(href_list["rg"]), + text2num(href_list["rb"]), + text2num(href_list["gr"]), + text2num(href_list["gg"]), + text2num(href_list["gb"]), + text2num(href_list["br"]), + text2num(href_list["bg"]), + text2num(href_list["bb"]), + text2num(href_list["cr"]), + text2num(href_list["cg"]), + text2num(href_list["cb"]) + ) + if(cm) + color_matrix = cm + opentime = 0 + close() + +/proc/color_matrix_picker(mob/user, message, title, button1 = "Ok", button2, button3, stealfocus, timeout = 10 MINUTES, list/values) + if(!istype(user)) + if(istype(user, /client)) + var/client/C = user + user = C.mob + else + return + var/datum/browser/modal/color_matrix_picker/B = new(user, message, title, button1, button2, button3, stealfocus, timeout, values) + B.open() + B.wait() + return list("button" = B.selectedbutton, "matrix" = B.color_matrix) diff --git a/code/datums/interfaces/appearance.dm b/code/datums/interfaces/appearance.dm new file mode 100644 index 00000000000..7bcb43d37d3 --- /dev/null +++ b/code/datums/interfaces/appearance.dm @@ -0,0 +1,143 @@ +/** + * hey, remember mutable appearance? + * + * only: + * - this isn't a real object rather than a struct + * - i'm making a cast for it so we can VV it + * - this is also used to cast procs that operate on appearance-like things. + * + * Sue me, I need to debug things somehow + * + * DO NOT USE THESE UNLESS YOU KNOW WHAT YOU ARE DOING. + */ +/appearance + var/alpha + var/appearance_flags + var/blend_mode + var/color + var/desc + var/dir + var/gender + var/icon + var/icon_state + var/invisibility + var/infra_luminosity + var/list/filters + var/layer + var/luminosity + var/maptext + var/maptext_width + var/maptext_height + var/maptext_x + var/maptext_y + var/mouse_over_pointer + var/mouse_drag_pointer + var/mouse_drop_pointer + var/mouse_drop_zone + var/mouse_opacity + var/name + var/opacity + var/list/overlays + var/override + var/pixel_x + var/pixel_y + var/pixel_w + var/pixel_z + var/plane + var/render_source + var/render_target + var/suffix + var/text + var/transform + var/list/underlays + // var/vis_flags + +//! vis_flags missing even though byond ref says it's there, fuck off why is this possible + +GLOBAL_REAL_VAR(_appearance_var_list) = list( + "alpha", + "appearance_flags", + "blend_mode", + "color", + "desc", + "dir", + "gender", + "icon", + "icon_state", + "invisibility", + "infra_luminosity", + "filters", + "layer", + "luminosity", + "maptext", + "maptext_width", + "maptext_height", + "maptext_x", + "maptext_y", + "mouse_over_pointer", + "mouse_drag_pointer", + "mouse_drop_pointer", + "mouse_drop_zone", + "mouse_opacity", + "name", + "opacity", + "overlays", + "override", + "pixel_x", + "pixel_y", + "pixel_w", + "pixel_z", + "plane", + "render_source", + "render_target", + "suffix", + "text", + "transform", + "underlays" + // "vis_flags" +) + +/proc/__appearance_v_debug(appearance/A, name) + switch(name) +#define DEBUG_APPEARANCE_VAR(n) if(#n) return debug_variable(name, A.n, 0, null) + DEBUG_APPEARANCE_VAR(alpha) + DEBUG_APPEARANCE_VAR(appearance_flags) + DEBUG_APPEARANCE_VAR(blend_mode) + DEBUG_APPEARANCE_VAR(color) + DEBUG_APPEARANCE_VAR(desc) + DEBUG_APPEARANCE_VAR(dir) + DEBUG_APPEARANCE_VAR(gender) + DEBUG_APPEARANCE_VAR(icon) + DEBUG_APPEARANCE_VAR(icon_state) + DEBUG_APPEARANCE_VAR(invisibility) + DEBUG_APPEARANCE_VAR(infra_luminosity) + DEBUG_APPEARANCE_VAR(filters) + DEBUG_APPEARANCE_VAR(layer) + DEBUG_APPEARANCE_VAR(luminosity) + DEBUG_APPEARANCE_VAR(maptext) + DEBUG_APPEARANCE_VAR(maptext_width) + DEBUG_APPEARANCE_VAR(maptext_height) + DEBUG_APPEARANCE_VAR(maptext_x) + DEBUG_APPEARANCE_VAR(maptext_y) + DEBUG_APPEARANCE_VAR(mouse_over_pointer) + DEBUG_APPEARANCE_VAR(mouse_drag_pointer) + DEBUG_APPEARANCE_VAR(mouse_drop_pointer) + DEBUG_APPEARANCE_VAR(mouse_drop_zone) + DEBUG_APPEARANCE_VAR(mouse_opacity) + DEBUG_APPEARANCE_VAR(name) + DEBUG_APPEARANCE_VAR(opacity) + DEBUG_APPEARANCE_VAR(overlays) + DEBUG_APPEARANCE_VAR(override) + DEBUG_APPEARANCE_VAR(pixel_x) + DEBUG_APPEARANCE_VAR(pixel_y) + DEBUG_APPEARANCE_VAR(pixel_w) + DEBUG_APPEARANCE_VAR(pixel_z) + DEBUG_APPEARANCE_VAR(plane) + DEBUG_APPEARANCE_VAR(render_source) + DEBUG_APPEARANCE_VAR(render_target) + DEBUG_APPEARANCE_VAR(suffix) + DEBUG_APPEARANCE_VAR(text) + DEBUG_APPEARANCE_VAR(transform) + DEBUG_APPEARANCE_VAR(underlays) + // DEBUG_APPEARANCE_VAR(vis_flags) +#undef DEBUG_APPEARANCE_VAR diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 9490a0af464..aab9326c519 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -49,6 +49,13 @@ var/chat_color_darkened /// The chat color var, without alpha. var/chat_color_hover + //! Colors + /** + * used to store the different colors on an atom + * + * its inherent color, the colored paint applied on it, special color effect etc... + */ + var/list/atom_colours /atom/New(loc, ...) // Don't call ..() unless /datum/New() ever exists @@ -731,3 +738,51 @@ // Airflow and ZAS zones now uses CanZASPass() instead of this proc. /atom/proc/CanPass(atom/movable/mover, turf/target) return !density + + +//! ## Atom Colour Priority System +/** + * A System that gives finer control over which atom colour to colour the atom with. + * The "highest priority" one is always displayed as opposed to the default of + * "whichever was set last is displayed" + */ + +/// Adds an instance of colour_type to the atom's atom_colours list +/atom/proc/add_atom_colour(coloration, colour_priority) + if(!atom_colours || !atom_colours.len) + atom_colours = list() + atom_colours.len = COLOUR_PRIORITY_AMOUNT //four priority levels currently. + if(!coloration) + return + if(colour_priority > atom_colours.len) + return + atom_colours[colour_priority] = coloration + update_atom_colour() + +/// Removes an instance of colour_type from the atom's atom_colours list +/atom/proc/remove_atom_colour(colour_priority, coloration) + if(!atom_colours) + atom_colours = list() + atom_colours.len = COLOUR_PRIORITY_AMOUNT //four priority levels currently. + if(colour_priority > atom_colours.len) + return + if(coloration && atom_colours[colour_priority] != coloration) + return //if we don't have the expected color (for a specific priority) to remove, do nothing + atom_colours[colour_priority] = null + update_atom_colour() + +/// Resets the atom's color to null, and then sets it to the highest priority colour available +/atom/proc/update_atom_colour() + if(!atom_colours) + atom_colours = list() + atom_colours.len = COLOUR_PRIORITY_AMOUNT //four priority levels currently. + color = null + for(var/C in atom_colours) + if(islist(C)) + var/list/L = C + if(L.len) + color = L + return + else if(C) + color = C + return diff --git a/code/game/machinery/painter_vr.dm b/code/game/machinery/painter_vr.dm index e10311915df..95b0e4a4ef6 100644 --- a/code/game/machinery/painter_vr.dm +++ b/code/game/machinery/painter_vr.dm @@ -1,62 +1,85 @@ -// I'm honestly pretty sure that short of stuffing five million things into this -// there's absolutely no way it could ever have any performance impact -// Given that all it does is set the color var -// But just in case it's cursed in some arcane horrible way -// I'm going to leave this limit here -#define MAX_PROCESSING 10 // Arbitrary performance insurance +#define COLORMATE_TINT 1 +#define COLORMATE_HSV 2 +#define COLORMATE_MATRIX 3 /obj/machinery/gear_painter name = "Color Mate" - desc = "A machine to give your apparel a fresh new color! Recommended to use with white items for best results." + desc = "A machine to give your apparel a fresh new color!" icon = 'icons/obj/vending_vr.dmi' icon_state = "colormate" density = TRUE anchored = TRUE - var/list/processing = list() + var/atom/movable/inserted var/activecolor = "#FFFFFF" + var/list/color_matrix_last + var/active_mode = COLORMATE_HSV + + var/build_hue = 0 + var/build_sat = 1 + var/build_val = 1 + + /// Allow holder'd mobs + var/allow_mobs = TRUE + /// Minimum lightness for normal mode + var/minimum_normal_lightness = 50 + /// Minimum lightness for matrix mode, tested using 4 test colors of full red, green, blue, white. + var/minimum_matrix_lightness = 75 + /// Minimum matrix tests that must pass for something to be considered a valid color (see above) + var/minimum_matrix_tests = 2 + /// Temporary messages + var/temp + var/list/allowed_types = list( - /obj/item/clothing, - /obj/item/weapon/storage/backpack, - /obj/item/weapon/storage/belt, - /obj/item/device/radio/headset - ) + /obj/item/clothing, + /obj/item/weapon/storage/backpack, + /obj/item/weapon/storage/belt, + /obj/item/toy + ) + +/obj/machinery/gear_painter/Initialize(mapload) + . = ..() + color_matrix_last = list( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1, + 0, 0, 0, + ) /obj/machinery/gear_painter/update_icon() if(panel_open) icon_state = "colormate_open" else if(inoperable()) icon_state = "colormate_off" - else if(processing.len) + else if(inserted) icon_state = "colormate_active" else icon_state = "colormate" /obj/machinery/gear_painter/Destroy() - for(var/atom/movable/O in processing) - O.forceMove(drop_location()) - processing.Cut() + if(inserted) //please i beg you do not drop nulls + inserted.forceMove(drop_location()) return ..() -/obj/machinery/gear_painter/attackby(obj/item/W, mob/user) - if(LAZYLEN(processing) >= MAX_PROCESSING) - to_chat(user, "The machine is full.") +/obj/machinery/gear_painter/attackby(obj/item/I, mob/living/user) + if(inserted) + to_chat(user, SPAN_WARNING("The machine is already loaded.")) return - if(default_deconstruction_screwdriver(user, W)) + if(default_deconstruction_screwdriver(user, I)) return - if(default_deconstruction_crowbar(user, W)) + if(default_deconstruction_crowbar(user, I)) return - if(default_unfasten_wrench(user, W, 40)) + if(default_unfasten_wrench(user, I, 40)) return - if(is_type_in_list(W, allowed_types) && !inoperable()) - user.visible_message("[user] inserts \the [W] into the Color Mate receptable.") - user.drop_from_inventory(W) - W.forceMove(src) - processing |= W + if(is_type_in_list(I, allowed_types) && !inoperable()) + user.visible_message("[user] inserts \the [I] into the Color Mate receptable.") + user.drop_from_inventory(I) + I.forceMove(src) + inserted = I SStgui.update_uis(src) + else - ..() - update_icon() + return ..() /obj/machinery/gear_painter/attack_hand(mob/user) if(..()) @@ -69,49 +92,209 @@ ui = new(user, src, "ColorMate", name) ui.open() -/obj/machinery/gear_painter/tgui_data(mob/user, datum/tgui/ui, datum/tgui_state/state) - var/list/data = ..() +/obj/machinery/gear_painter/proc/insert_mob(mob/victim, mob/user) + if(inserted) + return + if(user) + visible_message(SPAN_WARNING("[user] stuffs [victim] into [src]!")) + inserted = victim + inserted.forceMove(src) - var/list/items = list() - for(var/atom/movable/O in processing) - items.Add("[O]") - data["items"] = items +/obj/machinery/gear_painter/AllowDrop() + return FALSE - data["activecolor"] = activecolor - return data +// /obj/machinery/gear_painter/handle_atom_del(atom/movable/AM) +// if(AM == inserted) +// inserted = null +// return ..() -/obj/machinery/gear_painter/tgui_act(action, list/params, datum/tgui/ui, datum/tgui_state/state) - if(..()) - return TRUE - - add_fingerprint(usr) - - switch(action) - if("select") - var/newcolor = input(usr, "Choose a color.", "", activecolor) as color|null - if(newcolor) - activecolor = newcolor - . = TRUE - - if("paint") - for(var/atom/movable/O in processing) - O.color = activecolor - CHECK_TICK - playsound(src, 'sound/effects/spray3.ogg', 50, 1) - . = TRUE - - if("clear") - for(var/atom/movable/O in processing) - O.color = initial(O.color) - CHECK_TICK - playsound(src, 'sound/effects/spray3.ogg', 50, 1) - . = TRUE - - if("eject") - for(var/atom/movable/O in processing) - O.forceMove(drop_location()) - CHECK_TICK - processing.Cut() - . = TRUE +/obj/machinery/gear_painter/AltClick(mob/user) + . = ..() + drop_item() +/obj/machinery/gear_painter/proc/drop_item() + if(!oview(1,src)) + return + if(!inserted) + return + to_chat(usr, SPAN_NOTICE("You remove [inserted] from [src]")) + inserted.forceMove(drop_location()) + var/mob/living/user = usr + if(istype(user)) + user.put_in_hands(inserted) + inserted = null update_icon() + SStgui.update_uis(src) + +/obj/machinery/gear_painter/tgui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "ColorMate", src.name) + ui.set_autoupdate(FALSE) //This might be a bit intensive, better to not update it every few ticks + ui.open() + +/obj/machinery/gear_painter/tgui_data(mob/user) + . = list() + .["activemode"] = active_mode + .["matrixcolors"] = list( + "rr" = color_matrix_last[1], + "rg" = color_matrix_last[2], + "rb" = color_matrix_last[3], + "gr" = color_matrix_last[4], + "gg" = color_matrix_last[5], + "gb" = color_matrix_last[6], + "br" = color_matrix_last[7], + "bg" = color_matrix_last[8], + "bb" = color_matrix_last[9], + "cr" = color_matrix_last[10], + "cg" = color_matrix_last[11], + "cb" = color_matrix_last[12], + ) + .["buildhue"] = build_hue + .["buildsat"] = build_sat + .["buildval"] = build_val + if(temp) + .["temp"] = temp + if(inserted) + .["item"] = list() + .["item"]["name"] = inserted.name + .["item"]["sprite"] = icon2base64(get_flat_icon(inserted,dir=SOUTH,no_anim=TRUE)) + .["item"]["preview"] = icon2base64(build_preview()) + else + .["item"] = null + +/obj/machinery/gear_painter/tgui_act(action, params) + . = ..() + if(.) + return + if(inserted) + switch(action) + if("switch_modes") + active_mode = text2num(params["mode"]) + return TRUE + if("choose_color") + var/chosen_color = input(usr, "Choose a color: ", "ColorMate colour picking", activecolor) as color|null + if(chosen_color) + activecolor = chosen_color + return TRUE + if("paint") + do_paint(usr) + temp = "Painted Successfully!" + return TRUE + if("drop") + temp = "" + drop_item() + return TRUE + if("clear") + inserted.remove_atom_colour(FIXED_COLOUR_PRIORITY) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) + temp = "Cleared Successfully!" + return TRUE + if("set_matrix_color") + color_matrix_last[params["color"]] = params["value"] + return TRUE + if("set_hue") + build_hue = clamp(text2num(params["buildhue"]), 0, 360) + return TRUE + if("set_sat") + build_sat = clamp(text2num(params["buildsat"]), -10, 10) + return TRUE + if("set_val") + build_val = clamp(text2num(params["buildval"]), -10, 10) + return TRUE + + +/obj/machinery/gear_painter/proc/do_paint(mob/user) + var/color_to_use + switch(active_mode) + if(COLORMATE_TINT) + color_to_use = activecolor + if(COLORMATE_MATRIX) + color_to_use = rgb_construct_color_matrix( + text2num(color_matrix_last[1]), + text2num(color_matrix_last[2]), + text2num(color_matrix_last[3]), + text2num(color_matrix_last[4]), + text2num(color_matrix_last[5]), + text2num(color_matrix_last[6]), + text2num(color_matrix_last[7]), + text2num(color_matrix_last[8]), + text2num(color_matrix_last[9]), + text2num(color_matrix_last[10]), + text2num(color_matrix_last[11]), + text2num(color_matrix_last[12]), + ) + if(COLORMATE_HSV) + color_to_use = color_matrix_hsv(build_hue, build_sat, build_val) + color_matrix_last = color_to_use + if(!color_to_use || !check_valid_color(color_to_use, user)) + to_chat(user, SPAN_NOTICE("Invalid color.")) + return FALSE + inserted.add_atom_colour(color_to_use, FIXED_COLOUR_PRIORITY) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) + return TRUE + + +/// Produces the preview image of the item, used in the UI, the way the color is not stacking is a sin. +/obj/machinery/gear_painter/proc/build_preview() + if(inserted) //sanity + var/list/cm + switch(active_mode) + if(COLORMATE_MATRIX) + cm = rgb_construct_color_matrix( + text2num(color_matrix_last[1]), + text2num(color_matrix_last[2]), + text2num(color_matrix_last[3]), + text2num(color_matrix_last[4]), + text2num(color_matrix_last[5]), + text2num(color_matrix_last[6]), + text2num(color_matrix_last[7]), + text2num(color_matrix_last[8]), + text2num(color_matrix_last[9]), + text2num(color_matrix_last[10]), + text2num(color_matrix_last[11]), + text2num(color_matrix_last[12]), + ) + if(!check_valid_color(cm, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + if(COLORMATE_TINT) + if(!check_valid_color(activecolor, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + if(COLORMATE_HSV) + cm = color_matrix_hsv(build_hue, build_sat, build_val) + color_matrix_last = cm + if(!check_valid_color(cm, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + var/cur_color = inserted.color + inserted.color = null + inserted.color = (active_mode == COLORMATE_TINT ? activecolor : cm) + var/icon/preview = get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + inserted.color = cur_color + temp = "" + + . = preview + +/obj/machinery/gear_painter/proc/check_valid_color(list/cm, mob/user) + if(!islist(cm)) // normal + var/list/HSV = ReadHSV(RGBtoHSV(cm)) + if(HSV[3] < minimum_normal_lightness) + temp = "[cm] is too dark (Minimum lightness: [minimum_normal_lightness])" + return FALSE + return TRUE + else // matrix + // We test using full red, green, blue, and white + // A predefined number of them must pass to be considered valid + var/passed = 0 +#define COLORTEST(thestring, thematrix) passed += (ReadHSV(RGBtoHSV(RGBMatrixTransform(thestring, thematrix)))[3] >= minimum_matrix_lightness) + COLORTEST("FF0000", cm) + COLORTEST("00FF00", cm) + COLORTEST("0000FF", cm) + COLORTEST("FFFFFF", cm) +#undef COLORTEST + if(passed < minimum_matrix_tests) + temp = "Matrix is too dark. (passed [passed] out of [minimum_matrix_tests] required tests. Minimum lightness: [minimum_matrix_lightness])." + return FALSE + return TRUE diff --git a/code/matrices/color_matrix.dm b/code/matrices/color_matrix.dm new file mode 100644 index 00000000000..1e2988ea9bd --- /dev/null +++ b/code/matrices/color_matrix.dm @@ -0,0 +1,240 @@ +///////////////////// +// COLOUR MATRICES // +///////////////////// + +/* Documenting a couple of potentially useful color matrices here to inspire ideas. +// Greyscale - indentical to saturation @ 0 +list(LUMA_R,LUMA_R,LUMA_R,0, LUMA_G,LUMA_G,LUMA_G,0, LUMA_B,LUMA_B,LUMA_B,0, 0,0,0,1, 0,0,0,0) + +// Color inversion +list(-1,0,0,0, 0,-1,0,0, 0,0,-1,0, 0,0,0,1, 1,1,1,0) + +// Sepiatone +list(0.393,0.349,0.272,0, 0.769,0.686,0.534,0, 0.189,0.168,0.131,0, 0,0,0,1, 0,0,0,0) +*/ + +/// Does nothing. +/proc/color_matrix_identity() + return list(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1, 0,0,0,0) + +/** + * Adds/subtracts overall lightness. + * 0 is identity, 1 makes everything white, -1 makes everything black. + */ +/proc/color_matrix_lightness(power) + return list(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1, power,power,power,0) + +/** + * Changes distance hues have from grey while maintaining the overall lightness. Greys are unaffected. + * 1 is identity, 0 is greyscale, >1 oversaturates colors. + */ +/proc/color_matrix_saturation(value) + var/inv = 1 - value + var/R = round(LUMA_R * inv, 0.001) + var/G = round(LUMA_G * inv, 0.001) + var/B = round(LUMA_B * inv, 0.001) + + return list(R + value,R,R,0, G,G + value,G,0, B,B,B + value,0, 0,0,0,1, 0,0,0,0) + +/** + * Exxagerates or removes colors. + */ +/proc/color_matrix_saturation_percent(percent) + if(percent == 0) + return color_matrix_identity() + percent = clamp(percent, -100, 100) + if(percent > 0) + percent *= 3 + var/x = 1 + percent / 100 + var/inv = 1 - x + var/R = LUMA_R * inv + var/G = LUMA_G * inv + var/B = LUMA_B * inv + + return list(R + x,R,R, G,G + x,G, B,B,B + x) + +/** + * Greyscale matrix. + */ +/proc/color_matrix_greyscale() + return list(LUMA_R, LUMA_R, LUMA_R, LUMA_G, LUMA_G, LUMA_G, LUMA_B, LUMA_B, LUMA_B) + +/** + * Changes distance colors have from rgb(127,127,127) grey. + * 1 is identity. 0 makes everything grey >1 blows out colors and greys. + */ +/proc/color_matrix_contrast(value) + var/add = (1 - value) / 2 + return list(value,0,0,0, 0,value,0,0, 0,0,value,0, 0,0,0,1, add,add,add,0) + +/** + * Exxagerates or removes brightness. + */ +/proc/color_matrix_contrast_percent(percent) + var/static/list/delta_index = list( + 0, 0.01, 0.02, 0.04, 0.05, 0.06, 0.07, 0.08, 0.1, 0.11, + 0.12, 0.14, 0.15, 0.16, 0.17, 0.18, 0.20, 0.21, 0.22, 0.24, + 0.25, 0.27, 0.28, 0.30, 0.32, 0.34, 0.36, 0.38, 0.40, 0.42, + 0.44, 0.46, 0.48, 0.5, 0.53, 0.56, 0.59, 0.62, 0.65, 0.68, + 0.71, 0.74, 0.77, 0.80, 0.83, 0.86, 0.89, 0.92, 0.95, 0.98, + 1.0, 1.06, 1.12, 1.18, 1.24, 1.30, 1.36, 1.42, 1.48, 1.54, + 1.60, 1.66, 1.72, 1.78, 1.84, 1.90, 1.96, 2.0, 2.12, 2.25, + 2.37, 2.50, 2.62, 2.75, 2.87, 3.0, 3.2, 3.4, 3.6, 3.8, + 4.0, 4.3, 4.7, 4.9, 5.0, 5.5, 6.0, 6.5, 6.8, 7.0, + 7.3, 7.5, 7.8, 8.0, 8.4, 8.7, 9.0, 9.4, 9.6, 9.8, + 10.0) + percent = clamp(percent, -100, 100) + if(percent == 0) + return color_matrix_identity() + + var/x = 0 + if (percent < 0) + x = 127 + percent / 100 * 127; + else + x = percent % 1 + if(x == 0) + x = delta_index[percent] + else + x = delta_index[percent] * (1-x) + delta_index[percent+1] * x//use linear interpolation for more granularity. + x = x * 127 + 127 + + var/mult = x / 127 + var/add = 0.5 * (127-x) / 255 + return list(mult,0,0, 0,mult,0, 0,0,mult, add,add,add) + +/** + * Moves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting greys. + * 0 is identity, 120 moves reds to greens, 240 moves reds to blues. + */ +// +// +/proc/color_matrix_rotate_hue(angle) + var/sin = sin(angle) + var/cos = cos(angle) + var/cos_inv_third = 0.333*(1-cos) + var/sqrt3_sin = sqrt(3)*sin + return list( + round(cos+cos_inv_third, 0.001), round(cos_inv_third+sqrt3_sin, 0.001), round(cos_inv_third-sqrt3_sin, 0.001), 0, + round(cos_inv_third-sqrt3_sin, 0.001), round(cos+cos_inv_third, 0.001), round(cos_inv_third+sqrt3_sin, 0.001), 0, + round(cos_inv_third+sqrt3_sin, 0.001), round(cos_inv_third-sqrt3_sin, 0.001), round(cos+cos_inv_third, 0.001), 0, + 0,0,0,1, + 0,0,0,0, + ) + +/** + * Moves all colors angle degrees around the color wheel while maintaining intensity of the color and not affecting whites. + * TODO: Need a version that only affects one color (ie shift red to blue but leave greens and blues alone) + */ +/proc/color_matrix_rotation(angle) + if(angle == 0) + return color_matrix_identity() + angle = clamp(angle, -180, 180) + var/cos = cos(angle) + var/sin = sin(angle) + + var/constA = 0.143 + var/constB = 0.140 + var/constC = -0.283 + return list( + LUMA_R + cos * (1-LUMA_R) + sin * -LUMA_R, LUMA_R + cos * -LUMA_R + sin * constA, LUMA_R + cos * -LUMA_R + sin * -(1-LUMA_R), + LUMA_G + cos * -LUMA_G + sin * -LUMA_G, LUMA_G + cos * (1-LUMA_G) + sin * constB, LUMA_G + cos * -LUMA_G + sin * LUMA_G, + LUMA_B + cos * -LUMA_B + sin * (1-LUMA_B), LUMA_B + cos * -LUMA_B + sin * constC, LUMA_B + cos * (1-LUMA_B) + sin * LUMA_B + ) + +/** + * These next three rotate values about one axis only. + * x is the red axis, y is the green axis, z is the blue axis. + */ +/proc/color_matrix_rotate_x(angle) + var/sinval = round(sin(angle), 0.001) + var/cosval = round(cos(angle), 0.001) + return list(1,0,0,0, 0,cosval,sinval,0, 0,-sinval,cosval,0, 0,0,0,1, 0,0,0,0) + +/proc/color_matrix_rotate_y(angle) + var/sinval = round(sin(angle), 0.001) + var/cosval = round(cos(angle), 0.001) + return list(cosval,0,-sinval,0, 0,1,0,0, sinval,0,cosval,0, 0,0,0,1, 0,0,0,0) + +/proc/color_matrix_rotate_z(angle) + var/sinval = round(sin(angle), 0.001) + var/cosval = round(cos(angle), 0.001) + return list(cosval,sinval,0,0, -sinval,cosval,0,0, 0,0,1,0, 0,0,0,1, 0,0,0,0) + +/** + * Builds a color matrix that transforms the hue, saturation, and value, all in one operation. + */ +/proc/color_matrix_hsv(hue, saturation, value) + hue = clamp(360 - hue, 0, 360) + + // This is very much a rough approximation of hueshifting. This carries some artifacting, such as negative values that simply shouldn't exist, but it does get the job done, and that's what matters. + var/cos_a = cos(hue) // These have to be inverted from 360, otherwise the hue's inverted + var/sin_a = sin(hue) + var/rot_x = cos_a + (1 - cos_a) / 3 + var/rot_y = (1 - cos_a) / 3 - 0.5774 * sin_a // 0.5774 is sqrt(1/3) + var/rot_z = (1 - cos_a) / 3 + 0.5774 * sin_a + + return list( + round((((1-saturation) * LUMA_R) + (rot_x * saturation)) * value, 0.01), round((((1-saturation) * LUMA_R) + (rot_y * saturation)) * value, 0.01), round((((1-saturation) * LUMA_R) + (rot_z * saturation)) * value, 0.01), + round((((1-saturation) * LUMA_G) + (rot_z * saturation)) * value, 0.01), round((((1-saturation) * LUMA_G) + (rot_x * saturation)) * value, 0.01), round((((1-saturation) * LUMA_G) + (rot_y * saturation)) * value, 0.01), + round((((1-saturation) * LUMA_B) + (rot_y * saturation)) * value, 0.01), round((((1-saturation) * LUMA_B) + (rot_z * saturation)) * value, 0.01), round((((1-saturation) * LUMA_B) + (rot_x * saturation)) * value, 0.01), + 0, 0, 0 + ) + +/** + * Returns a matrix addition of A with B. + */ +/proc/color_matrix_add(list/A, list/B) + if(!istype(A) || !istype(B)) + return color_matrix_identity() + if(A.len != 20 || B.len != 20) + return color_matrix_identity() + var/list/output = list() + output.len = 20 + for(var/value in 1 to 20) + output[value] = A[value] + B[value] + return output + +/** + * Returns a matrix multiplication of A with B. + */ +/proc/color_matrix_multiply(list/A, list/B) + if(!istype(A) || !istype(B)) + return color_matrix_identity() + if(A.len != 20 || B.len != 20) + return color_matrix_identity() + var/list/output = list() + output.len = 20 + var/x = 1 + var/y = 1 + var/offset = 0 + for(y in 1 to 5) + offset = (y-1)*4 + for(x in 1 to 4) + output[offset+x] = round(A[offset+1]*B[x] + A[offset+2]*B[x+4] + A[offset+3]*B[x+8] + A[offset+4]*B[x+12]+(y==5?B[x+16]:0), 0.001) + return output + +/** + * Assembles a color matrix, defaulting to identity. + */ +/proc/rgb_construct_color_matrix(rr = 1, rg, rb, gr, gg = 1, gb, br, bg, bb = 1, cr, cg, cb) + return list(rr, rg, rb, gr, gg, gb, br, bg, bb, cr, cg, cb) + +/** + * Assembles a color matrix, defaulting to identity. + */ +/proc/rgba_construct_color_matrix(rr = 1, rg, rb, ra, gr, gg = 1, gb, ga, br, bg, bb = 1, ba, ar, ag, ab, aa = 1, cr, cg, cb, ca) + return list(rr, rg, rb, ra, gr, gg, gb, ga, br, bg, bb, ba, ar, ag, ab, aa, cr, cg, cb, ca) + +/** + * Constructs a colored greyscale matrix. + * WARNING: Bad math up ahead. + */ +/proc/rgba_auto_greyscale_matrix(rgba_string) + // process rgb(a) + var/list/L1 = ReadRGB(rgba_string) + ASSERT(L1.len) + if(L1.len == 3) + return rgba_construct_color_matrix(0.39, 0.39, 0.39, 0, 0.5, 0.5, 0.5, 0, 0.11, 0.11, 0.11, 0, 0, 0, 0, 1, max(-0.5, (L1[1] - 255) / 255), max(-0.5, (L1[2] - 255) / 255), max(-0.5, (L1[3] - 255) / 255), 0) + else + // alpha + return rgba_construct_color_matrix(0.39, 0.39, 0.39, 0, 0.5, 0.5, 0.5, 0, 0.11, 0.11, 0.11, 0, 0, 0, 0, 0, max(-0.5, (L1[1] - 255) / 255), max(-0.5, (L1[2] - 255) / 255), max(-0.5, (L1[3] - 255) / 255), L1[4] / 255) diff --git a/code/modules/client/preference_setup/loadout/gear_tweaks.dm b/code/modules/client/preference_setup/loadout/gear_tweaks.dm index ed5306412b6..f371fac6c18 100644 --- a/code/modules/client/preference_setup/loadout/gear_tweaks.dm +++ b/code/modules/client/preference_setup/loadout/gear_tweaks.dm @@ -40,7 +40,48 @@ /datum/gear_tweak/color/tweak_item(var/obj/item/I, var/metadata) if(valid_colors && !(metadata in valid_colors)) return - I.color = metadata + if(!metadata || (metadata == "#ffffff")) + return + if(istype(I)) + I.add_atom_colour(metadata, FIXED_COLOUR_PRIORITY) + else + I.color = metadata + +GLOBAL_DATUM_INIT(gear_tweak_free_matrix_recolor, /datum/gear_tweak/matrix_recolor, new) + +/datum/gear_tweak/matrix_recolor + +/datum/gear_tweak/matrix_recolor/get_contents(var/metadata) + if(islist(metadata) && length(metadata)) + return "Matrix Recolor: [english_list(metadata)]" + return "Matrix Recolor" + +/datum/gear_tweak/matrix_recolor/get_default() + return null + +/datum/gear_tweak/matrix_recolor/get_metadata(user, metadata) + var/list/returned = color_matrix_picker(user, "Pick a color matrix for this item", "Matrix Recolor", "Ok", "Erase", "Cancel", TRUE, 10 MINUTES, islist(metadata) && metadata) + var/list/L = returned["matrix"] + if(returned["button"] == 3) + return metadata + if((returned["button"] == 2) || !islist(L) || !ISINRANGE(L.len, 9, 20)) + return list() + var/identity = TRUE + var/static/list/ones = list(1, 5, 9) + for(var/i in 1 to L.len) + if(L[i] != ((i in ones)? 1 : 0)) + identity = FALSE + break + return identity? list() : L + +/datum/gear_tweak/matrix_recolor/tweak_item(obj/item/I, metadata) + . = ..() + if(!islist(metadata) || (length(metadata) < 12)) + return + if(istype(I)) + I.add_atom_colour(metadata, FIXED_COLOUR_PRIORITY) + else + I.color = metadata /* * Path adjustment diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index 797854a283d..61d9c6020d3 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -85,10 +85,12 @@ /proc/is_admin(var/mob/user) return check_rights(R_ADMIN|R_EVENT, 0, user) != 0 - +/** + * Moved into its own file as part of port from CHOMP. + * /proc/hsl2rgb(h, s, l) return //TODO: Implement - +*/ /* Miss Chance */ diff --git a/icons/system/blank_32x32.dmi b/icons/system/blank_32x32.dmi new file mode 100644 index 0000000000000000000000000000000000000000..4f5867e07e724a15ceb2638903a71ba2913faed2 GIT binary patch literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnL3?x0byx0z;m;-!5Tn`*LkmkKF1;}MA3GxeO zaCmkj4aiBU3W+FjNi9w;$}A|!%+F(BsF)KRR!~&>{Y!Ac$FEPcymhtCojD)8A=Kca z@q { + const { act, data } = useBackend(context); + const { activemode, temp } = data; + const item = data.item || []; + return ( + + +
+ {temp ? {temp} : null} + {Object.keys(item).length ? ( + <> + + +
+
Item:
+ +
+
+ +
+
Preview:
+ +
+
+
+ + + act('switch_modes', { + mode: 1, + }) + } + > + Tint coloring (Simple) + + + act('switch_modes', { + mode: 2, + }) + } + > + HSV coloring (Normal) + + + act('switch_modes', { + mode: 3, + }) + } + > + Matrix coloring (Advanced) + + +
Coloring: {item.name}
+ + +
+ + ) : ( +
No item inserted.
+ )} +
+
+
+ ); +}; + +export const ColorMateTint = (props, context) => { + const { act, data } = useBackend(context); + return ( + - - - - - - -
- {items.map((item, i) => ( - - #{i + 1}: {item} - - ))} -
- - )) || ( -
- No items inserted. -
- )} - - - ); -}; diff --git a/vorestation.dme b/vorestation.dme index 9a6c3310a0b..e6fb7099fd8 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -40,6 +40,7 @@ #include "code\__defines\chemistry.dm" #include "code\__defines\chemistry_vr.dm" #include "code\__defines\color.dm" +#include "code\__defines\color_priority.dm" #include "code\__defines\construction.dm" #include "code\__defines\cooldowns.dm" #include "code\__defines\crafting.dm" @@ -59,6 +60,7 @@ #include "code\__defines\lighting.dm" #include "code\__defines\lighting_vr.dm" #include "code\__defines\logging.dm" +#include "code\__defines\lum.dm" #include "code\__defines\machinery.dm" #include "code\__defines\map.dm" #include "code\__defines\materials.dm" @@ -137,6 +139,7 @@ #include "code\_helpers\global_lists.dm" #include "code\_helpers\global_lists_vr.dm" #include "code\_helpers\icons.dm" +#include "code\_helpers\icons_ch.dm" #include "code\_helpers\icons_vr.dm" #include "code\_helpers\lighting.dm" #include "code\_helpers\logging.dm" @@ -156,6 +159,7 @@ #include "code\_helpers\unsorted_vr.dm" #include "code\_helpers\view.dm" #include "code\_helpers\visual_filters.dm" +#include "code\_helpers\icons\flatten.dm" #include "code\_helpers\logging\ui.dm" #include "code\_helpers\sorts\__main.dm" #include "code\_helpers\sorts\comparators.dm" @@ -389,6 +393,7 @@ #include "code\datums\helper_datums\teleport.dm" #include "code\datums\helper_datums\teleport_vr.dm" #include "code\datums\helper_datums\topic_input.dm" +#include "code\datums\interfaces\appearance.dm" #include "code\datums\locations\locations.dm" #include "code\datums\locations\nyx.dm" #include "code\datums\locations\qerrvallis.dm" @@ -1693,6 +1698,7 @@ #include "code\game\turfs\unsimulated\walls.dm" #include "code\js\byjax.dm" #include "code\js\menus.dm" +#include "code\matrices\color_matrix.dm" #include "code\modules\admin\admin.dm" #include "code\modules\admin\admin_attack_log.dm" #include "code\modules\admin\admin_investigate.dm" From 11c6c90c3bd43278ea27f1de77911e73b849bbd8 Mon Sep 17 00:00:00 2001 From: Runa-Dacino Date: Fri, 15 Mar 2024 19:03:27 +0100 Subject: [PATCH 2/3] add(colormate): Ports recolouring for simple mobs and cyborgs Original PR: https://github.com/CHOMPStation2/CHOMPStation2/pull/7415 Original Author: https://github.com/Kashargul Personal Addition: * Added config for letting simples/robots spawn with recolour verb * Added verb for admins to temporarily edit the config on live. --- code/__defines/misc_vr.dm | 7 +- code/controllers/configuration.dm | 8 + code/datums/colormate.dm | 213 ++++++++++++++++++ code/game/machinery/painter_vr.dm | 4 - code/modules/admin/admin_verb_lists_vr.dm | 3 +- code/modules/admin/admin_verbs_vr.dm | 17 ++ .../modules/mob/living/silicon/robot/robot.dm | 20 ++ .../mob/living/simple_mob/simple_mob.dm | 17 ++ vorestation.dme | 1 + 9 files changed, 284 insertions(+), 6 deletions(-) create mode 100644 code/datums/colormate.dm diff --git a/code/__defines/misc_vr.dm b/code/__defines/misc_vr.dm index 9c5896a8066..114448b9167 100644 --- a/code/__defines/misc_vr.dm +++ b/code/__defines/misc_vr.dm @@ -14,6 +14,11 @@ #define VANTAG_KIDNAP "vantag_kidnap" #define VANTAG_KILL "vantag_kill" +// ColorMate states +#define COLORMATE_TINT 1 +#define COLORMATE_HSV 2 +#define COLORMATE_MATRIX 3 + #define DEPARTMENT_OFFDUTY "Off-Duty" #define ANNOUNCER_NAME "Facility PA" @@ -81,4 +86,4 @@ #define RESIZE_A_HUGEBIG (RESIZE_HUGE + RESIZE_BIG) / 2 #define RESIZE_A_BIGNORMAL (RESIZE_BIG + RESIZE_NORMAL) / 2 #define RESIZE_A_NORMALSMALL (RESIZE_NORMAL + RESIZE_SMALL) / 2 -#define RESIZE_A_SMALLTINY (RESIZE_SMALL + RESIZE_TINY) / 2 \ No newline at end of file +#define RESIZE_A_SMALLTINY (RESIZE_SMALL + RESIZE_TINY) / 2 diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index b4b5d955e76..e0bc68325cf 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -304,6 +304,10 @@ var/list/gamemode_cache = list() var/static/invoke_youtubedl = null + //Enables/Disables the appropriate mob type from obtaining the verb on spawn. Still allows admins to manually give it to them. + var/static/allow_robot_recolor = FALSE + var/static/allow_simple_mob_recolor = FALSE + /datum/configuration/New() var/list/L = subtypesof(/datum/game_mode) for (var/T in L) @@ -1047,6 +1051,10 @@ var/list/gamemode_cache = list() if("loadout_whitelist") config.loadout_whitelist = text2num(value) + if("allow_robot_recolor") + config.allow_robot_recolor = 1 + if("allow_simple_mob_recolor") + config.allow_simple_mob_recolor = 1 else log_misc("Unknown setting in configuration: '[name]'") diff --git a/code/datums/colormate.dm b/code/datums/colormate.dm new file mode 100644 index 00000000000..2149191543f --- /dev/null +++ b/code/datums/colormate.dm @@ -0,0 +1,213 @@ +/datum/ColorMate + var/name = "colouring" + var/atom/movable/inserted + var/activecolor = "#FFFFFF" + var/list/color_matrix_last + var/active_mode = COLORMATE_HSV + + var/build_hue = 0 + var/build_sat = 1 + var/build_val = 1 + + /// Minimum lightness for normal mode + var/minimum_normal_lightness = 50 + /// Minimum lightness for matrix mode, tested using 4 test colors of full red, green, blue, white. + var/minimum_matrix_lightness = 75 + /// Minimum matrix tests that must pass for something to be considered a valid color (see above) + var/minimum_matrix_tests = 2 + /// Temporary messages + var/temp + +/datum/ColorMate/New(mob/user) + color_matrix_last = list( + 1, 0, 0, + 0, 1, 0, + 0, 0, 1, + 0, 0, 0, + ) + if(istype(user)) + inserted = user + . = ..() + +/datum/ColorMate/Destroy() + inserted = null + . = ..() + +/datum/ColorMate/tgui_interact(mob/user, datum/tgui/ui) + ui = SStgui.try_update_ui(user, src, ui) + if(!ui) + ui = new(user, src, "ColorMate", src.name) + ui.set_autoupdate(FALSE) //This might be a bit intensive, better to not update it every few ticks + ui.open() + +/datum/ColorMate/tgui_state(mob/user) + return GLOB.tgui_conscious_state + +/datum/ColorMate/tgui_data() + . = list() + .["activemode"] = active_mode + .["matrixcolors"] = list( + "rr" = color_matrix_last[1], + "rg" = color_matrix_last[2], + "rb" = color_matrix_last[3], + "gr" = color_matrix_last[4], + "gg" = color_matrix_last[5], + "gb" = color_matrix_last[6], + "br" = color_matrix_last[7], + "bg" = color_matrix_last[8], + "bb" = color_matrix_last[9], + "cr" = color_matrix_last[10], + "cg" = color_matrix_last[11], + "cb" = color_matrix_last[12], + ) + .["buildhue"] = build_hue + .["buildsat"] = build_sat + .["buildval"] = build_val + if(temp) + .["temp"] = temp + if(inserted) + .["item"] = list() + .["item"]["name"] = inserted.name + .["item"]["sprite"] = icon2base64(get_flat_icon(inserted,dir=SOUTH,no_anim=TRUE)) + .["item"]["preview"] = icon2base64(build_preview()) + else + .["item"] = null + +/datum/ColorMate/tgui_act(action, params) + . = ..() + if(.) + return + if(inserted) + switch(action) + if("switch_modes") + active_mode = text2num(params["mode"]) + return TRUE + if("choose_color") + var/chosen_color = input(inserted, "Choose a color: ", "ColorMate colour picking", activecolor) as color|null + if(chosen_color) + activecolor = chosen_color + return TRUE + if("paint") + do_paint(inserted) + temp = "Painted Successfully!" + if(istype(inserted, /mob/living/simple_mob)) + var/mob/living/simple_mob/M = inserted + M.has_recoloured = TRUE + if(istype(inserted, /mob/living/silicon/robot)) + var/mob/living/silicon/robot/R = inserted + R.has_recoloured = TRUE + Destroy() + if("drop") + temp = "" + Destroy() + if("clear") + inserted.remove_atom_colour(FIXED_COLOUR_PRIORITY) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) + temp = "Cleared Successfully!" + return TRUE + if("set_matrix_color") + color_matrix_last[params["color"]] = params["value"] + return TRUE + if("set_hue") + build_hue = clamp(text2num(params["buildhue"]), 0, 360) + return TRUE + if("set_sat") + build_sat = clamp(text2num(params["buildsat"]), -10, 10) + return TRUE + if("set_val") + build_val = clamp(text2num(params["buildval"]), -10, 10) + return TRUE + +/datum/ColorMate/proc/do_paint(mob/user) + var/color_to_use + switch(active_mode) + if(COLORMATE_TINT) + color_to_use = activecolor + if(COLORMATE_MATRIX) + color_to_use = rgb_construct_color_matrix( + text2num(color_matrix_last[1]), + text2num(color_matrix_last[2]), + text2num(color_matrix_last[3]), + text2num(color_matrix_last[4]), + text2num(color_matrix_last[5]), + text2num(color_matrix_last[6]), + text2num(color_matrix_last[7]), + text2num(color_matrix_last[8]), + text2num(color_matrix_last[9]), + text2num(color_matrix_last[10]), + text2num(color_matrix_last[11]), + text2num(color_matrix_last[12]), + ) + if(COLORMATE_HSV) + color_to_use = color_matrix_hsv(build_hue, build_sat, build_val) + color_matrix_last = color_to_use + if(!color_to_use || !check_valid_color(color_to_use, user)) + to_chat(user, SPAN_NOTICE("Invalid color.")) + return FALSE + inserted.add_atom_colour(color_to_use, FIXED_COLOUR_PRIORITY) + playsound(src, 'sound/effects/spray3.ogg', 50, 1) + return TRUE + +/// Produces the preview image of the item, used in the UI, the way the color is not stacking is a sin. +/datum/ColorMate/proc/build_preview() + if(inserted) //sanity + var/list/cm + switch(active_mode) + if(COLORMATE_MATRIX) + cm = rgb_construct_color_matrix( + text2num(color_matrix_last[1]), + text2num(color_matrix_last[2]), + text2num(color_matrix_last[3]), + text2num(color_matrix_last[4]), + text2num(color_matrix_last[5]), + text2num(color_matrix_last[6]), + text2num(color_matrix_last[7]), + text2num(color_matrix_last[8]), + text2num(color_matrix_last[9]), + text2num(color_matrix_last[10]), + text2num(color_matrix_last[11]), + text2num(color_matrix_last[12]), + ) + if(!check_valid_color(cm, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + if(COLORMATE_TINT) + if(!check_valid_color(activecolor, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + if(COLORMATE_HSV) + cm = color_matrix_hsv(build_hue, build_sat, build_val) + color_matrix_last = cm + if(!check_valid_color(cm, usr)) + return get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + + var/cur_color = inserted.color + inserted.color = null + inserted.color = (active_mode == COLORMATE_TINT ? activecolor : cm) + var/icon/preview = get_flat_icon(inserted, dir=SOUTH, no_anim=TRUE) + inserted.color = cur_color + temp = "" + + . = preview + +/datum/ColorMate/proc/check_valid_color(list/cm, mob/user) + if(!islist(cm)) // normal + var/list/HSV = ReadHSV(RGBtoHSV(cm)) + if(HSV[3] < minimum_normal_lightness) + temp = "[cm] is too dark (Minimum lightness: [minimum_normal_lightness])" + return FALSE + return TRUE + else // matrix + // We test using full red, green, blue, and white + // A predefined number of them must pass to be considered valid + var/passed = 0 +#define COLORTEST(thestring, thematrix) passed += (ReadHSV(RGBtoHSV(RGBMatrixTransform(thestring, thematrix)))[3] >= minimum_matrix_lightness) + COLORTEST("FF0000", cm) + COLORTEST("00FF00", cm) + COLORTEST("0000FF", cm) + COLORTEST("FFFFFF", cm) +#undef COLORTEST + if(passed < minimum_matrix_tests) + temp = "Matrix is too dark. (passed [passed] out of [minimum_matrix_tests] required tests. Minimum lightness: [minimum_matrix_lightness])." + return FALSE + return TRUE diff --git a/code/game/machinery/painter_vr.dm b/code/game/machinery/painter_vr.dm index 95b0e4a4ef6..53614b2f904 100644 --- a/code/game/machinery/painter_vr.dm +++ b/code/game/machinery/painter_vr.dm @@ -1,7 +1,3 @@ -#define COLORMATE_TINT 1 -#define COLORMATE_HSV 2 -#define COLORMATE_MATRIX 3 - /obj/machinery/gear_painter name = "Color Mate" desc = "A machine to give your apparel a fresh new color!" diff --git a/code/modules/admin/admin_verb_lists_vr.dm b/code/modules/admin/admin_verb_lists_vr.dm index cc249bb4d8a..92e6620411a 100644 --- a/code/modules/admin/admin_verb_lists_vr.dm +++ b/code/modules/admin/admin_verb_lists_vr.dm @@ -222,7 +222,8 @@ var/list/admin_verbs_server = list( /client/proc/recipe_dump, /client/proc/panicbunker, /client/proc/paranoia_logging, - /client/proc/ip_reputation + /client/proc/ip_reputation, + /client/proc/toggle_spawning_with_recolour ) var/list/admin_verbs_debug = list( diff --git a/code/modules/admin/admin_verbs_vr.dm b/code/modules/admin/admin_verbs_vr.dm index 3a65d070d2b..7b6bf90c528 100644 --- a/code/modules/admin/admin_verbs_vr.dm +++ b/code/modules/admin/admin_verbs_vr.dm @@ -120,3 +120,20 @@ usr << browse(dat, "window=library") onclose(usr, "library") + +/client/proc/toggle_spawning_with_recolour() + set name = "Toggle Simple/Robot recolour verb" + set desc = "Makes it so new robots/simple_mobs spawn with a verb to recolour themselves for this round. You must set them separately." + set category = "Server" + + if(!check_rights(R_SERVER)) + return + + var/which = tgui_alert(usr, "Which do you want to toggle?", "Choose Recolour Toggle", list("Robot", "Simple Mob")) + switch(which) + if("Robot") + config.allow_robot_recolor = !config.allow_robot_recolor + to_chat(usr, "You have [config.allow_robot_recolor ? "enabled" : "disabled"] newly spawned cyborgs to spawn with the recolour verb") + if("Simple Mob") + config.allow_simple_mob_recolor = !config.allow_simple_mob_recolor + to_chat(usr, "You have [config.allow_simple_mob_recolor ? "enabled" : "disabled"] newly spawned simple mobs to spawn with the recolour verb") diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm index ce59e59bb51..bd7f419f7f6 100644 --- a/code/modules/mob/living/silicon/robot/robot.dm +++ b/code/modules/mob/living/silicon/robot/robot.dm @@ -113,6 +113,8 @@ /mob/living/proc/lend_prey_control ) + var/has_recoloured = FALSE + /mob/living/silicon/robot/New(loc, var/unfinished = 0) spark_system = new /datum/effect/effect/system/spark_spread() spark_system.set_up(5, 0, src) @@ -174,6 +176,8 @@ hud_list[IMPTRACK_HUD] = gen_hud_image('icons/mob/hud.dmi', src, "hudblank", plane = PLANE_CH_IMPTRACK) hud_list[SPECIALROLE_HUD] = gen_hud_image('icons/mob/hud.dmi', src, "hudblank", plane = PLANE_CH_SPECIAL) + + /mob/living/silicon/robot/LateInitialize() . = ..() update_icon() @@ -818,6 +822,18 @@ module.Destroy() module = null updatename("Default") + has_recoloured = FALSE + +/mob/living/silicon/robot/proc/ColorMate() + set name = "Recolour Module" + set category = "Robot Commands" + set desc = "Allows to recolour once." + + if(!has_recoloured) + var/datum/ColorMate/recolour = new /datum/ColorMate(usr) + recolour.tgui_interact(usr) + return + to_chat(usr, "You've already recoloured yourself once. Ask for a module reset for another.") /mob/living/silicon/robot/attack_hand(mob/user) @@ -1253,10 +1269,14 @@ /mob/living/silicon/robot/proc/add_robot_verbs() src.verbs |= robot_verbs_default src.verbs |= silicon_subsystems + if(config.allow_robot_recolor) + src.verbs |= /mob/living/silicon/robot/proc/ColorMate /mob/living/silicon/robot/proc/remove_robot_verbs() src.verbs -= robot_verbs_default src.verbs -= silicon_subsystems + if(config.allow_robot_recolor) + src.verbs |= /mob/living/silicon/robot/proc/ColorMate // Uses power from cyborg's cell. Returns 1 on success or 0 on failure. // Properly converts using CELLRATE now! Amount is in Joules. diff --git a/code/modules/mob/living/simple_mob/simple_mob.dm b/code/modules/mob/living/simple_mob/simple_mob.dm index fe671688919..2046ad0106c 100644 --- a/code/modules/mob/living/simple_mob/simple_mob.dm +++ b/code/modules/mob/living/simple_mob/simple_mob.dm @@ -174,6 +174,8 @@ var/injury_enrages = FALSE // Do injuries enrage (aka strengthen) our mob? If yes, we'll interpret how hurt we are differently. // VOREStation Add End + var/has_recoloured = FALSE + /mob/living/simple_mob/Initialize() verbs -= /mob/verb/observe health = maxHealth @@ -193,6 +195,10 @@ if(organ_names) organ_names = GET_DECL(organ_names) + if(config.allow_simple_mob_recolor) + verbs |= /mob/living/simple_mob/proc/ColorMate + + return ..() /mob/living/simple_mob/Destroy() @@ -337,3 +343,14 @@ . = ..() // Calling parent here, actually updating our mob on how hurt we are. // VOREStation Add End + +/mob/living/simple_mob/proc/ColorMate() + set name = "Recolour" + set category = "Abilities" + set desc = "Allows to recolour once." + + if(!has_recoloured) + var/datum/ColorMate/recolour = new /datum/ColorMate(usr) + recolour.tgui_interact(usr) + return + to_chat(usr, "You've already recoloured yourself once. You are only allowed to recolour yourself once during a around.") diff --git a/vorestation.dme b/vorestation.dme index e6fb7099fd8..d93ed8edf4c 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -336,6 +336,7 @@ #include "code\datums\category.dm" #include "code\datums\chat_message.dm" #include "code\datums\chat_payload.dm" +#include "code\datums\colormate.dm" #include "code\datums\datacore.dm" #include "code\datums\datum.dm" #include "code\datums\datumvars.dm" From 2f872741cd99b0038ec223e7841675d5b2af0971 Mon Sep 17 00:00:00 2001 From: Runa-Dacino Date: Sat, 16 Mar 2024 16:35:11 +0100 Subject: [PATCH 3/3] chore(tgui): Repackages TGUI bundle to resolve merge conflict --- tgui/public/tgui.bundle.js | 160 ++++++++++++++++++------------------- 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index a079c3a1660..48a140fb321 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -1,4 +1,4 @@ -(function(){(function(){var Lu={44352:function(M,j,t){"use strict";/** +(function(){(function(){var Lu={44352:function(M,y,t){"use strict";/** * @license React * react-dom.production.min.js * @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function e(o,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](o):o instanceof l}function s(o){"@swc/helpers - typeof";return o&&typeof Symbol!="undefined"&&o.constructor===Symbol?"symbol":typeof o}var n=t(44583),r=t(7864);function i(o){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+o,E=1;El}return!1}function y(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){O[o]=new y(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];O[l]=new y(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){O[o]=new y(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){O[o]=new y(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){O[o]=new y(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){O[o]=new y(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){O[o]=new y(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){O[o]=new y(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){O[o]=new y(o,5,!1,o.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new y(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new y(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(b,I);O[l]=new y(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){O[o]=new y(o,1,!1,o.toLowerCase(),null,!1,!1)}),O.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){O[o]=new y(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ce=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function ve(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=de(o.type,!1),o;case 11:return o=de(o.type.render,!1),o;case 1:return o=de(o.type,!0),o;default:return""}}function pe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case X:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Y:return l=o.displayName||null,l!==null?l:pe(o.type)||"Memo";case Z:l=o._payload,o=o._init;try{return pe(o(l))}catch(E){}}return null}function me(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(l);case 8:return l===K?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":s(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Ke(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function ct(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function st(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function ot(o,l){st(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Le(o,l.type,E):l.hasOwnProperty("defaultValue")&&Le(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Ae(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Le(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function lt(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Qe(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function mt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Qe(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wt=null;function dn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bn=null,Gn=null,Hn=null;function Eo(o){if(o=Rr(o)){if(typeof Bn!="function")throw Error(i(280));var l=o.stateNode;l&&(l=Xo(l),Bn(o.stateNode,o.type,l))}}function bo(o){Gn?Hn?Hn.push(o):Hn=[o]:Gn=o}function Oo(){if(Gn){var o=Gn,l=Hn;if(Hn=Gn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Hi(o)/Yi|0)|0}var sr=64,ha=4194304;function Po(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ma(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Pn(l),o[l]=E}function el(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),vi=" ",_a=!1;function ds(o,l){switch(o){case"keyup":return us.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _r=!1;function yc(o,l){switch(o){case"compositionend":return vl(l);case"keypress":return l.which!==32?null:(_a=!0,vi);case"textInput":return o=l.data,o===vi&&_a?null:o;default:return null}}function xi(o,l){if(_r)return o==="compositionend"||!Ia&&ds(o,l)?(o=ur(),cr=Ao=kn=null,_r=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Da(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Sa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function Ci(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function yl(o){var l=Sa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(T!==null&&Ci(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Pr(E,W);var q=Pr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Mr=null,ms=null,Ta=null,Uo=!1;function Cl(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Mr==null||Mr!==Be(T)||(T=Mr,"selectionStart"in T&&Ci(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ta&&No(Ta,T)||(Ta=T,T=La(ms,"onSelect"),0wr||(o.current=Go[wr],Go[wr]=null,wr--)}function Tt(o,l){wr++,Go[wr]=o.current,o.current=l}var xr={},Zt=Qn(xr),tn=Qn(!1),$n=xr;function so(o,l){var E=o.type.contextTypes;if(!E)return xr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function Xt(o){return o=o.childContextTypes,o!=null}function za(){At(tn),At(Zt)}function Sl(o,l,E){if(Zt.current!==xr)throw Error(i(168));Tt(Zt,l),Tt(tn,E)}function Ri(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(i(108,me(o)||"Unknown",L));return ee({},E,T)}function lo(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||xr,$n=Zt.current,Tt(Zt,o),Tt(tn,tn.current),!0}function Cs(o,l,E){var T=o.stateNode;if(!T)throw Error(i(169));E?(o=Ri(o,l,$n),T.__reactInternalMemoizedMergedChildContext=o,At(tn),At(Zt),Tt(Zt,o)):At(tn),Tt(tn,E)}var Zn=null,co=!1,wi=!1;function Bi(o){Zn===null?Zn=[o]:Zn.push(o)}function Oc(o){co=!0,Bi(o)}function An(){if(!wi&&Zn!==null){wi=!0;var o=0,l=_t;try{var E=Zn;for(_t=1;o>=q,L-=q,qn=1<<32-Pn(l)+L|E<gt?(qt=ht,ht=null):qt=ht.sibling;var It=De(xe,ht,ge[gt],$e);if(It===null){ht===null&&(ht=qt);break}o&&ht&&It.alternate===null&&l(xe,ht),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It,ht=qt}if(gt===ge.length)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;gtgt?(qt=ht,ht=null):qt=ht.sibling;var Co=De(xe,ht,It.value,$e);if(Co===null){ht===null&&(ht=qt);break}o&&ht&&Co.alternate===null&&l(xe,ht),he=W(Co,he,gt),ft===null?rt=Co:ft.sibling=Co,ft=Co,ht=qt}if(It.done)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;!It.done;gt++,It=ge.next())It=Te(xe,It.value,$e),It!==null&&(he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return Kt&&fo(xe,gt),rt}for(ht=T(xe,ht);!It.done;gt++,It=ge.next())It=Ye(ht,xe,gt,It.value,$e),It!==null&&(o&&It.alternate!==null&&ht.delete(It.key===null?gt:It.key),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return o&&ht.forEach(function(xd){return l(xe,xd)}),Kt&&fo(xe,gt),rt}function Vt(xe,he,ge,$e){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case P:e:{for(var rt=ge.key,ft=he;ft!==null;){if(ft.key===rt){if(rt=ge.type,rt===R){if(ft.tag===7){E(xe,ft.sibling),he=L(ft,ge.props.children),he.return=xe,xe=he;break e}}else if(ft.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&Nr(rt)===ft.type){E(xe,ft.sibling),he=L(ft,ge.props),he.ref=er(xe,ft,ge),he.return=xe,xe=he;break e}E(xe,ft);break}else l(xe,ft);ft=ft.sibling}ge.type===R?(he=ra(ge.props.children,xe.mode,$e,ge.key),he.return=xe,xe=he):($e=Us(ge.type,ge.key,ge.props,null,xe.mode,$e),$e.ref=er(xe,he,ge),$e.return=xe,xe=$e)}return q(xe);case A:e:{for(ft=ge.key;he!==null;){if(he.key===ft)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(xe,he.sibling),he=L(he,ge.children||[]),he.return=xe,xe=he;break e}else{E(xe,he);break}else l(xe,he);he=he.sibling}he=dc(ge,xe.mode,$e),he.return=xe,xe=he}return q(xe);case Z:return ft=ge._init,Vt(xe,he,ft(ge._payload),$e)}if(Pe(ge))return qe(xe,he,ge,$e);if(Q(ge))return tt(xe,he,ge,$e);kr(xe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(xe,he.sibling),he=L(he,ge),he.return=xe,xe=he):(E(xe,he),he=uc(ge,xe.mode,$e),he.return=xe,xe=he),q(xe)):E(xe,he)}return Vt}var Wn=tr(!0),Qo=tr(!1),Rn={},Cn=Qn(Rn),Zo=Qn(Rn),Ur=Qn(Rn);function $r(o){if(o===Rn)throw Error(i(174));return o}function Va(o,l){switch(Tt(Ur,l),Tt(Zo,o),Tt(Cn,Rn),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Cn),Tt(Cn,l)}function ho(){At(Cn),At(Zo),At(Ur)}function Os(o){$r(Ur.current);var l=$r(Cn.current),E=Mt(l,o.type);l!==E&&(Tt(Zo,o),Tt(Cn,E))}function Xa(o){Zo.current===o&&(At(Cn),At(Zo))}var Bt=Qn(0);function Ga(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ki=[];function nr(){for(var o=0;oE?E:4,o(!0);var T=Ha.transition;Ha.transition={};try{o(!1),l()}finally{_t=E,Ha.transition=T}}function zc(){return Fn().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=Xe(o,l,E,T),E!==null){var L=vn();ar(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,sn(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,nt(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=Xe(o,l,L,T),E!==null&&(L=vn(),ar(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Rt||l!==null&&l===Rt}function Fc(o,l){mo=Jo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,ai(o,E)}}var Ps={readContext:Ne,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},zu={readContext:Ne,useCallback:function(l,E){return jr().memoizedState=[l,E===void 0?null:E],l},useContext:Ne,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Is(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Is(4194308,4,l,E)},useInsertionEffect:function(l,E){return Is(4,2,l,E)},useMemo:function(l,E){var T=jr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=jr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Rt,l),[L.memoizedState,l]},useRef:function(l){var E=jr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Nl,useDeferredValue:function(l){return jr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),jr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Rt,W=jr();if(Kt){if(T===void 0)throw Error(i(407));T=T()}else{if(T=E(),Jt===null)throw Error(i(349));gr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ni(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=jr(),E=Jt.identifierPrefix;if(Kt){var T=pr,L=qn;T=(L&~(1<<32-Pn(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=Li++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Un]=l,o[Vo]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":Ot("cancel",o),Ot("close",o),L=T;break;case"iframe":case"object":case"embed":Ot("load",o),L=T;break;case"video":case"audio":for(L=0;LJa&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ga(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),Ui(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Kt)return cn(l),null}else 2*wt()-W.renderingStartTime>Ja&&E!==1073741824&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Bt.current,Tt(Bt,T?E&1|2:E&1),l):(cn(l),null);case 22:case 23:return sc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?wn&1073741824&&(cn(l),l.subtreeFlags&6&&(l.flags|=8192)):cn(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Qu(o,l){switch(bs(l),l.tag){case 1:return Xt(l.type)&&za(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(tn),At(Zt),nr(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Xa(l),null;case 13:if(At(Bt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));G()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Bt),null;case 4:return ho(),null;case 10:return _e(l.type._context),null;case 22:case 23:return sc(),null;case 24:return null;default:return null}}var Ss=!1,un=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Qa(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Yl(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Pi=pa,o=Sa(),Ci(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch($e){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Oe=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Oe===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:o,selectionRange:E},pa=!1,Ze=l;Ze!==null;)if(l=Ze,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Ze=o;else for(;Ze!==null;){l=Ze;try{var qe=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(qe!==null){var tt=qe.memoizedProps,Vt=qe.memoizedState,xe=l.stateNode,he=xe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);xe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($e){$t(l,l.return,$e)}if(o=l.sibling,o!==null){o.return=l.return,Ze=o;break}Ze=l.return}return qe=du,du=!1,qe}function $i(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Yl(l,E,W)}L=L.next}while(L!==T)}}function Ts(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Ql(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Un],delete l[Vo],delete l[Ti],delete l[Ai],delete l[Dl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Zl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=ao));else if(T!==4&&(o=o.child,o!==null))for(Zl(o,l,E),o=o.sibling;o!==null;)Zl(o,l,E),o=o.sibling}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}var nn=null,rr=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:un||Qa(E,l);case 6:var T=nn,L=rr;nn=null,vo(o,l,E),nn=T,rr=L,nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):nn.removeChild(E.stateNode));break;case 18:nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?Fo(o.parentNode,E):o.nodeType===1&&Fo(o,E),To(o)):Fo(nn,E.stateNode));break;case 4:T=nn,L=rr,nn=E.stateNode.containerInfo,rr=!0,vo(o,l,E),nn=T,rr=L;break;case 0:case 11:case 14:case 15:if(!un&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Yl(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!un&&(Qa(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(un=(T=un)||E.memoizedState!==null,vo(o,l,E),un=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Zu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function or(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ks=0,Et&6)throw Error(i(331));var L=Et;for(Et|=4,Ze=o.current;Ze!==null;){var W=Ze,q=W.child;if(Ze.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-tc?ta(o,0):ec|=E),On(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):l=1);var E=vn();o=et(o,l),o!==null&&(Mo(o,l,E),On(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(i(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||tn.current)En=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return En=!1,Hu(l,E,T);En=!!(l.flags&131072)}else En=!1,Kt&&E.flags&1048576&&Fa(E,uo,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ds(l,E),l=E.pendingProps;var W=so(E,Zt.current);Ue(E,T),W=wl(null,E,L,l,W,T);var q=Bl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Xt(L)?(q=!0,lo(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,dt(E),W.updater=Gt,E.stateNode=W,W._reactInternals=E,Yo(E,L,l,T),E=Wl(null,E,L,!0,q,T)):(E.tag=0,Kt&&q&&Es(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ds(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=zl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Zc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(i(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),zl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(i(387));L=E.pendingProps,q=E.memoizedState,W=q.element,ut(l,E),St(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Ya(Error(i(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Ya(Error(i(424)),E),E=ou(l,E,L,T,W);break e}else for(yn=hr(E.stateNode.containerInfo.firstChild),jn=E,Kt=!0,hn=null,T=Qo(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(G(),L===W){E=Wr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Os(E),l===null&&w(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Na(L,W)?ie=null:q!==null&&Na(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&w(E),null;case 13:return au(l,E,T);case 4:return Va(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=Wn(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Zc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,Tt(le,L._currentValue),L._currentValue=ie,q!==null)if(sn(q.value,ie)){if(q.children===W.children&&!tn.current){E=Wr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=pt(-1,T&-T),ye.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Te=Oe.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Oe.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Re(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(i(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Re(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,Ue(E,T),W=Ne(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ds(l,E),E.tag=1,Xt(L)?(l=!0,lo(E)):l=!1,Ue(E,T),zn(E,L,W),Yo(E,L,W,T),Wl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(i(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(o,l,E,T){return new ld(o,l,E,T)}function cc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return cc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Y)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Xn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function Us(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")cc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ra(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Xn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Xn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Xn(19,E,l,L),o.elementType=H,o.lanes=W,o;case V:return $s(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case X:q=9;break e;case F:q=11;break e;case Y:q=14;break e;case Z:q=16,T=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":s(o),""))}return l=Xn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ra(o,l,E,T){return o=Xn(7,o,T,l),o.lanes=E,o}function $s(o,l,E,T){return o=Xn(22,o,T,l),o.elementType=V,o.lanes=E,o.stateNode={isHidden:!1},o}function uc(o,l,E){return o=Xn(6,o,null,l),o.lanes=E,o}function dc(o,l,E){return l=Xn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function fc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Xn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},dt(W),o}function dd(o,l,E){var T=3l}return!1}function j(o,l,E,T,L,W,q){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=T,this.attributeNamespace=L,this.mustUseProperty=E,this.propertyName=o,this.type=l,this.sanitizeURL=W,this.removeEmptyString=q}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){O[o]=new j(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var l=o[0];O[l]=new j(l,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){O[o]=new j(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){O[o]=new j(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){O[o]=new j(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){O[o]=new j(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){O[o]=new j(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){O[o]=new j(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){O[o]=new j(o,5,!1,o.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var l=o.replace(b,I);O[l]=new j(l,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!1,!1)}),O.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){O[o]=new j(o,1,!1,o.toLowerCase(),null,!0,!0)});function _(o,l,E,T){var L=O.hasOwnProperty(l)?O[l]:null;(L!==null?L.type!==0:T||!(2ie||L[q]!==W[ie]){var fe="\n"+L[q].replace(" at new "," at ");return o.displayName&&fe.includes("")&&(fe=fe.replace("",o.displayName)),fe}while(1<=q&&0<=ie);break}}}finally{ce=!1,Error.prepareStackTrace=E}return(o=o?o.displayName||o.name:"")?ne(o):""}function ve(o){switch(o.tag){case 5:return ne(o.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return o=de(o.type,!1),o;case 11:return o=de(o.type.render,!1),o;case 1:return o=de(o.type,!0),o;default:return""}}function pe(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case R:return"Fragment";case A:return"Portal";case N:return"Profiler";case K:return"StrictMode";case J:return"Suspense";case H:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case X:return(o.displayName||"Context")+".Consumer";case k:return(o._context.displayName||"Context")+".Provider";case F:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case Y:return l=o.displayName||null,l!==null?l:pe(o.type)||"Memo";case Z:l=o._payload,o=o._init;try{return pe(o(l))}catch(E){}}return null}function me(o){var l=o.type;switch(o.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=l.render,o=o.displayName||o.name||"",l.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(l);case 8:return l===K?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function be(o){switch(typeof o=="undefined"?"undefined":s(o)){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function we(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Je(o){var l=we(o)?"checked":"value",E=Object.getOwnPropertyDescriptor(o.constructor.prototype,l),T=""+o[l];if(!o.hasOwnProperty(l)&&typeof E!="undefined"&&typeof E.get=="function"&&typeof E.set=="function"){var L=E.get,W=E.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return L.call(this)},set:function(ie){T=""+ie,W.call(this,ie)}}),Object.defineProperty(o,l,{enumerable:E.enumerable}),{getValue:function(){return T},setValue:function(ie){T=""+ie},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function ze(o){o._valueTracker||(o._valueTracker=Je(o))}function Ke(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var E=l.getValue(),T="";return o&&(T=we(o)?o.checked?"true":"false":o.value),o=T,o!==E?(l.setValue(o),!0):!1}function Be(o){if(o=o||(typeof document!="undefined"?document:void 0),typeof o=="undefined")return null;try{return o.activeElement||o.body}catch(l){return o.body}}function ct(o,l){var E=l.checked;return ee({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:E!=null?E:o._wrapperState.initialChecked})}function xt(o,l){var E=l.defaultValue==null?"":l.defaultValue,T=l.checked!=null?l.checked:l.defaultChecked;E=be(l.value!=null?l.value:E),o._wrapperState={initialChecked:T,initialValue:E,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function st(o,l){l=l.checked,l!=null&&_(o,"checked",l,!1)}function ot(o,l){st(o,l);var E=be(l.value),T=l.type;if(E!=null)T==="number"?(E===0&&o.value===""||o.value!=E)&&(o.value=""+E):o.value!==""+E&&(o.value=""+E);else if(T==="submit"||T==="reset"){o.removeAttribute("value");return}l.hasOwnProperty("value")?Le(o,l.type,E):l.hasOwnProperty("defaultValue")&&Le(o,l.type,be(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(o.defaultChecked=!!l.defaultChecked)}function Ae(o,l,E){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var T=l.type;if(!(T!=="submit"&&T!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+o._wrapperState.initialValue,E||l===o.value||(o.value=l),o.defaultValue=l}E=o.name,E!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,E!==""&&(o.name=E)}function Le(o,l,E){(l!=="number"||Be(o.ownerDocument)!==o)&&(E==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+E&&(o.defaultValue=""+E))}var Pe=Array.isArray;function ke(o,l,E,T){if(o=o.options,l){l={};for(var L=0;L"+l.valueOf().toString()+"",l=bt.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;l.firstChild;)o.appendChild(l.firstChild)}});function lt(o,l){if(l){var E=o.firstChild;if(E&&E===o.lastChild&&E.nodeType===3){E.nodeValue=l;return}}o.textContent=l}var Ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","ms","Moz","O"];Object.keys(Ge).forEach(function(o){je.forEach(function(l){l=l+o.charAt(0).toUpperCase()+o.substring(1),Ge[l]=Ge[o]})});function Qe(o,l,E){return l==null||typeof l=="boolean"||l===""?"":E||typeof l!="number"||l===0||Ge.hasOwnProperty(o)&&Ge[o]?(""+l).trim():l+"px"}function mt(o,l){o=o.style;for(var E in l)if(l.hasOwnProperty(E)){var T=E.indexOf("--")===0,L=Qe(E,l[E],T);E==="float"&&(E="cssFloat"),T?o.setProperty(E,L):o[E]=L}}var Pt=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zt(o,l){if(l){if(Pt[o]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(i(137,o));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(i(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(i(61))}if(l.style!=null&&typeof l.style!="object")throw Error(i(62))}}function en(o,l){if(o.indexOf("-")===-1)return typeof l.is=="string";switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wt=null;function dn(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Bn=null,Gn=null,Hn=null;function Eo(o){if(o=Rr(o)){if(typeof Bn!="function")throw Error(i(280));var l=o.stateNode;l&&(l=Xo(l),Bn(o.stateNode,o.type,l))}}function bo(o){Gn?Hn?Hn.push(o):Hn=[o]:Gn=o}function Oo(){if(Gn){var o=Gn,l=Hn;if(Hn=Gn=null,Eo(o),l)for(o=0;o>>=0,o===0?32:31-(Hi(o)/Yi|0)|0}var sr=64,ha=4194304;function Po(o){switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function ma(o,l){var E=o.pendingLanes;if(E===0)return 0;var T=0,L=o.suspendedLanes,W=o.pingedLanes,q=E&268435455;if(q!==0){var ie=q&~L;ie!==0?T=Po(ie):(W&=q,W!==0&&(T=Po(W)))}else q=E&~L,q!==0?T=Po(q):W!==0&&(T=Po(W));if(T===0)return 0;if(l!==0&&l!==T&&!(l&L)&&(L=T&-T,W=l&-l,L>=W||L===16&&(W&4194240)!==0))return l;if(T&4&&(T|=E&16),l=o.entangledLanes,l!==0)for(o=o.entanglements,l&=T;0E;E++)l.push(o);return l}function Mo(o,l,E){o.pendingLanes|=l,l!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,l=31-Pn(l),o[l]=E}function el(o,l){var E=o.pendingLanes&~l;o.pendingLanes=l,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=l,o.mutableReadLanes&=l,o.entangledLanes&=l,l=o.entanglements;var T=o.eventTimes;for(o=o.expirationTimes;0=Lo),vi=" ",_a=!1;function ds(o,l){switch(o){case"keyup":return us.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vl(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var _r=!1;function yc(o,l){switch(o){case"compositionend":return vl(l);case"keypress":return l.which!==32?null:(_a=!0,vi);case"textInput":return o=l.data,o===vi&&_a?null:o;default:return null}}function xi(o,l){if(_r)return o==="compositionend"||!Ia&&ds(o,l)?(o=ur(),cr=Ao=kn=null,_r=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1=l)return{node:E,offset:l-o};o=T}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=hs(E)}}function Da(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Da(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Sa(){for(var o=window,l=Be();e(l,o.HTMLIFrameElement);){try{var E=typeof l.contentWindow.location.href=="string"}catch(T){E=!1}if(E)o=l.contentWindow;else break;l=Be(o.document)}return l}function Ci(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}function yl(o){var l=Sa(),E=o.focusedElem,T=o.selectionRange;if(l!==E&&E&&E.ownerDocument&&Da(E.ownerDocument.documentElement,E)){if(T!==null&&Ci(E)){if(l=T.start,o=T.end,o===void 0&&(o=l),"selectionStart"in E)E.selectionStart=l,E.selectionEnd=Math.min(o,E.value.length);else if(o=(l=E.ownerDocument||document)&&l.defaultView||window,o.getSelection){o=o.getSelection();var L=E.textContent.length,W=Math.min(T.start,L);T=T.end===void 0?W:Math.min(T.end,L),!o.extend&&W>T&&(L=T,T=W,W=L),L=Pr(E,W);var q=Pr(E,T);L&&q&&(o.rangeCount!==1||o.anchorNode!==L.node||o.anchorOffset!==L.offset||o.focusNode!==q.node||o.focusOffset!==q.offset)&&(l=l.createRange(),l.setStart(L.node,L.offset),o.removeAllRanges(),W>T?(o.addRange(l),o.extend(q.node,q.offset)):(l.setEnd(q.node,q.offset),o.addRange(l)))}}for(l=[],o=E;o=o.parentNode;)o.nodeType===1&&l.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E=document.documentMode,Mr=null,ms=null,Ta=null,Uo=!1;function Cl(o,l,E){var T=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Uo||Mr==null||Mr!==Be(T)||(T=Mr,"selectionStart"in T&&Ci(T)?T={start:T.selectionStart,end:T.selectionEnd}:(T=(T.ownerDocument&&T.ownerDocument.defaultView||window).getSelection(),T={anchorNode:T.anchorNode,anchorOffset:T.anchorOffset,focusNode:T.focusNode,focusOffset:T.focusOffset}),Ta&&No(Ta,T)||(Ta=T,T=La(ms,"onSelect"),0wr||(o.current=Go[wr],Go[wr]=null,wr--)}function Tt(o,l){wr++,Go[wr]=o.current,o.current=l}var xr={},Zt=Qn(xr),tn=Qn(!1),$n=xr;function so(o,l){var E=o.type.contextTypes;if(!E)return xr;var T=o.stateNode;if(T&&T.__reactInternalMemoizedUnmaskedChildContext===l)return T.__reactInternalMemoizedMaskedChildContext;var L={},W;for(W in E)L[W]=l[W];return T&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=l,o.__reactInternalMemoizedMaskedChildContext=L),L}function Xt(o){return o=o.childContextTypes,o!=null}function za(){At(tn),At(Zt)}function Sl(o,l,E){if(Zt.current!==xr)throw Error(i(168));Tt(Zt,l),Tt(tn,E)}function Ri(o,l,E){var T=o.stateNode;if(l=l.childContextTypes,typeof T.getChildContext!="function")return E;T=T.getChildContext();for(var L in T)if(!(L in l))throw Error(i(108,me(o)||"Unknown",L));return ee({},E,T)}function lo(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||xr,$n=Zt.current,Tt(Zt,o),Tt(tn,tn.current),!0}function Cs(o,l,E){var T=o.stateNode;if(!T)throw Error(i(169));E?(o=Ri(o,l,$n),T.__reactInternalMemoizedMergedChildContext=o,At(tn),At(Zt),Tt(Zt,o)):At(tn),Tt(tn,E)}var Zn=null,co=!1,wi=!1;function Bi(o){Zn===null?Zn=[o]:Zn.push(o)}function Oc(o){co=!0,Bi(o)}function An(){if(!wi&&Zn!==null){wi=!0;var o=0,l=_t;try{var E=Zn;for(_t=1;o>=q,L-=q,qn=1<<32-Pn(l)+L|E<gt?(qt=ht,ht=null):qt=ht.sibling;var It=De(xe,ht,ge[gt],$e);if(It===null){ht===null&&(ht=qt);break}o&&ht&&It.alternate===null&&l(xe,ht),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It,ht=qt}if(gt===ge.length)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;gtgt?(qt=ht,ht=null):qt=ht.sibling;var Co=De(xe,ht,It.value,$e);if(Co===null){ht===null&&(ht=qt);break}o&&ht&&Co.alternate===null&&l(xe,ht),he=W(Co,he,gt),ft===null?rt=Co:ft.sibling=Co,ft=Co,ht=qt}if(It.done)return E(xe,ht),Kt&&fo(xe,gt),rt;if(ht===null){for(;!It.done;gt++,It=ge.next())It=Te(xe,It.value,$e),It!==null&&(he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return Kt&&fo(xe,gt),rt}for(ht=T(xe,ht);!It.done;gt++,It=ge.next())It=Ye(ht,xe,gt,It.value,$e),It!==null&&(o&&It.alternate!==null&&ht.delete(It.key===null?gt:It.key),he=W(It,he,gt),ft===null?rt=It:ft.sibling=It,ft=It);return o&&ht.forEach(function(xd){return l(xe,xd)}),Kt&&fo(xe,gt),rt}function Vt(xe,he,ge,$e){if(typeof ge=="object"&&ge!==null&&ge.type===R&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case P:e:{for(var rt=ge.key,ft=he;ft!==null;){if(ft.key===rt){if(rt=ge.type,rt===R){if(ft.tag===7){E(xe,ft.sibling),he=L(ft,ge.props.children),he.return=xe,xe=he;break e}}else if(ft.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===Z&&Nr(rt)===ft.type){E(xe,ft.sibling),he=L(ft,ge.props),he.ref=er(xe,ft,ge),he.return=xe,xe=he;break e}E(xe,ft);break}else l(xe,ft);ft=ft.sibling}ge.type===R?(he=ra(ge.props.children,xe.mode,$e,ge.key),he.return=xe,xe=he):($e=Us(ge.type,ge.key,ge.props,null,xe.mode,$e),$e.ref=er(xe,he,ge),$e.return=xe,xe=$e)}return q(xe);case A:e:{for(ft=ge.key;he!==null;){if(he.key===ft)if(he.tag===4&&he.stateNode.containerInfo===ge.containerInfo&&he.stateNode.implementation===ge.implementation){E(xe,he.sibling),he=L(he,ge.children||[]),he.return=xe,xe=he;break e}else{E(xe,he);break}else l(xe,he);he=he.sibling}he=dc(ge,xe.mode,$e),he.return=xe,xe=he}return q(xe);case Z:return ft=ge._init,Vt(xe,he,ft(ge._payload),$e)}if(Pe(ge))return qe(xe,he,ge,$e);if(Q(ge))return tt(xe,he,ge,$e);kr(xe,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,he!==null&&he.tag===6?(E(xe,he.sibling),he=L(he,ge),he.return=xe,xe=he):(E(xe,he),he=uc(ge,xe.mode,$e),he.return=xe,xe=he),q(xe)):E(xe,he)}return Vt}var Wn=tr(!0),Qo=tr(!1),Rn={},Cn=Qn(Rn),Zo=Qn(Rn),Ur=Qn(Rn);function $r(o){if(o===Rn)throw Error(i(174));return o}function Va(o,l){switch(Tt(Ur,l),Tt(Zo,o),Tt(Cn,Rn),o=l.nodeType,o){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:Mt(null,"");break;default:o=o===8?l.parentNode:l,l=o.namespaceURI||null,o=o.tagName,l=Mt(l,o)}At(Cn),Tt(Cn,l)}function ho(){At(Cn),At(Zo),At(Ur)}function Os(o){$r(Ur.current);var l=$r(Cn.current),E=Mt(l,o.type);l!==E&&(Tt(Zo,o),Tt(Cn,E))}function Xa(o){Zo.current===o&&(At(Cn),At(Zo))}var Bt=Qn(0);function Ga(o){for(var l=o;l!==null;){if(l.tag===13){var E=l.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||E.data==="$?"||E.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if(l.flags&128)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ki=[];function nr(){for(var o=0;oE?E:4,o(!0);var T=Ha.transition;Ha.transition={};try{o(!1),l()}finally{_t=E,Ha.transition=T}}function zc(){return Fn().memoizedState}function Uu(o,l,E){var T=go(o);if(E={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null},Wc(o))Fc(l,E);else if(E=Xe(o,l,E,T),E!==null){var L=vn();ar(E,o,T,L),Vc(E,l,T)}}function $u(o,l,E){var T=go(o),L={lane:T,action:E,hasEagerState:!1,eagerState:null,next:null};if(Wc(o))Fc(l,L);else{var W=o.alternate;if(o.lanes===0&&(W===null||W.lanes===0)&&(W=l.lastRenderedReducer,W!==null))try{var q=l.lastRenderedState,ie=W(q,E);if(L.hasEagerState=!0,L.eagerState=ie,sn(ie,q)){var fe=l.interleaved;fe===null?(L.next=L,nt(l)):(L.next=fe.next,fe.next=L),l.interleaved=L;return}}catch(ye){}finally{}E=Xe(o,l,L,T),E!==null&&(L=vn(),ar(E,o,T,L),Vc(E,l,T))}}function Wc(o){var l=o.alternate;return o===Rt||l!==null&&l===Rt}function Fc(o,l){mo=Jo=!0;var E=o.pending;E===null?l.next=l:(l.next=E.next,E.next=l),o.pending=l}function Vc(o,l,E){if(E&4194240){var T=l.lanes;T&=o.pendingLanes,E|=T,l.lanes=E,ai(o,E)}}var Ps={readContext:Ne,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useInsertionEffect:ln,useLayoutEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useMutableSource:ln,useSyncExternalStore:ln,useId:ln,unstable_isNewReconciler:!1},zu={readContext:Ne,useCallback:function(l,E){return jr().memoizedState=[l,E===void 0?null:E],l},useContext:Ne,useEffect:wc,useImperativeHandle:function(l,E,T){return T=T!=null?T.concat([l]):null,Is(4194308,4,Lc.bind(null,E,l),T)},useLayoutEffect:function(l,E){return Is(4194308,4,l,E)},useInsertionEffect:function(l,E){return Is(4,2,l,E)},useMemo:function(l,E){var T=jr();return E=E===void 0?null:E,l=l(),T.memoizedState=[l,E],l},useReducer:function(l,E,T){var L=jr();return E=T!==void 0?T(E):E,L.memoizedState=L.baseState=E,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:E},L.queue=l,l=l.dispatch=Uu.bind(null,Rt,l),[L.memoizedState,l]},useRef:function(l){var E=jr();return l={current:l},E.memoizedState=l},useState:Ac,useDebugValue:Nl,useDeferredValue:function(l){return jr().memoizedState=l},useTransition:function(){var l=Ac(!1),E=l[0];return l=Nu.bind(null,l[1]),jr().memoizedState=l,[E,l]},useMutableSource:function(){},useSyncExternalStore:function(l,E,T){var L=Rt,W=jr();if(Kt){if(T===void 0)throw Error(i(407));T=T()}else{if(T=E(),Jt===null)throw Error(i(349));gr&30||Pc(L,E,T)}W.memoizedState=T;var q={value:T,getSnapshot:E};return W.queue=q,wc(Dc.bind(null,L,q,l),[l]),L.flags|=2048,Ni(9,Mc.bind(null,L,q,T,E),void 0,null),T},useId:function(){var l=jr(),E=Jt.identifierPrefix;if(Kt){var T=pr,L=qn;T=(L&~(1<<32-Pn(L)-1)).toString(32)+T,E=":"+E+"R"+T,T=Li++,0<\/script>",o=o.removeChild(o.firstChild)):typeof T.is=="string"?o=q.createElement(E,{is:T.is}):(o=q.createElement(E),E==="select"&&(q=o,T.multiple?q.multiple=!0:T.size&&(q.size=T.size))):o=q.createElementNS(o,E),o[Un]=l,o[Vo]=T,lu(o,l,!1,!1),l.stateNode=o;e:{switch(q=en(E,T),E){case"dialog":Ot("cancel",o),Ot("close",o),L=T;break;case"iframe":case"object":case"embed":Ot("load",o),L=T;break;case"video":case"audio":for(L=0;LJa&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304)}else{if(!T)if(o=Ga(q),o!==null){if(l.flags|=128,T=!0,E=o.updateQueue,E!==null&&(l.updateQueue=E,l.flags|=4),Ui(W,!0),W.tail===null&&W.tailMode==="hidden"&&!q.alternate&&!Kt)return cn(l),null}else 2*wt()-W.renderingStartTime>Ja&&E!==1073741824&&(l.flags|=128,T=!0,Ui(W,!1),l.lanes=4194304);W.isBackwards?(q.sibling=l.child,l.child=q):(E=W.last,E!==null?E.sibling=q:l.child=q,W.last=q)}return W.tail!==null?(l=W.tail,W.rendering=l,W.tail=l.sibling,W.renderingStartTime=wt(),l.sibling=null,E=Bt.current,Tt(Bt,T?E&1|2:E&1),l):(cn(l),null);case 22:case 23:return sc(),T=l.memoizedState!==null,o!==null&&o.memoizedState!==null!==T&&(l.flags|=8192),T&&l.mode&1?wn&1073741824&&(cn(l),l.subtreeFlags&6&&(l.flags|=8192)):cn(l),null;case 24:return null;case 25:return null}throw Error(i(156,l.tag))}function Qu(o,l){switch(bs(l),l.tag){case 1:return Xt(l.type)&&za(),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return ho(),At(tn),At(Zt),nr(),o=l.flags,o&65536&&!(o&128)?(l.flags=o&-65537|128,l):null;case 5:return Xa(l),null;case 13:if(At(Bt),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(i(340));G()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return At(Bt),null;case 4:return ho(),null;case 10:return _e(l.type._context),null;case 22:case 23:return sc(),null;case 24:return null;default:return null}}var Ss=!1,un=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function Qa(o,l){var E=o.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(T){$t(o,l,T)}else E.current=null}function Yl(o,l,E){try{E()}catch(T){$t(o,l,T)}}var du=!1;function Ju(o,l){if(Pi=pa,o=Sa(),Ci(o)){if("selectionStart"in o)var E={start:o.selectionStart,end:o.selectionEnd};else e:{E=(E=o.ownerDocument)&&E.defaultView||window;var T=E.getSelection&&E.getSelection();if(T&&T.rangeCount!==0){E=T.anchorNode;var L=T.anchorOffset,W=T.focusNode;T=T.focusOffset;try{E.nodeType,W.nodeType}catch($e){E=null;break e}var q=0,ie=-1,fe=-1,ye=0,Oe=0,Te=o,De=null;t:for(;;){for(var Ye;Te!==E||L!==0&&Te.nodeType!==3||(ie=q+L),Te!==W||T!==0&&Te.nodeType!==3||(fe=q+T),Te.nodeType===3&&(q+=Te.nodeValue.length),(Ye=Te.firstChild)!==null;)De=Te,Te=Ye;for(;;){if(Te===o)break t;if(De===E&&++ye===L&&(ie=q),De===W&&++Oe===T&&(fe=q),(Ye=Te.nextSibling)!==null)break;Te=De,De=Te.parentNode}Te=Ye}E=ie===-1||fe===-1?null:{start:ie,end:fe}}else E=null}E=E||{start:0,end:0}}else E=null;for(Mi={focusedElem:o,selectionRange:E},pa=!1,Ze=l;Ze!==null;)if(l=Ze,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Ze=o;else for(;Ze!==null;){l=Ze;try{var qe=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(qe!==null){var tt=qe.memoizedProps,Vt=qe.memoizedState,xe=l.stateNode,he=xe.getSnapshotBeforeUpdate(l.elementType===l.type?tt:se(l.type,tt),Vt);xe.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ge=l.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($e){$t(l,l.return,$e)}if(o=l.sibling,o!==null){o.return=l.return,Ze=o;break}Ze=l.return}return qe=du,du=!1,qe}function $i(o,l,E){var T=l.updateQueue;if(T=T!==null?T.lastEffect:null,T!==null){var L=T=T.next;do{if((L.tag&o)===o){var W=L.destroy;L.destroy=void 0,W!==void 0&&Yl(l,E,W)}L=L.next}while(L!==T)}}function Ts(o,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var E=l=l.next;do{if((E.tag&o)===o){var T=E.create;E.destroy=T()}E=E.next}while(E!==l)}}function Ql(o){var l=o.ref;if(l!==null){var E=o.stateNode;switch(o.tag){case 5:o=E;break;default:o=E}typeof l=="function"?l(o):l.current=o}}function fu(o){var l=o.alternate;l!==null&&(o.alternate=null,fu(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&(delete l[Un],delete l[Vo],delete l[Ti],delete l[Ai],delete l[Dl])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function hu(o){return o.tag===5||o.tag===3||o.tag===4}function mu(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||hu(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Zl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.nodeType===8?E.parentNode.insertBefore(o,l):E.insertBefore(o,l):(E.nodeType===8?(l=E.parentNode,l.insertBefore(o,E)):(l=E,l.appendChild(o)),E=E._reactRootContainer,E!=null||l.onclick!==null||(l.onclick=ao));else if(T!==4&&(o=o.child,o!==null))for(Zl(o,l,E),o=o.sibling;o!==null;)Zl(o,l,E),o=o.sibling}function Jl(o,l,E){var T=o.tag;if(T===5||T===6)o=o.stateNode,l?E.insertBefore(o,l):E.appendChild(o);else if(T!==4&&(o=o.child,o!==null))for(Jl(o,l,E),o=o.sibling;o!==null;)Jl(o,l,E),o=o.sibling}var nn=null,rr=!1;function vo(o,l,E){for(E=E.child;E!==null;)vu(o,l,E),E=E.sibling}function vu(o,l,E){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(fa,E)}catch(ie){}switch(E.tag){case 5:un||Qa(E,l);case 6:var T=nn,L=rr;nn=null,vo(o,l,E),nn=T,rr=L,nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?o.parentNode.removeChild(E):o.removeChild(E)):nn.removeChild(E.stateNode));break;case 18:nn!==null&&(rr?(o=nn,E=E.stateNode,o.nodeType===8?Fo(o.parentNode,E):o.nodeType===1&&Fo(o,E),To(o)):Fo(nn,E.stateNode));break;case 4:T=nn,L=rr,nn=E.stateNode.containerInfo,rr=!0,vo(o,l,E),nn=T,rr=L;break;case 0:case 11:case 14:case 15:if(!un&&(T=E.updateQueue,T!==null&&(T=T.lastEffect,T!==null))){L=T=T.next;do{var W=L,q=W.destroy;W=W.tag,q!==void 0&&(W&2||W&4)&&Yl(E,l,q),L=L.next}while(L!==T)}vo(o,l,E);break;case 1:if(!un&&(Qa(E,l),T=E.stateNode,typeof T.componentWillUnmount=="function"))try{T.props=E.memoizedProps,T.state=E.memoizedState,T.componentWillUnmount()}catch(ie){$t(E,l,ie)}vo(o,l,E);break;case 21:vo(o,l,E);break;case 22:E.mode&1?(un=(T=un)||E.memoizedState!==null,vo(o,l,E),un=T):vo(o,l,E);break;default:vo(o,l,E)}}function xu(o){var l=o.updateQueue;if(l!==null){o.updateQueue=null;var E=o.stateNode;E===null&&(E=o.stateNode=new Zu),l.forEach(function(T){var L=sd.bind(null,o,T);E.has(T)||(E.add(T),T.then(L,L))})}}function or(o,l){var E=l.deletions;if(E!==null)for(var T=0;TL&&(L=q),T&=~W}if(T=L,T=wt()-T,T=(120>T?120:480>T?480:1080>T?1080:1920>T?1920:3e3>T?3e3:4320>T?4320:1960*ed(T/1960))-T,10o?16:o,po===null)var T=!1;else{if(o=po,po=null,Ks=0,Et&6)throw Error(i(331));var L=Et;for(Et|=4,Ze=o.current;Ze!==null;){var W=Ze,q=W.child;if(Ze.flags&16){var ie=W.deletions;if(ie!==null){for(var fe=0;fewt()-tc?ta(o,0):ec|=E),On(o,l)}function Du(o,l){l===0&&(o.mode&1?(l=ha,ha<<=1,!(ha&130023424)&&(ha=4194304)):l=1);var E=vn();o=et(o,l),o!==null&&(Mo(o,l,E),On(o,E))}function id(o){var l=o.memoizedState,E=0;l!==null&&(E=l.retryLane),Du(o,E)}function sd(o,l){var E=0;switch(o.tag){case 13:var T=o.stateNode,L=o.memoizedState;L!==null&&(E=L.retryLane);break;case 19:T=o.stateNode;break;default:throw Error(i(314))}T!==null&&T.delete(l),Du(o,E)}var Su;Su=function(l,E,T){if(l!==null)if(l.memoizedProps!==E.pendingProps||tn.current)En=!0;else{if(!(l.lanes&T)&&!(E.flags&128))return En=!1,Hu(l,E,T);En=!!(l.flags&131072)}else En=!1,Kt&&E.flags&1048576&&Fa(E,uo,E.index);switch(E.lanes=0,E.tag){case 2:var L=E.type;Ds(l,E),l=E.pendingProps;var W=so(E,Zt.current);Ue(E,T),W=wl(null,E,L,l,W,T);var q=Bl();return E.flags|=1,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Xt(L)?(q=!0,lo(E)):q=!1,E.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,dt(E),W.updater=Gt,E.stateNode=W,W._reactInternals=E,Yo(E,L,l,T),E=Wl(null,E,L,!0,q,T)):(E.tag=0,Kt&&q&&Es(E),mn(null,E,W,T),E=E.child),E;case 16:L=E.elementType;e:{switch(Ds(l,E),l=E.pendingProps,W=L._init,L=W(L._payload),E.type=L,W=E.tag=cd(L),l=se(L,l),W){case 0:E=zl(null,E,L,l,T);break e;case 1:E=nu(null,E,L,l,T);break e;case 11:E=Zc(null,E,L,l,T);break e;case 14:E=Jc(null,E,L,se(L.type,l),T);break e}throw Error(i(306,L,""))}return E;case 0:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),zl(l,E,L,W,T);case 1:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),nu(l,E,L,W,T);case 3:e:{if(ru(E),l===null)throw Error(i(387));L=E.pendingProps,q=E.memoizedState,W=q.element,ut(l,E),St(E,L,null,T);var ie=E.memoizedState;if(L=ie.element,q.isDehydrated)if(q={element:L,isDehydrated:!1,cache:ie.cache,pendingSuspenseBoundaries:ie.pendingSuspenseBoundaries,transitions:ie.transitions},E.updateQueue.baseState=q,E.memoizedState=q,E.flags&256){W=Ya(Error(i(423)),E),E=ou(l,E,L,T,W);break e}else if(L!==W){W=Ya(Error(i(424)),E),E=ou(l,E,L,T,W);break e}else for(yn=hr(E.stateNode.containerInfo.firstChild),jn=E,Kt=!0,hn=null,T=Qo(E,null,L,T),E.child=T;T;)T.flags=T.flags&-3|4096,T=T.sibling;else{if(G(),L===W){E=Wr(l,E,T);break e}mn(l,E,L,T)}E=E.child}return E;case 5:return Os(E),l===null&&w(E),L=E.type,W=E.pendingProps,q=l!==null?l.memoizedProps:null,ie=W.children,Na(L,W)?ie=null:q!==null&&Na(L,q)&&(E.flags|=32),tu(l,E),mn(l,E,ie,T),E.child;case 6:return l===null&&w(E),null;case 13:return au(l,E,T);case 4:return Va(E,E.stateNode.containerInfo),L=E.pendingProps,l===null?E.child=Wn(E,null,L,T):mn(l,E,L,T),E.child;case 11:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Zc(l,E,L,W,T);case 7:return mn(l,E,E.pendingProps,T),E.child;case 8:return mn(l,E,E.pendingProps.children,T),E.child;case 12:return mn(l,E,E.pendingProps.children,T),E.child;case 10:e:{if(L=E.type._context,W=E.pendingProps,q=E.memoizedProps,ie=W.value,Tt(le,L._currentValue),L._currentValue=ie,q!==null)if(sn(q.value,ie)){if(q.children===W.children&&!tn.current){E=Wr(l,E,T);break e}}else for(q=E.child,q!==null&&(q.return=E);q!==null;){var fe=q.dependencies;if(fe!==null){ie=q.child;for(var ye=fe.firstContext;ye!==null;){if(ye.context===L){if(q.tag===1){ye=pt(-1,T&-T),ye.tag=2;var Oe=q.updateQueue;if(Oe!==null){Oe=Oe.shared;var Te=Oe.pending;Te===null?ye.next=ye:(ye.next=Te.next,Te.next=ye),Oe.pending=ye}}q.lanes|=T,ye=q.alternate,ye!==null&&(ye.lanes|=T),Re(q.return,T,E),fe.lanes|=T;break}ye=ye.next}}else if(q.tag===10)ie=q.type===E.type?null:q.child;else if(q.tag===18){if(ie=q.return,ie===null)throw Error(i(341));ie.lanes|=T,fe=ie.alternate,fe!==null&&(fe.lanes|=T),Re(ie,T,E),ie=q.sibling}else ie=q.child;if(ie!==null)ie.return=q;else for(ie=q;ie!==null;){if(ie===E){ie=null;break}if(q=ie.sibling,q!==null){q.return=ie.return,ie=q;break}ie=ie.return}q=ie}mn(l,E,W.children,T),E=E.child}return E;case 9:return W=E.type,L=E.pendingProps.children,Ue(E,T),W=Ne(W),L=L(W),E.flags|=1,mn(l,E,L,T),E.child;case 14:return L=E.type,W=se(L,E.pendingProps),W=se(L.type,W),Jc(l,E,L,W,T);case 15:return qc(l,E,E.type,E.pendingProps,T);case 17:return L=E.type,W=E.pendingProps,W=E.elementType===L?W:se(L,W),Ds(l,E),E.tag=1,Xt(L)?(l=!0,lo(E)):l=!1,Ue(E,T),zn(E,L,W),Yo(E,L,W,T),Wl(null,E,L,!0,l,T);case 19:return su(l,E,T);case 22:return eu(l,E,T)}throw Error(i(156,E.tag))};function Tu(o,l){return ae(o,l)}function ld(o,l,E,T){this.tag=o,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=T,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(o,l,E,T){return new ld(o,l,E,T)}function cc(o){return o=o.prototype,!(!o||!o.isReactComponent)}function cd(o){if(typeof o=="function")return cc(o)?1:0;if(o!=null){if(o=o.$$typeof,o===F)return 11;if(o===Y)return 14}return 2}function yo(o,l){var E=o.alternate;return E===null?(E=Xn(o.tag,l,o.key,o.mode),E.elementType=o.elementType,E.type=o.type,E.stateNode=o.stateNode,E.alternate=o,o.alternate=E):(E.pendingProps=l,E.type=o.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=o.flags&14680064,E.childLanes=o.childLanes,E.lanes=o.lanes,E.child=o.child,E.memoizedProps=o.memoizedProps,E.memoizedState=o.memoizedState,E.updateQueue=o.updateQueue,l=o.dependencies,E.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},E.sibling=o.sibling,E.index=o.index,E.ref=o.ref,E}function Us(o,l,E,T,L,W){var q=2;if(T=o,typeof o=="function")cc(o)&&(q=1);else if(typeof o=="string")q=5;else e:switch(o){case R:return ra(E.children,L,W,l);case K:q=8,L|=8;break;case N:return o=Xn(12,E,l,L|2),o.elementType=N,o.lanes=W,o;case J:return o=Xn(13,E,l,L),o.elementType=J,o.lanes=W,o;case H:return o=Xn(19,E,l,L),o.elementType=H,o.lanes=W,o;case V:return $s(E,L,W,l);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case k:q=10;break e;case X:q=9;break e;case F:q=11;break e;case Y:q=14;break e;case Z:q=16,T=null;break e}throw Error(i(130,o==null?o:typeof o=="undefined"?"undefined":s(o),""))}return l=Xn(q,E,l,L),l.elementType=o,l.type=T,l.lanes=W,l}function ra(o,l,E,T){return o=Xn(7,o,T,l),o.lanes=E,o}function $s(o,l,E,T){return o=Xn(22,o,T,l),o.elementType=V,o.lanes=E,o.stateNode={isHidden:!1},o}function uc(o,l,E){return o=Xn(6,o,null,l),o.lanes=E,o}function dc(o,l,E){return l=Xn(4,o.children!==null?o.children:[],o.key,l),l.lanes=E,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}function ud(o,l,E,T,L){this.tag=l,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=oi(0),this.expirationTimes=oi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oi(0),this.identifierPrefix=T,this.onRecoverableError=L,this.mutableSourceEagerHydrationData=null}function fc(o,l,E,T,L,W,q,ie,fe){return o=new ud(o,l,E,ie,fe),l===1?(l=1,W===!0&&(l|=8)):l=0,W=Xn(3,null,null,l),o.current=W,W.stateNode=o,W.memoizedState={element:T,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},dt(W),o}function dd(o,l,E){var T=3=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Q("end");if(oe.tryLoc<=this.prev){var ce=r.call(oe,"catchLoc"),de=r.call(oe,"finallyLoc");if(ce&&de){if(this.prev=0;--Q){var ee=this.tryEntries[Q];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Q=this.tryEntries[z];if(Q.finallyLoc===V)return this.complete(Q.completion,Q.afterLoc),F(Q),y}},catch:function(Z){for(var V=this.tryEntries.length-1;V>=0;--V){var z=this.tryEntries[V];if(z.tryLoc===Z){var Q=z.completion;if(Q.type==="throw"){var ee=Q.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(V,z,Q){return this.delegate={iterator:H(V),resultName:z,nextLoc:Q},this.method==="next"&&(this.arg=a),y}},s}(M.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(M,j){"use strict";/** + */function t(z){"@swc/helpers - typeof";return z&&typeof Symbol!="undefined"&&z.constructor===Symbol?"symbol":typeof z}var e=Symbol.for("react.element"),s=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),u=Symbol.iterator;function h(z){return z===null||typeof z!="object"?null:(z=u&&z[u]||z["@@iterator"],typeof z=="function"?z:null)}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d=Object.assign,p={};function C(z,Q,ee){this.props=z,this.context=Q,this.refs=p,this.updater=ee||c}C.prototype.isReactComponent={},C.prototype.setState=function(z,Q){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,Q,"setState")},C.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function j(){}j.prototype=C.prototype;function O(z,Q,ee){this.props=z,this.context=Q,this.refs=p,this.updater=ee||c}var b=O.prototype=new j;b.constructor=O,d(b,C.prototype),b.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,D={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function A(z,Q,ee){var oe,ne={},ce=null,de=null;if(Q!=null)for(oe in Q.ref!==void 0&&(de=Q.ref),Q.key!==void 0&&(ce=""+Q.key),Q)_.call(Q,oe)&&!P.hasOwnProperty(oe)&&(ne[oe]=Q[oe]);var ve=arguments.length-2;if(ve===1)ne.children=ee;else if(1=0;--ee){var oe=this.tryEntries[ee],ne=oe.completion;if(oe.tryLoc==="root")return Q("end");if(oe.tryLoc<=this.prev){var ce=r.call(oe,"catchLoc"),de=r.call(oe,"finallyLoc");if(ce&&de){if(this.prev=0;--Q){var ee=this.tryEntries[Q];if(ee.tryLoc<=this.prev&&r.call(ee,"finallyLoc")&&this.prev=0;--z){var Q=this.tryEntries[z];if(Q.finallyLoc===V)return this.complete(Q.completion,Q.afterLoc),F(Q),j}},catch:function(Z){for(var V=this.tryEntries.length-1;V>=0;--V){var z=this.tryEntries[V];if(z.tryLoc===Z){var Q=z.completion;if(Q.type==="throw"){var ee=Q.arg;F(z)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(V,z,Q){return this.delegate={iterator:H(V),resultName:z,nextLoc:Q},this.method==="next"&&(this.arg=a),j}},s}(M.exports);try{regeneratorRuntime=e}catch(s){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(M,y){"use strict";/** * @license React * scheduler.production.min.js * @@ -30,29 +30,29 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function t(H,Y){var Z=H.length;H.push(Y);e:for(;0>>1,z=H[V];if(0>>1;Vn(oe,Z))nen(ce,oe)?(H[V]=ce,H[ne]=Z,V=ne):(H[V]=oe,H[ee]=Z,V=ee);else if(nen(ce,Z))H[V]=ce,H[ne]=Z,V=ne;else break e}}return Y}function n(H,Y){var Z=H.sortIndex-Y.sortIndex;return Z!==0?Z:H.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;j.unstable_now=function(){return r.now()}}else{var i=Date,a=i.now();j.unstable_now=function(){return i.now()-a}}var g=[],x=[],u=1,m=null,v=3,d=!1,h=!1,c=!1,f=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(H){for(var Y=e(x);Y!==null;){if(Y.callback===null)s(x);else if(Y.startTime<=H)s(x),Y.sortIndex=Y.expirationTime,t(g,Y);else break;Y=e(x)}}function O(H){if(c=!1,y(H),!h)if(e(g)!==null)h=!0,F(b);else{var Y=e(x);Y!==null&&J(O,Y.startTime-H)}}function b(H,Y){h=!1,c&&(c=!1,p(D),D=-1),d=!0;var Z=v;try{for(y(Y),m=e(g);m!==null&&(!(m.expirationTime>Y)||H&&!R());){var V=m.callback;if(typeof V=="function"){m.callback=null,v=m.priorityLevel;var z=V(m.expirationTime<=Y);Y=j.unstable_now(),typeof z=="function"?m.callback=z:m===e(g)&&s(g),y(Y)}else s(g);m=e(g)}if(m!==null)var Q=!0;else{var ee=e(x);ee!==null&&J(O,ee.startTime-Y),Q=!1}return Q}finally{m=null,v=Z,d=!1}}var I=!1,_=null,D=-1,P=5,A=-1;function R(){return!(j.unstable_now()-AH||125V?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(c?(p(D),D=-1):c=!0,J(O,Z-V))):(H.sortIndex=z,t(g,H),h||d||(h=!0,F(b))),H},j.unstable_shouldYield=R,j.unstable_wrapCallback=function(H){var Y=v;return function(){var Z=v;v=Y;try{return H.apply(this,arguments)}finally{v=Z}}}},7864:function(M,j,t){"use strict";M.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(M,j){return j=j||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},i=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(u){return[u,s.getResponseHeader(u)]})},get:function(u){return s.getResponseHeader(u)},has:function(u){return s.getResponseHeader(u)!=null}}}};for(var a in s.open(j.method||"get",M,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(i())},s.onerror=e,s.withCredentials=j.credentials=="include",j.headers)s.setRequestHeader(a,j.headers[a]);s.send(j.body||null)})})},11358:function(M,j,t){"use strict";t.d(j,{OY:function(){return C},TS:function(){return h},Tj:function(){return a},Ul:function(){return u},hS:function(){return c},pb:function(){return i}});/** + */function t(H,Y){var Z=H.length;H.push(Y);e:for(;0>>1,z=H[V];if(0>>1;Vn(oe,Z))nen(ce,oe)?(H[V]=ce,H[ne]=Z,V=ne):(H[V]=oe,H[ee]=Z,V=ee);else if(nen(ce,Z))H[V]=ce,H[ne]=Z,V=ne;else break e}}return Y}function n(H,Y){var Z=H.sortIndex-Y.sortIndex;return Z!==0?Z:H.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var i=Date,a=i.now();y.unstable_now=function(){return i.now()-a}}var g=[],x=[],f=1,m=null,v=3,u=!1,h=!1,c=!1,d=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(H){for(var Y=e(x);Y!==null;){if(Y.callback===null)s(x);else if(Y.startTime<=H)s(x),Y.sortIndex=Y.expirationTime,t(g,Y);else break;Y=e(x)}}function O(H){if(c=!1,j(H),!h)if(e(g)!==null)h=!0,F(b);else{var Y=e(x);Y!==null&&J(O,Y.startTime-H)}}function b(H,Y){h=!1,c&&(c=!1,p(D),D=-1),u=!0;var Z=v;try{for(j(Y),m=e(g);m!==null&&(!(m.expirationTime>Y)||H&&!R());){var V=m.callback;if(typeof V=="function"){m.callback=null,v=m.priorityLevel;var z=V(m.expirationTime<=Y);Y=y.unstable_now(),typeof z=="function"?m.callback=z:m===e(g)&&s(g),j(Y)}else s(g);m=e(g)}if(m!==null)var Q=!0;else{var ee=e(x);ee!==null&&J(O,ee.startTime-Y),Q=!1}return Q}finally{m=null,v=Z,u=!1}}var I=!1,_=null,D=-1,P=5,A=-1;function R(){return!(y.unstable_now()-AH||125V?(H.sortIndex=Z,t(x,H),e(g)===null&&H===e(x)&&(c?(p(D),D=-1):c=!0,J(O,Z-V))):(H.sortIndex=z,t(g,H),h||u||(h=!0,F(b))),H},y.unstable_shouldYield=R,y.unstable_wrapCallback=function(H){var Y=v;return function(){var Z=v;v=Y;try{return H.apply(this,arguments)}finally{v=Z}}}},7864:function(M,y,t){"use strict";M.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(M,y){return y=y||{},new Promise(function(t,e){var s=new XMLHttpRequest,n=[],r={},i=function g(){return{ok:(s.status/100|0)==2,statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:g,headers:{keys:function(){return n},entries:function(){return n.map(function(f){return[f,s.getResponseHeader(f)]})},get:function(f){return s.getResponseHeader(f)},has:function(f){return s.getResponseHeader(f)!=null}}}};for(var a in s.open(y.method||"get",M,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(g,x){r[x]||n.push(r[x]=x)}),t(i())},s.onerror=e,s.withCredentials=y.credentials=="include",y.headers)s.setRequestHeader(a,y.headers[a]);s.send(y.body||null)})})},11358:function(M,y,t){"use strict";t.d(y,{OY:function(){return C},TS:function(){return h},Tj:function(){return a},Ul:function(){return f},hS:function(){return c},pb:function(){return i}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function e(D,P){(P==null||P>D.length)&&(P=D.length);for(var A=0,R=new Array(P);A=D.length?{done:!0}:{done:!1,value:D[R++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(D){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var A=[],R=0;RX)return 1}return 0},u=function(){for(var D=arguments.length,P=new Array(D),A=0;A>1,X=D(P[F]),XR?F:F+1},O=function(D){return function(P,A){var R=[].concat(P);return R.splice(y(D,P,A),0,A),R}},b=function(D,P){for(var A=[],R=[],K=P,N=r(D),k;!(k=N()).done;){var X=k.value;R.push(X),K--,K||(K=P,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(D){return typeof D=="object"&&D!==null},_=function(){for(var D=arguments.length,P=new Array(D),A=0;AD.length)&&(P=D.length);for(var A=0,R=new Array(P);A=D.length?{done:!0}:{done:!1,value:D[R++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(D){return function(P){if(P==null)return P;if(Array.isArray(P)){for(var A=[],R=0;RX)return 1}return 0},f=function(){for(var D=arguments.length,P=new Array(D),A=0;A>1,X=D(P[F]),XR?F:F+1},O=function(D){return function(P,A){var R=[].concat(P);return R.splice(j(D,P,A),0,A),R}},b=function(D,P){for(var A=[],R=[],K=P,N=r(D),k;!(k=N()).done;){var X=k.value;R.push(X),K--,K||(K=P,A.push(R),R=[])}return R.length&&A.push(R),A},I=function(D){return typeof D=="object"&&D!==null},_=function(){for(var D=arguments.length,P=new Array(D),A=0;A1?a-1:0),x=1;x1?a-1:0),x=1;xg.length)&&(x=g.length);for(var u=0,m=new Array(x);u=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,i=function(){for(var g=arguments.length,x=new Array(g),u=0;u1?d-1:0),c=1;c1?h-1:0),f=1;fg.length)&&(x=g.length);for(var f=0,m=new Array(x);f=g.length?{done:!0}:{done:!1,value:g[m++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=void 0,i=function(){for(var g=arguments.length,x=new Array(g),f=0;f1?u-1:0),c=1;c1?h-1:0),d=1;dd.length)&&(h=d.length);for(var c=0,f=new Array(h);c=d.length?{done:!0}:{done:!1,value:d[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(d,h,c){return dc?c:d},i=function(d){return d<0?0:d>1?1:d},a=function(d,h,c){return(d-h)/(c-h)},g=function(d,h){if(!d||isNaN(d))return d;var c,f,p,C;return h|=0,c=Math.pow(10,h),d*=c,C=+(d>0)|-(d<0),p=Math.abs(d%1)>=.4999999999854481,f=Math.floor(d),p&&(d=f+(C>0)),(p?d:Math.round(d))/c},x=function(d,h){return h===void 0&&(h=0),Number(d).toFixed(Math.max(h,0))},u=function(d,h){return h&&d>=h[0]&&d<=h[1]},m=function(d,h){for(var c=n(Object.keys(h)),f;!(f=c()).done;){var p=f.value,C=h[p];if(u(d,C))return p}},v=function(d){return Math.floor(d)!==d&&d.toString().split(".")[1].length||0}},3710:function(M,j,t){"use strict";t.d(j,{k:function(){return m}});/** + */function e(u,h){(h==null||h>u.length)&&(h=u.length);for(var c=0,d=new Array(h);c=u.length?{done:!0}:{done:!1,value:u[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(u,h,c){return uc?c:u},i=function(u){return u<0?0:u>1?1:u},a=function(u,h,c){return(u-h)/(c-h)},g=function(u,h){if(!u||isNaN(u))return u;var c,d,p,C;return h|=0,c=Math.pow(10,h),u*=c,C=+(u>0)|-(u<0),p=Math.abs(u%1)>=.4999999999854481,d=Math.floor(u),p&&(u=d+(C>0)),(p?u:Math.round(u))/c},x=function(u,h){return h===void 0&&(h=0),Number(u).toFixed(Math.max(h,0))},f=function(u,h){return h&&u>=h[0]&&u<=h[1]},m=function(u,h){for(var c=n(Object.keys(h)),d;!(d=c()).done;){var p=d.value,C=h[p];if(f(u,C))return p}},v=function(u){return Math.floor(u)!==u&&u.toString().split(".")[1].length||0}},3710:function(M,y,t){"use strict";t.d(y,{k:function(){return m}});/** * Ghetto performance measurement tools. * * Uses NODE_ENV to remove itself from production builds. @@ -60,25 +60,25 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),i={},a={},g=function(v,d){},x=function(v,d){if(0)var h,c,f},u=function(v){var d=v/n;return v.toFixed(v<10?1:0)+"ms ("+d.toFixed(2)+" frames)"},m={mark:g,measure:x}},84352:function(M,j,t){"use strict";t.d(j,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** + */var e,s=60,n=1e3/s,r=!!((e=window.performance)!=null&&e.now),i={},a={},g=function(v,u){},x=function(v,u){if(0)var h,c,d},f=function(v){var u=v/n;return v.toFixed(v<10?1:0)+"ms ("+u.toFixed(2)+" frames)"},m={mark:g,measure:x}},84352:function(M,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(i){for(var a="",g=0;gu.length)&&(m=u.length);for(var v=0,d=new Array(m);v=u.length?{done:!0}:{done:!1,value:u[d++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(u,m){if(m)return m(i)(u);var v,d=[],h=function(){return v},c=function(p){d.push(p)},f=function(p){v=u(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),P=1;P<_;P++)D[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},O={getState:C.getState,dispatch:function(I){for(var _=arguments.length,D=new Array(_>1?_-1:0),P=1;P<_;P++)D[P-1]=arguments[P];return y.apply(void 0,[].concat([I],D))}},b=m.map(function(I){return I(O)});return y=b.reduceRight(function(I,_){return _(I)},C.dispatch),s({},C,{dispatch:y})}}},g=function(u){var m=Object.keys(u);return function(v,d){v===void 0&&(v={});for(var h=s({},v),c=!1,f=r(m),p;!(p=f()).done;){var C=p.value,y=u[C],O=v[C],b=y(O,d);O!==b&&(c=!0,h[C]=b)}return c?h:v}},x=function(u,m){var v=function(){for(var d=arguments.length,h=new Array(d),c=0;cf.length)&&(m=f.length);for(var v=0,u=new Array(m);v=f.length?{done:!0}:{done:!1,value:f[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i=function(f,m){if(m)return m(i)(f);var v,u=[],h=function(){return v},c=function(p){u.push(p)},d=function(p){v=f(v,p);for(var C=0;C1?c-1:0),p=1;p1?_-1:0),P=1;P<_;P++)D[P-1]=arguments[P];throw new Error("Dispatching while constructing your middleware is not allowed.")},O={getState:C.getState,dispatch:function(I){for(var _=arguments.length,D=new Array(_>1?_-1:0),P=1;P<_;P++)D[P-1]=arguments[P];return j.apply(void 0,[].concat([I],D))}},b=m.map(function(I){return I(O)});return j=b.reduceRight(function(I,_){return _(I)},C.dispatch),s({},C,{dispatch:j})}}},g=function(f){var m=Object.keys(f);return function(v,u){v===void 0&&(v={});for(var h=s({},v),c=!1,d=r(m),p;!(p=d()).done;){var C=p.value,j=f[C],O=v[C],b=j(O,u);O!==b&&(c=!0,h[C]=b)}return c?h:v}},x=function(f,m){var v=function(){for(var u=arguments.length,h=new Array(u),c=0;c0&&P[P.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!P||k[1]>P[0]&&k[1]0&&P[P.length-1])&&(k[0]===6||k[0]===2)){R=0;continue}if(k[0]===3&&(!P||k[1]>P[0]&&k[1]h.length)&&(c=h.length);for(var f=0,p=new Array(c);f=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(h){if(Array.isArray(h))return r(h.join(""));for(var c=h.split("\n"),f,p=n(c),C;!(C=p()).done;)for(var y=C.value,O=0;O",apos:"'"};return h.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return f[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var y=parseInt(C,10);return String.fromCharCode(y)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var y=parseInt(C,16);return String.fromCharCode(y)})},d=function(h){return Object.keys(h).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(h[c])}).join("&")}},68554:function(M,j,t){"use strict";t.d(j,{CO:function(){return a},Jk:function(){return d},Xd:function(){return m},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** + */function e(h,c){(c==null||c>h.length)&&(c=h.length);for(var d=0,p=new Array(c);d=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(h){if(Array.isArray(h))return r(h.join(""));for(var c=h.split("\n"),d,p=n(c),C;!(C=p()).done;)for(var j=C.value,O=0;O",apos:"'"};return h.replace(/
/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(c,function(p,C){return d[C]}).replace(/&#?([0-9]+);/gi,function(p,C){var j=parseInt(C,10);return String.fromCharCode(j)}).replace(/&#x?([0-9a-f]+);/gi,function(p,C){var j=parseInt(C,16);return String.fromCharCode(j)})},u=function(h){return Object.keys(h).map(function(c){return encodeURIComponent(c)+"="+encodeURIComponent(h[c])}).join("&")}},68554:function(M,y,t){"use strict";t.d(y,{CO:function(){return a},Jk:function(){return u},Xd:function(){return m},Z4:function(){return g},tk:function(){return x}});var e=t(11358);/** * N-dimensional vector manipulation functions. * * Vectors are plain number arrays, i.e. [x, y, z]. @@ -86,11 +86,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var s=function(c,f){return c+f},n=function(c,f){return c-f},r=function(c,f){return c*f},i=function(c,f){return c/f},a=function(){for(var c=arguments.length,f=new Array(c),p=0;px.length)&&(u=x.length);for(var m=0,v=new Array(u);m=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},a=function(x){return i[x]||x},g=function(x){return function(u){return function(m){var v=m.type,d=m.payload;if(v==="asset/stylesheet"){Byond.loadCss(d);return}if(v==="asset/mappings"){for(var h=function(){var p=f.value;if(r.some(function(O){return O.test(p)}))return"continue";var C=d[p],y=p.split(".").pop();i[p]=C,y==="css"&&Byond.loadCss(C),y==="js"&&Byond.loadJs(C)},c=n(Object.keys(d)),f;!(f=c()).done;)h();return}u(m)}}}},4413:function(M,j,t){"use strict";t.d(j,{H$:function(){return c},J3:function(){return h},JV:function(){return C},Oc:function(){return P},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=t(3710),s=t(40001),n=t(58463),r=t(80116),i=t(46989),a=t(47868),g=t(17002);/** + */function e(x,f){(f==null||f>x.length)&&(f=x.length);for(var m=0,v=new Array(f);m=x.length?{done:!0}:{done:!1,value:x[v++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=[/v4shim/i],i={},a=function(x){return i[x]||x},g=function(x){return function(f){return function(m){var v=m.type,u=m.payload;if(v==="asset/stylesheet"){Byond.loadCss(u);return}if(v==="asset/mappings"){for(var h=function(){var p=d.value;if(r.some(function(O){return O.test(p)}))return"continue";var C=u[p],j=p.split(".").pop();i[p]=C,j==="css"&&Byond.loadCss(C),j==="js"&&Byond.loadJs(C)},c=n(Object.keys(u)),d;!(d=c()).done;)h();return}f(m)}}}},4413:function(M,y,t){"use strict";t.d(y,{H$:function(){return c},J3:function(){return h},JV:function(){return C},Oc:function(){return P},QY:function(){return R},Ul:function(){return A},jB:function(){return b},pX:function(){return I}});var e=t(3710),s=t(40001),n=t(58463),r=t(80116),i=t(46989),a=t(47868),g=t(17002);/** * This file provides a clear separation layer between backend updates * and what state our React app sees. * @@ -101,33 +101,33 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function x(k,X){(X==null||X>k.length)&&(X=k.length);for(var F=0,J=new Array(X);F=k.length?{done:!0}:{done:!1,value:k[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=(0,a.h)("backend"),h,c=function(k){h=k},f=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),y=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(k,X){k===void 0&&(k=O);var F=X.type,J=X.payload;if(F==="backend/update"){var H=u({},k.config,J.config),Y=u({},k.data,J.static_data,J.data),Z=u({},k.shared);if(J.shared)for(var V=v(Object.keys(J.shared)),z;!(z=V()).done;){var Q=z.value,ee=J.shared[Q];ee===""?Z[Q]=void 0:Z[Q]=JSON.parse(ee)}return u({},k,{config:H,data:Y,shared:Z,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ce;return u({},k,{shared:u({},k.shared,(ce={},ce[oe]=ne,ce))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return u({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var de=J.timestamp;return u({},k,{data:{},shared:{},config:u({},k.config,{title:"",status:1}),suspending:!1,suspended:de})}return k},I=function(k){var X,F;return function(J){return function(H){var Y=D(k.getState()).suspended,Z=H.type,V=H.payload;if(Z==="update"){k.dispatch(f(V));return}if(Z==="suspend"){k.dispatch(y());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!F){d.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.$)()})),Z==="backend/update"){var Q,ee,oe=(ee=V.config)==null||(Q=ee.window)==null?void 0:Q.fancy;X===void 0?X=oe:X!==oe&&(d.log("changing fancy mode to",oe),X=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Z==="backend/update"&&Y&&(d.log("backend/update",V),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=D(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,X){X===void 0&&(X={});var F=typeof X=="object"&&X!==null&&!Array.isArray(X);if(!F){d.error("Payload for act() must be an object, got this:",X);return}Byond.sendMessage("act/"+k,X)},D=function(k){return k.backend||{}},P=function(){var k,X=h==null||(k=h.getState())==null?void 0:k.backend;return u({},X,{act:_})},A=function(k,X){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Y=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Y?Y[k]:X;return[Z,function(V){h.dispatch(p({key:k,nextState:typeof V=="function"?V(Z):V}))}]},R=function(k,X){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Y=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Y?Y[k]:X;return[Z,function(V){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof V=="function"?V(Z):V)||""})}]},K=function(){return h.dispatch},N=function(k){return k(h==null?void 0:h.getState())}},60001:function(M,j,t){"use strict";t.d(j,{Fl:function(){return I},WP:function(){return _},az:function(){return D},zA:function(){return m}});var e=t(84352),s=t(44583),n=t(1568),r=t(47868);/** + */function x(k,X){(X==null||X>k.length)&&(X=k.length);for(var F=0,J=new Array(X);F=k.length?{done:!0}:{done:!1,value:k[J++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=(0,a.h)("backend"),h,c=function(k){h=k},d=(0,s.VP)("backend/update"),p=(0,s.VP)("backend/setSharedState"),C=(0,s.VP)("backend/suspendStart"),j=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},O={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},b=function(k,X){k===void 0&&(k=O);var F=X.type,J=X.payload;if(F==="backend/update"){var H=f({},k.config,J.config),Y=f({},k.data,J.static_data,J.data),Z=f({},k.shared);if(J.shared)for(var V=v(Object.keys(J.shared)),z;!(z=V()).done;){var Q=z.value,ee=J.shared[Q];ee===""?Z[Q]=void 0:Z[Q]=JSON.parse(ee)}return f({},k,{config:H,data:Y,shared:Z,suspended:!1})}if(F==="backend/setSharedState"){var oe=J.key,ne=J.nextState,ce;return f({},k,{shared:f({},k.shared,(ce={},ce[oe]=ne,ce))})}if(F==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),F==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),F==="backend/suspendStart")return f({},k,{suspending:!0});if(F==="backend/suspendSuccess"){var de=J.timestamp;return f({},k,{data:{},shared:{},config:f({},k.config,{title:"",status:1}),suspending:!1,suspended:de})}return k},I=function(k){var X,F;return function(J){return function(H){var Y=D(k.getState()).suspended,Z=H.type,V=H.payload;if(Z==="update"){k.dispatch(d(V));return}if(Z==="suspend"){k.dispatch(j());return}if(Z==="ping"){Byond.sendMessage("ping/reply");return}if(Z==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),Z==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),Z==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),Z==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),Z==="backend/suspendStart"&&!F){u.log("suspending ("+Byond.windowId+")");var z=function(){return Byond.sendMessage("suspend")};z(),F=setInterval(z,2e3)}if(Z==="backend/suspendSuccess"&&((0,g.Su)(),clearInterval(F),F=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,i.$)()})),Z==="backend/update"){var Q,ee,oe=(ee=V.config)==null||(Q=ee.window)==null?void 0:Q.fancy;X===void 0?X=oe:X!==oe&&(u.log("changing fancy mode to",oe),X=oe,Byond.winset(Byond.windowId,{titlebar:!oe,"can-resize":!oe}))}return Z==="backend/update"&&Y&&(u.log("backend/update",V),(0,g.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ne=D(k.getState()).suspended;ne||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),J(H)}}},_=function(k,X){X===void 0&&(X={});var F=typeof X=="object"&&X!==null&&!Array.isArray(X);if(!F){u.error("Payload for act() must be an object, got this:",X);return}Byond.sendMessage("act/"+k,X)},D=function(k){return k.backend||{}},P=function(){var k,X=h==null||(k=h.getState())==null?void 0:k.backend;return f({},X,{act:_})},A=function(k,X){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Y=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Y?Y[k]:X;return[Z,function(V){h.dispatch(p({key:k,nextState:typeof V=="function"?V(Z):V}))}]},R=function(k,X){var F,J=h==null||(F=h.getState())==null?void 0:F.backend,H,Y=(H=J==null?void 0:J.shared)!=null?H:{},Z=k in Y?Y[k]:X;return[Z,function(V){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof V=="function"?V(Z):V)||""})}]},K=function(){return h.dispatch},N=function(k){return k(h==null?void 0:h.getState())}},60001:function(M,y,t){"use strict";t.d(y,{Fl:function(){return I},WP:function(){return _},az:function(){return D},zA:function(){return m}});var e=t(84352),s=t(44583),n=t(1568),r=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function i(P,A){(A==null||A>P.length)&&(A=P.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=P[N]);return R}function x(P,A){if(P){if(typeof P=="string")return i(P,A);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return i(P,A)}}function u(P,A){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||A&&P&&typeof P.length=="number"){R&&(P=R);var K=0;return function(){return K>=P.length?{done:!0}:{done:!1,value:P[K++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},v=function(P){if(typeof P=="string")return m(P);if(typeof P=="number")return m(P*.5)},d=function(P){return!h(P)},h=function(P){return typeof P=="string"&&n.NE.includes(P)},c=function(P){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[P]=R)}},f=function(P,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[P]=A(K))}},p=function(P,A){return function(R,K){K&&(R[P]=A)}},C=function(P,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;kP.length)&&(A=P.length);for(var R=0,K=new Array(A);R=0)&&(R[N]=P[N]);return R}function x(P,A){if(P){if(typeof P=="string")return i(P,A);var R=Object.prototype.toString.call(P).slice(8,-1);if(R==="Object"&&P.constructor&&(R=P.constructor.name),R==="Map"||R==="Set")return Array.from(R);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return i(P,A)}}function f(P,A){var R=typeof Symbol!="undefined"&&P[Symbol.iterator]||P["@@iterator"];if(R)return(R=R.call(P)).next.bind(R);if(Array.isArray(P)||(R=x(P))||A&&P&&typeof P.length=="number"){R&&(P=R);var K=0;return function(){return K>=P.length?{done:!0}:{done:!1,value:P[K++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(P){if(typeof P=="string")return P.endsWith("px")?parseFloat(P)/12+"rem":P;if(typeof P=="number")return P+"rem"},v=function(P){if(typeof P=="string")return m(P);if(typeof P=="number")return m(P*.5)},u=function(P){return!h(P)},h=function(P){return typeof P=="string"&&n.NE.includes(P)},c=function(P){return function(A,R){(typeof R=="number"||typeof R=="string")&&(A[P]=R)}},d=function(P,A){return function(R,K){(typeof K=="number"||typeof K=="string")&&(R[P]=A(K))}},p=function(P,A){return function(R,K){K&&(R[P]=A)}},C=function(P,A,R){return function(K,N){if(typeof N=="number"||typeof N=="string")for(var k=0;k=0)&&(v[h]=u[h]);return v}var a=function(u){var m=u.className,v=u.collapsing,d=u.children,h=i(u,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",m,(0,n.WP)(h)])},(0,n.Fl)(h),{children:(0,e.jsx)("tbody",{children:d})}))},g=function(u){var m=u.className,v=u.header,d=i(u,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",m,(0,n.WP)(u)])},(0,n.Fl)(d)))},x=function(u){var m=u.className,v=u.collapsing,d=u.header,h=i(u,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",v&&"Table__cell--collapsing",d&&"Table__cell--header",m,(0,n.WP)(u)])},(0,n.Fl)(h)))};a.Row=g,a.Cell=x},92514:function(M,j,t){"use strict";t.d(j,{zv:function(){return m},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return y.az},$n:function(){return an},D1:function(){return as},t1:function(){return rl},Nt:function(){return di},BK:function(){return il},Rr:function(){return ls},cG:function(){return cs},Hx:function(){return Oa},ms:function(){return ds},so:function(){return Sn},xA:function(){return yi},In:function(){return R},pd:function(){return xs},N6:function(){return Il},Wx:function(){return Oi},Ki:function(){return Ot},aF:function(){return Mi},tx:function(){return Fo},IC:function(){return Vo},Q7:function(){return vr},ND:function(){return vi},z2:function(){return hs},SM:function(){return so},wn:function(){return Zn},Ap:function(){return Bi},BJ:function(){return Sa},XI:function(){return no.XI},tU:function(){return Kr},fs:function(){return qn},m_:function(){return on}});var e=t(88095),s=t(5229),n=t(44583);/** + */function r(){return r=Object.assign||function(f){for(var m=1;m=0)&&(v[h]=f[h]);return v}var a=function(f){var m=f.className,v=f.collapsing,u=f.children,h=i(f,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,s.Ly)(["Table",v&&"Table--collapsing",m,(0,n.WP)(h)])},(0,n.Fl)(h),{children:(0,e.jsx)("tbody",{children:u})}))},g=function(f){var m=f.className,v=f.header,u=i(f,["className","header"]);return(0,e.jsx)("tr",r({className:(0,s.Ly)(["Table__row",v&&"Table__row--header",m,(0,n.WP)(f)])},(0,n.Fl)(u)))},x=function(f){var m=f.className,v=f.collapsing,u=f.header,h=i(f,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,s.Ly)(["Table__cell",v&&"Table__cell--collapsing",u&&"Table__cell--header",m,(0,n.WP)(f)])},(0,n.Fl)(h)))};a.Row=g,a.Cell=x},92514:function(M,y,t){"use strict";t.d(y,{zv:function(){return m},y5:function(){return v},Z8:function(){return p},Y0:function(){return I},az:function(){return j.az},$n:function(){return an},D1:function(){return as},t1:function(){return rl},Nt:function(){return di},BK:function(){return il},Rr:function(){return ls},cG:function(){return cs},Hx:function(){return Oa},ms:function(){return ds},so:function(){return Sn},xA:function(){return yi},In:function(){return R},pd:function(){return xs},N6:function(){return Il},Wx:function(){return Oi},Ki:function(){return Ot},aF:function(){return Mi},tx:function(){return Fo},IC:function(){return Vo},Q7:function(){return vr},ND:function(){return vi},z2:function(){return hs},SM:function(){return so},wn:function(){return Zn},Ap:function(){return Bi},BJ:function(){return Sa},XI:function(){return no.XI},tU:function(){return Kr},fs:function(){return qn},m_:function(){return on}});var e=t(88095),s=t(5229),n=t(44583);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&i(S,w)}function i(S,w){return i=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},i(S,w)}var a=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},g=1e3/60,x=.8333,u=.001,m=function(S){"use strict";r(w,S);function w($){var B;B=S.call(this,$)||this,B.ref=(0,n.createRef)(),B.currentValue=0;var G=$.initial,te=$.value;return G!==void 0&&a(G)?B.currentValue=G:a(te)&&(B.currentValue=te),B}var U=w.prototype;return U.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},U.componentWillUnmount=function(){this.stopTicking()},U.shouldComponentUpdate=function(B){return B.value!==this.props.value&&this.startTicking(),!1},U.startTicking=function(){var B=this;this.interval===void 0&&(this.interval=setInterval(function(){return B.tick()},g))},U.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},U.tick=function(){var B=this.currentValue,G=this.props.value;a(G)?this.currentValue=B*x+G*(1-x):this.stopTicking(),Math.abs(G-this.currentValue)=0)&&(U[B]=S[B]);return U}function I(S){var w=S.className,U=b(S,["className"]);return(0,e.jsx)(y.az,O({className:(0,C.Ly)(["BlockQuote",w])},U))}var _=t(61652);/** + */function O(){return O=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function I(S){var w=S.className,U=b(S,["className"]);return(0,e.jsx)(j.az,O({className:(0,C.Ly)(["BlockQuote",w])},U))}var _=t(61652);/** * @file * @copyright 2020 Aleksej Komarov * @author Original Aleksej Komarov * @author Changes ThePotato97 * @license MIT - */function D(){return D=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var A=/-o$/,R=function(S){var w=S.name,U=S.size,$=S.spin,B=S.className,G=S.rotation,te=P(S,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var se=(0,y.Fl)(te),le="";if(w.startsWith("tg-"))le=w;else{var ue=A.test(w),Ee=w.replace(A,""),Ie=!Ee.startsWith("fa-");le=ue?"far ":"fas ",Ie&&(le+="fa-"),le+=Ee,$&&(le+=" fa-spin")}return(0,e.jsx)("i",D({className:(0,C.Ly)(["Icon",le,B,(0,y.WP)(te)])},se))},K=function(S){var w=S.className,U=S.children,$=P(S,["className","children"]);return(0,e.jsx)("span",D({className:(0,C.Ly)(["IconStack",w,(0,y.WP)($)])},(0,y.Fl)($),{children:U}))};R.Stack=K;function N(S){if(S==null)return window;if(S.toString()!=="[object Window]"){var w=S.ownerDocument;return w&&w.defaultView||window}return S}function k(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function X(S){var w=N(S).Element;return k(S,w)||k(S,Element)}function F(S){var w=N(S).HTMLElement;return k(S,w)||k(S,HTMLElement)}function J(S){if(typeof ShadowRoot=="undefined")return!1;var w=N(S).ShadowRoot;return k(S,w)||k(S,ShadowRoot)}var H=Math.max,Y=Math.min,Z=Math.round;function V(){var S=navigator.userAgentData;return S!=null&&S.brands&&Array.isArray(S.brands)?S.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(V())}function Q(S,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=S.getBoundingClientRect(),B=1,G=1;w&&F(S)&&(B=S.offsetWidth>0&&Z($.width)/S.offsetWidth||1,G=S.offsetHeight>0&&Z($.height)/S.offsetHeight||1);var te=X(S)?N(S):window,re=te.visualViewport,se=!z()&&U,le=($.left+(se&&re?re.offsetLeft:0))/B,ue=($.top+(se&&re?re.offsetTop:0))/G,Ee=$.width/B,Ie=$.height/G;return{width:Ee,height:Ie,top:ue,right:le+Ee,bottom:ue+Ie,left:le,x:le,y:ue}}function ee(S){var w=N(S),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(S){return{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}}function ne(S){return S===N(S)||!F(S)?ee(S):oe(S)}function ce(S){return S?(S.nodeName||"").toLowerCase():null}function de(S){return((X(S)?S.ownerDocument:S.document)||window.document).documentElement}function ve(S){return Q(de(S)).left+ee(S).scrollLeft}function pe(S){return N(S).getComputedStyle(S)}function me(S){var w=pe(S),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(S){var w=S.getBoundingClientRect(),U=Z(w.width)/S.offsetWidth||1,$=Z(w.height)/S.offsetHeight||1;return U!==1||$!==1}function we(S,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=de(w),te=Q(S,B,U),re={scrollLeft:0,scrollTop:0},se={x:0,y:0};return($||!$&&!U)&&((ce(w)!=="body"||me(G))&&(re=ne(w)),F(w)?(se=Q(w,!0),se.x+=w.clientLeft,se.y+=w.clientTop):G&&(se.x=ve(G))),{x:te.left+re.scrollLeft-se.x,y:te.top+re.scrollTop-se.y,width:te.width,height:te.height}}function Je(S){var w=Q(S),U=S.offsetWidth,$=S.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:S.offsetLeft,y:S.offsetTop,width:U,height:$}}function ze(S){return ce(S)==="html"?S:S.assignedSlot||S.parentNode||(J(S)?S.host:null)||de(S)}function Ke(S){return["html","body","#document"].indexOf(ce(S))>=0?S.ownerDocument.body:F(S)&&me(S)?S:Ke(ze(S))}function Be(S,w){var U;w===void 0&&(w=[]);var $=Ke(S),B=$===((U=S.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],me($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function ct(S){return["table","td","th"].indexOf(ce(S))>=0}function xt(S){return!F(S)||pe(S).position==="fixed"?null:S.offsetParent}function st(S){var w=/firefox/i.test(V()),U=/Trident/i.test(V());if(U&&F(S)){var $=pe(S);if($.position==="fixed")return null}var B=ze(S);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ce(B))<0;){var G=pe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function ot(S){for(var w=N(S),U=xt(S);U&&ct(U)&&pe(U).position==="static";)U=xt(U);return U&&(ce(U)==="html"||ce(U)==="body"&&pe(U).position==="static")?w:U||st(S)||w}var Ae="top",Le="bottom",Pe="right",ke="left",Me="auto",Fe=[Ae,Le,Pe,ke],We="start",He="end",jt="clippingParents",Mt="viewport",bt="popper",Dt="reference",lt=Fe.reduce(function(S,w){return S.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Fe,[Me]).reduce(function(S,w){return S.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Qe="read",mt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",dn="write",Bn="afterWrite",Gn=[je,Qe,mt,Pt,zt,en,Wt,dn,Bn];function Hn(S){var w=new Map,U=new Set,$=[];S.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var se=w.get(re);se&&B(se)}}),$.push(G)}return S.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(S){var w=Hn(S);return Gn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(S){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(S())})})),w}}function Oo(S){var w=S.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var S=arguments.length,w=new Array(S),U=0;U=0?"x":"y"}function Er(S){var w=S.reference,U=S.element,$=S.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,se;switch(B){case Ae:se={x:te,y:w.y-U.height};break;case Le:se={x:te,y:w.y+w.height};break;case Pe:se={x:w.x+w.width,y:re};break;case ke:se={x:w.x-U.width,y:re};break;default:se={x:w.x,y:w.y}}var le=B?ir(B):null;if(le!=null){var ue=le==="y"?"height":"width";switch(G){case We:se[le]=se[le]-(w[ue]/2-U[ue]/2);break;case He:se[le]=se[le]+(w[ue]/2-U[ue]/2);break;default:}}return se}function _o(S){var w=S.state,U=S.name;w.modifiersData[U]=Er({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ei={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(S,w){var U=S.x,$=S.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z($*B)/B||0}}function Kn(S){var w,U=S.popper,$=S.popperRect,B=S.placement,G=S.variation,te=S.offsets,re=S.position,se=S.gpuAcceleration,le=S.adaptive,ue=S.roundOffsets,Ee=S.isFixed,Ie=te.x,Ce=Ie===void 0?0:Ie,_e=te.y,Re=_e===void 0?0:_e,Ue=typeof ue=="function"?ue({x:Ce,y:Re}):{x:Ce,y:Re};Ce=Ue.x,Re=Ue.y;var Ne=te.hasOwnProperty("x"),Ve=te.hasOwnProperty("y"),nt=ke,Xe=Ae,et=window;if(le){var at=ot(U),dt="clientHeight",ut="clientWidth";if(at===N(U)&&(at=de(U),pe(at).position!=="static"&&re==="absolute"&&(dt="scrollHeight",ut="scrollWidth")),at=at,B===Ae||(B===ke||B===Pe)&&G===He){Xe=Le;var pt=Ee&&at===et&&et.visualViewport?et.visualViewport.height:at[dt];Re-=pt-$.height,Re*=se?1:-1}if(B===ke||(B===Ae||B===Le)&&G===He){nt=Pe;var Ct=Ee&&at===et&&et.visualViewport?et.visualViewport.width:at[ut];Ce-=Ct-$.width,Ce*=se?1:-1}}var vt=Object.assign({position:re},le&&ti),it=ue===!0?ni({x:Ce,y:Re},N(U)):{x:Ce,y:Re};if(Ce=it.x,Re=it.y,se){var St;return Object.assign({},vt,(St={},St[Xe]=Ve?"0":"",St[nt]=Ne?"0":"",St.transform=(et.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Re+"px)":"translate3d("+Ce+"px, "+Re+"px, 0)",St))}return Object.assign({},vt,(w={},w[Xe]=Ve?Re+"px":"",w[nt]=Ne?Ce+"px":"",w.transform="",w))}function aa(S){var w=S.state,U=S.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,se=re===void 0?!0:re,le={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,Kn(Object.assign({},le,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:se})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,Kn(Object.assign({},le,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ia={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aa,data:{}};function ri(S){var w=S.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ce(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function sa(S){var w=S.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(se,le){return se[le]="",se},{});!F(B)||!ce(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(se){B.removeAttribute(se)}))})}}var la={name:"applyStyles",enabled:!0,phase:"write",fn:ri,effect:sa,requires:["computeStyles"]};function ae(S,w,U){var $=xn(S),B=[ke,Ae].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:S})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(S){var w=S.state,U=S.options,$=S.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(ue,Ee){return ue[Ee]=ae(Ee,w.rects,G),ue},{}),re=te[w.placement],se=re.x,le=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=se,w.modifiersData.popperOffsets.y+=le),w.modifiersData[$]=te}var Hs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Ys={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(S){return S.replace(/left|right|bottom|top/g,function(w){return Ys[w]})}var Qs={start:"end",end:"start"};function ca(S){return S.replace(/start|end/g,function(w){return Qs[w]})}function Xi(S,w){var U=N(S),$=de(S),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,se=0;if(B){G=B.width,te=B.height;var le=z();(le||!le&&w==="fixed")&&(re=B.offsetLeft,se=B.offsetTop)}return{width:G,height:te,x:re+ve(S),y:se}}function ua(S){var w,U=de(S),$=ee(S),B=(w=S.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+ve(S),se=-$.scrollTop;return pe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:se}}function Gi(S,w){var U=w.getRootNode&&w.getRootNode();if(S.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&S.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function da(S){return Object.assign({},S,{left:S.x,top:S.y,right:S.x+S.width,bottom:S.y+S.height})}function fa(S,w){var U=Q(S,!1,w==="fixed");return U.top=U.top+S.clientTop,U.left=U.left+S.clientLeft,U.bottom=U.top+S.clientHeight,U.right=U.left+S.clientWidth,U.width=S.clientWidth,U.height=S.clientHeight,U.x=U.left,U.y=U.top,U}function _n(S,w,U){return w===Mt?da(Xi(S,U)):X(w)?fa(w,U):da(ua(de(S)))}function Zs(S){var w=Be(ze(S)),U=["absolute","fixed"].indexOf(pe(S).position)>=0,$=U&&F(S)?ot(S):S;return X($)?w.filter(function(B){return X(B)&&Gi(B,$)&&ce(B)!=="body"}):[]}function Pn(S,w,U,$){var B=w==="clippingParents"?Zs(S):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(se,le){var ue=_n(S,le,$);return se.top=H(ue.top,se.top),se.right=Y(ue.right,se.right),se.bottom=Y(ue.bottom,se.bottom),se.left=H(ue.left,se.left),se},_n(S,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Hi(){return{top:0,right:0,bottom:0,left:0}}function Yi(S){return Object.assign({},Hi(),S)}function Qi(S,w){return w.reduce(function(U,$){return U[$]=S,U},{})}function sr(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?S.placement:$,G=U.strategy,te=G===void 0?S.strategy:G,re=U.boundary,se=re===void 0?jt:re,le=U.rootBoundary,ue=le===void 0?Mt:le,Ee=U.elementContext,Ie=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Re=U.padding,Ue=Re===void 0?0:Re,Ne=Yi(typeof Ue!="number"?Ue:Qi(Ue,Fe)),Ve=Ie===bt?Dt:bt,nt=S.rects.popper,Xe=S.elements[_e?Ve:Ie],et=Pn(X(Xe)?Xe:Xe.contextElement||de(S.elements.popper),se,ue,te),at=Q(S.elements.reference),dt=Er({reference:at,element:nt,strategy:"absolute",placement:B}),ut=da(Object.assign({},nt,dt)),pt=Ie===bt?ut:at,Ct={top:et.top-pt.top+Ne.top,bottom:pt.bottom-et.bottom+Ne.bottom,left:et.left-pt.left+Ne.left,right:pt.right-et.right+Ne.right},vt=S.modifiersData.offset;if(Ie===bt&&vt){var it=vt[B];Object.keys(Ct).forEach(function(St){var Nt=[Pe,Le].indexOf(St)>=0?1:-1,kt=[Ae,Le].indexOf(St)>=0?"y":"x";Ct[St]+=it[kt]*Nt})}return Ct}function ha(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,se=U.allowedAutoPlacements,le=se===void 0?Ge:se,ue=pn($),Ee=ue?re?lt:lt.filter(function(_e){return pn(_e)===ue}):Fe,Ie=Ee.filter(function(_e){return le.indexOf(_e)>=0});Ie.length===0&&(Ie=Ee);var Ce=Ie.reduce(function(_e,Re){return _e[Re]=sr(S,{placement:Re,boundary:B,rootBoundary:G,padding:te})[xn(Re)],_e},{});return Object.keys(Ce).sort(function(_e,Re){return Ce[_e]-Ce[Re]})}function Po(S){if(xn(S)===Me)return[];var w=wt(S);return[ca(S),w,ca(w)]}function ma(S){var w=S.state,U=S.options,$=S.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,se=U.fallbackPlacements,le=U.padding,ue=U.boundary,Ee=U.rootBoundary,Ie=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Re=U.allowedAutoPlacements,Ue=w.options.placement,Ne=xn(Ue),Ve=Ne===Ue,nt=se||(Ve||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(nt).reduce(function(Nr,tr){return Nr.concat(xn(tr)===Me?ha(w,{placement:tr,boundary:ue,rootBoundary:Ee,padding:le,flipVariations:_e,allowedAutoPlacements:Re}):tr)},[]),et=w.rects.reference,at=w.rects.popper,dt=new Map,ut=!0,pt=Xe[0],Ct=0;Ct=0,kt=Nt?"width":"height",Lt=sr(w,{placement:vt,boundary:ue,rootBoundary:Ee,altBoundary:Ie,padding:le}),Gt=Nt?St?Pe:ke:St?Le:Ae;et[kt]>at[kt]&&(Gt=wt(Gt));var Lr=wt(Gt),zn=[];if(G&&zn.push(Lt[it]<=0),re&&zn.push(Lt[Gt]<=0,Lt[Lr]<=0),zn.every(function(Nr){return Nr})){pt=vt,ut=!1;break}dt.set(vt,zn)}if(ut)for(var Ho=_e?3:1,Yo=function(tr){var Wn=Xe.find(function(Qo){var Rn=dt.get(Qo);if(Rn)return Rn.slice(0,tr).every(function(Cn){return Cn})});if(Wn)return pt=Wn,"break"},er=Ho;er>0;er--){var kr=Yo(er);if(kr==="break")break}w.placement!==pt&&(w.modifiersData[$]._skip=!0,w.placement=pt,w.reset=!0)}}var Js={name:"flip",enabled:!0,phase:"main",fn:ma,requiresIfExists:["offset"],data:{_skip:!1}};function qs(S){return S==="x"?"y":"x"}function br(S,w,U){return H(S,Y(w,U))}function Zi(S,w,U){var $=br(S,w,U);return $>U?U:$}function oi(S){var w=S.state,U=S.options,$=S.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,se=U.boundary,le=U.rootBoundary,ue=U.altBoundary,Ee=U.padding,Ie=U.tether,Ce=Ie===void 0?!0:Ie,_e=U.tetherOffset,Re=_e===void 0?0:_e,Ue=sr(w,{boundary:se,rootBoundary:le,padding:Ee,altBoundary:ue}),Ne=xn(w.placement),Ve=pn(w.placement),nt=!Ve,Xe=ir(Ne),et=qs(Xe),at=w.modifiersData.popperOffsets,dt=w.rects.reference,ut=w.rects.popper,pt=typeof Re=="function"?Re(Object.assign({},w.rects,{placement:w.placement})):Re,Ct=typeof pt=="number"?{mainAxis:pt,altAxis:pt}:Object.assign({mainAxis:0,altAxis:0},pt),vt=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,it={x:0,y:0};if(at){if(G){var St,Nt=Xe==="y"?Ae:ke,kt=Xe==="y"?Le:Pe,Lt=Xe==="y"?"height":"width",Gt=at[Xe],Lr=Gt+Ue[Nt],zn=Gt-Ue[kt],Ho=Ce?-ut[Lt]/2:0,Yo=Ve===We?dt[Lt]:ut[Lt],er=Ve===We?-ut[Lt]:-dt[Lt],kr=w.elements.arrow,Nr=Ce&&kr?Je(kr):{width:0,height:0},tr=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Hi(),Wn=tr[Nt],Qo=tr[kt],Rn=br(0,dt[Lt],Nr[Lt]),Cn=nt?dt[Lt]/2-Ho-Rn-Wn-Ct.mainAxis:Yo-Rn-Wn-Ct.mainAxis,Zo=nt?-dt[Lt]/2+Ho+Rn+Qo+Ct.mainAxis:er+Rn+Qo+Ct.mainAxis,Ur=w.elements.arrow&&ot(w.elements.arrow),$r=Ur?Xe==="y"?Ur.clientTop||0:Ur.clientLeft||0:0,Va=(St=vt==null?void 0:vt[Xe])!=null?St:0,ho=Gt+Cn-Va-$r,Os=Gt+Zo-Va,Xa=br(Ce?Y(Lr,ho):Lr,Gt,Ce?H(zn,Os):zn);at[Xe]=Xa,it[Xe]=Xa-Gt}if(re){var Bt,Ga=Xe==="x"?Ae:ke,Ki=Xe==="x"?Le:Pe,nr=at[et],zr=et==="y"?"height":"width",Ha=nr+Ue[Ga],gr=nr-Ue[Ki],Rt=[Ae,ke].indexOf(Ne)!==-1,Ut=(Bt=vt==null?void 0:vt[et])!=null?Bt:0,Ft=Rt?Ha:nr-dt[zr]-ut[zr]-Ut+Ct.altAxis,Jo=Rt?nr+dt[zr]+ut[zr]-Ut-Ct.altAxis:gr,mo=Ce&&Rt?Zi(Ft,nr,Jo):br(Ce?Ft:Ha,nr,Ce?Jo:gr);at[et]=mo,it[et]=mo-nr}w.modifiersData[$]=it}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:oi,requiresIfExists:["offset"]},el=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Yi(typeof w!="number"?w:Qi(w,Fe))};function ai(S){var w,U=S.state,$=S.name,B=S.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),se=ir(re),le=[ke,Pe].indexOf(re)>=0,ue=le?"height":"width";if(!(!G||!te)){var Ee=el(B.padding,U),Ie=Je(G),Ce=se==="y"?Ae:ke,_e=se==="y"?Le:Pe,Re=U.rects.reference[ue]+U.rects.reference[se]-te[se]-U.rects.popper[ue],Ue=te[se]-U.rects.reference[se],Ne=ot(G),Ve=Ne?se==="y"?Ne.clientHeight||0:Ne.clientWidth||0:0,nt=Re/2-Ue/2,Xe=Ee[Ce],et=Ve-Ie[ue]-Ee[_e],at=Ve/2-Ie[ue]/2+nt,dt=br(Xe,at,et),ut=se;U.modifiersData[$]=(w={},w[ut]=dt,w.centerOffset=dt-at,w)}}function _t(S){var w=S.state,U=S.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Gi(w.elements.popper,B)&&(w.elements.arrow=B))}var Ji={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ii(S,w,U){return U===void 0&&(U={x:0,y:0}),{top:S.top-w.height-U.y,right:S.right-w.width+U.x,bottom:S.bottom-w.height+U.y,left:S.left-w.width-U.x}}function va(S){return[Ae,Pe,Le,ke].some(function(w){return S[w]>=0})}function qi(S){var w=S.state,U=S.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=sr(w,{elementContext:"reference"}),re=sr(w,{altBoundary:!0}),se=ii(te,$),le=ii(re,B,G),ue=va(se),Ee=va(le);w.modifiersData[U]={referenceClippingOffsets:se,popperEscapeOffsets:le,isReferenceHidden:ue,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":ue,"data-popper-escaped":Ee})}var es={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qi},ts=[Cr,ei,ia,la,Hs,Js,Mo,Ji,es],xa=Gr({defaultModifiers:ts}),Hr=t(16160);function Mn(){return Mn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var A=/-o$/,R=function(S){var w=S.name,U=S.size,$=S.spin,B=S.className,G=S.rotation,te=P(S,["name","size","spin","className","rotation"]),re=te.style||{};U&&(re.fontSize=U*100+"%"),G&&(re.transform="rotate("+G+"deg)"),te.style=re;var se=(0,j.Fl)(te),le="";if(w.startsWith("tg-"))le=w;else{var ue=A.test(w),Ee=w.replace(A,""),Ie=!Ee.startsWith("fa-");le=ue?"far ":"fas ",Ie&&(le+="fa-"),le+=Ee,$&&(le+=" fa-spin")}return(0,e.jsx)("i",D({className:(0,C.Ly)(["Icon",le,B,(0,j.WP)(te)])},se))},K=function(S){var w=S.className,U=S.children,$=P(S,["className","children"]);return(0,e.jsx)("span",D({className:(0,C.Ly)(["IconStack",w,(0,j.WP)($)])},(0,j.Fl)($),{children:U}))};R.Stack=K;function N(S){if(S==null)return window;if(S.toString()!=="[object Window]"){var w=S.ownerDocument;return w&&w.defaultView||window}return S}function k(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function X(S){var w=N(S).Element;return k(S,w)||k(S,Element)}function F(S){var w=N(S).HTMLElement;return k(S,w)||k(S,HTMLElement)}function J(S){if(typeof ShadowRoot=="undefined")return!1;var w=N(S).ShadowRoot;return k(S,w)||k(S,ShadowRoot)}var H=Math.max,Y=Math.min,Z=Math.round;function V(){var S=navigator.userAgentData;return S!=null&&S.brands&&Array.isArray(S.brands)?S.brands.map(function(w){return w.brand+"/"+w.version}).join(" "):navigator.userAgent}function z(){return!/^((?!chrome|android).)*safari/i.test(V())}function Q(S,w,U){w===void 0&&(w=!1),U===void 0&&(U=!1);var $=S.getBoundingClientRect(),B=1,G=1;w&&F(S)&&(B=S.offsetWidth>0&&Z($.width)/S.offsetWidth||1,G=S.offsetHeight>0&&Z($.height)/S.offsetHeight||1);var te=X(S)?N(S):window,re=te.visualViewport,se=!z()&&U,le=($.left+(se&&re?re.offsetLeft:0))/B,ue=($.top+(se&&re?re.offsetTop:0))/G,Ee=$.width/B,Ie=$.height/G;return{width:Ee,height:Ie,top:ue,right:le+Ee,bottom:ue+Ie,left:le,x:le,y:ue}}function ee(S){var w=N(S),U=w.pageXOffset,$=w.pageYOffset;return{scrollLeft:U,scrollTop:$}}function oe(S){return{scrollLeft:S.scrollLeft,scrollTop:S.scrollTop}}function ne(S){return S===N(S)||!F(S)?ee(S):oe(S)}function ce(S){return S?(S.nodeName||"").toLowerCase():null}function de(S){return((X(S)?S.ownerDocument:S.document)||window.document).documentElement}function ve(S){return Q(de(S)).left+ee(S).scrollLeft}function pe(S){return N(S).getComputedStyle(S)}function me(S){var w=pe(S),U=w.overflow,$=w.overflowX,B=w.overflowY;return/auto|scroll|overlay|hidden/.test(U+B+$)}function be(S){var w=S.getBoundingClientRect(),U=Z(w.width)/S.offsetWidth||1,$=Z(w.height)/S.offsetHeight||1;return U!==1||$!==1}function we(S,w,U){U===void 0&&(U=!1);var $=F(w),B=F(w)&&be(w),G=de(w),te=Q(S,B,U),re={scrollLeft:0,scrollTop:0},se={x:0,y:0};return($||!$&&!U)&&((ce(w)!=="body"||me(G))&&(re=ne(w)),F(w)?(se=Q(w,!0),se.x+=w.clientLeft,se.y+=w.clientTop):G&&(se.x=ve(G))),{x:te.left+re.scrollLeft-se.x,y:te.top+re.scrollTop-se.y,width:te.width,height:te.height}}function Je(S){var w=Q(S),U=S.offsetWidth,$=S.offsetHeight;return Math.abs(w.width-U)<=1&&(U=w.width),Math.abs(w.height-$)<=1&&($=w.height),{x:S.offsetLeft,y:S.offsetTop,width:U,height:$}}function ze(S){return ce(S)==="html"?S:S.assignedSlot||S.parentNode||(J(S)?S.host:null)||de(S)}function Ke(S){return["html","body","#document"].indexOf(ce(S))>=0?S.ownerDocument.body:F(S)&&me(S)?S:Ke(ze(S))}function Be(S,w){var U;w===void 0&&(w=[]);var $=Ke(S),B=$===((U=S.ownerDocument)==null?void 0:U.body),G=N($),te=B?[G].concat(G.visualViewport||[],me($)?$:[]):$,re=w.concat(te);return B?re:re.concat(Be(ze(te)))}function ct(S){return["table","td","th"].indexOf(ce(S))>=0}function xt(S){return!F(S)||pe(S).position==="fixed"?null:S.offsetParent}function st(S){var w=/firefox/i.test(V()),U=/Trident/i.test(V());if(U&&F(S)){var $=pe(S);if($.position==="fixed")return null}var B=ze(S);for(J(B)&&(B=B.host);F(B)&&["html","body"].indexOf(ce(B))<0;){var G=pe(B);if(G.transform!=="none"||G.perspective!=="none"||G.contain==="paint"||["transform","perspective"].indexOf(G.willChange)!==-1||w&&G.willChange==="filter"||w&&G.filter&&G.filter!=="none")return B;B=B.parentNode}return null}function ot(S){for(var w=N(S),U=xt(S);U&&ct(U)&&pe(U).position==="static";)U=xt(U);return U&&(ce(U)==="html"||ce(U)==="body"&&pe(U).position==="static")?w:U||st(S)||w}var Ae="top",Le="bottom",Pe="right",ke="left",Me="auto",Fe=[Ae,Le,Pe,ke],We="start",He="end",jt="clippingParents",Mt="viewport",bt="popper",Dt="reference",lt=Fe.reduce(function(S,w){return S.concat([w+"-"+We,w+"-"+He])},[]),Ge=[].concat(Fe,[Me]).reduce(function(S,w){return S.concat([w,w+"-"+We,w+"-"+He])},[]),je="beforeRead",Qe="read",mt="afterRead",Pt="beforeMain",zt="main",en="afterMain",Wt="beforeWrite",dn="write",Bn="afterWrite",Gn=[je,Qe,mt,Pt,zt,en,Wt,dn,Bn];function Hn(S){var w=new Map,U=new Set,$=[];S.forEach(function(G){w.set(G.name,G)});function B(G){U.add(G.name);var te=[].concat(G.requires||[],G.requiresIfExists||[]);te.forEach(function(re){if(!U.has(re)){var se=w.get(re);se&&B(se)}}),$.push(G)}return S.forEach(function(G){U.has(G.name)||B(G)}),$}function Eo(S){var w=Hn(S);return Gn.reduce(function(U,$){return U.concat(w.filter(function(B){return B.phase===$}))},[])}function bo(S){var w;return function(){return w||(w=new Promise(function(U){Promise.resolve().then(function(){w=void 0,U(S())})})),w}}function Oo(S){var w=S.reduce(function(U,$){var B=U[$.name];return U[$.name]=B?Object.assign({},B,$,{options:Object.assign({},B.options,$.options),data:Object.assign({},B.data,$.data)}):$,U},{});return Object.keys(w).map(function(U){return w[U]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function Xr(){for(var S=arguments.length,w=new Array(S),U=0;U=0?"x":"y"}function Er(S){var w=S.reference,U=S.element,$=S.placement,B=$?xn($):null,G=$?pn($):null,te=w.x+w.width/2-U.width/2,re=w.y+w.height/2-U.height/2,se;switch(B){case Ae:se={x:te,y:w.y-U.height};break;case Le:se={x:te,y:w.y+w.height};break;case Pe:se={x:w.x+w.width,y:re};break;case ke:se={x:w.x-U.width,y:re};break;default:se={x:w.x,y:w.y}}var le=B?ir(B):null;if(le!=null){var ue=le==="y"?"height":"width";switch(G){case We:se[le]=se[le]-(w[ue]/2-U[ue]/2);break;case He:se[le]=se[le]+(w[ue]/2-U[ue]/2);break;default:}}return se}function _o(S){var w=S.state,U=S.name;w.modifiersData[U]=Er({reference:w.rects.reference,element:w.rects.popper,strategy:"absolute",placement:w.placement})}var ei={name:"popperOffsets",enabled:!0,phase:"read",fn:_o,data:{}},ti={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ni(S,w){var U=S.x,$=S.y,B=w.devicePixelRatio||1;return{x:Z(U*B)/B||0,y:Z($*B)/B||0}}function Kn(S){var w,U=S.popper,$=S.popperRect,B=S.placement,G=S.variation,te=S.offsets,re=S.position,se=S.gpuAcceleration,le=S.adaptive,ue=S.roundOffsets,Ee=S.isFixed,Ie=te.x,Ce=Ie===void 0?0:Ie,_e=te.y,Re=_e===void 0?0:_e,Ue=typeof ue=="function"?ue({x:Ce,y:Re}):{x:Ce,y:Re};Ce=Ue.x,Re=Ue.y;var Ne=te.hasOwnProperty("x"),Ve=te.hasOwnProperty("y"),nt=ke,Xe=Ae,et=window;if(le){var at=ot(U),dt="clientHeight",ut="clientWidth";if(at===N(U)&&(at=de(U),pe(at).position!=="static"&&re==="absolute"&&(dt="scrollHeight",ut="scrollWidth")),at=at,B===Ae||(B===ke||B===Pe)&&G===He){Xe=Le;var pt=Ee&&at===et&&et.visualViewport?et.visualViewport.height:at[dt];Re-=pt-$.height,Re*=se?1:-1}if(B===ke||(B===Ae||B===Le)&&G===He){nt=Pe;var Ct=Ee&&at===et&&et.visualViewport?et.visualViewport.width:at[ut];Ce-=Ct-$.width,Ce*=se?1:-1}}var vt=Object.assign({position:re},le&&ti),it=ue===!0?ni({x:Ce,y:Re},N(U)):{x:Ce,y:Re};if(Ce=it.x,Re=it.y,se){var St;return Object.assign({},vt,(St={},St[Xe]=Ve?"0":"",St[nt]=Ne?"0":"",St.transform=(et.devicePixelRatio||1)<=1?"translate("+Ce+"px, "+Re+"px)":"translate3d("+Ce+"px, "+Re+"px, 0)",St))}return Object.assign({},vt,(w={},w[Xe]=Ve?Re+"px":"",w[nt]=Ne?Ce+"px":"",w.transform="",w))}function aa(S){var w=S.state,U=S.options,$=U.gpuAcceleration,B=$===void 0?!0:$,G=U.adaptive,te=G===void 0?!0:G,re=U.roundOffsets,se=re===void 0?!0:re,le={placement:xn(w.placement),variation:pn(w.placement),popper:w.elements.popper,popperRect:w.rects.popper,gpuAcceleration:B,isFixed:w.options.strategy==="fixed"};w.modifiersData.popperOffsets!=null&&(w.styles.popper=Object.assign({},w.styles.popper,Kn(Object.assign({},le,{offsets:w.modifiersData.popperOffsets,position:w.options.strategy,adaptive:te,roundOffsets:se})))),w.modifiersData.arrow!=null&&(w.styles.arrow=Object.assign({},w.styles.arrow,Kn(Object.assign({},le,{offsets:w.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:se})))),w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-placement":w.placement})}var ia={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aa,data:{}};function ri(S){var w=S.state;Object.keys(w.elements).forEach(function(U){var $=w.styles[U]||{},B=w.attributes[U]||{},G=w.elements[U];!F(G)||!ce(G)||(Object.assign(G.style,$),Object.keys(B).forEach(function(te){var re=B[te];re===!1?G.removeAttribute(te):G.setAttribute(te,re===!0?"":re)}))})}function sa(S){var w=S.state,U={popper:{position:w.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(w.elements.popper.style,U.popper),w.styles=U,w.elements.arrow&&Object.assign(w.elements.arrow.style,U.arrow),function(){Object.keys(w.elements).forEach(function($){var B=w.elements[$],G=w.attributes[$]||{},te=Object.keys(w.styles.hasOwnProperty($)?w.styles[$]:U[$]),re=te.reduce(function(se,le){return se[le]="",se},{});!F(B)||!ce(B)||(Object.assign(B.style,re),Object.keys(G).forEach(function(se){B.removeAttribute(se)}))})}}var la={name:"applyStyles",enabled:!0,phase:"write",fn:ri,effect:sa,requires:["computeStyles"]};function ae(S,w,U){var $=xn(S),B=[ke,Ae].indexOf($)>=0?-1:1,G=typeof U=="function"?U(Object.assign({},w,{placement:S})):U,te=G[0],re=G[1];return te=te||0,re=(re||0)*B,[ke,Pe].indexOf($)>=0?{x:re,y:te}:{x:te,y:re}}function Se(S){var w=S.state,U=S.options,$=S.name,B=U.offset,G=B===void 0?[0,0]:B,te=Ge.reduce(function(ue,Ee){return ue[Ee]=ae(Ee,w.rects,G),ue},{}),re=te[w.placement],se=re.x,le=re.y;w.modifiersData.popperOffsets!=null&&(w.modifiersData.popperOffsets.x+=se,w.modifiersData.popperOffsets.y+=le),w.modifiersData[$]=te}var Hs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Se},Ys={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(S){return S.replace(/left|right|bottom|top/g,function(w){return Ys[w]})}var Qs={start:"end",end:"start"};function ca(S){return S.replace(/start|end/g,function(w){return Qs[w]})}function Xi(S,w){var U=N(S),$=de(S),B=U.visualViewport,G=$.clientWidth,te=$.clientHeight,re=0,se=0;if(B){G=B.width,te=B.height;var le=z();(le||!le&&w==="fixed")&&(re=B.offsetLeft,se=B.offsetTop)}return{width:G,height:te,x:re+ve(S),y:se}}function ua(S){var w,U=de(S),$=ee(S),B=(w=S.ownerDocument)==null?void 0:w.body,G=H(U.scrollWidth,U.clientWidth,B?B.scrollWidth:0,B?B.clientWidth:0),te=H(U.scrollHeight,U.clientHeight,B?B.scrollHeight:0,B?B.clientHeight:0),re=-$.scrollLeft+ve(S),se=-$.scrollTop;return pe(B||U).direction==="rtl"&&(re+=H(U.clientWidth,B?B.clientWidth:0)-G),{width:G,height:te,x:re,y:se}}function Gi(S,w){var U=w.getRootNode&&w.getRootNode();if(S.contains(w))return!0;if(U&&J(U)){var $=w;do{if($&&S.isSameNode($))return!0;$=$.parentNode||$.host}while($)}return!1}function da(S){return Object.assign({},S,{left:S.x,top:S.y,right:S.x+S.width,bottom:S.y+S.height})}function fa(S,w){var U=Q(S,!1,w==="fixed");return U.top=U.top+S.clientTop,U.left=U.left+S.clientLeft,U.bottom=U.top+S.clientHeight,U.right=U.left+S.clientWidth,U.width=S.clientWidth,U.height=S.clientHeight,U.x=U.left,U.y=U.top,U}function _n(S,w,U){return w===Mt?da(Xi(S,U)):X(w)?fa(w,U):da(ua(de(S)))}function Zs(S){var w=Be(ze(S)),U=["absolute","fixed"].indexOf(pe(S).position)>=0,$=U&&F(S)?ot(S):S;return X($)?w.filter(function(B){return X(B)&&Gi(B,$)&&ce(B)!=="body"}):[]}function Pn(S,w,U,$){var B=w==="clippingParents"?Zs(S):[].concat(w),G=[].concat(B,[U]),te=G[0],re=G.reduce(function(se,le){var ue=_n(S,le,$);return se.top=H(ue.top,se.top),se.right=Y(ue.right,se.right),se.bottom=Y(ue.bottom,se.bottom),se.left=H(ue.left,se.left),se},_n(S,te,$));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}function Hi(){return{top:0,right:0,bottom:0,left:0}}function Yi(S){return Object.assign({},Hi(),S)}function Qi(S,w){return w.reduce(function(U,$){return U[$]=S,U},{})}function sr(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=$===void 0?S.placement:$,G=U.strategy,te=G===void 0?S.strategy:G,re=U.boundary,se=re===void 0?jt:re,le=U.rootBoundary,ue=le===void 0?Mt:le,Ee=U.elementContext,Ie=Ee===void 0?bt:Ee,Ce=U.altBoundary,_e=Ce===void 0?!1:Ce,Re=U.padding,Ue=Re===void 0?0:Re,Ne=Yi(typeof Ue!="number"?Ue:Qi(Ue,Fe)),Ve=Ie===bt?Dt:bt,nt=S.rects.popper,Xe=S.elements[_e?Ve:Ie],et=Pn(X(Xe)?Xe:Xe.contextElement||de(S.elements.popper),se,ue,te),at=Q(S.elements.reference),dt=Er({reference:at,element:nt,strategy:"absolute",placement:B}),ut=da(Object.assign({},nt,dt)),pt=Ie===bt?ut:at,Ct={top:et.top-pt.top+Ne.top,bottom:pt.bottom-et.bottom+Ne.bottom,left:et.left-pt.left+Ne.left,right:pt.right-et.right+Ne.right},vt=S.modifiersData.offset;if(Ie===bt&&vt){var it=vt[B];Object.keys(Ct).forEach(function(St){var Nt=[Pe,Le].indexOf(St)>=0?1:-1,kt=[Ae,Le].indexOf(St)>=0?"y":"x";Ct[St]+=it[kt]*Nt})}return Ct}function ha(S,w){w===void 0&&(w={});var U=w,$=U.placement,B=U.boundary,G=U.rootBoundary,te=U.padding,re=U.flipVariations,se=U.allowedAutoPlacements,le=se===void 0?Ge:se,ue=pn($),Ee=ue?re?lt:lt.filter(function(_e){return pn(_e)===ue}):Fe,Ie=Ee.filter(function(_e){return le.indexOf(_e)>=0});Ie.length===0&&(Ie=Ee);var Ce=Ie.reduce(function(_e,Re){return _e[Re]=sr(S,{placement:Re,boundary:B,rootBoundary:G,padding:te})[xn(Re)],_e},{});return Object.keys(Ce).sort(function(_e,Re){return Ce[_e]-Ce[Re]})}function Po(S){if(xn(S)===Me)return[];var w=wt(S);return[ca(S),w,ca(w)]}function ma(S){var w=S.state,U=S.options,$=S.name;if(!w.modifiersData[$]._skip){for(var B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!0:te,se=U.fallbackPlacements,le=U.padding,ue=U.boundary,Ee=U.rootBoundary,Ie=U.altBoundary,Ce=U.flipVariations,_e=Ce===void 0?!0:Ce,Re=U.allowedAutoPlacements,Ue=w.options.placement,Ne=xn(Ue),Ve=Ne===Ue,nt=se||(Ve||!_e?[wt(Ue)]:Po(Ue)),Xe=[Ue].concat(nt).reduce(function(Nr,tr){return Nr.concat(xn(tr)===Me?ha(w,{placement:tr,boundary:ue,rootBoundary:Ee,padding:le,flipVariations:_e,allowedAutoPlacements:Re}):tr)},[]),et=w.rects.reference,at=w.rects.popper,dt=new Map,ut=!0,pt=Xe[0],Ct=0;Ct=0,kt=Nt?"width":"height",Lt=sr(w,{placement:vt,boundary:ue,rootBoundary:Ee,altBoundary:Ie,padding:le}),Gt=Nt?St?Pe:ke:St?Le:Ae;et[kt]>at[kt]&&(Gt=wt(Gt));var Lr=wt(Gt),zn=[];if(G&&zn.push(Lt[it]<=0),re&&zn.push(Lt[Gt]<=0,Lt[Lr]<=0),zn.every(function(Nr){return Nr})){pt=vt,ut=!1;break}dt.set(vt,zn)}if(ut)for(var Ho=_e?3:1,Yo=function(tr){var Wn=Xe.find(function(Qo){var Rn=dt.get(Qo);if(Rn)return Rn.slice(0,tr).every(function(Cn){return Cn})});if(Wn)return pt=Wn,"break"},er=Ho;er>0;er--){var kr=Yo(er);if(kr==="break")break}w.placement!==pt&&(w.modifiersData[$]._skip=!0,w.placement=pt,w.reset=!0)}}var Js={name:"flip",enabled:!0,phase:"main",fn:ma,requiresIfExists:["offset"],data:{_skip:!1}};function qs(S){return S==="x"?"y":"x"}function br(S,w,U){return H(S,Y(w,U))}function Zi(S,w,U){var $=br(S,w,U);return $>U?U:$}function oi(S){var w=S.state,U=S.options,$=S.name,B=U.mainAxis,G=B===void 0?!0:B,te=U.altAxis,re=te===void 0?!1:te,se=U.boundary,le=U.rootBoundary,ue=U.altBoundary,Ee=U.padding,Ie=U.tether,Ce=Ie===void 0?!0:Ie,_e=U.tetherOffset,Re=_e===void 0?0:_e,Ue=sr(w,{boundary:se,rootBoundary:le,padding:Ee,altBoundary:ue}),Ne=xn(w.placement),Ve=pn(w.placement),nt=!Ve,Xe=ir(Ne),et=qs(Xe),at=w.modifiersData.popperOffsets,dt=w.rects.reference,ut=w.rects.popper,pt=typeof Re=="function"?Re(Object.assign({},w.rects,{placement:w.placement})):Re,Ct=typeof pt=="number"?{mainAxis:pt,altAxis:pt}:Object.assign({mainAxis:0,altAxis:0},pt),vt=w.modifiersData.offset?w.modifiersData.offset[w.placement]:null,it={x:0,y:0};if(at){if(G){var St,Nt=Xe==="y"?Ae:ke,kt=Xe==="y"?Le:Pe,Lt=Xe==="y"?"height":"width",Gt=at[Xe],Lr=Gt+Ue[Nt],zn=Gt-Ue[kt],Ho=Ce?-ut[Lt]/2:0,Yo=Ve===We?dt[Lt]:ut[Lt],er=Ve===We?-ut[Lt]:-dt[Lt],kr=w.elements.arrow,Nr=Ce&&kr?Je(kr):{width:0,height:0},tr=w.modifiersData["arrow#persistent"]?w.modifiersData["arrow#persistent"].padding:Hi(),Wn=tr[Nt],Qo=tr[kt],Rn=br(0,dt[Lt],Nr[Lt]),Cn=nt?dt[Lt]/2-Ho-Rn-Wn-Ct.mainAxis:Yo-Rn-Wn-Ct.mainAxis,Zo=nt?-dt[Lt]/2+Ho+Rn+Qo+Ct.mainAxis:er+Rn+Qo+Ct.mainAxis,Ur=w.elements.arrow&&ot(w.elements.arrow),$r=Ur?Xe==="y"?Ur.clientTop||0:Ur.clientLeft||0:0,Va=(St=vt==null?void 0:vt[Xe])!=null?St:0,ho=Gt+Cn-Va-$r,Os=Gt+Zo-Va,Xa=br(Ce?Y(Lr,ho):Lr,Gt,Ce?H(zn,Os):zn);at[Xe]=Xa,it[Xe]=Xa-Gt}if(re){var Bt,Ga=Xe==="x"?Ae:ke,Ki=Xe==="x"?Le:Pe,nr=at[et],zr=et==="y"?"height":"width",Ha=nr+Ue[Ga],gr=nr-Ue[Ki],Rt=[Ae,ke].indexOf(Ne)!==-1,Ut=(Bt=vt==null?void 0:vt[et])!=null?Bt:0,Ft=Rt?Ha:nr-dt[zr]-ut[zr]-Ut+Ct.altAxis,Jo=Rt?nr+dt[zr]+ut[zr]-Ut-Ct.altAxis:gr,mo=Ce&&Rt?Zi(Ft,nr,Jo):br(Ce?Ft:Ha,nr,Ce?Jo:gr);at[et]=mo,it[et]=mo-nr}w.modifiersData[$]=it}}var Mo={name:"preventOverflow",enabled:!0,phase:"main",fn:oi,requiresIfExists:["offset"]},el=function(w,U){return w=typeof w=="function"?w(Object.assign({},U.rects,{placement:U.placement})):w,Yi(typeof w!="number"?w:Qi(w,Fe))};function ai(S){var w,U=S.state,$=S.name,B=S.options,G=U.elements.arrow,te=U.modifiersData.popperOffsets,re=xn(U.placement),se=ir(re),le=[ke,Pe].indexOf(re)>=0,ue=le?"height":"width";if(!(!G||!te)){var Ee=el(B.padding,U),Ie=Je(G),Ce=se==="y"?Ae:ke,_e=se==="y"?Le:Pe,Re=U.rects.reference[ue]+U.rects.reference[se]-te[se]-U.rects.popper[ue],Ue=te[se]-U.rects.reference[se],Ne=ot(G),Ve=Ne?se==="y"?Ne.clientHeight||0:Ne.clientWidth||0:0,nt=Re/2-Ue/2,Xe=Ee[Ce],et=Ve-Ie[ue]-Ee[_e],at=Ve/2-Ie[ue]/2+nt,dt=br(Xe,at,et),ut=se;U.modifiersData[$]=(w={},w[ut]=dt,w.centerOffset=dt-at,w)}}function _t(S){var w=S.state,U=S.options,$=U.element,B=$===void 0?"[data-popper-arrow]":$;B!=null&&(typeof B=="string"&&(B=w.elements.popper.querySelector(B),!B)||Gi(w.elements.popper,B)&&(w.elements.arrow=B))}var Ji={name:"arrow",enabled:!0,phase:"main",fn:ai,effect:_t,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ii(S,w,U){return U===void 0&&(U={x:0,y:0}),{top:S.top-w.height-U.y,right:S.right-w.width+U.x,bottom:S.bottom-w.height+U.y,left:S.left-w.width-U.x}}function va(S){return[Ae,Pe,Le,ke].some(function(w){return S[w]>=0})}function qi(S){var w=S.state,U=S.name,$=w.rects.reference,B=w.rects.popper,G=w.modifiersData.preventOverflow,te=sr(w,{elementContext:"reference"}),re=sr(w,{altBoundary:!0}),se=ii(te,$),le=ii(re,B,G),ue=va(se),Ee=va(le);w.modifiersData[U]={referenceClippingOffsets:se,popperEscapeOffsets:le,isReferenceHidden:ue,hasPopperEscaped:Ee},w.attributes.popper=Object.assign({},w.attributes.popper,{"data-popper-reference-hidden":ue,"data-popper-escaped":Ee})}var es={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qi},ts=[Cr,ei,ia,la,Hs,Js,Mo,Ji,es],xa=Gr({defaultModifiers:ts}),Hr=t(16160);function Mn(){return Mn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Zr(S,w){return Zr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Zr(S,w)}function ci(S,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(le){return function(ue){return se([le,ue])}}function se(le){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=le[0]&2?$.return:le[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,le[1])).done)return B;switch($=0,B&&(le=[le[0]&2,B.value]),le[0]){case 0:case 1:B=le;break;case 4:return te.label++,{value:le[1],done:!1};case 5:te.label++,$=le[1],le=[0];continue;case 7:le=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(le[0]===6||le[0]===2)){te=0;continue}if(le[0]===3&&(!B||le[1]>B[0]&&le[1]=0)&&(U[B]=S[B]);return U}function Zr(S,w){return Zr=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Zr(S,w)}function ci(S,w){var U,$,B,G,te={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]};return G={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function re(le){return function(ue){return se([le,ue])}}function se(le){if(U)throw new TypeError("Generator is already executing.");for(;te;)try{if(U=1,$&&(B=le[0]&2?$.return:le[0]?$.throw||((B=$.return)&&B.call($),0):$.next)&&!(B=B.call($,le[1])).done)return B;switch($=0,B&&(le=[le[0]&2,B.value]),le[0]){case 0:case 1:B=le;break;case 4:return te.label++,{value:le[1],done:!1};case 5:te.label++,$=le[1],le=[0];continue;case 7:le=te.ops.pop(),te.trys.pop();continue;default:if(B=te.trys,!(B=B.length>0&&B[B.length-1])&&(le[0]===6||le[0]===2)){te=0;continue}if(le[0]===3&&(!B||le[1]>B[0]&&le[1]=0)&&(U[B]=S[B]);return U}function Ao(S,w){return Ao=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ao(S,w)}var cr=(0,Or.h)("ByondUi"),ur=[],ga=function(S){var w=ur.length;ur.push(null);var U=S||"byondui_"+w;return cr.log("allocated '"+U+"'"),{render:function($){cr.log("rendering '"+U+"'"),ur[w]=U,Byond.winset(U,$)},unmount:function(){cr.log("unmounting '"+U+"'"),ur[w]=null,Byond.winset(U,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var S=0;S=0)&&(U[B]=S[B]);return U}function Ao(S,w){return Ao=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ao(S,w)}var cr=(0,Or.h)("ByondUi"),ur=[],ga=function(S){var w=ur.length;ur.push(null);var U=S||"byondui_"+w;return cr.log("allocated '"+U+"'"),{render:function($){cr.log("rendering '"+U+"'"),ur[w]=U,Byond.winset(U,$)},unmount:function(){cr.log("unmounting '"+U+"'"),ur[w]=null,Byond.winset(U,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var S=0;S=0)&&(U[B]=S[B]);return U}function wo(S,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(S,w)}var ya=void 0,Bo=function(S,w,U,$){if(S.length===0)return[];var B=(0,Qt.OY)(Math.min).apply(ya,[].concat(S)),G=(0,Qt.OY)(Math.max).apply(ya,[].concat(S));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Qt.Tj)(function(re){return(0,Qt.OY)(function(se,le,ue,Ee){return(se-le)/(ue-le)*Ee})(re,B,G,w)})(S);return te},Ca=function(S){for(var w="",U=0;U0){var Ve=Ne[0],nt=Ne[Ne.length-1];Ne.push([Ue[0]+_e,nt[1]]),Ne.push([Ue[0]+_e,-_e]),Ne.push([-_e,-_e]),Ne.push([-_e,Ve[1]])}var Xe=Ca(Ne),et=Ir({},Re,{className:"",ref:this.ref});return(0,e.jsx)(y.az,Ir({position:"relative"},Re,{children:(0,e.jsx)(y.az,Ir({},et,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ue[1]+")",fill:ue,stroke:Ie,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),rl={Line:is};/** + */function eo(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function Ir(){return Ir=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wo(S,w){return wo=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wo(S,w)}var ya=void 0,Bo=function(S,w,U,$){if(S.length===0)return[];var B=(0,Qt.OY)(Math.min).apply(ya,[].concat(S)),G=(0,Qt.OY)(Math.max).apply(ya,[].concat(S));U!==void 0&&(B[0]=U[0],G[0]=U[1]),$!==void 0&&(B[1]=$[0],G[1]=$[1]);var te=(0,Qt.Tj)(function(re){return(0,Qt.OY)(function(se,le,ue,Ee){return(se-le)/(ue-le)*Ee})(re,B,G,w)})(S);return te},Ca=function(S){for(var w="",U=0;U0){var Ve=Ne[0],nt=Ne[Ne.length-1];Ne.push([Ue[0]+_e,nt[1]]),Ne.push([Ue[0]+_e,-_e]),Ne.push([-_e,-_e]),Ne.push([-_e,Ve[1]])}var Xe=Ca(Ne),et=Ir({},Re,{className:"",ref:this.ref});return(0,e.jsx)(j.az,Ir({position:"relative"},Re,{children:(0,e.jsx)(j.az,Ir({},et,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+Ue[0]+" "+Ue[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+Ue[1]+")",fill:ue,stroke:Ie,strokeWidth:_e,points:Xe})})}))}))},w}(n.Component),rl={Line:is};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ui(){return ui=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function di(S){var w=S.children,U=S.color,$=S.title,B=S.buttons,G=ol(S,["children","color","title","buttons"]),te=(0,n.useState)(S.open),re=te[0],se=te[1];return(0,e.jsxs)(y.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(an,ui({fluid:!0,color:U,icon:re?"chevron-down":"chevron-right",onClick:function(){return se(!re)}},G,{children:$}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),re&&(0,e.jsx)(y.az,{mt:1,children:w})]})}/** + */function ui(){return ui=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function di(S){var w=S.children,U=S.color,$=S.title,B=S.buttons,G=ol(S,["children","color","title","buttons"]),te=(0,n.useState)(S.open),re=te[0],se=te[1];return(0,e.jsxs)(j.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(an,ui({fluid:!0,color:U,icon:re?"chevron-down":"chevron-right",onClick:function(){return se(!re)}},G,{children:$}))}),B&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:B})]}),re&&(0,e.jsx)(j.az,{mt:1,children:w})]})}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function fi(){return fi=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function il(S){var w=S.content,U=S.children,$=S.className,B=al(S,["content","children","className"]);return B.color=w?null:"default",B.backgroundColor=S.color||"default",(0,e.jsx)("div",fi({className:(0,C.Ly)(["ColorBox",$,(0,y.WP)(B)])},(0,y.Fl)(B),{children:w||"."}))}/** + */function fi(){return fi=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function il(S){var w=S.content,U=S.children,$=S.className,B=al(S,["content","children","className"]);return B.color=w?null:"default",B.backgroundColor=S.color||"default",(0,e.jsx)("div",fi({className:(0,C.Ly)(["ColorBox",$,(0,j.WP)(B)])},(0,j.Fl)(B),{children:w||"."}))}/** * @file * @copyright 2022 raffclar * @license MIT - */var ss=function(S){var w=S.title,U=S.onClose,$=S.children,B=S.width,G=S.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(y.az,{className:"Dialog__content",width:B||"370px",height:G,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:w}),(0,e.jsx)(y.az,{mr:2,children:(0,e.jsx)(an,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:U})})]}),$]})})},Ea=function(S){var w=S.onClick,U=S.children;return(0,e.jsx)(an,{onClick:w,className:"Dialog__button",verticalAlignContent:"middle",children:U})};ss.Button=Ea;var sl=function(S){var w=S.documentName,U=S.onSave,$=S.onDiscard,B=S.onClose;return _jsxs(ss,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",w,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(Ea,{onClick:U,children:"Save"}),_jsx(Ea,{onClick:$,children:"Don't Save"}),_jsx(Ea,{onClick:B,children:"Cancel"})]})]})};/** + */var ss=function(S){var w=S.title,U=S.onClose,$=S.children,B=S.width,G=S.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(j.az,{className:"Dialog__content",width:B||"370px",height:G,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:w}),(0,e.jsx)(j.az,{mr:2,children:(0,e.jsx)(an,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:U})})]}),$]})})},Ea=function(S){var w=S.onClick,U=S.children;return(0,e.jsx)(an,{onClick:w,className:"Dialog__button",verticalAlignContent:"middle",children:U})};ss.Button=Ea;var sl=function(S){var w=S.documentName,U=S.onSave,$=S.onDiscard,B=S.onClose;return _jsxs(ss,{title:"Notepad",onClose:B,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",w,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(Ea,{onClick:U,children:"Save"}),_jsx(Ea,{onClick:$,children:"Don't Save"}),_jsx(Ea,{onClick:B,children:"Cancel"})]})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function hi(){return hi=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function ls(S){var w=S.className,U=S.children,$=ll(S,["className","children"]);return(0,e.jsx)(y.az,hi({className:(0,C.Ly)(["Dimmer",w])},$,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:U})}))}/** + */function hi(){return hi=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function ls(S){var w=S.className,U=S.children,$=ll(S,["className","children"]);return(0,e.jsx)(j.az,hi({className:(0,C.Ly)(["Dimmer",w])},$,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:U})}))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -163,11 +163,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Ko(){return Ko=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,se=te.dragMatrix,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ba(G,se),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Ie)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,se=te.maxValue,le=te.step,ue=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Ie){var Ce=Ko({},Ie),_e=ba(G,Ee)-Ce.origin;if(Ie.dragging){var Re=Number.isFinite(re)?re%le:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*le/ue,re-le,se+le),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%le+Re,re,se),Ce.origin=ba(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,se=te.onDrag,le=B.state,ue=le.dragging,Ee=le.value,Ie=le.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ue,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ue)B.suppressFlicker(),re&&re(G,Ee),se&&se(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Ie;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.animated,Ie=ue.value,Ce=ue.unit,_e=ue.minValue,Re=ue.maxValue,Ue=ue.unclamped,Ne=ue.format,Ve=ue.onChange,nt=ue.onDrag,Xe=ue.children,et=ue.height,at=ue.lineHeight,dt=ue.fontSize,ut=Ie;(te||le)&&(ut=se);var pt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!le?(0,e.jsx)(m,{value:ut,format:Ne}):Ne?Ne(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:et,lineHeight:at,fontsize:dt},onBlur:function(vt){if(re){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Ie,displayValue:ut,displayElement:pt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var dl=t(68540),fl=t.n(dl),gc=function(w){return Array.isArray(w)?w[0]:w},hl=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){B.setState({suppressingFlicker:!1})},G))},B.handleDragStart=function(G){var te=B.props,re=te.value,se=te.dragMatrix,le=B.state.editing;le||(document.body.style["pointer-events"]="none",B.ref=G.target,B.setState({dragging:!1,origin:ba(G,se),value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=B.props.onDrag;Ee&&Ce&&Ce(G,Ie)},B.props.updateRate||ul),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(G){var te=B.props,re=te.minValue,se=te.maxValue,le=te.step,ue=te.stepPixelSize,Ee=te.dragMatrix;B.setState(function(Ie){var Ce=Ko({},Ie),_e=ba(G,Ee)-Ce.origin;if(Ie.dragging){var Re=Number.isFinite(re)?re%le:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*le/ue,re-le,se+le),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%le+Re,re,se),Ce.origin=ba(G,Ee)}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(G){var te=B.props,re=te.onChange,se=te.onDrag,le=B.state,ue=le.dragging,Ee=le.value,Ie=le.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!ue,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),ue)B.suppressFlicker(),re&&re(G,Ee),se&&se(G,Ee);else if(B.inputRef){var Ce=B.inputRef.current;Ce.value=Ie;try{Ce.focus(),Ce.select()}catch(_e){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.animated,Ie=ue.value,Ce=ue.unit,_e=ue.minValue,Re=ue.maxValue,Ue=ue.unclamped,Ne=ue.format,Ve=ue.onChange,nt=ue.onDrag,Xe=ue.children,et=ue.height,at=ue.lineHeight,dt=ue.fontSize,ut=Ie;(te||le)&&(ut=se);var pt=(0,e.jsxs)(e.Fragment,{children:[Ee&&!te&&!le?(0,e.jsx)(m,{value:ut,format:Ne}):Ne?Ne(ut):ut,Ce?" "+Ce:""]}),Ct=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:et,lineHeight:at,fontsize:dt},onBlur:function(vt){if(re){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it;if(Ue?it=parseFloat(vt.target.value):it=(0,s.qE)(parseFloat(vt.target.value),_e,Re),Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),Ve&&Ve(vt,it),nt&&nt(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}});return Xe({dragging:te,editing:re,value:Ie,displayValue:ut,displayElement:pt,inputElement:Ct,handleDragStart:this.handleDragStart})},w}(n.Component);Oa.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var dl=t(68540),fl=t.n(dl),gc=function(w){return Array.isArray(w)?w[0]:w},hl=function(w){if(typeof w=="function"){for(var U=arguments.length,$=new Array(U>1?U-1:0),B=1;B=0)&&(U[B]=S[B]);return U}var to=function(S){return(0,C.Ly)(["Flex",S.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&S.direction==="column"&&"Flex--iefix--column",(0,y.WP)(S)])},fs=function(S){var w=S.className,U=S.direction,$=S.wrap,B=S.align,G=S.justify,te=S.inline,re=dr(S,["className","direction","wrap","align","justify","inline"]);return(0,y.Fl)(Yn({style:Yn({},re.style,{flexDirection:U,flexWrap:$===!0?"wrap":$,alignItems:B,justifyContent:G})},re))},Sn=function(S){var w=S.className,U=dr(S,["className"]);return(0,e.jsx)("div",Yn({className:(0,C.Ly)([w,to(U)])},fs(U)))},pi=function(S){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,y.WP)(S)])},Pa=function(S){var w=S.className,U=S.style,$=S.grow,B=S.order,G=S.shrink,te=S.basis,re=S.align,se=dr(S,["className","style","grow","order","shrink","basis","align"]),le,ue=(le=te!=null?te:S.width)!=null?le:$!==void 0?0:void 0;return(0,y.Fl)(Yn({style:Yn({},U,{flexGrow:$!==void 0&&Number($),flexShrink:G!==void 0&&Number(G),flexBasis:(0,y.zA)(ue),order:B,alignSelf:re})},se))},gi=function(S){var w=S.className,U=dr(S,["className"]);return(0,e.jsx)("div",Yn({className:(0,C.Ly)([w,pi(S)])},Pa(U)))};Sn.Item=gi;var no=t(86808);/** + */function Yn(){return Yn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var to=function(S){return(0,C.Ly)(["Flex",S.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&S.direction==="column"&&"Flex--iefix--column",(0,j.WP)(S)])},fs=function(S){var w=S.className,U=S.direction,$=S.wrap,B=S.align,G=S.justify,te=S.inline,re=dr(S,["className","direction","wrap","align","justify","inline"]);return(0,j.Fl)(Yn({style:Yn({},re.style,{flexDirection:U,flexWrap:$===!0?"wrap":$,alignItems:B,justifyContent:G})},re))},Sn=function(S){var w=S.className,U=dr(S,["className"]);return(0,e.jsx)("div",Yn({className:(0,C.Ly)([w,to(U)])},fs(U)))},pi=function(S){return(0,C.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,j.WP)(S)])},Pa=function(S){var w=S.className,U=S.style,$=S.grow,B=S.order,G=S.shrink,te=S.basis,re=S.align,se=dr(S,["className","style","grow","order","shrink","basis","align"]),le,ue=(le=te!=null?te:S.width)!=null?le:$!==void 0?0:void 0;return(0,j.Fl)(Yn({style:Yn({},U,{flexGrow:$!==void 0&&Number($),flexShrink:G!==void 0&&Number(G),flexBasis:(0,j.zA)(ue),order:B,alignSelf:re})},se))},gi=function(S){var w=S.className,U=dr(S,["className"]);return(0,e.jsx)("div",Yn({className:(0,C.Ly)([w,pi(S)])},Pa(U)))};Sn.Item=gi;var no=t(86808);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -175,7 +175,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function sn(){return sn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var hs=function(S){var w=S.className,U=S.value,$=S.minValue,B=$===void 0?0:$,G=S.maxValue,te=G===void 0?1:G,re=S.color,se=S.ranges,le=se===void 0?{}:se,ue=S.children,Ee=No(S,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,s.hs)(U,B,te),Ce=ue!==void 0,_e=re||(0,s.TG)(U,le)||"default",Re=(0,y.Fl)(Ee),Ue=["ProgressBar",w,(0,y.WP)(Ee)],Ne={width:(0,s.J$)(Ie)*100+"%"};return jl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Re.style=sn({},Re.style,{borderColor:_e}),Ne.backgroundColor=_e),(0,e.jsxs)("div",sn({className:(0,C.Ly)(Ue)},Re,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ne}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?ue:(0,s.Mg)(Ie*100)+"%"})]}))};/** + */function sn(){return sn=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var hs=function(S){var w=S.className,U=S.value,$=S.minValue,B=$===void 0?0:$,G=S.maxValue,te=G===void 0?1:G,re=S.color,se=S.ranges,le=se===void 0?{}:se,ue=S.children,Ee=No(S,["className","value","minValue","maxValue","color","ranges","children"]),Ie=(0,s.hs)(U,B,te),Ce=ue!==void 0,_e=re||(0,s.TG)(U,le)||"default",Re=(0,j.Fl)(Ee),Ue=["ProgressBar",w,(0,j.WP)(Ee)],Ne={width:(0,s.J$)(Ie)*100+"%"};return jl.NE.includes(_e)||_e==="default"?Ue.push("ProgressBar--color--"+_e):(Re.style=sn({},Re.style,{borderColor:_e}),Ne.backgroundColor=_e),(0,e.jsxs)("div",sn({className:(0,C.Ly)(Ue)},Re,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:Ne}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Ce?ue:(0,s.Mg)(Ie*100)+"%"})]}))};/** * @file * @copyright 2021 Aleksej Komarov * @license MIT @@ -183,11 +183,11 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Aa(){return Aa=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wa(S,w){return wa=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wa(S,w)}var Dr=function(S){return typeof S!="number"&&typeof S!="string"?"":String(S)},xs=function(S){"use strict";Ra(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleBlur=function(G){var te=B.state.editing,re=B.props.onChange;te&&(B.setEditing(!1),re&&re(G,G.target.value))},B.handleKeyDown=function(G){var te=B.props,re=te.onInput,se=te.onChange,le=te.onEnter;if(G.keyCode===_.Ri){B.setEditing(!1),se&&se(G,G.target.value),re&&re(G,G.target.value),le&&le(G,G.target.value),B.props.selfClear?G.target.value="":G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=Dr(B.props.value),G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.inputRef.current;te&&(te.value=Dr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=this.state.editing,re=B.value,se=this.props.value,le=this.inputRef.current;le&&!te&&re!==se&&(le.value=Dr(se))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.selfClear,te=B.onInput,re=B.onChange,se=B.onEnter,le=B.value,ue=B.maxLength,Ee=B.placeholder,Ie=bi(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Ce=Ie.className,_e=Ie.fluid,Re=Ie.monospace,Ue=bi(Ie,["className","fluid","monospace"]);return(0,e.jsxs)(y.az,Aa({className:(0,C.Ly)(["Input",_e&&"Input--fluid",Re&&"Input--monospace",Ce])},Ue,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:Ee,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:ue})]}))},w}(n.Component),El=t(5030);function bl(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Nn(S,w)}function Nn(S,w){return Nn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Nn(S,w)}var ps=null;/** + */function Aa(){return Aa=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function wa(S,w){return wa=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},wa(S,w)}var Dr=function(S){return typeof S!="number"&&typeof S!="string"?"":String(S)},xs=function(S){"use strict";Ra(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleBlur=function(G){var te=B.state.editing,re=B.props.onChange;te&&(B.setEditing(!1),re&&re(G,G.target.value))},B.handleKeyDown=function(G){var te=B.props,re=te.onInput,se=te.onChange,le=te.onEnter;if(G.keyCode===_.Ri){B.setEditing(!1),se&&se(G,G.target.value),re&&re(G,G.target.value),le&&le(G,G.target.value),B.props.selfClear?G.target.value="":G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=Dr(B.props.value),G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.inputRef.current;te&&(te.value=Dr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=this.state.editing,re=B.value,se=this.props.value,le=this.inputRef.current;le&&!te&&re!==se&&(le.value=Dr(se))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.selfClear,te=B.onInput,re=B.onChange,se=B.onEnter,le=B.value,ue=B.maxLength,Ee=B.placeholder,Ie=bi(B,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Ce=Ie.className,_e=Ie.fluid,Re=Ie.monospace,Ue=bi(Ie,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Aa({className:(0,C.Ly)(["Input",_e&&"Input--fluid",Re&&"Input--monospace",Ce])},Ue,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:Ee,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:ue})]}))},w}(n.Component),El=t(5030);function bl(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Nn(S,w)}function Nn(S,w){return Nn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Nn(S,w)}var ps=null;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Sr(){return Sr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Il=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.unclamped,te=S.onChange,re=S.onDrag,se=S.step,le=S.stepPixelSize,ue=S.suppressFlicker,Ee=S.unit,Ie=S.value,Ce=S.className,_e=S.style,Re=S.fillValue,Ue=S.color,Ne=S.ranges,Ve=Ne===void 0?{}:Ne,nt=S.size,Xe=nt===void 0?1:nt,et=S.bipolar,at=S.children,dt=Ol(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:se,stepPixelSize:le,suppressFlicker:ue,unit:Ee,value:Ie,children:function(ut){var pt=ut.dragging,Ct=ut.editing,vt=ut.value,it=ut.displayValue,St=ut.displayElement,Nt=ut.inputElement,kt=ut.handleDragStart,Lt=(0,s.hs)(Re!=null?Re:it,B,$),Gt=(0,s.hs)(it,B,$),Lr=Ue||(0,s.TG)(Re!=null?Re:vt,Ve)||"default",zn=Math.min((Gt-.5)*270,225);return(0,e.jsxs)("div",Sr({className:(0,C.Ly)(["Knob","Knob--color--"+Lr,et&&"Knob--bipolar",Ce,(0,y.WP)(dt)])},(0,y.Fl)(Sr({style:Sr({fontSize:Xe+"em"},_e)},dt)),{onMouseDown:kt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+zn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),pt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:St}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((et?2.75:2)-Lt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Nt]}))}})};/** + */function Sr(){return Sr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Il=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.unclamped,te=S.onChange,re=S.onDrag,se=S.step,le=S.stepPixelSize,ue=S.suppressFlicker,Ee=S.unit,Ie=S.value,Ce=S.className,_e=S.style,Re=S.fillValue,Ue=S.color,Ne=S.ranges,Ve=Ne===void 0?{}:Ne,nt=S.size,Xe=nt===void 0?1:nt,et=S.bipolar,at=S.children,dt=Ol(S,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(Oa,{dragMatrix:[0,-1],animated:w,format:U,maxValue:$,minValue:B,unclamped:G,onChange:te,onDrag:re,step:se,stepPixelSize:le,suppressFlicker:ue,unit:Ee,value:Ie,children:function(ut){var pt=ut.dragging,Ct=ut.editing,vt=ut.value,it=ut.displayValue,St=ut.displayElement,Nt=ut.inputElement,kt=ut.handleDragStart,Lt=(0,s.hs)(Re!=null?Re:it,B,$),Gt=(0,s.hs)(it,B,$),Lr=Ue||(0,s.TG)(Re!=null?Re:vt,Ve)||"default",zn=Math.min((Gt-.5)*270,225);return(0,e.jsxs)("div",Sr({className:(0,C.Ly)(["Knob","Knob--color--"+Lr,et&&"Knob--bipolar",Ce,(0,j.WP)(dt)])},(0,j.Fl)(Sr({style:Sr({fontSize:Xe+"em"},_e)},dt)),{onMouseDown:kt,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+zn+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),pt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:St}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((et?2.75:2)-Lt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),Nt]}))}})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -195,23 +195,23 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var Ot=function(S){var w=S.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Ii=function(S){var w=S.className,U=S.label,$=S.labelColor,B=$===void 0?"label":$,G=S.labelWrap,te=S.color,re=S.textAlign,se=S.buttons,le=S.content,ue=S.children,Ee=S.verticalAlign,Ie=Ee===void 0?"baseline":Ee,Ce=S.tooltip,_e;U&&(_e=U,typeof U=="string"&&(_e+=":")),Ce!==void 0&&(_e=(0,e.jsx)(on,{content:Ce,children:(0,e.jsx)(y.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:_e})}));var Re=(0,e.jsx)(y.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!G&&"LabeledList__label--nowrap"]),verticalAlign:Ie,children:_e});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Re,(0,e.jsxs)(y.az,{as:"td",color:te,textAlign:re,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:se?void 0:2,verticalAlign:Ie,children:[le,ue]}),se&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:se})]})},Ba=function(S){var w=S.size?(0,y.zA)(Math.max(0,S.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:w,paddingBottom:w},children:(0,e.jsx)(cs,{})})})};Ot.Item=Ii,Ot.Divider=Ba;/** + */var Ot=function(S){var w=S.children;return(0,e.jsx)("table",{className:"LabeledList",children:w})},Ii=function(S){var w=S.className,U=S.label,$=S.labelColor,B=$===void 0?"label":$,G=S.labelWrap,te=S.color,re=S.textAlign,se=S.buttons,le=S.content,ue=S.children,Ee=S.verticalAlign,Ie=Ee===void 0?"baseline":Ee,Ce=S.tooltip,_e;U&&(_e=U,typeof U=="string"&&(_e+=":")),Ce!==void 0&&(_e=(0,e.jsx)(on,{content:Ce,children:(0,e.jsx)(j.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:_e})}));var Re=(0,e.jsx)(j.az,{as:"td",color:B,className:(0,C.Ly)(["LabeledList__cell",!G&&"LabeledList__label--nowrap"]),verticalAlign:Ie,children:_e});return(0,e.jsxs)("tr",{className:(0,C.Ly)(["LabeledList__row",w]),children:[Re,(0,e.jsxs)(j.az,{as:"td",color:te,textAlign:re,className:(0,C.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:se?void 0:2,verticalAlign:Ie,children:[le,ue]}),se&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:se})]})},Ba=function(S){var w=S.size?(0,j.zA)(Math.max(0,S.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:w,paddingBottom:w},children:(0,e.jsx)(cs,{})})})};Ot.Item=Ii,Ot.Divider=Ba;/** * @file * @copyright 2022 Aleksej Komarov * @license MIT - */function Tr(){return Tr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Ar(S,w){return Ar=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ar(S,w)}var La=function(S){"use strict";_i(w,S);function w($){var B;return B=S.call(this,$)||this,B.handleClick=function(G){if(!B.props.menuRef.current){Or.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(G.target)?Or.v.log("Menu.handleClick(): Inside"):(Or.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var U=w.prototype;return U.componentWillMount=function(){window.addEventListener("click",this.handleClick)},U.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},U.render=function(){var B=this.props,G=B.width,te=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:G},children:te})},w}(n.Component),oo=function(S){"use strict";_i(w,S);function w($){var B;return B=S.call(this,$)||this,B.menuRef=(0,n.createRef)(),B}var U=w.prototype;return U.render=function(){var B=this.props,G=B.open,te=B.openWidth,re=B.children,se=B.disabled,le=B.display,ue=B.onMouseOver,Ee=B.onClick,Ie=B.onOutsideClick,Ce=Ka(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),_e=Ce.className,Re=Ka(Ce,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(y.az,Tr({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",_e])},Re,{onClick:se?function(){return null}:Ee,onMouseOver:ue,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:le})})),G&&(0,e.jsx)(La,{width:te,menuRef:this.menuRef,onOutsideClick:Ie,children:re})]})},w}(n.Component),zo=function(S){var w=S.entry,U=S.children,$=S.openWidth,B=S.display,G=S.setOpenMenuBar,te=S.openMenuBar,re=S.setOpenOnHover,se=S.openOnHover,le=S.disabled,ue=S.className;return(0,e.jsx)(oo,{openWidth:$,display:B,disabled:le,open:te===w,className:ue,onClick:function(){var Ee=te===w?null:w;G(Ee),re(!se)},onOutsideClick:function(){G(null),re(!1)},onMouseOver:function(){se&&G(w)},children:U})},_l=function(S){var w=S.value,U=S.displayText,$=S.onClick,B=S.checked;return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return $(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),U]})};zo.MenuItemToggle=_l;var Pl=function(S){var w=S.value,U=S.displayText,$=S.onClick;return(0,e.jsx)(y.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return $(w)},children:U})};zo.MenuItem=Pl;var ys=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};zo.Separator=ys;var ka=function(S){var w=S.children;return(0,e.jsx)(y.az,{className:"MenuBar",children:w})};ka.Dropdown=zo;/** + */function Tr(){return Tr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Ar(S,w){return Ar=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Ar(S,w)}var La=function(S){"use strict";_i(w,S);function w($){var B;return B=S.call(this,$)||this,B.handleClick=function(G){if(!B.props.menuRef.current){Or.v.log("Menu.handleClick(): No ref");return}B.props.menuRef.current.contains(G.target)?Or.v.log("Menu.handleClick(): Inside"):(Or.v.log("Menu.handleClick(): Outside"),B.props.onOutsideClick())},B}var U=w.prototype;return U.componentWillMount=function(){window.addEventListener("click",this.handleClick)},U.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},U.render=function(){var B=this.props,G=B.width,te=B.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:G},children:te})},w}(n.Component),oo=function(S){"use strict";_i(w,S);function w($){var B;return B=S.call(this,$)||this,B.menuRef=(0,n.createRef)(),B}var U=w.prototype;return U.render=function(){var B=this.props,G=B.open,te=B.openWidth,re=B.children,se=B.disabled,le=B.display,ue=B.onMouseOver,Ee=B.onClick,Ie=B.onOutsideClick,Ce=Ka(B,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),_e=Ce.className,Re=Ka(Ce,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(j.az,Tr({className:(0,C.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",_e])},Re,{onClick:se?function(){return null}:Ee,onMouseOver:ue,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:le})})),G&&(0,e.jsx)(La,{width:te,menuRef:this.menuRef,onOutsideClick:Ie,children:re})]})},w}(n.Component),zo=function(S){var w=S.entry,U=S.children,$=S.openWidth,B=S.display,G=S.setOpenMenuBar,te=S.openMenuBar,re=S.setOpenOnHover,se=S.openOnHover,le=S.disabled,ue=S.className;return(0,e.jsx)(oo,{openWidth:$,display:B,disabled:le,open:te===w,className:ue,onClick:function(){var Ee=te===w?null:w;G(Ee),re(!se)},onOutsideClick:function(){G(null),re(!1)},onMouseOver:function(){se&&G(w)},children:U})},_l=function(S){var w=S.value,U=S.displayText,$=S.onClick,B=S.checked;return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return $(w)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:B&&(0,e.jsx)(R,{size:1.3,name:"check"})}),U]})};zo.MenuItemToggle=_l;var Pl=function(S){var w=S.value,U=S.displayText,$=S.onClick;return(0,e.jsx)(j.az,{className:(0,C.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return $(w)},children:U})};zo.MenuItem=Pl;var ys=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};zo.Separator=ys;var ka=function(S){var w=S.children;return(0,e.jsx)(j.az,{className:"MenuBar",children:w})};ka.Dropdown=zo;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function ao(){return ao=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Mi=function(S){var w=S.className,U=S.children,$=S.onEnter,B=Pi(S,["className","children","onEnter"]),G;return $&&(G=function(te){var re=te.which||te.keyCode;re===13&&$(te)}),(0,e.jsx)(ls,{onKeyDown:G,children:(0,e.jsx)("div",ao({className:(0,C.Ly)(["Modal",w,(0,y.WP)(B)])},(0,y.Fl)(B),{children:U}))})},Na=t(4413);function Wo(){return Wo=Object.assign||function(S){for(var w=1;w500&&(Ie=500);var Ce=le.offsetY-256*Ee;return Ce<-200&&(Ce=-200),Ce>200&&(Ce=200),le.offsetX=Ie,le.offsetY=Ce,$.onZoom&&$.onZoom(le.zoom),le})},B}var U=w.prototype;return U.render=function(){var B=(0,Na.Oc)().config,G=this.state,te=G.dragging,re=G.offsetX,se=G.offsetY,le=G.zoom,ue=le===void 0?1:le,Ee=this.props.children,Ie=B.map+"_nanomap_z"+B.mapZLevel+".png",Ce=Di*ue+"px",_e={width:Ce,height:Ce,"margin-top":se+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:te?"move":"auto"};return(0,e.jsxs)(y.az,{className:"NanoMap__container",children:[(0,e.jsx)(y.az,{style:_e,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(y.az,{children:Ee})}),(0,e.jsx)(Si,{zoom:ue,onZoom:this.handleZoom})]})},w}(n.Component),hr=function(S){var w=S.x,U=S.y,$=S.zoom,B=$===void 0?1:$,G=S.icon,te=S.tooltip,re=S.color,se=S.onClick,le=function(Ie){$a(Ie),se&&se(Ie)},ue=w*2*B-B-3,Ee=U*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(y.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:ue+"px",onMouseDown:le,children:[(0,e.jsx)(R,{name:G,color:re,fontSize:"6px"}),(0,e.jsx)(on,{content:te})]})})};Fo.Marker=hr;var Si=function(S){var w=(0,Na.Oc)(),U=w.act,$=w.config,B=w.data;return(0,e.jsx)(y.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Ot,{children:[(0,e.jsx)(Ot.Item,{label:"Zoom",children:(0,e.jsx)(Bi,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(G){return G+"x"},value:S.zoom,onDrag:function(G,te){return S.onZoom(G,te)}})}),(0,e.jsx)(Ot.Item,{label:"Z-Level",children:B.map_levels.sort(function(G,te){return Number(G)-Number(te)}).map(function(G){return(0,e.jsx)(an,{selected:~~G===~~$.mapZLevel,content:G,onClick:function(){U("setZLevel",{mapZLevel:G})}},G)})})]})})};Fo.Zoomer=Si;/** + */function ao(){return ao=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Mi=function(S){var w=S.className,U=S.children,$=S.onEnter,B=Pi(S,["className","children","onEnter"]),G;return $&&(G=function(te){var re=te.which||te.keyCode;re===13&&$(te)}),(0,e.jsx)(ls,{onKeyDown:G,children:(0,e.jsx)("div",ao({className:(0,C.Ly)(["Modal",w,(0,j.WP)(B)])},(0,j.Fl)(B),{children:U}))})},Na=t(4413);function Wo(){return Wo=Object.assign||function(S){for(var w=1;w500&&(Ie=500);var Ce=le.offsetY-256*Ee;return Ce<-200&&(Ce=-200),Ce>200&&(Ce=200),le.offsetX=Ie,le.offsetY=Ce,$.onZoom&&$.onZoom(le.zoom),le})},B}var U=w.prototype;return U.render=function(){var B=(0,Na.Oc)().config,G=this.state,te=G.dragging,re=G.offsetX,se=G.offsetY,le=G.zoom,ue=le===void 0?1:le,Ee=this.props.children,Ie=B.map+"_nanomap_z"+B.mapZLevel+".png",Ce=Di*ue+"px",_e={width:Ce,height:Ce,"margin-top":se+"px","margin-left":re+"px",overflow:"hidden",position:"relative","background-image":"url("+Ie+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:te?"move":"auto"};return(0,e.jsxs)(j.az,{className:"NanoMap__container",children:[(0,e.jsx)(j.az,{style:_e,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(j.az,{children:Ee})}),(0,e.jsx)(Si,{zoom:ue,onZoom:this.handleZoom})]})},w}(n.Component),hr=function(S){var w=S.x,U=S.y,$=S.zoom,B=$===void 0?1:$,G=S.icon,te=S.tooltip,re=S.color,se=S.onClick,le=function(Ie){$a(Ie),se&&se(Ie)},ue=w*2*B-B-3,Ee=U*2*B-B-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(j.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Ee+"px",left:ue+"px",onMouseDown:le,children:[(0,e.jsx)(R,{name:G,color:re,fontSize:"6px"}),(0,e.jsx)(on,{content:te})]})})};Fo.Marker=hr;var Si=function(S){var w=(0,Na.Oc)(),U=w.act,$=w.config,B=w.data;return(0,e.jsx)(j.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Ot,{children:[(0,e.jsx)(Ot.Item,{label:"Zoom",children:(0,e.jsx)(Bi,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(G){return G+"x"},value:S.zoom,onDrag:function(G,te){return S.onZoom(G,te)}})}),(0,e.jsx)(Ot.Item,{label:"Z-Level",children:B.map_levels.sort(function(G,te){return Number(G)-Number(te)}).map(function(G){return(0,e.jsx)(an,{selected:~~G===~~$.mapZLevel,content:G,onClick:function(){U("setZLevel",{mapZLevel:G})}},G)})})]})})};Fo.Zoomer=Si;/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function mr(){return mr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Vo(S){var w=S.className,U=S.color,$=S.info,B=S.success,G=S.danger,te=Un(S,["className","color","info","success","danger"]);return(0,e.jsx)(y.az,mr({className:(0,C.Ly)(["NoticeBox",U&&"NoticeBox--color--"+U,$&&"NoticeBox--type--info",B&&"NoticeBox--type--success",G&&"NoticeBox--type--danger",w])},te))}/** + */function mr(){return mr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Vo(S){var w=S.className,U=S.color,$=S.info,B=S.success,G=S.danger,te=Un(S,["className","color","info","success","danger"]);return(0,e.jsx)(j.az,mr({className:(0,C.Ly)(["NoticeBox",U&&"NoticeBox--color--"+U,$&&"NoticeBox--type--info",B&&"NoticeBox--type--success",G&&"NoticeBox--type--danger",w])},te))}/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function Tn(){return Tn=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,ue=le.dragging,Ee=le.value,Ie=B.props.onDrag;ue&&Ie&&Ie(te,Ee)},B.props.updateRate||Dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,se=re.minValue,le=re.maxValue,ue=re.step,Ee=re.stepPixelSize;B.setState(function(Ie){var Ce=Tn({},Ie),_e=Ce.origin-te.screenY;if(Ie.dragging){var Re=Number.isFinite(se)?se%ue:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*ue/Ee,se-ue,le+ue),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%ue+Re,se,le),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,se=re.onChange,le=re.onDrag,ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=ue.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),se&&se(te,Ie),le&&le(te,Ie);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Re){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.className,Ie=ue.fluid,Ce=ue.animated,_e=ue.value,Re=ue.unit,Ue=ue.minValue,Ne=ue.maxValue,Ve=ue.height,nt=ue.width,Xe=ue.lineHeight,et=ue.fontSize,at=ue.format,dt=ue.onChange,ut=ue.onDrag,pt=_e;(te||le)&&(pt=se);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!le?(0,e.jsx)(m,{value:pt,format:at}):at?at(pt):pt,Re?" "+Re:""]});return(0,e.jsxs)(y.az,{className:(0,C.Ly)(["NumberInput",Ie&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:Ve,lineHeight:Xe,fontSize:et,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((pt-Ue)/(Ne-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Ve,lineHeight:Xe,fontSize:et},onBlur:function(vt){if(re){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);vr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Go(S,w){return Go=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Go(S,w)}var wr=0,Qn=1e4,At=function(S,w,U,$){var B=w||wr,G=U||U===0?U:Qn,te=$?S.replace(/[^\-\d.]/g,""):S.replace(/[^\-\d]/g,"");return $&&(te=Zt(te,B),te=tn(".",te)),w<0?(te=xr(te),te=tn("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?Tt(te,B,G,$):te},Tt=function(S,w,U,$){var B=$?parseFloat(S):parseInt(S,10);if(!isNaN(B)&&(S.slice(-1)!=="."||B0?(S=S.replace("-",""),w="-".concat(S)):U===0&&S.indexOf("-",U+1)>0&&(w=S.replaceAll("-","")),w},Zt=function(S,w){var U=S,$=Math.sign(w)*Math.floor(Math.abs(w));return S.indexOf(".")===0?U=String($).concat(S):S.indexOf("-")===0&&S.indexOf(".")===1&&(U=$+".".concat(S.slice(2))),U},tn=function(S,w){var U=w.indexOf(S),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(S,""),B=w.slice(0,U+1).concat(G)}return B},$n=function(S,w,U,$){var B=w||wr,G=U||U===0?U:Qn;if(!S||!S.length)return String(B);var te=$?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,s.qE)(te,B,G))},so=function(S){"use strict";io(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onBlur,ue=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Ie=$n(G.target.value,se,re,ue);le&&le(G,+Ie)},B.handleChange=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.allowFloats;G.target.value=At(G.target.value,se,re,ue),le&&le(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Ie=$n(G.target.value,se,re,Ee);B.setEditing(!1),le&&le(G,+Ie),ue&&ue(G,+Ie),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,se=te.minValue,le=te.allowFloats,ue=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=$n(ue,se,re,le)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,se=this.props,le=se.maxValue,ue=se.minValue,Ee=se.allowFloats,Ie=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Re=this.inputRef.current;Re&&!Ie&&_e!==Ce&&_e!==Re.value&&(Re.value=$n(_e,ue,le,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,se=B.onBlur,le=B.value,ue=Xo(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=ue.className,Ie=ue.fluid,Ce=ue.monospace,_e=Xo(ue,["className","fluid","monospace"]);return(0,e.jsxs)(y.az,Rr({className:(0,C.Ly)(["Input",Ie&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** + */function Tn(){return Tn=Object.assign||function(S){for(var w=1;w0&&(B.setState({suppressingFlicker:!0}),clearTimeout(B.flickerTimer),B.flickerTimer=setTimeout(function(){return B.setState({suppressingFlicker:!1})},te))},B.handleDragStart=function(te){var re=B.props.value,se=B.state.editing;se||(document.body.style["pointer-events"]="none",B.ref=te.target,B.setState({dragging:!1,origin:te.screenY,value:re,internalValue:re}),B.timer=setTimeout(function(){B.setState({dragging:!0})},250),B.dragInterval=setInterval(function(){var le=B.state,ue=le.dragging,Ee=le.value,Ie=B.props.onDrag;ue&&Ie&&Ie(te,Ee)},B.props.updateRate||Dl),document.addEventListener("mousemove",B.handleDragMove),document.addEventListener("mouseup",B.handleDragEnd))},B.handleDragMove=function(te){var re=B.props,se=re.minValue,le=re.maxValue,ue=re.step,Ee=re.stepPixelSize;B.setState(function(Ie){var Ce=Tn({},Ie),_e=Ce.origin-te.screenY;if(Ie.dragging){var Re=Number.isFinite(se)?se%ue:0;Ce.internalValue=(0,s.qE)(Ce.internalValue+_e*ue/Ee,se-ue,le+ue),Ce.value=(0,s.qE)(Ce.internalValue-Ce.internalValue%ue+Re,se,le),Ce.origin=te.screenY}else Math.abs(_e)>4&&(Ce.dragging=!0);return Ce})},B.handleDragEnd=function(te){var re=B.props,se=re.onChange,le=re.onDrag,ue=B.state,Ee=ue.dragging,Ie=ue.value,Ce=ue.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(B.timer),clearInterval(B.dragInterval),B.setState({dragging:!1,editing:!Ee,origin:null}),document.removeEventListener("mousemove",B.handleDragMove),document.removeEventListener("mouseup",B.handleDragEnd),Ee)B.suppressFlicker(),se&&se(te,Ie),le&&le(te,Ie);else if(B.inputRef){var _e=B.inputRef.current;_e.value=Ce;try{_e.focus(),_e.select()}catch(Re){}}},B}var U=w.prototype;return U.render=function(){var B=this,G=this.state,te=G.dragging,re=G.editing,se=G.value,le=G.suppressingFlicker,ue=this.props,Ee=ue.className,Ie=ue.fluid,Ce=ue.animated,_e=ue.value,Re=ue.unit,Ue=ue.minValue,Ne=ue.maxValue,Ve=ue.height,nt=ue.width,Xe=ue.lineHeight,et=ue.fontSize,at=ue.format,dt=ue.onChange,ut=ue.onDrag,pt=_e;(te||le)&&(pt=se);var Ct=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Ce&&!te&&!le?(0,e.jsx)(m,{value:pt,format:at}):at?at(pt):pt,Re?" "+Re:""]});return(0,e.jsxs)(j.az,{className:(0,C.Ly)(["NumberInput",Ie&&"NumberInput--fluid",Ee]),minWidth:nt,minHeight:Ve,lineHeight:Xe,fontSize:et,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,s.qE)((pt-Ue)/(Ne-Ue)*100,0,100)+"%"}})}),Ct,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:re?void 0:"none",height:Ve,lineHeight:Xe,fontSize:et},onBlur:function(vt){if(re){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it)}},onKeyDown:function(vt){if(vt.keyCode===13){var it=(0,s.qE)(parseFloat(vt.target.value),Ue,Ne);if(Number.isNaN(it)){B.setState({editing:!1});return}B.setState({editing:!1,value:it}),B.suppressFlicker(),dt&&dt(vt,it),ut&&ut(vt,it);return}if(vt.keyCode===27){B.setState({editing:!1});return}}})]})},w}(n.Component);vr.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Rr(){return Rr=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Go(S,w){return Go=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Go(S,w)}var wr=0,Qn=1e4,At=function(S,w,U,$){var B=w||wr,G=U||U===0?U:Qn,te=$?S.replace(/[^\-\d.]/g,""):S.replace(/[^\-\d]/g,"");return $&&(te=Zt(te,B),te=tn(".",te)),w<0?(te=xr(te),te=tn("-",te)):te=te.replaceAll("-",""),B<=1&&G>=0?Tt(te,B,G,$):te},Tt=function(S,w,U,$){var B=$?parseFloat(S):parseInt(S,10);if(!isNaN(B)&&(S.slice(-1)!=="."||B0?(S=S.replace("-",""),w="-".concat(S)):U===0&&S.indexOf("-",U+1)>0&&(w=S.replaceAll("-","")),w},Zt=function(S,w){var U=S,$=Math.sign(w)*Math.floor(Math.abs(w));return S.indexOf(".")===0?U=String($).concat(S):S.indexOf("-")===0&&S.indexOf(".")===1&&(U=$+".".concat(S.slice(2))),U},tn=function(S,w){var U=w.indexOf(S),$=w.length,B=w;if(U!==-1&&U<$-1){var G=w.slice(U+1,$);G=G.replaceAll(S,""),B=w.slice(0,U+1).concat(G)}return B},$n=function(S,w,U,$){var B=w||wr,G=U||U===0?U:Qn;if(!S||!S.length)return String(B);var te=$?parseFloat(S.replace(/[^\-\d.]/g,"")):parseInt(S.replace(/[^\-\d]/g,""),10);return isNaN(te)?String(B):String((0,s.qE)(te,B,G))},so=function(S){"use strict";io(w,S);function w($){var B;return B=S.call(this,$)||this,B.inputRef=(0,n.createRef)(),B.state={editing:!1},B.handleBlur=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onBlur,ue=te.allowFloats,Ee=B.state.editing;Ee&&B.setEditing(!1);var Ie=$n(G.target.value,se,re,ue);le&&le(G,+Ie)},B.handleChange=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.allowFloats;G.target.value=At(G.target.value,se,re,ue),le&&le(G,+G.target.value)},B.handleFocus=function(G){var te=B.state.editing;te||B.setEditing(!0)},B.handleInput=function(G){var te=B.state.editing,re=B.props.onInput;te||B.setEditing(!0),re&&re(G,+G.target.value)},B.handleKeyDown=function(G){var te=B.props,re=te.maxValue,se=te.minValue,le=te.onChange,ue=te.onEnter,Ee=te.allowFloats;if(G.keyCode===_.Ri){var Ie=$n(G.target.value,se,re,Ee);B.setEditing(!1),le&&le(G,+Ie),ue&&ue(G,+Ie),G.target.blur();return}if(G.keyCode===_.s6){if(B.props.onEscape){B.props.onEscape(G);return}B.setEditing(!1),G.target.value=B.props.value,G.target.blur();return}},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G,te=this.props,re=te.maxValue,se=te.minValue,le=te.allowFloats,ue=(G=this.props.value)==null?void 0:G.toString(),Ee=this.inputRef.current;Ee&&(Ee.value=$n(ue,se,re,le)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Ee.focus(),B.props.autoSelect&&Ee.select()},1)},U.componentDidUpdate=function(B,G){var te,re,se=this.props,le=se.maxValue,ue=se.minValue,Ee=se.allowFloats,Ie=this.state.editing,Ce=(te=B.value)==null?void 0:te.toString(),_e=(re=this.props.value)==null?void 0:re.toString(),Re=this.inputRef.current;Re&&!Ie&&_e!==Ce&&_e!==Re.value&&(Re.value=$n(_e,ue,le,Ee))},U.setEditing=function(B){this.setState({editing:B})},U.render=function(){var B=this.props,G=B.onChange,te=B.onEnter,re=B.onInput,se=B.onBlur,le=B.value,ue=Xo(B,["onChange","onEnter","onInput","onBlur","value"]),Ee=ue.className,Ie=ue.fluid,Ce=ue.monospace,_e=Xo(ue,["className","fluid","monospace"]);return(0,e.jsxs)(j.az,Rr({className:(0,C.Ly)(["Input",Ie&&"Input--fluid",Ce&&"Input--monospace",Ee])},_e,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},w}(n.Component);/** * @file * @copyright 2020 bobbahbrown (https://github.com/bobbahbrown) * @license MIT @@ -219,68 +219,68 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function lo(){return lo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Zn=(0,n.forwardRef)(function(S,w){var U=S.buttons,$=S.children,B=S.className,G=S.fill,te=S.fitted,re=S.onScroll,se=S.scrollable,le=S.scrollableHorizontal,ue=S.title,Ee=S.flexGrow,Ie=S.noTopPadding,Ce=S.stretchContents,_e=Cs(S,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","flexGrow","noTopPadding","stretchContents"]),Re=(0,C.b5)(ue)||(0,C.b5)(U);return(0,n.useEffect)(function(){if(w!=null&&w.current&&!(!se&&!le))return(0,Ri.tk)(w.current),function(){w!=null&&w.current&&(0,Ri.WK)(w.current)}},[]),(0,e.jsxs)("div",lo({className:(0,C.Ly)(["Section",G&&"Section--fill",te&&"Section--fitted",se&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",B,(0,y.WP)(_e)])},(0,y.Fl)(_e),{children:[Re&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:ue}),(0,e.jsx)("div",{className:"Section__buttons",children:U})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:re,ref:w,children:$})})]}))});/** + */function lo(){return lo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Zn=(0,n.forwardRef)(function(S,w){var U=S.buttons,$=S.children,B=S.className,G=S.fill,te=S.fitted,re=S.onScroll,se=S.scrollable,le=S.scrollableHorizontal,ue=S.title,Ee=S.flexGrow,Ie=S.noTopPadding,Ce=S.stretchContents,_e=Cs(S,["buttons","children","className","fill","fitted","onScroll","scrollable","scrollableHorizontal","title","flexGrow","noTopPadding","stretchContents"]),Re=(0,C.b5)(ue)||(0,C.b5)(U);return(0,n.useEffect)(function(){if(w!=null&&w.current&&!(!se&&!le))return(0,Ri.tk)(w.current),function(){w!=null&&w.current&&(0,Ri.WK)(w.current)}},[]),(0,e.jsxs)("div",lo({className:(0,C.Ly)(["Section",G&&"Section--fill",te&&"Section--fitted",se&&"Section--scrollable",le&&"Section--scrollableHorizontal",Ee&&"Section--flex",B,(0,j.WP)(_e)])},(0,j.Fl)(_e),{children:[Re&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:ue}),(0,e.jsx)("div",{className:"Section__buttons",children:U})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{className:(0,C.Ly)(["Section__content",!!Ce&&"Section__content--stretchContents",!!Ie&&"Section__content--noTopPadding"]),onScroll:re,ref:w,children:$})})]}))});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function co(){return co=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Bi=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.onChange,te=S.onDrag,re=S.step,se=S.stepPixelSize,le=S.suppressFlicker,ue=S.unit,Ee=S.value,Ie=S.className,Ce=S.fillValue,_e=S.color,Re=S.ranges,Ue=Re===void 0?{}:Re,Ne=S.children,Ve=wi(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=Ne!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:se,suppressFlicker:le,unit:ue,value:Ee,children:function(Xe){var et=Xe.dragging,at=Xe.editing,dt=Xe.value,ut=Xe.displayValue,pt=Xe.displayElement,Ct=Xe.inputElement,vt=Xe.handleDragStart,it=Ce!=null,St=(0,s.hs)(dt,B,$),Nt=(0,s.hs)(Ce!=null?Ce:ut,B,$),kt=(0,s.hs)(ut,B,$),Lt=_e||(0,s.TG)(Ce!=null?Ce:dt,Ue)||"default";return(0,e.jsxs)("div",co({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Lt,Ie,(0,y.WP)(Ve)])},(0,y.Fl)(Ve),{onMouseDown:vt,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",it&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Nt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Nt,kt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(kt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),et&&(0,e.jsx)("div",{className:"Slider__popupValue",children:pt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?Ne:pt}),Ct]}))}})},Oc=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** + */function co(){return co=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Bi=function(S){var w=S.animated,U=S.format,$=S.maxValue,B=S.minValue,G=S.onChange,te=S.onDrag,re=S.step,se=S.stepPixelSize,le=S.suppressFlicker,ue=S.unit,Ee=S.value,Ie=S.className,Ce=S.fillValue,_e=S.color,Re=S.ranges,Ue=Re===void 0?{}:Re,Ne=S.children,Ve=wi(S,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),nt=Ne!==void 0;return(0,e.jsx)(Oa,{dragMatrix:[1,0],animated:w,format:U,maxValue:$,minValue:B,onChange:G,onDrag:te,step:re,stepPixelSize:se,suppressFlicker:le,unit:ue,value:Ee,children:function(Xe){var et=Xe.dragging,at=Xe.editing,dt=Xe.value,ut=Xe.displayValue,pt=Xe.displayElement,Ct=Xe.inputElement,vt=Xe.handleDragStart,it=Ce!=null,St=(0,s.hs)(dt,B,$),Nt=(0,s.hs)(Ce!=null?Ce:ut,B,$),kt=(0,s.hs)(ut,B,$),Lt=_e||(0,s.TG)(Ce!=null?Ce:dt,Ue)||"default";return(0,e.jsxs)("div",co({className:(0,C.Ly)(["Slider","ProgressBar","ProgressBar--color--"+Lt,Ie,(0,j.WP)(Ve)])},(0,j.Fl)(Ve),{onMouseDown:vt,children:[(0,e.jsx)("div",{className:(0,C.Ly)(["ProgressBar__fill",it&&"ProgressBar__fill--animated"]),style:{width:(0,s.J$)(Nt)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,s.J$)(Math.min(Nt,kt))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,s.J$)(kt)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),et&&(0,e.jsx)("div",{className:"Slider__popupValue",children:pt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:nt?Ne:pt}),Ct]}))}})},Oc=function(S){return _jsxs(Box,{style:S.style,children:[_jsxs(Box,{className:"Section__title",style:S.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:S.textStyle,children:S.title}),_jsx("div",{className:"Section__buttons",children:S.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:S.children})})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function An(){return An=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Kr=function(S){var w=S.className,U=S.vertical,$=S.fill,B=S.fluid,G=S.children,te=Br(S,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",An({className:(0,C.Ly)(["Tabs",U?"Tabs--vertical":"Tabs--horizontal",$&&"Tabs--fill",B&&"Tabs--fluid",w,(0,y.WP)(te)])},(0,y.Fl)(te),{children:G}))},Wa=function(S){var w=S.className,U=S.selected,$=S.color,B=S.icon,G=S.leftSlot,te=S.rightSlot,re=S.children,se=Br(S,["className","selected","color","icon","leftSlot","rightSlot","children"]);return(0,e.jsxs)("div",An({className:(0,C.Ly)(["Tab","Tabs__Tab","Tab--color--"+$,U&&"Tab--selected",w,(0,y.WP)(se)])},(0,y.Fl)(se),{children:[(0,C.b5)(G)&&(0,e.jsx)("div",{className:"Tab__left",children:G})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(R,{name:B})}),(0,e.jsx)("div",{className:"Tab__text",children:re}),(0,C.b5)(te)&&(0,e.jsx)("div",{className:"Tab__right",children:te})]}))};Kr.Tab=Wa;/** + */function An(){return An=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}var Kr=function(S){var w=S.className,U=S.vertical,$=S.fill,B=S.fluid,G=S.children,te=Br(S,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",An({className:(0,C.Ly)(["Tabs",U?"Tabs--vertical":"Tabs--horizontal",$&&"Tabs--fill",B&&"Tabs--fluid",w,(0,j.WP)(te)])},(0,j.Fl)(te),{children:G}))},Wa=function(S){var w=S.className,U=S.selected,$=S.color,B=S.icon,G=S.leftSlot,te=S.rightSlot,re=S.children,se=Br(S,["className","selected","color","icon","leftSlot","rightSlot","children"]);return(0,e.jsxs)("div",An({className:(0,C.Ly)(["Tab","Tabs__Tab","Tab--color--"+$,U&&"Tab--selected",w,(0,j.WP)(se)])},(0,j.Fl)(se),{children:[(0,C.b5)(G)&&(0,e.jsx)("div",{className:"Tab__left",children:G})||!!B&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(R,{name:B})}),(0,e.jsx)("div",{className:"Tab__text",children:re}),(0,C.b5)(te)&&(0,e.jsx)("div",{className:"Tab__right",children:te})]}))};Kr.Tab=Wa;/** * @file * @copyright 2020 Aleksej Komarov * @author Warlockd * @license MIT - */function uo(){return uo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Jn(S,w){return Jn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Jn(S,w)}var qn=function(S){"use strict";gn(w,S);function w($){var B;B=S.call(this,$)||this,B.textareaRef=$.innerRef||(0,n.createRef)(),B.state={editing:!1,scrolledAmount:0};var G=$.dontUseTabForIndent,te=G===void 0?!1:G;return B.handleOnInput=function(re){var se=B.state.editing,le=B.props.onInput;se||B.setEditing(!0),le&&le(re,re.target.value)},B.handleOnChange=function(re){var se=B.state.editing,le=B.props.onChange;se&&B.setEditing(!1),le&&le(re,re.target.value)},B.handleKeyPress=function(re){var se=B.state.editing,le=B.props.onKeyPress;se||B.setEditing(!0),le&&le(re,re.target.value)},B.handleKeyDown=function(re){var se=B.state.editing,le=B.props,ue=le.onChange,Ee=le.onInput,Ie=le.onEnter,Ce=le.onKey;if(re.keyCode===_.Ri){B.setEditing(!1),ue&&ue(re,re.target.value),Ee&&Ee(re,re.target.value),Ie&&Ie(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===_.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Dr(B.props.value),re.target.blur());return}if(se||B.setEditing(!0),Ce&&Ce(re,re.target.value),!te){var _e=re.keyCode||re.which;if(_e===_.aW){re.preventDefault();var Re=re.target,Ue=Re.value,Ne=Re.selectionStart,Ve=Re.selectionEnd;re.target.value=Ue.substring(0,Ne)+" "+Ue.substring(Ve),re.target.selectionEnd=Ne+1,Ee&&Ee(re,re.target.value)}}},B.handleFocus=function(re){var se=B.state.editing;se||B.setEditing(!0)},B.handleBlur=function(re){var se=B.state.editing,le=B.props.onChange;se&&(B.setEditing(!1),le&&le(re,re.target.value))},B.handleScroll=function(re){var se=B.props.displayedValue,le=B.textareaRef.current;se&&le&&B.setState({scrolledAmount:le.scrollTop})},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.textareaRef.current;te&&(te.value=Dr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=B.value,re=this.props.value,se=this.textareaRef.current;se&&typeof re=="string"&&te!==re&&(se.value=Dr(re))},U.setEditing=function(B){this.setState({editing:B})},U.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},U.render=function(){var B=this.props,G=B.onChange,te=B.onKeyDown,re=B.onKeyPress,se=B.onInput,le=B.onFocus,ue=B.onBlur,Ee=B.onEnter,Ie=B.value,Ce=B.maxLength,_e=B.placeholder,Re=B.scrollbar,Ue=B.noborder,Ne=B.displayedValue,Ve=fn(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),nt=Ve.className,Xe=Ve.fluid,et=Ve.nowrap,at=fn(Ve,["className","fluid","nowrap"]),dt=this.state.scrolledAmount;return(0,e.jsxs)(y.az,uo({className:(0,C.Ly)(["TextArea",Xe&&"TextArea--fluid",Ue&&"TextArea--noborder",nt])},at,{children:[!!Ne&&(0,e.jsx)(y.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,C.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+dt+"px)"},children:Ne})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Re&&"TextArea__textarea--scrollable",et&&"TextArea__nowrap"]),placeholder:_e,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Ce,style:{color:Ne?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(n.Component),pr=t(24158);function fo(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Fa(S,w)}function Fa(S,w){return Fa=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Fa(S,w)}var Es=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},bs=null;function jn(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function yn(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&hn(S,w)}function Kt(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function hn(S,w){return hn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},hn(S,w)}var Tl=null,Al=function(S){var w=S.children,U=useRef(null),$=useState(1),B=$[0],G=$[1],te=useState(0),re=te[0],se=te[1],le=useCallback(function(){var ue=U.current;if(!(!w||!Array.isArray(w)||!ue||B>=w.length)){var Ee=document.body.offsetHeight-ue.getBoundingClientRect().bottom,Ie=Math.ceil(ue.offsetHeight/B);if(Ee>0){var Ce=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/Ie)));G(Ce),se((w.length-Ce)*Ie)}}},[U,B,G,se]);return useEffect(function(){le();var ue=setInterval(le,100);return function(){return clearInterval(ue)}},[le]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:U,children:Array.isArray(w)?w.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+re+"px"}})]})};/** + */function uo(){return uo=Object.assign||function(S){for(var w=1;w=0)&&(U[B]=S[B]);return U}function Jn(S,w){return Jn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Jn(S,w)}var qn=function(S){"use strict";gn(w,S);function w($){var B;B=S.call(this,$)||this,B.textareaRef=$.innerRef||(0,n.createRef)(),B.state={editing:!1,scrolledAmount:0};var G=$.dontUseTabForIndent,te=G===void 0?!1:G;return B.handleOnInput=function(re){var se=B.state.editing,le=B.props.onInput;se||B.setEditing(!0),le&&le(re,re.target.value)},B.handleOnChange=function(re){var se=B.state.editing,le=B.props.onChange;se&&B.setEditing(!1),le&&le(re,re.target.value)},B.handleKeyPress=function(re){var se=B.state.editing,le=B.props.onKeyPress;se||B.setEditing(!0),le&&le(re,re.target.value)},B.handleKeyDown=function(re){var se=B.state.editing,le=B.props,ue=le.onChange,Ee=le.onInput,Ie=le.onEnter,Ce=le.onKey;if(re.keyCode===_.Ri){B.setEditing(!1),ue&&ue(re,re.target.value),Ee&&Ee(re,re.target.value),Ie&&Ie(re,re.target.value),B.props.selfClear&&(re.target.value="",re.target.blur());return}if(re.keyCode===_.s6){B.props.onEscape&&B.props.onEscape(re),B.setEditing(!1),B.props.selfClear?re.target.value="":(re.target.value=Dr(B.props.value),re.target.blur());return}if(se||B.setEditing(!0),Ce&&Ce(re,re.target.value),!te){var _e=re.keyCode||re.which;if(_e===_.aW){re.preventDefault();var Re=re.target,Ue=Re.value,Ne=Re.selectionStart,Ve=Re.selectionEnd;re.target.value=Ue.substring(0,Ne)+" "+Ue.substring(Ve),re.target.selectionEnd=Ne+1,Ee&&Ee(re,re.target.value)}}},B.handleFocus=function(re){var se=B.state.editing;se||B.setEditing(!0)},B.handleBlur=function(re){var se=B.state.editing,le=B.props.onChange;se&&(B.setEditing(!1),le&&le(re,re.target.value))},B.handleScroll=function(re){var se=B.props.displayedValue,le=B.textareaRef.current;se&&le&&B.setState({scrolledAmount:le.scrollTop})},B}var U=w.prototype;return U.componentDidMount=function(){var B=this,G=this.props.value,te=this.textareaRef.current;te&&(te.value=Dr(G)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){te.focus(),B.props.autoSelect&&te.select()},1)},U.componentDidUpdate=function(B,G){var te=B.value,re=this.props.value,se=this.textareaRef.current;se&&typeof re=="string"&&te!==re&&(se.value=Dr(re))},U.setEditing=function(B){this.setState({editing:B})},U.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},U.render=function(){var B=this.props,G=B.onChange,te=B.onKeyDown,re=B.onKeyPress,se=B.onInput,le=B.onFocus,ue=B.onBlur,Ee=B.onEnter,Ie=B.value,Ce=B.maxLength,_e=B.placeholder,Re=B.scrollbar,Ue=B.noborder,Ne=B.displayedValue,Ve=fn(B,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),nt=Ve.className,Xe=Ve.fluid,et=Ve.nowrap,at=fn(Ve,["className","fluid","nowrap"]),dt=this.state.scrolledAmount;return(0,e.jsxs)(j.az,uo({className:(0,C.Ly)(["TextArea",Xe&&"TextArea--fluid",Ue&&"TextArea--noborder",nt])},at,{children:[!!Ne&&(0,e.jsx)(j.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,C.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+dt+"px)"},children:Ne})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,C.Ly)(["TextArea__textarea",Re&&"TextArea__textarea--scrollable",et&&"TextArea__nowrap"]),placeholder:_e,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Ce,style:{color:Ne?"rgba(0, 0, 0, 0)":"inherit"}})]}))},w}(n.Component),pr=t(24158);function fo(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&Fa(S,w)}function Fa(S,w){return Fa=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},Fa(S,w)}var Es=function(S){return typeof S=="number"&&Number.isFinite(S)&&!Number.isNaN(S)},bs=null;function jn(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function yn(S,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(w&&w.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),w&&hn(S,w)}function Kt(S,w){return w!=null&&typeof Symbol!="undefined"&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](S):S instanceof w}function hn(S,w){return hn=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},hn(S,w)}var Tl=null,Al=function(S){var w=S.children,U=useRef(null),$=useState(1),B=$[0],G=$[1],te=useState(0),re=te[0],se=te[1],le=useCallback(function(){var ue=U.current;if(!(!w||!Array.isArray(w)||!ue||B>=w.length)){var Ee=document.body.offsetHeight-ue.getBoundingClientRect().bottom,Ie=Math.ceil(ue.offsetHeight/B);if(Ee>0){var Ce=Math.min(w.length,B+Math.max(1,Math.ceil(Ee/Ie)));G(Ce),se((w.length-Ce)*Ie)}}},[U,B,G,se]);return useEffect(function(){le();var ue=setInterval(le,100);return function(){return clearInterval(ue)}},[le]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:U,children:Array.isArray(w)?w.slice(0,B):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+re+"px"}})]})};/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */},1568:function(M,j,t){"use strict";t.d(j,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return m}});/** + */},1568:function(M,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return x},KA:function(){return s},KS:function(){return r},NE:function(){return g},b_:function(){return v},bz:function(){return n},lm:function(){return a},wM:function(){return m}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=273.15,s=2,n=1,r=0,i=null,a={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},g=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],x=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],u=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],m=function(h,c){if(!h)return c||"None";for(var f=h.toLowerCase(),p=h.replace(/(^\w{1})|(\s+\w{1})/g,function(y){return y.toUpperCase()}),C=0;C0&&ne[ne.length-1])&&(me[0]===6||me[0]===2)){de=0;continue}if(me[0]===3&&(!ne||me[1]>ne[0]&&me[1]pe&&(ne[de]=pe-Q[de],ce=!0)}return[ce,ne]},F=function(z){var Q;g.log("drag start"),v=!0,f=(0,s.Z4)([z.screenX,z.screenY],b()),(Q=z.target)==null||Q.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,s.Z4)([z.screenX,z.screenY],f)))},Y=function(z,Q){return function(ee){var oe;p=[z,Q],g.log("resize start",p),d=!0,f=(0,s.Z4)([ee.screenX,ee.screenY],b()),C=I(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Z),V(ee)}},Z=function(z){g.log("resize end",y),V(z),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Z),d=!1,K()},V=function(z){if(d){z.preventDefault();var Q=(0,s.Z4)([z.screenX,z.screenY],b()),ee=(0,s.Z4)(Q,f);y=(0,s.CO)(C,(0,s.tk)(p,ee),[1,1]),y[0]=Math.max(y[0],150*u),y[1]=Math.max(y[1],50*u),D(y)}}},80116:function(M,j,t){"use strict";t.d(j,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return i}});var e=t(80324),s=t(61652);/** + */function r(z,Q,ee,oe,ne,ce,de){try{var ve=z[ce](de),pe=ve.value}catch(me){ee(me);return}ve.done?Q(pe):Promise.resolve(pe).then(oe,ne)}function i(z){return function(){var Q=this,ee=arguments;return new Promise(function(oe,ne){var ce=z.apply(Q,ee);function de(pe){r(ce,oe,ne,de,ve,"next",pe)}function ve(pe){r(ce,oe,ne,de,ve,"throw",pe)}de(void 0)})}}function a(z,Q){var ee,oe,ne,ce,de={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]};return ce={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function ve(me){return function(be){return pe([me,be])}}function pe(me){if(ee)throw new TypeError("Generator is already executing.");for(;de;)try{if(ee=1,oe&&(ne=me[0]&2?oe.return:me[0]?oe.throw||((ne=oe.return)&&ne.call(oe),0):oe.next)&&!(ne=ne.call(oe,me[1])).done)return ne;switch(oe=0,ne&&(me=[me[0]&2,ne.value]),me[0]){case 0:case 1:ne=me;break;case 4:return de.label++,{value:me[1],done:!1};case 5:de.label++,oe=me[1],me=[0];continue;case 7:me=de.ops.pop(),de.trys.pop();continue;default:if(ne=de.trys,!(ne=ne.length>0&&ne[ne.length-1])&&(me[0]===6||me[0]===2)){de=0;continue}if(me[0]===3&&(!ne||me[1]>ne[0]&&me[1]pe&&(ne[de]=pe-Q[de],ce=!0)}return[ce,ne]},F=function(z){var Q;g.log("drag start"),v=!0,d=(0,s.Z4)([z.screenX,z.screenY],b()),(Q=z.target)==null||Q.focus(),document.addEventListener("mousemove",H),document.addEventListener("mouseup",J),H(z)},J=function(z){g.log("drag end"),H(z),document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",J),v=!1,K()},H=function(z){v&&(z.preventDefault(),_((0,s.Z4)([z.screenX,z.screenY],d)))},Y=function(z,Q){return function(ee){var oe;p=[z,Q],g.log("resize start",p),u=!0,d=(0,s.Z4)([ee.screenX,ee.screenY],b()),C=I(),(oe=ee.target)==null||oe.focus(),document.addEventListener("mousemove",V),document.addEventListener("mouseup",Z),V(ee)}},Z=function(z){g.log("resize end",j),V(z),document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",Z),u=!1,K()},V=function(z){if(u){z.preventDefault();var Q=(0,s.Z4)([z.screenX,z.screenY],b()),ee=(0,s.Z4)(Q,d);j=(0,s.CO)(C,(0,s.tk)(p,ee),[1,1]),j[0]=Math.max(j[0],150*f),j[1]=Math.max(j[1],50*f),D(j)}}},80116:function(M,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return C},tk:function(){return p},y4:function(){return i}});var e=t(80324),s=t(61652);/** * Normalized browser focus events and BYOND-specific focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var n=new e.b,r=!1,i=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},a,g=!0,x=function(I,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},u=null,m=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(I){d(),u=I,u.addEventListener("blur",d)},d=function(){u&&(u.removeEventListener("blur",d),u=null)},h=null,c=null,f=[],p=function(I){f.push(I)},C=function(I){var _=f.indexOf(I);_>=0&&f.splice(_,1)},y=function(I){if(!(u||!g))for(var _=document.body;I&&I!==_;){if(f.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==c&&(c=_,y(_))}),window.addEventListener("focusin",function(I){c=null,h=I.target,x(!0),m(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){c=null,x(!1,!0)}),window.addEventListener("blur",function(I){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var O={},b=function(){"use strict";function I(D,P,A){this.event=D,this.type=P,this.code=D.keyCode,this.ctrl=D.ctrlKey,this.shift=D.shiftKey,this.alt=D.altKey,this.repeat=!!A}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=s.sV&&this.code<=s.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!m(I.target)){var _=I.keyCode,D=new b(I,"keydown",O[_]);n.emit("keydown",D),n.emit("key",D),O[_]=!0}}),document.addEventListener("keyup",function(I){if(!m(I.target)){var _=I.keyCode,D=new b(I,"keyup");n.emit("keyup",D),n.emit("key",D),O[_]=!1}})},46989:function(M,j,t){"use strict";t.d(j,{$:function(){return e}});/** + */var n=new e.b,r=!1,i=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},a,g=!0,x=function(I,_){if(r){g=!0;return}if(a&&(clearTimeout(a),a=null),_){a=setTimeout(function(){return x(I)});return}g!==I&&(g=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},f=null,m=function(I){var _=String(I.tagName).toLowerCase();return _==="input"||_==="textarea"},v=function(I){u(),f=I,f.addEventListener("blur",u)},u=function(){f&&(f.removeEventListener("blur",u),f=null)},h=null,c=null,d=[],p=function(I){d.push(I)},C=function(I){var _=d.indexOf(I);_>=0&&d.splice(_,1)},j=function(I){if(!(f||!g))for(var _=document.body;I&&I!==_;){if(d.includes(I)){if(I.contains(h))return;h=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var _=I.target;_!==c&&(c=_,j(_))}),window.addEventListener("focusin",function(I){c=null,h=I.target,x(!0),m(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){c=null,x(!1,!0)}),window.addEventListener("blur",function(I){c=null,x(!1,!0)}),window.addEventListener("beforeunload",function(I){x(!1)});var O={},b=function(){"use strict";function I(D,P,A){this.event=D,this.type=P,this.code=D.keyCode,this.ctrl=D.ctrlKey,this.shift=D.shiftKey,this.alt=D.altKey,this.repeat=!!A}var _=I.prototype;return _.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},_.isModifierKey=function(){return this.code===s.Ss||this.code===s.re||this.code===s.cH},_.isDown=function(){return this.type==="keydown"},_.isUp=function(){return this.type==="keyup"},_.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=s.sV&&this.code<=s.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!m(I.target)){var _=I.keyCode,D=new b(I,"keydown",O[_]);n.emit("keydown",D),n.emit("key",D),O[_]=!0}}),document.addEventListener("keyup",function(I){if(!m(I.target)){var _=I.keyCode,D=new b(I,"keyup");n.emit("keyup",D),n.emit("key",D),O[_]=!1}})},46989:function(M,y,t){"use strict";t.d(y,{$:function(){return e}});/** * Various focus helpers. * * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(M,j,t){"use strict";t.d(j,{QL:function(){return n},d5:function(){return r},fU:function(){return u},qQ:function(){return m},up:function(){return i}});/** + */var e=function(){Byond.winset("mapwindow.map",{focus:!0})},s=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(M,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return f},qQ:function(){return m},up:function(){return i}});/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(v,d,h){if(d===void 0&&(d=-s),h===void 0&&(h=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),f=Math.max(d*3,c),p=Math.floor(f/3),C=e[Math.min(p+s,e.length-1)],y=v/Math.pow(1e3,p),O=y.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+h).trim()},r=function(v,d){return d===void 0&&(d=0),n(v,d,"W")},i=function(v,d){if(d===void 0&&(d=0),!Number.isFinite(v))return String(v);var h=Number(v.toFixed(d)),c=h<0,f=Math.abs(h),p=f.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var d=20*Math.log10(v),h=d>=0?"+":"-",c=Math.abs(d);return c===1/0?c="Inf":c=c.toFixed(2),""+h+c+" dB"},g=null,x=function(v,d,h){if(d===void 0&&(d=0),h===void 0&&(h=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),f=Math.max(d*3,c),p=Math.floor(f/3),C=g[p],y=v/Math.pow(1e3,p),O=Math.max(0,2-f%3),b=y.toFixed(O);return(b+" "+C+" "+h).trim()},u=function(v,d){d===void 0&&(d="default");var h=Math.floor(v/10),c=Math.floor(h/3600),f=Math.floor(h%3600/60),p=h%60;if(d==="short"){var C=c>0?""+c+"h":"",y=f>0?""+f+"m":"",O=p>0?""+p+"s":"";return""+C+y+O}var b=String(c).padStart(2,"0"),I=String(f).padStart(2,"0"),_=String(p).padStart(2,"0");return b+":"+I+":"+_},m=function(v){if(!Number.isFinite(v))return v;var d=v.toString().split(".");return d[0]=d[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),d.join(".")}},5030:function(M,j,t){"use strict";t.d(j,{Bm:function(){return C}});var e=t(61652),s=t(80116),n=t(47868);/** + */var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],s=e.indexOf(" "),n=function(v,u,h){if(u===void 0&&(u=-s),h===void 0&&(h=""),!isFinite(v))return v.toString();var c=Math.floor(Math.log10(Math.abs(v))),d=Math.max(u*3,c),p=Math.floor(d/3),C=e[Math.min(p+s,e.length-1)],j=v/Math.pow(1e3,p),O=j.toFixed(2);return O.endsWith(".00")?O=O.slice(0,-3):O.endsWith(".0")&&(O=O.slice(0,-2)),(O+" "+C.trim()+h).trim()},r=function(v,u){return u===void 0&&(u=0),n(v,u,"W")},i=function(v,u){if(u===void 0&&(u=0),!Number.isFinite(v))return String(v);var h=Number(v.toFixed(u)),c=h<0,d=Math.abs(h),p=d.toString().split(".");p[0]=p[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var C=p.join(".");return c?"-"+C:C},a=function(v){var u=20*Math.log10(v),h=u>=0?"+":"-",c=Math.abs(u);return c===1/0?c="Inf":c=c.toFixed(2),""+h+c+" dB"},g=null,x=function(v,u,h){if(u===void 0&&(u=0),h===void 0&&(h=""),!isFinite(v))return"NaN";var c=Math.floor(Math.log10(v)),d=Math.max(u*3,c),p=Math.floor(d/3),C=g[p],j=v/Math.pow(1e3,p),O=Math.max(0,2-d%3),b=j.toFixed(O);return(b+" "+C+" "+h).trim()},f=function(v,u){u===void 0&&(u="default");var h=Math.floor(v/10),c=Math.floor(h/3600),d=Math.floor(h%3600/60),p=h%60;if(u==="short"){var C=c>0?""+c+"h":"",j=d>0?""+d+"m":"",O=p>0?""+p+"s":"";return""+C+j+O}var b=String(c).padStart(2,"0"),I=String(d).padStart(2,"0"),_=String(p).padStart(2,"0");return b+":"+I+":"+_},m=function(v){if(!Number.isFinite(v))return v;var u=v.toString().split(".");return u[0]=u[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),u.join(".")}},5030:function(M,y,t){"use strict";t.d(y,{Bm:function(){return C}});var e=t(61652),s=t(80116),n=t(47868);/** * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function r(O,b){(b==null||b>O.length)&&(b=O.length);for(var I=0,_=new Array(b);I=O.length?{done:!0}:{done:!1,value:O[_++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=(0,n.h)("hotkeys"),x={},u=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],m={},v=[],d=function(O){if(O===16)return"Shift";if(O===17)return"Ctrl";if(O===18)return"Alt";if(O===33)return"Northeast";if(O===34)return"Southeast";if(O===35)return"Southwest";if(O===36)return"Northwest";if(O===37)return"West";if(O===38)return"North";if(O===39)return"East";if(O===40)return"South";if(O===45)return"Insert";if(O===46)return"Delete";if(O>=48&&O<=57||O>=65&&O<=90)return String.fromCharCode(O);if(O>=96&&O<=105)return"Numpad"+(O-96);if(O>=112&&O<=123)return"F"+(O-111);if(O===188)return",";if(O===189)return"-";if(O===190)return"."},h=function(O){var b=String(O);if(b==="Ctrl+F5"||b==="Ctrl+R"){location.reload();return}if(b!=="Ctrl+F"&&!(O.event.defaultPrevented||O.isModifierKey()||u.includes(O.code))){var I=d(O.code);if(I){var _=x[I];if(_)return g.debug("macro",_),Byond.command(_);if(O.isDown()&&!m[I]){m[I]=!0;var D='TguiKeyDown "'+I+'"';return g.debug(D),Byond.command(D)}if(O.isUp()&&m[I]){m[I]=!1;var P='TguiKeyUp "'+I+'"';return g.debug(P),Byond.command(P)}}}},c=function(O){u.push(O)},f=function(O){var b=u.indexOf(O);b>=0&&u.splice(b,1)},p=function(){for(var O=a(Object.keys(m)),b;!(b=O()).done;){var I=b.value;m[I]&&(m[I]=!1,g.log('releasing key "'+I+'"'),Byond.command('TguiKeyUp "'+I+'"'))}},C=function(){Byond.winget("default.*").then(function(O){for(var b={},I=a(Object.keys(O)),_;!(_=I()).done;){var D=_.value,P=D.split("."),A=P[1],R=P[2];A&&R&&(b[A]||(b[A]={}),b[A][R]=O[D])}for(var K=/\\"/g,N=function(Y){return Y.substring(1,Y.length-1).replace(K,'"')},k=a(Object.keys(b)),X;!(X=k()).done;){var F=X.value,J=b[F],H=N(J.name);x[H]=N(J.command)}g.debug("loaded macros",x)}),s.Nh.on("window-blur",function(){p()}),s.Nh.on("key",function(O){for(var b=a(v),I;!(I=b()).done;){var _=I.value;_(O)}h(O)})},y=function(O){v.push(O);var b=!1;return function(){b||(b=!0,v.splice(v.indexOf(O),1))}}},15454:function(M,j,t){"use strict";t.r(j),t.d(j,{AICard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.has_ai,v=u.integrity,d=u.backup_capacitor,h=u.flushing,c=u.has_laws,f=u.laws,p=u.wireless,C=u.radio;if(m===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var y=null;v>=75?y="green":v>=25?y="yellow":y="red";var O=null;return d>=75&&(O="green"),d>=25?O="yellow":O="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:y,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:O,value:d/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:h===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!c&&(0,e.jsx)(n.az,{children:f.map(function(b,I){return(0,e.jsx)(n.az,{display:"inline-block",children:b},I)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:p?"check":"times",content:p?"Enabled":"Disabled",color:p?"green":"red",onClick:function(){return x("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:C?"check":"times",content:C?"Enabled":"Disabled",color:C?"green":"red",onClick:function(){return x("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:h||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return x("wipe")}})})]})})]})})}},85866:function(M,j,t){"use strict";t.r(j),t.d(j,{APC:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=t(15665),g=function(h){var c=(0,s.Oc)(),f=c.act,p=c.data,C=(0,e.jsx)(m,{});return p.gridCheck?C=(0,e.jsx)(v,{}):p.failTime&&(C=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},x={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},u={1:{icon:"terminal",content:"Override Programming",action:"hack"}},m=function(h){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.locked&&!p.siliconUser,y=p.normallyLocked,O=x[p.externalPower]||x[0],b=x[p.chargingStatus]||x[0],I=p.powerChannels||[],_=p.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.InterfaceLockNoticeBox,{deny:p.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:O.color,buttons:(0,e.jsx)(n.$n,{icon:p.isOperating?"power-off":"times",content:p.isOperating?"On":"Off",selected:p.isOperating&&!C,color:p.isOperating?"":"bad",disabled:C,onClick:function(){return f("breaker")}}),children:["[ ",O.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:_})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:b.color,buttons:(0,e.jsx)(n.$n,{icon:p.chargeMode?"sync":"times",content:p.chargeMode?"Auto":"Off",selected:p.chargeMode,disabled:C,onClick:function(){return f("charge")}}),children:["[ ",b.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[I.map(function(D){var P=D.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:D.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:D.status>=2?"good":"bad",children:D.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!C&&(D.status===1||D.status===3),disabled:C,onClick:function(){return f("channel",P.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!C&&D.status===2,disabled:C,onClick:function(){return f("channel",P.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!C&&D.status===0,disabled:C,onClick:function(){return f("channel",P.off)}})]}),children:[D.powerLoad," W"]},D.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:p.totalCharging?(0,e.jsxs)("b",{children:[p.totalLoad," W (+ ",p.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[p.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!p.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return f("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:p.coverLocked?"lock":"unlock",content:p.coverLocked?"Engaged":"Disengaged",selected:p.coverLocked,disabled:C,onClick:function(){return f("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:p.nightshiftSetting===2,onClick:function(){return f("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:p.nightshiftSetting===1,onClick:function(){return f("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:p.nightshiftSetting===3,onClick:function(){return f("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:p.emergencyLights?"Enabled":"Disabled",selected:p.emergencyLights,onClick:function(){return f("emergency_lighting")}})})]})})]})},v=function(h){return(0,e.jsxs)(i.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},d=function(h){var c=(0,s.Oc)(),f=c.data,p=c.act,C=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return p("reboot")}});return f.locked&&!f.siliconUser&&(C=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",f.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:C})]})}},95054:function(M,j,t){"use strict";t.r(j),t.d(j,{AccountsTerminal:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.id_inserted,f=h.id_card,p=h.access_level,C=h.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:C}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:c?"eject":"sign-in-alt",fluid:!0,content:f,onClick:function(){return d("insert_card")}})})]})}),p>0&&(0,e.jsx)(a,{})]})})},a=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.creating_new_account,f=h.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!c&&!f,icon:"home",onClick:function(){return d("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:c,icon:"cog",onClick:function(){return d("create_account")},children:"New Account"}),c?"":(0,e.jsx)(n.tU.Tab,{disabled:c,icon:"print",onClick:function(){return d("print")},children:"Print"})]}),c&&(0,e.jsx)(g,{})||f&&(0,e.jsx)(x,{})||(0,e.jsx)(u,{})]})},g=function(m){var v=(0,s.Oc)().act,d=(0,s.QY)("holder",""),h=d[0],c=d[1],f=(0,s.QY)("money",""),p=f[0],C=f[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:h,fluid:!0,onInput:function(y,O){return c(O)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onInput:function(y,O){return C(O)}})})]}),(0,e.jsx)(n.$n,{disabled:!h||!p,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:h,starting_funds:p})},content:"Create"})]})},x=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.access_level,f=h.station_account_number,p=h.account_number,C=h.owner_name,y=h.money,O=h.suspended,b=h.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:O,content:"Suspend",onClick:function(){return d("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",p]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:C}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[y,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:O?"bad":"good",children:O?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:p===f,onClick:function(){return d("revoke_payroll")}})})})}),c>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return d("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return d("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),b.map(function(I,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(n.XI.Cell,{children:I.target_name}),(0,e.jsx)(n.XI.Cell,{children:I.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:I.source_terminal})]},_)})]})})]})},u=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:c.length&&(0,e.jsx)(n.Ki,{children:c.map(function(f){return(0,e.jsx)(n.Ki.Item,{label:f.owner_name+f.suspended,color:f.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+f.account_number,onClick:function(){return d("view_account_detail",{account_index:f.account_index})}})},f.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(M,j,t){"use strict";t.r(j),t.d(j,{AdminShuttleController:function(){return a},ShuttleList:function(){return g}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(){return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.shuttles,c=d.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(f){return f.name})(h).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:f.name}),(0,e.jsx)(r.XI.Cell,{children:f.current_location}),(0,e.jsx)(r.XI.Cell,{children:x(f.status)})]},f.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,s.Ul)(function(f){var p;return((p=f.name)==null?void 0:p.toLowerCase())||f.name||f.ref})(c).map(function(f){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:f.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:f.name})]},f.ref)})})})]})},x=function(u){switch(u){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(M,j,t){"use strict";t.r(j),t.d(j,{AdminTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.id,d=m.title,h=m.name,c=m.state,f=m.opened_at,p=m.closed_at,C=m.opened_at_date,y=m.closed_at_date,O=m.actions,b=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return u("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return u("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return u("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},_)})})]})})})})}},43587:function(M,j,t){"use strict";t.r(j),t.d(j,{AgentCard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.entries,v=u.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:m.map(function(d){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return x(d.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:d.name}),(0,e.jsx)(n.XI.Cell,{children:d.value})]},d.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return x("electronic_warfare")}})})]})})}},56307:function(M,j,t){"use strict";t.r(j),t.d(j,{AiAirlock:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=i[m.power.main]||i[0],d=i[m.power.backup]||i[0],h=i[m.shock]||i[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.main,content:"Disrupt",onClick:function(){return u("disrupt-main")}}),children:[m.power.main?"Online":"Offline"," ",(!m.wires.main_1||!m.wires.main_2)&&"[Wires have been cut!]"||m.power.main_timeleft>0&&"["+m.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:d.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!m.power.backup,content:"Disrupt",onClick:function(){return u("disrupt-backup")}}),children:[m.power.backup?"Online":"Offline"," ",(!m.wires.backup_1||!m.wires.backup_2)&&"[Wires have been cut!]"||m.power.backup_timeleft>0&&"["+m.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:h.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(m.wires.shock&&m.shock===0),content:"Restore",onClick:function(){return u("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Temporary",onClick:function(){return u("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!m.wires.shock,content:"Permanent",onClick:function(){return u("shock-perm")}})]}),children:[m.shock===2?"Safe":"Electrified"," ",!m.wires.shock&&"[Wires have been cut!]"||m.shock_timeleft>0&&"["+m.shock_timeleft+"s]"||m.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.id_scanner?"power-off":"times",content:m.id_scanner?"Enabled":"Disabled",selected:m.id_scanner,disabled:!m.wires.id_scanner,onClick:function(){return u("idscan-toggle")}}),children:!m.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.locked?"lock":"unlock",content:m.locked?"Lowered":"Raised",selected:m.locked,disabled:!m.wires.bolts,onClick:function(){return u("bolt-toggle")}}),children:!m.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.lights?"power-off":"times",content:m.lights?"Enabled":"Disabled",selected:m.lights,disabled:!m.wires.lights,onClick:function(){return u("light-toggle")}}),children:!m.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.safe?"power-off":"times",content:m.safe?"Enabled":"Disabled",selected:m.safe,disabled:!m.wires.safe,onClick:function(){return u("safe-toggle")}}),children:!m.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.speed?"power-off":"times",content:m.speed?"Enabled":"Disabled",selected:m.speed,disabled:!m.wires.timing,onClick:function(){return u("speed-toggle")}}),children:!m.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:m.opened?"sign-out-alt":"sign-in-alt",content:m.opened?"Open":"Closed",selected:m.opened,disabled:m.locked||m.welded,onClick:function(){return u("open-close")}}),children:!!(m.locked||m.welded)&&(0,e.jsxs)("span",{children:["[Door is ",m.locked?"bolted":"",m.locked&&m.welded?" and ":"",m.welded?"welded":"","!]"]})})]})})]})})}},43108:function(M,j,t){"use strict";t.r(j),t.d(j,{AiRestorer:function(){return i},AiRestorerContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.AI_present,d=m.error,h=m.name,c=m.laws,f=m.isDead,p=m.restoring,C=m.health,y=m.ejectable;return(0,e.jsxs)(e.Fragment,{children:[d&&(0,e.jsx)(n.IC,{textAlign:"center",children:d}),!!y&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?h:"----------",disabled:!v,onClick:function(){return u("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:y?"System Status":h,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:f?"bad":"good",children:f?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:C,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!p&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:p,mt:1,onClick:function(){return u("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:c.map(function(O){return(0,e.jsx)(n.az,{className:"candystripe",children:O},O)})})]})]})}},75160:function(M,j,t){"use strict";t.r(j),t.d(j,{AiSupermatter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=function(u){var m=(0,s.Oc)().data,v=m.integrity_percentage,d=m.ambient_temp,h=m.ambient_pressure,c=m.detonating,f=(0,e.jsx)(x,{});return c&&(f=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:f})})},g=function(u){return(0,e.jsx)(i.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},x=function(u){var m=(0,s.Oc)().data,v=m.integrity_percentage,d=m.ambient_temp,h=m.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:d,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[d," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[h," kPa"]})]})})}},42537:function(M,j,t){"use strict";t.r(j),t.d(j,{AirAlarm:function(){return m}});var e=t(88095),s=t(5229),n=t(44583),r=t(4413),i=t(92514),a=t(1568),g=t(84905),x=t(10652),u=t(15665),m=function(b){var I=function(X){K(X)},_=(0,r.Oc)(),D=_.act,P=_.data,A=(0,n.useState)(""),R=A[0],K=A[1],N=P.locked&&!P.siliconUser&&!P.remoteUser;return(0,e.jsx)(g.p8,{width:440,height:650,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(u.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(d,{}),!N&&(0,e.jsx)(c,{screen:R,onScreen:I})]})})},v=function(b){var I=(0,r.Oc)().data,_=(I.environment_data||[]).filter(function(A){return A.value>=.01}),D={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},P=D[I.danger_level]||D[0];return(0,e.jsx)(i.wn,{title:"Air Status",children:(0,e.jsxs)(i.Ki,{children:[_.length>0&&(0,e.jsxs)(e.Fragment,{children:[_.map(function(A){var R=D[A.danger_level]||D[0];return(0,e.jsxs)(i.Ki.Item,{label:(0,a.wM)(A.name),color:R.color,children:[(0,s.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(i.Ki.Item,{label:"Local status",color:P.color,children:P.localStatusText}),(0,e.jsx)(i.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(i.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},d=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.target_temperature,A=D.rcon;return(0,e.jsx)(i.wn,{title:"Comfort Settings",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(i.$n,{selected:A===1,content:"Off",onClick:function(){return _("rcon",{rcon:1})}}),(0,e.jsx)(i.$n,{selected:A===2,content:"Auto",onClick:function(){return _("rcon",{rcon:2})}}),(0,e.jsx)(i.$n,{selected:A===3,content:"On",onClick:function(){return _("rcon",{rcon:3})}})]}),(0,e.jsx)(i.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(i.$n,{content:P,onClick:function(){return _("temperature")}})})]})})},h={home:{title:"Air Controls",component:function(){return f}},vents:{title:"Vent Controls",component:function(){return p}},scrubbers:{title:"Scrubber Controls",component:function(){return C}},modes:{title:"Operating Mode",component:function(){return y}},thresholds:{title:"Alarm Thresholds",component:function(){return O}}},c=function(b){var I=h[b.screen]||h.home,_=I.component();return(0,e.jsx)(i.wn,{title:I.title,buttons:b.screen&&(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onScreen()}}),children:(0,e.jsx)(_,{onScreen:b.onScreen})})},f=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.mode,A=D.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A?"exclamation-triangle":"exclamation",color:A&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return _(A?"reset":"alarm")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:P===3?"exclamation-triangle":"exclamation",color:P===3&&"danger",content:"Panic Siphon",onClick:function(){return _("mode",{mode:P===3?1:3})}}),(0,e.jsx)(i.az,{mt:2}),(0,e.jsx)(i.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return b.onScreen("vents")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return b.onScreen("scrubbers")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return b.onScreen("modes")}}),(0,e.jsx)(i.az,{mt:1}),(0,e.jsx)(i.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return b.onScreen("thresholds")}})]})},p=function(b){var I=(0,r.Oc)().data,_=I.vents;return!_||_.length===0?"Nothing to show":_.map(function(D){return(0,e.jsx)(x.Vent,{vent:D},D.id_tag)})},C=function(b){var I=(0,r.Oc)().data,_=I.scrubbers;return!_||_.length===0?"Nothing to show":_.map(function(D){return(0,e.jsx)(x.Scrubber,{scrubber:D},D.id_tag)})},y=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.modes;return!P||P.length===0?"Nothing to show":P.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(i.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return _("mode",{mode:A.mode})}}),(0,e.jsx)(i.az,{mt:1})]},A.mode)})},O=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:P.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,a.b_)(A.name),children:(0,a.wM)(A.name)})}),A.settings.map(function(R){return(0,e.jsx)("td",{children:(0,e.jsx)(i.$n,{content:(0,s.Mg)(R.selected,2),onClick:function(){return _("threshold",{env:R.env,var:R.val})}})},R.val)})]},A.name)})})]})}},63397:function(M,j,t){"use strict";t.r(j),t.d(j,{AlertModal:function(){return m}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(84905),g=t(18513),x=-1,u=1,m=function(h){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.autofocus,y=p.buttons,O=y===void 0?[]:y,b=p.large_buttons,I=p.message,_=I===void 0?"":I,D=p.timeout,P=p.title,A=(0,s.useState)(0),R=A[0],K=A[1],N=115+(_.length>30?Math.ceil(_.length/4):0)+(_.length&&b?5:0),k=325+(O.length>2?55:0),X=function(F){R===0&&F===x?K(O.length-1):R===O.length-1&&F===u?K(0):K(R+F)};return(0,e.jsxs)(a.p8,{height:N,title:P,width:k,children:[!!D&&(0,e.jsx)(g.Loader,{value:D}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(F){var J=window.event?F.which:F.keyCode;J===n.iy||J===n.Ri?f("choose",{choice:O[R]}):J===n.s6?f("cancel"):J===n.iU?(F.preventDefault(),X(x)):(J===n.aW||J===n.zh)&&(F.preventDefault(),X(u))},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(i.az,{color:"label",overflow:"hidden",children:_})}),(0,e.jsxs)(i.BJ.Item,{children:[!!C&&(0,e.jsx)(i.y5,{}),(0,e.jsx)(v,{selected:R})]})]})})})]})},v=function(h){var c=(0,r.Oc)().data,f=c.buttons,p=f===void 0?[]:f,C=c.large_buttons,y=c.swapped_buttons,O=h.selected;return(0,e.jsx)(i.so,{align:"center",direction:y?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:p==null?void 0:p.map(function(b,I){return C&&p.length<3?(0,e.jsx)(i.so.Item,{grow:!0,children:(0,e.jsx)(d,{button:b,id:I.toString(),selected:O===I})},I):(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(d,{button:b,id:I.toString(),selected:O===I})},I)})})},d=function(h){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,y=h.button,O=h.selected,b=y.length>7?y.length:7;return(0,e.jsx)(i.$n,{fluid:!!C,height:!!C&&2,onClick:function(){return f("choose",{choice:y})},m:.5,pl:2,pr:2,pt:C?.33:0,selected:O,textAlign:"center",width:!C&&b,children:C?y.toUpperCase():y})}},140:function(M,j,t){"use strict";t.r(j),t.d(j,{AlgaeFarm:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.usePower,d=m.materials,h=m.last_flow_rate,c=m.last_power_draw,f=m.inputDir,p=m.outputDir,C=m.input,y=m.output,O=m.errorText;return(0,e.jsx)(i.p8,{width:500,height:300,children:(0,e.jsxs)(i.p8.Content,{children:[O&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:O})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return u("toggle")}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[h," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[c," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),d.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:(0,s.ZH)(b.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:b.qty,maxValue:b.max,children:[b.qty,"/",b.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return u("ejectMaterial",{mat:b.name})}})]},b.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+f+")",children:C?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[C.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:C.name,children:[C.percent,"% (",C.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+p+")",children:y?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[y.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:y.name,children:[y.percent,"% (",y.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},14600:function(M,j,t){"use strict";t.r(j),t.d(j,{AppearanceChanger:function(){return x}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=function(y){var O=(0,i.Oc)(),b=O.act,I=O.config,_=O.data,D=_.name,P=_.specimen,A=_.gender,R=_.gender_id,K=_.hair_style,N=_.facial_hair_style,k=_.ear_style,X=_.tail_style,F=_.wing_style,J=_.markings,H=_.change_race,Y=_.change_gender,Z=_.change_eye_color,V=_.change_skin_tone,z=_.change_skin_color,Q=_.change_hair_color,ee=_.change_facial_hair_color,oe=_.change_hair,ne=_.change_facial_hair,ce=_.mapRef,de=I.title,ve=Z||V||z||Q||ee,pe=-1;H?pe=0:Y?pe=1:ve?pe=2:oe?pe=4:ne&&(pe=5);var me=(0,r.useState)(pe),be=me[0],we=me[1];return(0,e.jsx)(g.p8,{width:700,height:650,title:(0,n.jT)(de),children:(0,e.jsxs)(g.p8.Content,{children:[(0,e.jsx)(a.wn,{title:"Reflection",children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",children:D}),(0,e.jsx)(a.Ki.Item,{label:"Species",color:H?null:"grey",children:P}),(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",color:Y?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",color:ve?null:"grey",children:R?(0,n.ZH)(R):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Hair Style",color:oe?null:"grey",children:K?(0,n.ZH)(K):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Facial Hair Style",color:ne?null:"grey",children:N?(0,n.ZH)(N):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Ear Style",color:oe?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Tail Style",color:oe?null:"grey",children:X?(0,n.ZH)(X):"Not Set"}),(0,e.jsx)(a.Ki.Item,{label:"Wing Style",color:oe?null:"grey",children:F?(0,n.ZH)(F):"Not Set"})]})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.D1,{style:{width:"256px",height:"256px"},params:{id:ce,type:"map"}})})]})}),(0,e.jsxs)(a.tU,{children:[H?(0,e.jsx)(a.tU.Tab,{selected:be===0,onClick:function(){return we(0)},children:"Race"}):null,Y?(0,e.jsx)(a.tU.Tab,{selected:be===1,onClick:function(){return we(1)},children:"Gender & Sex"}):null,ve?(0,e.jsx)(a.tU.Tab,{selected:be===2,onClick:function(){return we(2)},children:"Colors"}):null,oe?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.tU.Tab,{selected:be===3,onClick:function(){return we(3)},children:"Hair"}),(0,e.jsx)(a.tU.Tab,{selected:be===5,onClick:function(){return we(5)},children:"Ear"}),(0,e.jsx)(a.tU.Tab,{selected:be===6,onClick:function(){return we(6)},children:"Tail"}),(0,e.jsx)(a.tU.Tab,{selected:be===7,onClick:function(){return we(7)},children:"Wing"}),(0,e.jsx)(a.tU.Tab,{selected:be===8,onClick:function(){return we(8)},children:"Markings"})]}):null,ne?(0,e.jsx)(a.tU.Tab,{selected:be===4,onClick:function(){return we(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(a.az,{height:"43%",children:[H&&be===0?(0,e.jsx)(u,{}):null,Y&&be===1?(0,e.jsx)(m,{}):null,ve&&be===2?(0,e.jsx)(v,{}):null,oe&&be===3?(0,e.jsx)(d,{}):null,ne&&be===4?(0,e.jsx)(h,{}):null,oe&&be===5?(0,e.jsx)(c,{}):null,oe&&be===6?(0,e.jsx)(f,{}):null,oe&&be===7?(0,e.jsx)(p,{}):null,oe&&be===8?(0,e.jsx)(C,{}):null]})]})})},u=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.species,D=I.specimen,P=(0,s.Ul)(function(A){return A.specimen})(_||[]);return(0,e.jsx)(a.wn,{title:"Species",fill:!0,scrollable:!0,children:P.map(function(A){return(0,e.jsx)(a.$n,{content:A.specimen,selected:D===A.specimen,onClick:function(){return b("race",{race:A.specimen})}},A.specimen)})})},m=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.gender,D=I.gender_id,P=I.genders,A=I.id_genders;return(0,e.jsx)(a.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Biological Sex",children:P.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===_,content:R.gender_name,onClick:function(){return b("gender",{gender:R.gender_key})}},R.gender_key)})}),(0,e.jsx)(a.Ki.Item,{label:"Gender Identity",children:A.map(function(R){return(0,e.jsx)(a.$n,{selected:R.gender_key===D,content:R.gender_name,onClick:function(){return b("gender_id",{gender_id:R.gender_key})}},R.gender_key)})})]})})},v=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.change_eye_color,D=I.change_skin_tone,P=I.change_skin_color,A=I.change_hair_color,R=I.change_facial_hair_color,K=I.eye_color,N=I.skin_color,k=I.hair_color,X=I.facial_hair_color,F=I.ears_color,J=I.ears2_color,H=I.tail_color,Y=I.tail2_color,Z=I.wing_color,V=I.wing2_color;return(0,e.jsxs)(a.wn,{title:"Colors",fill:!0,scrollable:!0,children:[_?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:K,mr:1}),(0,e.jsx)(a.$n,{content:"Change Eye Color",onClick:function(){return b("eye_color")}})]}):null,D?(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Change Skin Tone",onClick:function(){return b("skin_tone")}})}):null,P?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:N,mr:1}),(0,e.jsx)(a.$n,{content:"Change Skin Color",onClick:function(){return b("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:k,mr:1}),(0,e.jsx)(a.$n,{content:"Change Hair Color",onClick:function(){return b("hair_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:F,mr:1}),(0,e.jsx)(a.$n,{content:"Change Ears Color",onClick:function(){return b("ears_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:J,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Ears Color",onClick:function(){return b("ears2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:H,mr:1}),(0,e.jsx)(a.$n,{content:"Change Tail Color",onClick:function(){return b("tail_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Y,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Tail Color",onClick:function(){return b("tail2_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:Z,mr:1}),(0,e.jsx)(a.$n,{content:"Change Wing Color",onClick:function(){return b("wing_color")}})]}),(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:V,mr:1}),(0,e.jsx)(a.$n,{content:"Change Secondary Wing Color",onClick:function(){return b("wing2_color")}})]})]}):null,R?(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.BK,{color:X,mr:1}),(0,e.jsx)(a.$n,{content:"Change Facial Hair Color",onClick:function(){return b("facial_hair_color")}})]}):null]})},d=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.hair_style,D=I.hair_styles;return(0,e.jsx)(a.wn,{title:"Hair",fill:!0,scrollable:!0,children:D.map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("hair",{hair:P.hairstyle})},selected:P.hairstyle===_,content:P.hairstyle},P.hairstyle)})})},h=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.facial_hair_style,D=I.facial_hair_styles;return(0,e.jsx)(a.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:D.map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("facial_hair",{facial_hair:P.facialhairstyle})},selected:P.facialhairstyle===_,content:P.facialhairstyle},P.facialhairstyle)})})},c=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.ear_style,D=I.ear_styles;return(0,e.jsxs)(a.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("ear",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(P){return P.name.toLowerCase()})(D).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("ear",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},f=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.tail_style,D=I.tail_styles;return(0,e.jsxs)(a.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("tail",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(P){return P.name.toLowerCase()})(D).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("tail",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},p=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.wing_style,D=I.wing_styles;return(0,e.jsxs)(a.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.$n,{onClick:function(){return b("wing",{clear:!0})},selected:_===null,content:"-- Not Set --"}),(0,s.Ul)(function(P){return P.name.toLowerCase()})(D).map(function(P){return(0,e.jsx)(a.$n,{onClick:function(){return b("wing",{ref:P.instance})},selected:P.name===_,content:P.name},P.instance)})]})},C=function(y){var O=(0,i.Oc)(),b=O.act,I=O.data,_=I.markings;return(0,e.jsxs)(a.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{content:"Add Marking",onClick:function(){return b("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(a.Ki,{children:_.map(function(D){return(0,e.jsxs)(a.Ki.Item,{label:D.marking_name,children:[(0,e.jsx)(a.BK,{color:D.marking_color,mr:1}),(0,e.jsx)(a.$n,{content:"Change Color",onClick:function(){return b("marking",{todo:4,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"-",onClick:function(){return b("marking",{todo:0,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move down",onClick:function(){return b("marking",{todo:3,name:D.marking_name})}}),(0,e.jsx)(a.$n,{content:"Move up",onClick:function(){return b("marking",{todo:2,name:D.marking_name})}})]},D.marking_name)})})]})}},8536:function(M,j,t){"use strict";t.r(j),t.d(j,{ArcadeBattle:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.name,v=u.temp,d=u.enemyAction,h=u.enemyName,c=u.playerHP,f=u.playerMP,p=u.enemyHP,C=u.enemyMP,y=u.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:h,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!y&&d})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:c,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[c,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:f,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[f,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[p,"HP"]})})})})]}),y&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return x("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return x("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return x("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return x("charge")},content:"Recharge!"})})]})]})})})}},59854:function(M,j,t){"use strict";t.r(j),t.d(j,{AreaScrubberControl:function(){return g}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=function(u){var m=(0,r.Oc)(),v=m.act,d=m.data,h=(0,n.useState)(!1),c=h[0],f=h[1],p=d.scrubbers;return p?(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(i.wn,{children:[(0,e.jsxs)(i.so,{wrap:"wrap",children:[(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:c,onClick:function(){return f(!c)}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(i.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(i.so,{wrap:"wrap",children:p.map(function(C){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(x,{scrubber:C,showArea:c})},C.id)})})]})})}):(0,e.jsxs)(i.wn,{title:"Error",children:[(0,e.jsx)(i.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(i.$n,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})]})},x=function(u){var m=(0,r.Oc)().act,v=u.scrubber,d=u.showArea;return(0,e.jsxs)(i.wn,{title:v.name,children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return m("toggle",{id:v.id})}}),(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(i.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(i.Ki.Item,{label:"Load",children:[v.load," W"]}),d&&(0,e.jsx)(i.Ki.Item,{label:"Area",children:(0,s.Sn)(v.area)})]})]})}},20251:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyInfrared:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:m,onClick:function(){return x("state")},children:m?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return x("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyProx:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.timing,h=v.time,c=v.range,f=v.maxRange,p=v.scanning;return(0,e.jsx)(a.p8,{children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:d,onClick:function(){return m("timing")},children:d?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(C){return(0,i.fU)((0,s.LI)(C))},onDrag:function(C,y){return m("set_time",{time:y})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:c,maxValue:f,onDrag:function(C,y){return m("range",{range:y})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:p?"lock":"lock-open",selected:p,onClick:function(){return m("scanning")},children:p?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(M,j,t){"use strict";t.r(j),t.d(j,{AssemblyTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.timing,h=v.time;return(0,e.jsx)(a.p8,{children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:d,onClick:function(){return m("timing")},children:d?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:h/10,minValue:0,maxValue:600,format:function(c){return(0,i.fU)((0,s.LI)(c))},onDrag:function(c,f){return m("set_time",{time:f})}})})})})})})}},49775:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosAlertConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.priority_alarms||[],v=u.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[m.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),m.map(function(d){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:d.name,color:"bad",onClick:function(){return x("clear",{ref:d.ref})}})},d.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(d){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:d.name,color:"average",onClick:function(){return x("clear",{ref:d.ref})}})},d.name)})]})})})})}},42623:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosControl:function(){return u},AtmosControlContent:function(){return m}});var e=t(88095),s=t(11358),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(47868),x=(0,g.h)("fuck"),u=function(v){return(0,e.jsx)(a.p8,{width:600,height:440,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=d.config,p=(0,s.Ul)(function(P){return P.name})(c.alarms||[]),C=(0,n.useState)(0),y=C[0],O=C[1],b=(0,n.useState)(1),I=b[0],_=b[1],D;return y===0?D=(0,e.jsx)(i.wn,{title:"Alarms",children:p.map(function(P){return(0,e.jsx)(i.$n,{content:P.name,color:P.danger===2?"bad":P.danger===1?"average":"",onClick:function(){return h("alarm",{alarm:P.ref})}},P.name)})}):y===1&&(D=(0,e.jsx)(i.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(i.tx,{onZoom:function(P){return _(P)},children:p.filter(function(P){return~~P.z===~~f.mapZLevel}).map(function(P){return(0,e.jsx)(i.tx.Marker,{x:P.x,y:P.y,zoom:I,icon:"bell",tooltip:P.name,color:P.danger?"red":"green",onClick:function(){return h("alarm",{alarm:P.ref})}},P.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(i.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(i.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(i.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(i.az,{m:2,children:D})]})}},45440:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosFilter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:u.on?"power-off":"times",content:u.on?"On":"Off",selected:u.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:u.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(u.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,d){return x("rate",{rate:d})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:u.rate===u.max_rate,onClick:function(){return x("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:m.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return x("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(M,j,t){"use strict";t.r(j),t.d(j,{AtmosMixer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:u.on?"power-off":"times",content:u.on?"On":"Off",selected:u.on,onClick:function(){return x("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(u.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:u.max_pressure,step:10,onChange:function(m,v){return x("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:u.set_pressure===u.max_pressure,onClick:function(){return x("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+u.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:u.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+u.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:u.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(m,v){return x("node2",{concentration:v})}})})]})})})})}},80281:function(M,j,t){"use strict";t.r(j),t.d(j,{Autolathe:function(){return c}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(84905),x=t(47926);function u(f,p){(p==null||p>f.length)&&(p=f.length);for(var C=0,y=new Array(p);C=f.length?{done:!0}:{done:!1,value:f[y++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var h=function(f,p,C){var y=function(){var D=I.value,P=p.find(function(A){return A.name===D});if(!P)return"continue";if(P.amount=0)&&(C[O]=f[O]);return C}var u={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},m=function(f){var p=function(J){P(J)},C=function(J){K(J)},y=function(J){X(J)},O=(0,r.Oc)(),b=O.act,I=O.data,_=(0,n.useState)(""),D=_[0],P=_[1],A=(0,n.useState)("Alphabetical"),R=A[0],K=A[1],N=(0,n.useState)(!1),k=N[0],X=N[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:I.processing&&(0,e.jsx)(i.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.wn,{children:[I.points," points available.",(0,e.jsx)(i.$n,{ml:1,icon:"blender",onClick:function(){return b("activate")},children:"Activate"}),(0,e.jsx)(i.$n,{ml:1,icon:"eject",disabled:!I.beaker,onClick:function(){return b("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(d,{searchText:D,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(v,{searchText:D,sortOrder:R,descending:k,onSearchText:p,onSortOrder:C,onDescending:y})]})})})},v=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.points,b=y.items,I=(0,s.XZ)(f.searchText,function(P){return P[0]}),_=!1,D=Object.entries(b).map(function(P,A){var R=Object.entries(P[1]).filter(I).map(function(K){return K[1].affordable=O>=K[1].price/y.build_eff,K[1]}).sort(u[f.sortOrder]);if(R.length!==0)return f.descending&&(R=R.reverse()),_=!0,(0,e.jsx)(c,{title:P[0],items:R},P[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:_?D:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},d=function(f){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",value:f.searchText,width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:f.sortOrder,options:Object.keys(u),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},h=function(f,p){return!(!f.affordable||f.reagent&&!p.beaker)},c=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=f.title,b=f.items,I=x(f,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:O},I,{children:b.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!h(_,y),content:(_.price/y.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},90233:function(M,j,t){"use strict";t.r(j),t.d(j,{BodyDesigner:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.menu,y=p.disk,O=p.diskStored,b=p.activeBodyRecord,I=d[C];return(0,e.jsx)(i.p8,{width:400,height:650,children:(0,e.jsxs)(i.p8.Content,{children:[y?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return f("savetodisk")},disabled:!b}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return f("loadfromdisk")},disabled:!O}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return f("ejectdisk")}})]}):null,I]})})},g=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return f("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return f("menu",{menu:"Stock Records"})}})]})},x=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",content:y.name,onClick:function(){return f("view_brec",{view_brec:y.recref})}},y.name)})})},u=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:C.map(function(y){return(0,e.jsx)(r.$n,{icon:"eye",content:y,onClick:function(){return f("view_stock_brec",{view_stock_brec:y})}},y)})})},m=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord,y=p.mapRef;return C?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:C.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:C.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,s.ZH)(C.gender),onClick:function(){return f("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:C.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[C.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!C.booc,onClick:function(){return f("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:y,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",content:C.scale,onClick:function(){return f("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(C.styles).map(function(O){var b=C.styles[O];return(0,e.jsxs)(r.Ki.Item,{label:O,children:[b.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:b.style,onClick:function(){return f("href_conversion",{target_href:b.styleHref,target_value:1})}}):null,b.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:b.color,onClick:function(){return f("href_conversion",{target_href:b.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color,style:{border:"1px solid #fff"}})]}):null,b.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:b.color2,onClick:function(){return f("href_conversion",{target_href:b.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:b.color2,style:{border:"1px solid #fff"}})]}):null]},O)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return f("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(C.markings).map(function(O){var b=C.markings[O];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return f("href_conversion",{target_href:"marking_remove",target_value:O})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:b,content:O,onClick:function(){return f("href_conversion",{target_href:"marking_color",target_value:O})}})})]})},O)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return f("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:C&&C.booc||"ERROR: Body record not found!"})},d={Main:(0,e.jsx)(g,{}),"Body Records":(0,e.jsx)(x,{}),"Stock Records":(0,e.jsx)(u,{}),"Specific Record":(0,e.jsx)(m,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(M,j,t){"use strict";t.r(j),t.d(j,{BodyScanner:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["hasBorer","bad",function(D){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(D){return"Viral pathogen detected in blood stream."}],["blind","average",function(D){return"Cataracts detected."}],["colourblind","average",function(D){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(D){return"Retinal misalignment detected."}],["humanPrey","average",function(D){return"Foreign Humanoid(s) detected: "+D.humanPrey}],["livingPrey","average",function(D){return"Foreign Creature(s) detected: "+D.livingPrey}],["objectPrey","average",function(D){return"Foreign Object(s) detected: "+D.objectPrey}]],x=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],u={average:[.25,.5],bad:[.5,1/0]},m=function(D,P){for(var A=[],R=0;R0?D.reduce(function(P,A){return P===null?A:(0,e.jsxs)(e.Fragment,{children:[P,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},d=function(D){if(D>100){if(D<300)return"mild infection";if(D<400)return"mild infection+";if(D<500)return"mild infection++";if(D<700)return"acute infection";if(D<800)return"acute infection+";if(D<900)return"acute infection++";if(D>=900)return"septic"}return""},h=function(D){var P=(0,n.Oc)().data,A=P.occupied,R=P.occupant,K=R===void 0?{}:R,N=A?(0,e.jsx)(c,{occupant:K}):(0,e.jsx)(_,{});return(0,e.jsx)(i.p8,{width:690,height:600,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:N})})},c=function(D){var P=D.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(f,{occupant:P}),(0,e.jsx)(p,{occupant:P}),(0,e.jsx)(C,{occupant:P}),(0,e.jsx)(y,{occupant:P}),(0,e.jsx)(b,{organs:P.extOrgan}),(0,e.jsx)(I,{organs:P.intOrgan})]})},f=function(D){var P=(0,n.Oc)(),A=P.act,R=P.data,K=R.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,s.LI)(K.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,s.LI)(R.occupant.weight)+"lbs, "+(0,s.LI)(R.occupant.weight/2.20463)+"kgs"})]})})},p=function(D){var P=D.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:P.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),P.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:P.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),P.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},C=function(D){var P=D.occupant,A=P.hasBorer||P.blind||P.colourblind||P.nearsighted||P.hasVirus;return A=A||P.humanPrey||P.livingPrey||P.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:g.map(function(R,K){if(P[R[0]])return(0,e.jsx)(r.az,{color:R[1],bold:R[1]==="bad",children:R[2](P)},K)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},y=function(D){var P=D.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:m(x,function(A,R,K){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!R&&R[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(O,{value:P[A[1]],marginBottom:K0&&"0.5rem",value:P.totalLoss/100,ranges:u,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!P.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,s.LI)(P.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!P.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,s.LI)(P.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,s.LI)(P.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([P.internalBleeding&&"Internal bleeding",!!P.status.bleeding&&"External bleeding",P.lungRuptured&&"Ruptured lung",P.destroyed&&"Destroyed",!!P.status.broken&&P.status.broken,d(P.germ_level),!!P.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!P.status.splinted&&"Splinted",!!P.status.robotic&&"Robotic",!!P.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(P.implants.map(function(R){return R.known?R.name:"Unknown object"}))]})]})]},A)})]})})},I=function(D){return D.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),D.organs.map(function(P,A){return(0,e.jsxs)(r.XI.Row,{style:{textTransform:"capitalize"},children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:P.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:P.maxHealth,value:P.damage/100,mt:A>0&&"0.5rem",ranges:u,children:(0,s.LI)(P.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([d(P.germ_level),!!P.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([P.robotic===1&&"Robotic",P.robotic===2&&"Assisted",!!P.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},_=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},57199:function(M,j,t){"use strict";t.r(j),t.d(j,{BombTester:function(){return u}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(){return a=Object.assign||function(v){for(var d=1;d.5,b=Math.random()>.5;return f.state={x:O?p:0,y:b?C:0,reverseX:!1,reverseY:!1},f.process=setInterval(function(){f.setState(function(I){var _=a({},I);return _.reverseX?_.x-y<-5?(_.reverseX=!1,_.x+=y):_.x-=y:_.x+y>p?(_.reverseX=!0,_.x-=y):_.x+=y,_.reverseY?_.y-y<-20?(_.reverseY=!1,_.y+=y):_.y-=y:_.y+y>C?(_.reverseY=!0,_.y-=y):_.y+=y,_})},1),f}var h=d.prototype;return h.componentWillUnmount=function(){clearInterval(this.process)},h.render=function(){var f=this.state,p=f.x,C=f.y,y={position:"relative",left:p+"px",top:C+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:y,name:"bomb",size:10,color:"red"})})})},d}(s.Component)},95678:function(M,j,t){"use strict";t.r(j),t.d(j,{BotanyEditor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.activity,v=u.degradation,d=u.disk,h=u.sourceName,c=u.locus,f=u.loaded;return m?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:d&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:h}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:c})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:f&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:f})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(M,j,t){"use strict";t.r(j),t.d(j,{BotanyIsolator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.geneMasks,v=u.activity,d=u.degradation,h=u.disk,c=u.loaded,f=u.hasGenetics,p=u.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:f&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[d,"%"]}),h&&m.length&&m.map(function(C){return(0,e.jsx)(n.Ki.Item,{label:C.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return x("get_gene",{get_gene:C.tag})},children:"Extract"})},C.mask)})||null]}),h&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return x("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),h&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:c&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:c})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return x("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(M,j,t){"use strict";t.r(j),t.d(j,{BrigTimer:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data;return(0,e.jsx)(a.p8,{width:300,height:138,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return m(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return m("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(d){return(0,i.fU)((0,s.LI)(d))},onDrag:function(d,h){return m("time",{time:h})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_short/10),onClick:function(){return m("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_medium/10),onClick:function(){return m("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,i.fU)(v.preset_long/10),onClick:function(){return m("preset",{preset:"long"})}})})]})]})})})}},96524:function(M,j,t){"use strict";t.r(j),t.d(j,{CameraConsole:function(){return d},CameraConsoleContent:function(){return h},prevNextCamera:function(){return m},selectCameras:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),u=t(84905),m=function(c,f){var p,C;if(!f)return[];var y=c.findIndex(function(O){return O.name===f.name});return[(p=c[y-1])==null?void 0:p.name,(C=c[y+1])==null?void 0:C.name]},v=function(c,f,p){f===void 0&&(f=""),p===void 0&&(p="");var C=(0,i.XZ)(f,function(y){return y.name});return(0,n.L)([(0,s.pb)(function(y){return y==null?void 0:y.name}),f&&(0,s.pb)(C),p&&(0,s.pb)(function(y){return y.networks.includes(p)}),(0,s.Ul)(function(y){return y.name})])(c)},d=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,y=C.mapRef,O=C.activeCamera,b=v(C.cameras),I=m(b,O),_=I[0],D=I[1];return(0,e.jsxs)(u.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(u.p8.Content,{scrollable:!0,children:(0,e.jsx)(h,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),O&&O.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(x.$n,{icon:"chevron-left",disabled:!_,onClick:function(){return p("switch_camera",{name:_})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",disabled:!D,onClick:function(){return p("switch_camera",{name:D})}}),"| PAN:",(0,e.jsx)(x.$n,{icon:"chevron-left",onClick:function(){return p("pan",{dir:8})}}),(0,e.jsx)(x.$n,{icon:"chevron-up",onClick:function(){return p("pan",{dir:1})}}),(0,e.jsx)(x.$n,{icon:"chevron-right",onClick:function(){return p("pan",{dir:4})}}),(0,e.jsx)(x.$n,{icon:"chevron-down",onClick:function(){return p("pan",{dir:2})}})]}),(0,e.jsx)(x.D1,{className:"CameraConsole__map",params:{id:y,type:"map"}})]})]})},h=function(c){var f=(0,g.Oc)(),p=f.act,C=f.data,y=(0,a.useState)(""),O=y[0],b=y[1],I=(0,a.useState)(""),_=I[0],D=I[1],P=C.activeCamera,A=C.allNetworks;A.sort();var R=v(C.cameras,O,_);return(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(K,N){return b(N)}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.ms,{mb:1,width:_?"155px":"177px",displayText:_||"No Filter",options:A,onSelected:function(K){return D(K)}})}),_?(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){D("")}})}):""]})}),(0,e.jsx)(x.so.Item,{height:"100%",children:(0,e.jsx)(x.wn,{fill:!0,scrollable:!0,children:R.map(function(K){return(0,e.jsx)("div",{title:K.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",P&&K.name===P.name&&"Button--selected"]),onClick:function(){return p("switch_camera",{name:K.name})},children:K.name},K.name)})})})]})}},60997:function(M,j,t){"use strict";t.r(j),t.d(j,{Canister:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.connected,h=v.can_relabel,c=v.pressure,f=v.releasePressure,p=v.defaultReleasePressure,C=v.minReleasePressure,y=v.maxReleasePressure,O=v.valveOpen,b=v.holding;return(0,e.jsx)(a.p8,{width:360,height:242,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!h,content:"Relabel",onClick:function(){return m("relabel")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:c,format:function(I){return I<1e4?(0,s.Mg)(I)+" kPa":(0,i.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!O&&"yellow",value:f,unit:"kPa",minValue:C,maxValue:y,stepPixelSize:1,onDrag:function(I,_){return m("pressure",{pressure:_})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return m("pressure",{pressure:y})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return m("pressure",{pressure:p})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:O?b?"caution":"danger":null,content:O?"Open":"Closed",onClick:function(){return m("valve")}})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:d?"plug":"times",color:d?"good":"bad"}),(0,e.jsx)(r.m_,{content:d?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!b&&(0,e.jsx)(r.$n,{icon:"eject",color:O&&"danger",content:"Eject",onClick:function(){return m("eject")}}),children:[!!b&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:b.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:b.pressure})," kPa"]})]}),!b&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(M,j,t){"use strict";t.r(j),t.d(j,{Canvas:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(){return a=Object.assign||function(c){for(var f=1;f=0)&&(p[y]=c[y]);return p}function u(c,f){return u=Object.setPrototypeOf||function(C,y){return C.__proto__=y,C},u(c,f)}var m=24,v=function(c){"use strict";g(f,c);function f(C){var y;return y=c.call(this,C)||this,y.canvasRef=(0,s.createRef)(),y.onCVClick=C.onCanvasClick,y}var p=f.prototype;return p.componentDidMount=function(){this.drawCanvas(this.props)},p.componentDidUpdate=function(){this.drawCanvas(this.props)},p.drawCanvas=function(y){var O=this.canvasRef.current.getContext("2d"),b=y.value,I=b.length;if(I){var _=b[0].length,D=Math.round(this.canvasRef.current.width/I),P=Math.round(this.canvasRef.current.height/_);O.save(),O.scale(D,P);for(var A=0;A=0)&&(p[y]=c[y]);return p}var u={Alphabetical:function(c,f){return c.name>f.name},"By availability":function(c,f){return-(c.affordable-f.affordable)},"By price":function(c,f){return c.price-f.price}},m=function(){var c=function(K){O(K)},f=function(K){_(K)},p=function(K){A(K)},C=(0,n.useState)(""),y=C[0],O=C[1],b=(0,n.useState)("Alphabetical"),I=b[0],_=b[1],D=(0,n.useState)(!1),P=D[0],A=D[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsx)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{searchText:y,sortOrder:I,descending:P,onSearchText:c,onSortOrder:f,onDescending:p}),(0,e.jsx)(d,{searchText:y,sortOrder:I,descending:P,onSearchText:c,onSortOrder:f,onDescending:p})]})})})},v=function(c){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(f,p){return c.onSearchText(p)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:c.sortOrder,options:Object.keys(u),width:"100%",lineHeight:"19px",onSelected:function(f){return c.onSortOrder(f)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:c.descending?"arrow-down":"arrow-up",height:"19px",tooltip:c.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return c.onDescending(!c.descending)}})})]})})},d=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,y=C.points,O=C.items,b=(0,s.XZ)(c.searchText,function(D){return D[0]}),I=!1,_=Object.entries(O).map(function(D,P){var A=Object.entries(D[1]).filter(b).map(function(R){return R[1].affordable=y>=R[1].price,R[1]}).sort(u[c.sortOrder]);if(A.length!==0)return c.descending&&(A=A.reverse()),I=!0,(0,e.jsx)(h,{title:D[0],items:A},D[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:I?_:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(c){var f=(0,r.Oc)(),p=f.act,C=f.data,y=c.title,O=c.items,b=x(c,["title","items"]);return(0,e.jsx)(i.Nt,g({open:!0,title:y},b,{children:O.map(function(I){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(i.$n,{content:I.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return p("purchase",{cat:y,name:I.name,price:I.price,restriction:I.restriction})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},I.name)})}))}},36136:function(M,j,t){"use strict";t.r(j),t.d(j,{CharacterDirectory:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},g=function(v){var d=function(R){I(R)},h=(0,n.Oc)(),c=h.act,f=h.data,p=f.personalVisibility,C=f.personalTag,y=f.personalErpTag,O=(0,s.useState)(null),b=O[0],I=O[1],_=(0,s.useState)(!1),D=_[0],P=_[1];return(0,e.jsx)(i.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:b&&(0,e.jsx)(x,{overlay:b,onOverlay:d})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:D?"toggle-on":"toggle-off",selected:D,content:D?"On":"Off",onClick:function(){return P(!D)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:p?"Shown":"Not Shown",onClick:function(){return c("setVisible",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:C,onClick:function(){return c("setTag",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:y,onClick:function(){return c("setErpTag",{overwrite_prefs:D})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return c("editAd",{overwrite_prefs:D})}})})]})}),(0,e.jsx)(u,{onOverlay:d})]})})})},x=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:a(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},u=function(v){var d=function(A){b(A)},h=function(A){D(A)},c=(0,n.Oc)(),f=c.act,p=c.data,C=p.directory,y=(0,s.useState)("name"),O=y[0],b=y[1],I=(0,s.useState)("name"),_=I[0],D=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return f("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(m,{id:"name",sortId:O,sortOrder:_,onSortId:d,onSortOrder:h,children:"Name"}),(0,e.jsx)(m,{id:"species",sortId:O,sortOrder:_,onSortId:d,onSortOrder:h,children:"Species"}),(0,e.jsx)(m,{id:"tag",sortId:O,sortOrder:_,onSortId:d,onSortOrder:h,children:"Vore Tag"}),(0,e.jsx)(m,{id:"erptag",sortId:O,sortOrder:_,onSortId:d,onSortOrder:h,children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),C.sort(function(P,A){var R=_?1:-1;return P[O].localeCompare(A[O])*R}).map(function(P,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:a(P.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:P.name}),(0,e.jsx)(r.XI.Cell,{children:P.species}),(0,e.jsx)(r.XI.Cell,{children:P.tag}),(0,e.jsx)(r.XI.Cell,{children:P.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(P)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},m=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=v.id,p=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==f&&"transparent",onClick:function(){v.sortId===f?v.onSortOrder(!v.sortOrder):(v.onSortId(f),v.onSortOrder(!0))},children:[p,v.sortId===f&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(M,j,t){"use strict";t.r(j),t.d(j,{CheckboxInput:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(86808),g=t(84905),x=t(12035),u=t(18513),m=function(v){var d=(0,r.Oc)().data,h=d.items,c=h===void 0?[]:h,f=d.min_checked,p=d.max_checked,C=d.message,y=d.timeout,O=d.title,b=(0,n.useState)([]),I=b[0],_=b[1],D=(0,n.useState)(""),P=D[0],A=D[1],R=(0,s.XZ)(P,function(k){return k}),K=c.filter(R),N=function(k){var X=I.includes(k)?I.filter(function(F){return F!==k}):[].concat(I,[k]);_(X)};return(0,e.jsxs)(g.p8,{title:O,width:425,height:300,children:[!!y&&(0,e.jsx)(u.Loader,{value:y}),(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsxs)(i.IC,{info:!0,textAlign:"center",children:[(0,s.jT)(C)," ",f>0&&" (Min: "+f+")",p<50&&" (Max: "+p+")"]})}),(0,e.jsx)(i.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(i.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(i.XI,{children:K.map(function(k,X){return(0,e.jsx)(a.Hj,{className:"candystripe",children:(0,e.jsx)(a.nA,{children:(0,e.jsx)(i.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=p&&!I.includes(k),fluid:!0,onClick:function(){return N(k)},children:k})})},X)})})})}),(0,e.jsxs)(i.BJ,{m:1,mb:0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(i.In,{name:"search",mt:.5})})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.pd,{fluid:!0,value:P,onInput:function(k,X){return A(X)}})})]}),(0,e.jsx)(i.BJ.Item,{mt:.7,children:(0,e.jsx)(i.wn,{children:(0,e.jsx)(x.InputButtons,{input:I})})})]})})]})}},6908:function(M,j,t){"use strict";t.r(j),t.d(j,{ChemDispenser:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(62386),i=t(84905),a=[5,10,20,30,40,60],g=[1,5,10],x=function(d){return(0,e.jsx)(i.p8,{width:390,height:655,children:(0,e.jsxs)(i.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(u,{}),(0,e.jsx)(m,{}),(0,e.jsx)(v,{})]})})},u=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:a.map(function(C,y){return(0,e.jsx)(n.$n,{textAlign:"center",selected:p===C,content:C+"u",m:"0",onClick:function(){return c("amount",{amount:C})}},y)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:p,minValue:1,maxValue:120,onDrag:function(C,y){return c("amount",{amount:y})}})})]})})},m=function(d){for(var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.chemicals,C=p===void 0?[]:p,y=[],O=0;O<(C.length+1)%3;O++)y.push(!0);return(0,e.jsx)(n.wn,{title:f.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[C.map(function(b,I){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:b.title+" ("+b.amount+")",onClick:function(){return c("dispense",{reagent:b.id})}})},I)}),y.map(function(b,I){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},v=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.isBeakerLoaded,C=f.beakerCurrentVolume,y=f.beakerMaxVolume,O=f.beakerContents,b=O===void 0?[]:O;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!p&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[C," / ",y," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!p,onClick:function(){return c("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:p,beakerContents:b,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return c("remove",{reagent:I.id,amount:-1})}}),g.map(function(_,D){return(0,e.jsx)(n.$n,{content:_,onClick:function(){return c("remove",{reagent:I.id,amount:_})}},D)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return c("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},75191:function(M,j,t){"use strict";t.r(j),t.d(j,{ChemMaster:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62386),a=t(5425),g=[1,5,10,30,60],x=null,u=function(p){var C=(0,s.Oc)(),y=C.act,O=C.data,b=p.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:O.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:b.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(b.desc||"").length>0?b.desc:"N/A"}),b.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:b.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:b.blood_dna})]}),!O.condi&&(0,e.jsx)(n.$n,{icon:O.printing?"spinner":"print",disabled:O.printing,iconSpin:!!O.printing,ml:"0.5rem",content:"Print",onClick:function(){return y("print",{idx:b.idx,beaker:p.args.beaker})}})]})})})},m=function(p){var C=(0,s.Oc)().data,y=C.condi,O=C.beaker,b=C.beaker_reagents,I=b===void 0?[]:b,_=C.buffer_reagents,D=_===void 0?[]:_,P=C.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(a.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:O,beakerReagents:I,bufferNonEmpty:D.length>0}),(0,e.jsx)(d,{mode:P,bufferReagents:D}),(0,e.jsx)(h,{isCondiment:y,bufferNonEmpty:D.length>0})]})]})},v=function(p){var C=(0,s.Oc)(),y=C.act,O=C.data,b=p.beaker,I=p.beakerReagents,_=p.bufferNonEmpty,D=_?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!b,content:"Eject and Clear Buffer",onClick:function(){return y("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!b,content:"Eject and Clear Buffer",onClick:function(){return y("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:D,children:b?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(P,A){return(0,e.jsxs)(n.az,{mb:A0?(0,e.jsx)(i.BeakerContents,{beakerLoaded:!0,beakerContents:b,buttons:function(I,_){return(0,e.jsxs)(n.az,{mb:_1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:i.lm.damageType.oxy,inline:!0,children:K[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.toxin,inline:!0,children:K[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.brute,inline:!0,children:K[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:i.lm.damageType.burn,inline:!0,children:K[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:R}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!b.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return O("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return O("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return O("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!b.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return O("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!b.podready,icon:"user-plus",content:"Clone",onClick:function(){return O("clone",{ref:_})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return O("del_rec")}})]})]})})},m=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.menu;return(0,a.modalRegisterBodyOverride)("view_rec",u),(0,e.jsxs)(g.p8,{children:[(0,e.jsx)(a.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(p,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(d,{})})]})]})},v=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I===1,icon:"home",onClick:function(){return O("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:I===2,icon:"folder",onClick:function(){return O("menu",{num:2})},children:"Records"})]})},d=function(C){var y=(0,n.Oc)().data,O=y.menu,b;return O===1?b=(0,e.jsx)(h,{}):O===2&&(b=(0,e.jsx)(c,{})),b},h=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.loading,_=b.scantemp,D=b.occupant,P=b.locked,A=b.can_brainscan,R=b.scan_mode,K=b.numberofpods,N=b.pods,k=b.selected_pod,X=P&&!!D;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!D,selected:X,icon:X?"toggle-on":"toggle-off",content:X?"Engaged":"Disengaged",onClick:function(){return O("lock")}}),(0,e.jsx)(r.$n,{disabled:X||!D,icon:"user-slash",content:"Eject Occupant",onClick:function(){return O("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:I?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:_.color,children:_.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:R?"brain":"male",content:R?"Brain":"Body",onClick:function(){return O("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!D||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return O("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:K?N.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:k===F.pod,icon:k===F.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return O("selectpod",{ref:F.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+F.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",J+1]}),(0,e.jsxs)(r.az,{bold:!0,color:F.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.biomass>=150?"circle":"circle-o"}),"\xA0",F.biomass]}),H]},J)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},c=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.records;return I.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:I.map(function(_,D){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:_.realname,onClick:function(){return O("view_rec",{ref:_.record})}},D)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},f=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.temp;if(!(!I||!I.text||I.text.length<=0)){var _,D=(_={},_[I.style]=!0,_);return(0,e.jsxs)(r.IC,x({},D,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return O("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},p=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.scanner,_=b.numberofpods,D=b.autoallowed,P=b.autoprocess,A=b.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:P,icon:P?"toggle-on":"toggle-off",content:P?"Enabled":"Disabled",onClick:function(){return O("autoprocess",{on:P?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return O("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:I?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:_?(0,e.jsxs)(r.az,{color:"good",children:[_," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},40200:function(M,j,t){"use strict";t.r(j),t.d(j,{ColorMate:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.items,v=u.activecolor,d=Math.min(270+m.length*15,600);return(0,e.jsx)(r.p8,{width:300,height:d,children:(0,e.jsx)(r.p8.Content,{children:m.length&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Paint",children:(0,e.jsxs)(n.so,{justify:"center",align:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.az,{backgroundColor:v,width:"120px",height:"120px"})}),(0,e.jsxs)(n.so.Item,{basis:"50% ",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"eye-dropper",onClick:function(){return x("select")},children:"Select Color"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"fill-drip",onClick:function(){return x("paint")},children:"Paint Items"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"tint-slash",onClick:function(){return x("clear")},children:"Remove Paintjob"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return x("eject")},children:"Eject Items"})]})]})}),(0,e.jsx)(n.wn,{title:"Items",children:m.map(function(h,c){return(0,e.jsxs)(n.az,{children:["#",c+1,": ",h]},c)})})]})||(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"No items inserted."})})})})}},48022:function(M,j,t){"use strict";t.r(j),t.d(j,{CommunicationsConsole:function(){return i},CommunicationsConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.menu_state,p=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",f,"Please report this to NT Technical Support."]});return f===1?p=(0,e.jsx)(g,{}):f===2?p=(0,e.jsx)(m,{}):f===3&&(p=(0,e.jsx)(u,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x,{}),p]})},g=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.messages,p=c.msg_cooldown,C=c.emagged,y=c.cc_cooldown,O=c.str_security_level,b=c.levels,I=c.authmax,_=c.security_level,D=c.security_level_color,P=c.authenticated,A=c.atcsquelch,R=c.boss_short,K="View ("+f.length+")",N="Make Priority Announcement";p>0&&(N+=" ("+p+"s)");var k=C?"Message [UNKNOWN]":"Message "+R;y>0&&(k+=" ("+y+"s)");var X=O,F=b.map(function(J){return(0,e.jsx)(n.$n,{icon:J.icon,content:J.name,disabled:!P,selected:J.id===_,onClick:function(){return h("newalertlevel",{level:J.id})}},J.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:N,disabled:!I||p>0,onClick:function(){return h("announce")}})}),!!C&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!I||y>0,onClick:function(){return h("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return h("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!I||y>0,onClick:function(){return h("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:D,children:X}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:F}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!P,onClick:function(){return h("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:K,disabled:!P,onClick:function(){return h("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!P,selected:A,onClick:function(){return h("toggleatc")}})})]})})]})},x=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.authenticated,p=c.is_ai,C=c.esc_status,y=c.esc_callable,O=c.esc_recallable,b;return f?p?b="AI":f===1?b="Command":f===2?b="Site Director":b="ERROR: Report This Bug!":b="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:p&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:f?"sign-out-alt":"id-card",selected:f,content:f?"Log Out ("+b+")":"Log In",onClick:function(){return h("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!C&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:C}),!!y&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!f,onClick:function(){return h("callshuttle")}})}),!!O&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!f||p,onClick:function(){return h("cancelshuttle")}})})]})})]})},u=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.message_current,p=c.message_deletion_allowed,C=c.authenticated,y=c.messages;if(f)return(0,e.jsx)(n.wn,{title:f.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!C,onClick:function(){return h("messagelist")}}),children:(0,e.jsx)(n.az,{children:f.contents})});var O=y.map(function(b){return(0,e.jsxs)(n.Ki.Item,{label:b.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!C||f&&f.title===b.title,onClick:function(){return h("messagelist",{msgid:b.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!C||!p,onClick:function(){return h("delmessage",{msgid:b.id})}})]},b.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsx)(n.Ki,{children:y.length&&O||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},m=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.stat_display,p=c.authenticated,C=f.presets.map(function(y){return(0,e.jsx)(n.$n,{content:y.label,selected:y.name===f.type,disabled:!p,onClick:function(){return h("setstat",{statdisp:y.name})}},y.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return h("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:C}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:f.line_1,disabled:!p,onClick:function(){return h("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:f.line_2,disabled:!p,onClick:function(){return h("setmsg2")}})})]})})}},80273:function(M,j,t){"use strict";t.r(j),t.d(j,{Communicator:function(){return _}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=t(41608),u=1,m=2,v=3,d=4,h=40,c=5,f=6,p=7,C=8,y=9,O=[u,m,v,d,h,c,f,p,C,y],b={};function I(Y){return O.includes(Y)}var _=function(Y){for(var Z=(0,i.Oc)(),V=Z.act,z=Z.data,Q=z.currentTab,ee=z.video_comm,oe=z.owner,ne=z.occupation,ce=z.connectionStatus,de=z.address,ve=z.visible,pe=z.ring,me=z.selfie_mode,be=z.homeScreen,we=z.targetAddress,Je=z.voice_mobs,ze=z.phone_video_comm,Ke=z.communicating,Be=z.requestsReceived,ct=z.invitesSent,xt=z.imContacts,st=z.targetAddressName,ot=z.imList,Ae=z.feeds,Le=z.target_feed,Pe=z.latest_news,ke=z.note,Me=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Fe=Me.map(function(je){return(0,e.jsx)(a.$n,{content:je,fontSize:2,fluid:!0,onClick:function(){return V("add_hex",{add_hex:je})}},je)}),We=[],He=0;HeV?Z.length>V?Z.slice(0,V)+"...":Z:Y+Z},F=function(Y,Z,V,z){if(V<0||V>z.length)return k(Y,Z)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var Q=k(Y,Z),ee=k(z[V],Z);return Q&&ee?"TinderMessage_Subsequent_Sent":!Q&&!ee?"TinderMessage_Subsequent_Received":Q?"TinderMessage_First_Sent":"TinderMessage_First_Received"},J=function(Y,Z,V,z,Q){return Yz?"average":Y>Q?"bad":"good"},H=function(Y){var Z=(0,i.Oc)(),V=Z.act,z=Z.data,Q=z.aircontents,ee=z.weather,oe="\xB0";return(0,e.jsxs)(a.wn,{title:"Weather",children:[(0,e.jsx)(a.wn,{title:"Current Conditions",children:(0,e.jsx)(a.Ki,{children:(0,s.pb)(function(ne){return ne.val!=="0"||ne.entry==="Pressure"||ne.entry==="Temperature"})(Q).map(function(ne){return(0,e.jsxs)(a.Ki.Item,{label:ne.entry,color:J(ne.val,ne.bad_low,ne.poor_low,ne.poor_high,ne.bad_high),children:[ne.val,(0,n.jT)(ne.units)]},ne.entry)})})}),(0,e.jsx)(a.wn,{title:"Weather Reports",children:!!ee.length&&(0,e.jsx)(a.Ki,{children:ee.map(function(ne){return(0,e.jsx)(a.Ki.Item,{label:ne.Planet,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Time",children:ne.Time}),(0,e.jsx)(a.Ki.Item,{label:"Weather",children:(0,n.Sn)(ne.Weather)}),(0,e.jsxs)(a.Ki.Item,{label:"Temperature",children:["Current: ",ne.Temperature.toFixed()," ",oe,"C | High:"," ",ne.High.toFixed()," ",oe,"C | Low: ",ne.Low.toFixed()," ",oe,"C"]}),(0,e.jsx)(a.Ki.Item,{label:"Wind Direction",children:ne.WindDir}),(0,e.jsx)(a.Ki.Item,{label:"Wind Speed",children:ne.WindSpeed}),(0,e.jsx)(a.Ki.Item,{label:"Forecast",children:(0,n.jT)(ne.Forecast)})]})},ne.Planet)})})||(0,e.jsx)(a.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})}},90734:function(M,j,t){"use strict";t.r(j),t.d(j,{ComputerFabricator:function(){return c}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905);function a(O,b){return b||(b=O.slice(0)),O.raw=b,O}function g(){var O=a(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return g=function(){return O},O}function x(){var O=a(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return x=function(){return O},O}function u(){var O=a(["\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n "]);return u=function(){return O},O}function m(){var O=a(["\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n "]);return m=function(){return O},O}function v(){var O=a(["\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n "]);return v=function(){return O},O}function d(){var O=a(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return d=function(){return O},O}function h(){var O=a(["\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n "]);return h=function(){return O},O}var c=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsx)(i.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),_.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),_.state===0&&(0,e.jsx)(f,{}),_.state===1&&(0,e.jsx)(p,{}),_.state===2&&(0,e.jsx)(C,{}),_.state===3&&(0,e.jsx)(y,{})]})})},f=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},p=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[_.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,s.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,s.c1)(x()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:_.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,s.c1)(u()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,s.c1)(m()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,s.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),_.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,s.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:_.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,s.c1)(h()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:_.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:_.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},C=function(O){var b=(0,n.Oc)(),I=b.act,_=b.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[_.totalprice,"\u20AE"]})]})]})},y=function(O){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(M,j,t){"use strict";t.r(j),t.d(j,{CookingAppliance:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.temperature,v=u.optimalTemp,d=u.temperatureEnough,h=u.efficiency,c=u.containersRemovable,f=u.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:d?"good":"blue",value:m,maxValue:v,children:[(0,e.jsx)(n.zv,{value:m}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:h}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:f.map(function(p,C){return p.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),children:(0,e.jsx)(n.$n,{onClick:function(){return x("slot",{slot:C+1})},children:"Empty"})},C):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(C+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!c,onClick:function(){return x("slot",{slot:C+1})},children:p.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:p.progressText[0],value:p.progress,maxValue:1,children:p.progressText[1]})})]})},C)})})})]})})}},41608:function(M,j,t){"use strict";t.r(j),t.d(j,{CrewManifest:function(){return g},CrewManifestContent:function(){return x}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(1568),a=t(84905),g=function(){return(0,e.jsx)(a.p8,{width:400,height:600,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:h.map(function(c){return!!c.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:i.lm.manifest[c.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:c.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),c.elems.map(function(f){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,s.jT)(f.name)}),(0,e.jsx)(r.XI.Cell,{children:f.rank}),(0,e.jsx)(r.XI.Cell,{children:f.active})]},f.name+f.rank)})]})},c.cat)})})}},93643:function(M,j,t){"use strict";t.r(j),t.d(j,{CrewMonitor:function(){return m},CrewMonitorContent:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=function(h){return h.dead?"Deceased":parseInt(h.stat,10)===1?"Unconscious":"Living"},u=function(h){return h.dead?"red":parseInt(h.stat,10)===1?"orange":"green"},m=function(){var h=function(_){C(_)},c=function(_){b(_)},f=(0,r.useState)(0),p=f[0],C=f[1],y=(0,r.useState)(1),O=y[0],b=y[1];return(0,e.jsx)(g.p8,{width:800,height:600,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v,{tabIndex:p,zoom:O,onTabIndex:h,onZoom:c})})})},v=function(h){var c=(0,i.Oc)(),f=c.act,p=c.data,C=c.config,y=(0,n.L)([(0,s.Ul)(function(b){return b.name}),(0,s.Ul)(function(b){return b==null?void 0:b.x}),(0,s.Ul)(function(b){return b==null?void 0:b.y}),(0,s.Ul)(function(b){return b==null?void 0:b.realZ})])(p.crewmembers||[]),O;return h.tabIndex===0?O=(0,e.jsxs)(a.XI,{children:[(0,e.jsxs)(a.XI.Row,{header:!0,children:[(0,e.jsx)(a.XI.Cell,{children:"Name"}),(0,e.jsx)(a.XI.Cell,{children:"Status"}),(0,e.jsx)(a.XI.Cell,{children:"Location"})]}),y.map(function(b){return(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsxs)(a.XI.Cell,{children:[b.name," (",b.assignment,")"]}),(0,e.jsxs)(a.XI.Cell,{children:[(0,e.jsx)(a.az,{inline:!0,color:u(b),children:x(b)}),b.sensor_type>=2?(0,e.jsxs)(a.az,{inline:!0,children:["(",(0,e.jsx)(a.az,{inline:!0,color:"red",children:b.brute}),"|",(0,e.jsx)(a.az,{inline:!0,color:"orange",children:b.fire}),"|",(0,e.jsx)(a.az,{inline:!0,color:"green",children:b.tox}),"|",(0,e.jsx)(a.az,{inline:!0,color:"blue",children:b.oxy}),")"]}):null]}),(0,e.jsx)(a.XI.Cell,{children:b.sensor_type===3?p.isAI?(0,e.jsx)(a.$n,{fluid:!0,icon:"location-arrow",content:b.area+" ("+b.x+", "+b.y+")",onClick:function(){return f("track",{track:b.ref})}}):b.area+" ("+b.x+", "+b.y+", "+b.z+")":"Not Available"})]},b.ref)})]}):h.tabIndex===1?O=(0,e.jsx)(d,{zoom:h.zoom,onZoom:h.onZoom}):O="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===0,onClick:function(){return h.onTabIndex(0)},children:[(0,e.jsx)(a.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(a.tU.Tab,{selected:h.tabIndex===1,onClick:function(){return h.onTabIndex(1)},children:[(0,e.jsx)(a.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(a.az,{m:2,children:O})]})},d=function(h){var c=(0,i.Oc)(),f=c.act,p=c.config,C=c.data;return(0,e.jsx)(a.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(a.tx,{onZoom:function(y){return h.onZoom(y)},children:C.crewmembers.filter(function(y){return y.sensor_type===3&&~~y.realZ===~~p.mapZLevel}).map(function(y){return(0,e.jsx)(a.tx.Marker,{x:y.x,y:y.y,zoom:h.zoom,icon:"circle",tooltip:y.name+" ("+y.assignment+")",color:u(y)},y.ref)})})})}},84097:function(M,j,t){"use strict";t.r(j),t.d(j,{Cryo:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=function(m){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(x,{})})})},x=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.isOperating,f=h.hasOccupant,p=h.occupant,C=p===void 0?[]:p,y=h.cellTemperature,O=h.cellTemperatureStatus,b=h.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return d("ejectOccupant")},disabled:!f,children:"Eject"}),children:f?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:C.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:C.health,max:C.maxHealth,value:C.health/C.maxHealth,color:C.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(C.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[C.stat][0],children:a[C.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(C.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),i.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.label,children:(0,e.jsx)(n.z2,{value:C[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(C[I.type])})})},I.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return d("ejectBeaker")},disabled:!b,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return d(c?"switchOff":"switchOn")},selected:c,children:c?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:O,children:[(0,e.jsx)(n.zv,{value:y})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(u,{})})]})})]})},u=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.isBeakerLoaded,f=h.beakerLabel,p=h.beakerVolume;return c?(0,e.jsxs)(e.Fragment,{children:[f||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!p&&"bad",children:p?(0,e.jsx)(n.zv,{value:p,format:function(C){return Math.round(C)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(M,j,t){"use strict";t.r(j),t.d(j,{CryoStorage:function(){return a},CryoStorageCrew:function(){return g},CryoStorageItems:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.real_name,c=d.allow_items,f=(0,s.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(g,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},g=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:h.length&&h.map(function(c){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:c.ref})},children:c.name},c.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(M,j,t){"use strict";t.r(j),t.d(j,{CryoStorageItemsVr:function(){return x},CryoStorageVr:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(38210),g=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.real_name,c=d.allow_items,f=(0,s.useState)(0),p=f[0],C=f[1];return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:p===0,onClick:function(){return C(0)},children:"Crew"}),!!c&&(0,e.jsx)(r.tU.Tab,{selected:p===1,onClick:function(){return C(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",h,"."]}),p===0&&(0,e.jsx)(a.CryoStorageCrew,{}),!!c&&p===1&&(0,e.jsx)(x,{})]})})},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:h.length&&h.map(function(c){return(0,e.jsx)(r.az,{color:"label",children:c},c)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(M,j,t){"use strict";t.r(j),t.d(j,{DNAForensics:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.scan_progress,v=u.scanning,d=u.bloodsamp,h=u.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!d,icon:"power-off",onClick:function(){return x("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!d,icon:"eject",onClick:function(){return x("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:m,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:d&&(0,e.jsxs)(n.az,{children:[d,(0,e.jsx)(n.az,{color:"label",children:h})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(M,j,t){"use strict";t.r(j),t.d(j,{DNAModifier:function(){return u}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(5425),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],x=[5,10,20,30,50],u=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.irradiating,R=P.dnaBlockSize,K=P.occupant,N=!K.isViableSubject||!K.uniqueIdentity||!K.structuralEnzymes,k;return A&&(k=(0,e.jsx)(O,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:870,children:[(0,e.jsx)(i.ComplexModal,{}),k,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(m,{isDNAInvalid:N}),(0,e.jsx)(v,{isDNAInvalid:N})]})]})},m=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.locked,R=P.hasOccupant,K=P.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!R,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return D("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!R||A,icon:"user-slash",content:"Eject",onClick:function(){return D("ejectOccupant")}})]}),children:R?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:K.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:K.minHealth,max:K.maxHealth,value:K.health/K.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:a[K.stat][0],children:a[K.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),I.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:K.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:P.occupant.uniqueEnzymes?P.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.selectedMenuKey,R=P.hasOccupant,K=P.occupant;if(R){if(I.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var N;return A==="ui"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(c,{})]}):A==="se"?N=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h,{}),(0,e.jsx)(c,{})]}):A==="buffer"?N=(0,e.jsx)(f,{}):A==="rejuvenators"&&(N=(0,e.jsx)(y,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:g.map(function(k,X){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return D("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},X)})}),N]})},d=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.selectedUIBlock,R=P.selectedUISubBlock,K=P.selectedUITarget,N=P.dnaBlockSize,k=P.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(b,{dnaString:k.uniqueIdentity,selectedBlock:A,selectedSubblock:R,blockSize:N,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:K,format:function(X){return X.toString(16).toUpperCase()},ml:"0",onChange:function(X,F){return D("changeUITarget",{value:F})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return D("pulseUIRadiation")}})]})},h=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.selectedSEBlock,R=P.selectedSESubBlock,K=P.dnaBlockSize,N=P.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(b,{dnaString:N.structuralEnzymes,selectedBlock:A,selectedSubblock:R,blockSize:K,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return D("pulseSERadiation")}})]})},c=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.radiationIntensity,R=P.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(K,N){return D("radiationIntensity",{value:N})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:R,popUpPosition:"right",ml:"0",onChange:function(K,N){return D("radiationDuration",{value:N})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return D("pulseRadiation")}})]})},f=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.buffers,R=A.map(function(K,N){return(0,e.jsx)(p,{id:N+1,name:"Buffer "+(N+1),buffer:K},N)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:R}),(0,e.jsx)(C,{})]})},p=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=I.id,R=I.name,K=I.buffer,N=P.isInjectorReady,k=R+(K.data?" - "+K.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!K.data,icon:"trash",content:"Clear",onClick:function(){return D("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data,icon:"pen",content:"Rename",onClick:function(){return D("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!K.data||!P.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return D("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return D("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return D("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return D("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!P.hasDisk||!P.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return D("bufferOption",{option:"loadDisk",id:A})}})]}),!!K.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:K.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[K.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!K.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Injector",mb:"0",onClick:function(){return D("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!N,icon:N?"syringe":"spinner",iconSpin:!N,content:"Block Injector",mb:"0",onClick:function(){return D("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return D("bufferOption",{option:"transfer",id:A})}})]})]})]}),!K.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},C=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.hasDisk,R=P.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!R.data,icon:"trash",content:"Wipe",onClick:function(){return D("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return D("ejectDisk")}})]}),children:A?R.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:R.label?R.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:R.owner?R.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[R.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!R.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},y=function(I){var _=(0,s.Oc)(),D=_.act,P=_.data,A=P.isBeakerLoaded,R=P.beakerVolume,K=P.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return D("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[x.map(function(N,k){return(0,e.jsx)(n.$n,{disabled:N>R,icon:"syringe",content:N,onClick:function(){return D("injectRejuvenators",{amount:N})}},k)}),(0,e.jsx)(n.$n,{disabled:R<=0,icon:"syringe",content:"All",onClick:function(){return D("injectRejuvenators",{amount:R})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:K||"No label"}),R?(0,e.jsxs)(n.az,{color:"good",children:[R," unit",R===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},O=function(I){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},b=function(I){for(var _=function(Z){for(var V=function(oe){var ne=oe+1;Q.push((0,e.jsx)(n.$n,{selected:K===z&&N===ne,content:F[Z+oe],mb:"0",onClick:function(){return P(X,{block:z,subblock:ne})}}))},z=Z/k+1,Q=[],ee=0;ee1?"Dangerous!":null]},C.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!p||!p.length?"None":null,p.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),h.map(function(C){return(0,e.jsx)(n.$n,{content:C.stage,icon:"exchange-alt",onClick:function(){return m("grab",{grab:C.reference})}},C.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return m("affected_species")}})]})]})]})},g=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.dish_inserted,h=v.buffer,c=v.species_buffer,f=v.effects,p=v.info,C=v.growth,y=v.affected_species,O=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:h?(0,e.jsxs)(n.az,{children:[h.name," (",h.stage,")"]}):c?(0,e.jsx)(n.az,{children:c}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!h&&!c,onClick:function(){return m("disk")}}),h?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:h.stage>1,onClick:function(){return m("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:h.stage>2,onClick:function(){return m("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:h.stage>3,onClick:function(){return m("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:h.stage>4,onClick:function(){return m("splice",{splice:4})}})]}):c?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!c||p,onClick:function(){return m("splice",{splice:5})}})}):null]})}},44421:function(M,j,t){"use strict";t.r(j),t.d(j,{DishIncubator:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(84905),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.on,d=m.system_in_use,h=m.food_supply,c=m.radiation,f=m.growth,p=m.toxins,C=m.chemicals_inserted,y=m.can_breed_virus,O=m.chemical_volume,b=m.max_chemical_volume,I=m.dish_inserted,_=m.blood_already_infected,D=m.virus,P=m.analysed,A=m.infection_rate;return(0,e.jsx)(i.p8,{width:400,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return u("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return u("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!d,onClick:function(){return u("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:h})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:c>=50?"bad":f>=25?"average":"good",value:c,children:[(0,r.qQ)(c*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:p})})]})]}),(0,e.jsx)(n.wn,{title:y?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(y?"Vial":"Chemicals"),disabled:!C,onClick:function(){return u("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!y,onClick:function(){return u("virus")}})]}),children:C&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:b,value:O,children:[O,"/",b]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:y?"good":"average",children:[I?y?"Suitable":"No hemolytic samples detected":"N/A",_?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return u("ejectdish")}}),children:I?D?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:f})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:P?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(M,j,t){"use strict";t.r(j),t.d(j,{DisposalBin:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.mode,v=u.pressure,d=u.isAI,h=u.panel_open,c=u.flushing,f,p;return m===2?(f="good",p="Ready"):m<=0?(f="bad",p="N/A"):m===1?(f="average",p="Pressurizing"):(f="average",p="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:f,children:p}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:d||h,content:"Disengaged",selected:c?null:"selected",onClick:function(){return x("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:d||h,content:"Engaged",selected:c?"selected":null,onClick:function(){return x("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:m===-1,content:"Off",selected:m?null:"selected",onClick:function(){return x("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:m===-1,content:"On",selected:m?"selected":null,onClick:function(){return x("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:d,content:"Eject Contents",onClick:function(){return x("eject")}})})]})]})})})}},26763:function(M,j,t){"use strict";t.r(j),t.d(j,{DroneConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.drones,v=u.areas,d=u.selected_area,h=u.fabricator,c=u.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!h,selected:c,icon:"power-off",content:c?"Enabled":"Disabled",onClick:function(){return x("toggle_fab")}}),children:h?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return x("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:d,width:"100%",onSelected:function(f){return x("set_dcall_area",{area:f})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return x("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:m&&m.length?(0,e.jsx)(n.Ki,{children:m.map(function(f){return(0,e.jsx)(n.Ki.Item,{label:f.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return x("resync",{ref:f.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return x("shutdown",{ref:f.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:f.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[f.charge," / ",f.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:f.active?"Yes":"No"})]})},f.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(M,j,t){"use strict";t.r(j),t.d(j,{EmbeddedController:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(47868),a=(0,i.h)("fuck"),g={},x=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.internalTemplateName,k=g[N];if(!k)throw Error("Unable to find Component for template name: "+N);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},u=function(P){var A=P.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(R){return(0,e.jsx)(n.Ki.Item,{label:R.label,children:(0,e.jsx)(n.z2,{color:R.color(R.value),minValue:R.minValue,maxValue:R.maxValue,value:R.value,children:R.textValue})},R.label)})})})},m=function(P){var A=(0,s.Oc)(),R=A.data,K=A.act,N=!0;R.interior_status&&R.interior_status.state==="open"?N=!1:R.external_pressure&&R.chamber_pressure&&(N=!(Math.abs(R.external_pressure-R.chamber_pressure)>5));var k=!0;return R.exterior_status&&R.exterior_status.state==="open"?k=!1:R.internal_pressure&&R.chamber_pressure&&(k=!(Math.abs(R.internal_pressure-R.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return K("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:R.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return K("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:N?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return K("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:R.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return K("force_int")}})]})]})},v=function(P){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(d,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return R.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):R.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):R.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:N[R.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},d=function(P){var A=(0,s.Oc)(),R=A.data,K=A.act;return R.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},h=function(P){var A=(0,s.Oc)(),R=A.data,K=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!R.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:R.docking_status!=="docked"?"bad":"",onClick:function(){return K("force_door")}}),(0,e.jsx)(n.$n,{selected:R.override_enabled,color:R.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return K("toggle_override")}})]})},c=function(P){var A=(0,s.Oc)(),R=A.data,K=A.act,N={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=N[R.docking_status];return R.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[R.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},f=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=function(X){return X<80||X>120?"bad":X<95||X>110?"average":"good"},k=[{minValue:0,maxValue:202,value:K.external_pressure,label:"External Pressure",textValue:K.external_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:N},{minValue:0,maxValue:202,value:K.internal_pressure,label:"Internal Pressure",textValue:K.internal_pressure+" kPa",color:N}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return R("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return R("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleAdvanced=f;var p=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleSimple=p;var C=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:K.chamber_phoron,label:"Chamber Phoron",textValue:K.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(u,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsolePhoron=C;var y=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=[{minValue:0,maxValue:202,value:K.chamber_pressure,label:"Chamber Pressure",textValue:K.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:K.airlock_disabled||K.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}}):null,children:(0,e.jsx)(c,{})}),(0,e.jsx)(u,{bars:N}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(m,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!K.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return R("abort")}})})]})]})};g.AirlockConsoleDocking=y;var O=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return K.exterior_status.state==="open"?N=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):K.exterior_status.lock==="unlocked"?N=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):K.exterior_status.lock==="locked"&&(N=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.override_enabled,content:"Force exterior door",onClick:function(){return R("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:K.override_enabled?"red":"",content:"Override",onClick:function(){return R("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:N})]})})};g.DockingConsoleSimple=O;var b=function(P){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(R){return(0,e.jsx)(n.Ki.Item,{color:R.override_enabled?"bad":"good",label:R.name,children:R.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},R.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};g.DockingConsoleMulti=b;var I=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data,N=K.interior_status.state==="open"||K.exterior_status.state==="closed",k=K.exterior_status.state==="open"||K.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:N?"arrow-left":"exclamation-triangle",content:N?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){R(N?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){R(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:K.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:K.interior_status.state==="closed"?"Locked":"Open"})]})})};g.DoorAccessConsole=I;var _=function(P){var A=(0,s.Oc)(),R=A.act,K=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(h,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:K.armed,color:K.armed?"bad":"average",content:"ARM",onClick:function(){return R("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!K.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return R("force_launch")}})]})]})]})};g.EscapePodConsole=_;var D=function(P){var A=(0,s.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(h,{})})]})};g.EscapePodBerthConsole=D},37624:function(M,j,t){"use strict";t.r(j),t.d(j,{DisplayDetails:function(){return x},EntityNarrate:function(){return a},EntitySelection:function(){return g},ModeSelector:function(){return u},NarrationInput:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data;return(0,e.jsx)(i.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(x,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(u,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(m,{})})]})})})]})})})})},g=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.selection_mode,p=c.multi_id_selection,C=c.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:f,fill:!0,content:"Multi-Selection",onClick:function(){return h("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:C.map(function(y){return(0,e.jsx)(r.tU.Tab,{selected:p.includes(y),onClick:function(){return h("select_entity",{id_selected:y})},children:(0,e.jsx)(r.az,{inline:!0,children:y})},y)})})})})})},x=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.selection_mode,p=c.number_mob_selected,C=c.selected_id,y=c.selected_name,O=c.selected_type;return f?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",p]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",C," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",y," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",O," ",(0,e.jsx)("br",{})]})},u=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.privacy_select,p=c.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return h("change_mode_privacy")},selected:f,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(f?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:f?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return h("change_mode_narration")},selected:p,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(p?"Click here to emote visibly.":"Click here to talk audiably."),content:p?"Currently: Emoting":"Currently: Talking"})})]})},m=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=(0,s.useState)(""),p=f[0],C=f[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return h("narrate",{message:p})},content:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(y,O){return C(O)},value:p||""})})})})}},36907:function(M,j,t){"use strict";t.r(j),t.d(j,{ExonetNode:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.allowPDAs,d=u.allowCommunicators,h=u.allowNewscasters,c=u.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,content:"Power "+(m?"On":"Off"),onClick:function(){return x("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return x("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:d,content:d?"Open":"Closed",onClick:function(){return x("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:h,content:h?"Open":"Closed",onClick:function(){return x("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[c.map(function(f,p){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:p%2,children:f},p)}),!c||c.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(M,j,t){"use strict";t.r(j),t.d(j,{ExosuitFabricator:function(){return A},Materials:function(){return K}});var e=t(88095),s=t(11358),n=t(5229),r=t(84352),i=t(33854),a=t(44583),g=t(4413),x=t(92514),u=t(24158),m=t(84905);function v(V,z){(z==null||z>V.length)&&(z=V.length);for(var Q=0,ee=new Array(z);Q=V.length?{done:!0}:{done:!1,value:V[ee++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},f=0,p=1,C=2,y,O=(y={},y[f]=!1,y[p]="average",y[C]="bad",y),b=function(V){var z={};return V.forEach(function(Q){z[Q.name]=Q.amount}),z},I=function(V,z,Q){return V>Q?{color:C,deficit:V-Q}:z>Q?{color:p,deficit:V}:V+z>Q?{color:p,deficit:V+z-Q}:{color:f,deficit:0}},_=function(V,z,Q){var ee={textColor:f};return Object.keys(Q.cost).forEach(function(oe){ee[oe]=I(Q.cost[oe],z[oe],V[oe]),ee[oe].color>ee.textColor&&(ee.textColor=ee[oe].color)}),ee},D=function(V,z){var Q={},ee={},oe={},ne={};return z.forEach(function(ce,de){ne[de]=f,Object.keys(ce.cost).forEach(function(ve){Q[ve]=Q[ve]||0,oe[ve]=oe[ve]||0,ee[ve]=I(ce.cost[ve],Q[ve],V[ve]),ee[ve].color!==f?ne[de]1&&ne0});return ce.length===0?(0,e.jsxs)(x.az,{textAlign:"center",children:[(0,e.jsx)(x.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(x.so,{wrap:"wrap",children:ce.map(function(de){return(0,e.jsxs)(x.so.Item,{width:"80px",children:[(0,e.jsx)(N,{name:de.name,amount:de.amount,formatsi:!0}),!oe&&(0,e.jsx)(x.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(R,{material:de})})]},de.name)||null})})},N=function(V){var z=V.name,Q=V.amount,ee=V.formatsi,oe=V.formatmoney,ne=V.color,ce=V.style,de="0";return Q<1&&Q>0?de=(0,n.Mg)(Q,2):ee?de=(0,u.QL)(Q,0):oe?de=(0,u.up)(Q):de=Q,(0,e.jsxs)(x.so,{direction:"column",align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.m_,{position:"bottom",content:(0,i.Sn)(z),children:(0,e.jsx)(x.az,{className:(0,r.Ly)(["sheetmaterials32x32",c[z]]),position:"relative",style:ce})})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{textColor:ne,style:{"text-align":"center"},children:de})})]})},k=function(V){var z=(0,g.Oc)().data,Q=z.partSets||[],ee=z.buildableParts||{},oe=(0,g.QY)("part_tab",Q.length?ee[0]:""),ne=oe[0],ce=oe[1];return(0,e.jsx)(x.tU,{vertical:!0,children:Q.map(function(de){return!!ee[de]&&(0,e.jsx)(x.tU.Tab,{selected:de===ne,disabled:!ee[de],onClick:function(){return ce(de)},children:de},de)})})},X=function(V){var z=(0,g.Oc)().data,Q=function(Ke){for(var Be=h(Ke),ct;!(ct=Be()).done;){var xt=ct.value;if(oe[xt])return xt}return null},ee=z.partSets||[],oe=z.buildableParts||[],ne=V.queueMaterials,ce=V.materials,de=(0,g.QY)("part_tab",Q(ee)),ve=de[0],pe=de[1],me=(0,g.QY)("search_text",""),be=me[0],we=me[1];if(!ve||!oe[ve]){var Je=Q(ee);if(Je)pe(Je);else return}var ze;return be?(ze=[],P(be,oe).forEach(function(Ke){Ke.format=_(ce,ne,Ke),ze.push(Ke)})):(ze={Parts:[]},oe[ve].forEach(function(Ke){if(Ke.format=_(ce,ne,Ke),!Ke.subCategory){ze.Parts.push(Ke);return}Ke.subCategory in ze||(ze[Ke.subCategory]=[]),ze[Ke.subCategory].push(Ke)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.wn,{children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{mr:1,children:(0,e.jsx)(x.In,{name:"search"})}),(0,e.jsx)(x.so.Item,{grow:1,children:(0,e.jsx)(x.pd,{fluid:!0,placeholder:"Search for...",value:be,onInput:function(Ke,Be){return we(Be)}})})]})}),!!be&&(0,e.jsx)(F,{name:"Search Results",parts:ze,forceShow:!0,placeholder:"No matching results..."})||Object.keys(ze).map(function(Ke){return(0,e.jsx)(F,{name:Ke,parts:ze[Ke]},Ke)})]})},F=function(V){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=ee.buildingPart,ne=V.parts,ce=V.name,de=V.forceShow,ve=V.placeholder,pe=(0,g.QY)("display_mats",!1),me=pe[0];return(!!ne.length||de)&&(0,e.jsxs)(x.wn,{title:ce,buttons:(0,e.jsx)(x.$n,{disabled:!ne.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Q("add_queue_set",{part_list:ne.map(function(be){return be.id})})}}),children:[!ne.length&&ve,ne.map(function(be){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsxs)(x.so,{align:"center",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{disabled:oe||be.format.textColor===C,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Q("build_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Q("add_queue_part",{id:be.id})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[be.format.textColor],children:be.name})}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+be.printTime+"s. "+(be.desc||""),tooltipPosition:"left"})})]}),me&&(0,e.jsx)(x.so,{mb:2,children:Object.keys(be.cost).map(function(we){return(0,e.jsx)(x.so.Item,{width:"50px",color:O[be.format[we].color],children:(0,e.jsx)(N,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:we,amount:be.cost[we]})},we)})})]},be.name)})]})},J=function(V){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=ee.isProcessingQueue,ne=ee.queue||[],ce=V.queueMaterials,de=V.missingMaterials,ve=V.textColors;return(0,e.jsxs)(x.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(x.so.Item,{height:0,grow:1,children:(0,e.jsx)(x.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.$n.Confirm,{disabled:!ne.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Q("clear_queue")}}),!!oe&&(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Stop",icon:"stop",onClick:function(){return Q("stop_queue")}})||(0,e.jsx)(x.$n,{disabled:!ne.length,content:"Build Queue",icon:"play",onClick:function(){return Q("build_queue")}})]}),children:(0,e.jsxs)(x.so,{direction:"column",height:"100%",children:[(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Z,{})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(Y,{textColors:ve})})]})})}),!!ne.length&&(0,e.jsx)(x.so.Item,{mt:1,children:(0,e.jsx)(x.wn,{title:"Material Cost",children:(0,e.jsx)(H,{queueMaterials:ce,missingMaterials:de})})})]})},H=function(V){var z=V.queueMaterials,Q=V.missingMaterials;return(0,e.jsx)(x.so,{wrap:"wrap",children:Object.keys(z).map(function(ee){return(0,e.jsxs)(x.so.Item,{width:"12%",children:[(0,e.jsx)(N,{formatmoney:!0,name:ee,amount:z[ee]}),!!Q[ee]&&(0,e.jsx)(x.az,{textColor:"bad",style:{"text-align":"center"},children:(0,u.up)(Q[ee])})]},ee)})})},Y=function(V){var z=(0,g.Oc)(),Q=z.act,ee=z.data,oe=V.textColors,ne=ee.queue||[];return ne.length?ne.map(function(ce,de){return(0,e.jsx)(x.az,{children:(0,e.jsxs)(x.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(x.so.Item,{basis:"content",children:(0,e.jsx)(x.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Q("del_queue_part",{index:de+1})}})}),(0,e.jsx)(x.so.Item,{children:(0,e.jsx)(x.az,{inline:!0,textColor:O[oe[de]],children:ce.name})})]})},ce.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},Z=function(V){var z=(0,g.Oc)().data,Q=z.buildingPart,ee=z.storedPart;if(ee){var oe=ee.name;return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:oe}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Q){var ne=Q.name,ce=Q.duration,de=Q.printTime,ve=Math.ceil(ce/10);return(0,e.jsx)(x.az,{children:(0,e.jsx)(x.z2,{minValue:0,maxValue:de,value:ce,children:(0,e.jsxs)(x.so,{children:[(0,e.jsx)(x.so.Item,{children:ne}),(0,e.jsx)(x.so.Item,{grow:1}),(0,e.jsx)(x.so.Item,{children:ve>=0&&ve+"s"||"Dispensing..."})]})})})}}},83151:function(M,j,t){"use strict";t.r(j),t.d(j,{Farmbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.locked,d=u.tank,h=u.tankVolume,c=u.tankMaxVolume,f=u.waters_trays,p=u.refills_water,C=u.uproots_weeds,y=u.replaces_nutriment,O=u.collects_produce,b=u.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:d&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("water")},children:f?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("refill")},children:p?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("weed")},children:C?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("replacenutri")},children:y?"Yes":"No"})})})})]})||null]})})}},60381:function(M,j,t){"use strict";t.r(j),t.d(j,{Fax:function(){return g},FaxContent:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(71451),a=t(1887),g=function(v){var d=(0,s.Oc)().data,h=d.authenticated,c=d.copyItem,f=340;return c&&(f=358),h?(0,e.jsx)(r.p8,{width:600,height:f,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(i.LoginInfo,{}),(0,e.jsx)(x,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(u,{}),(0,e.jsx)(a.LoginScreen,{machineType:"Fax"})]})})},x=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.bossName,p=c.copyItem,C=c.cooldown,y=c.destination,O=c.adminDepartments,b=new Set(O);return(0,e.jsxs)(n.wn,{children:[!!C&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[f," Quantum Entanglement Network"]})}),p&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[p," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return h("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:y,onClick:function(){return h("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(m,{})]})},u=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.copyItem;return f?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return h("remove")},content:"Remove Item"})}):null},m=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.adminDepartments,p=c.destination,C=c.copyItem,y=new Set(f),O="1rem";return C&&(O="1.5rem"),!C||C&&y.has(p)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return h("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(M,j,t){"use strict";t.r(j),t.d(j,{FileCabinet:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.contents,d=(0,s.Ul)(function(h){return h.name})(v||[]);return(0,e.jsx)(i.p8,{width:350,height:300,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:d.map(function(h){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:h.name,onClick:function(){return u("retrieve",{ref:h.ref})}},h.ref)})})})})}},67747:function(M,j,t){"use strict";t.r(j),t.d(j,{Floorbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.open,d=u.locked,h=u.vocal,c=u.amount,f=u.possible_bmode,p=u.improvefloors,C=u.eattiles,y=u.maketiles,O=u.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("start")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("vocal")},children:h?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("improve")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("tiles")},children:C?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:y?"toggle-on":"toggle-off",selected:y,onClick:function(){return x("make")},children:y?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:O,options:f,onSelected:function(b){return x("bridgemode",{dir:b})}})})]})})||null]})})}},79697:function(M,j,t){"use strict";t.r(j),t.d(j,{GasPump:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.pressure_set,d=u.last_flow_rate,h=u.last_power_draw,c=u.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:d/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:h,minValue:0,maxValue:c,color:h=100?f="Running":!m&&v>0&&(f="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:m?"This will disable gravity!":"This will enable gravity!",onClick:function(){return x("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:m?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",f]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(M,j,t){"use strict";t.r(j),t.d(j,{GuestPass:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.access,d=m.area,h=m.giver,c=m.giveName,f=m.reason,p=m.duration,C=m.mode,y=m.log,O=m.uid;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:C===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return u("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return u("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:y.length&&y.map(function(b){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b}},b)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+O,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return u("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:h||"Insert ID",onClick:function(){return u("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:c,onClick:function(){return u("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:f,onClick:function(){return u("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:p,onClick:function(){return u("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return u("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,s.Ul)(function(b){return b.area_name})(d).map(function(b){return(0,e.jsx)(r.$n.Checkbox,{checked:b.on,content:b.area_name,onClick:function(){return u("access",{access:b.area})}},b.area)})})]})})})}},92753:function(M,j,t){"use strict";t.r(j),t.d(j,{GyrotronControl:function(){return i},GyrotronControlContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(d){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:d.name}),(0,e.jsxs)(n.XI.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:d.active?"Online":"Offline",selected:d.active,disabled:!d.deployed,onClick:function(){return u("toggle_active",{gyro:d.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!d.active&&"yellow",value:d.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(h,c){return u("set_rate",{gyro:d.ref,rate:c})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!d.active&&"yellow",value:d.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(h,c){return u("set_str",{gyro:d.ref,str:c})}})})]},d.name)})]})})}},75825:function(M,j,t){"use strict";t.r(j),t.d(j,{Holodeck:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.supportedPrograms,v=u.restrictedPrograms,d=u.currentProgram,h=u.isSilicon,c=u.safetyDisabled,f=u.emagged,p=u.gravity,C=m;return c&&(C=C.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:C.map(function(y){return(0,e.jsx)(n.$n,{color:v.indexOf(y)!==-1?"bad":null,icon:"eye",content:y,selected:d===y,fluid:!0,onClick:function(){return x("program",{program:y})}},y)})}),!!h&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:f,color:c?"good":"bad",onClick:function(){return x("AIoverride")},children:[!!f&&"Error, unable to control. ",c?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:c?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:p,onClick:function(){return x("gravity")},children:p?"Enabled":"Disabled"})})]})})]})})}},79258:function(M,j,t){"use strict";t.r(j),t.d(j,{ICAssembly:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.total_parts,c=d.max_components,f=d.total_complexity,p=d.max_complexity,C=d.battery_charge,y=d.battery_max,O=d.net_power,b=d.unremovable_circuits,I=d.removable_circuits;return(0,e.jsx)(a.p8,{width:600,height:380,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/c,maxValue:1,children:[h," / ",c," (",(0,s.LI)(h/c*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:f/p,maxValue:1,children:[f," / ",p," (",(0,s.LI)(f/p*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:C&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:C/y,maxValue:1,children:[C," / ",y," (",(0,s.LI)(C/y*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:O===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:O,format:function(_){return"-"+(0,i.d5)(Math.abs(_))+"/s"}})})]})}),b.length&&(0,e.jsx)(x,{title:"Built-in Components",circuits:b})||null,I.length&&(0,e.jsx)(x,{title:"Removable Components",circuits:I})||null]})})},x=function(u){var m=(0,n.Oc)().act,v=u.title,d=u.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:d.map(function(h){return(0,e.jsxs)(r.Ki.Item,{label:h.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("open_circuit",{ref:h.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("rename_circuit",{ref:h.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("scan_circuit",{ref:h.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("remove_circuit",{ref:h.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return m("bottom_circuit",{ref:h.ref})},children:"Move to Bottom"})]},h.ref)})})})}},36585:function(M,j,t){"use strict";t.r(j),t.d(j,{ICCircuit:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.name,f=h.desc,p=h.displayed_name,C=h.removable,y=h.complexity,O=h.power_draw_idle,b=h.power_draw_per_use,I=h.extended_desc,_=h.inputs,D=h.outputs,P=h.activators;return(0,e.jsx)(a.p8,{width:600,height:400,resizable:!0,title:p,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return d("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return d("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return d("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:y}),O&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,i.d5)(O)})||null,b&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,i.d5)(b)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[_.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(x,{list:_})})})||null,(0,e.jsx)(r.so.Item,{basis:_.length&&D.length?"33%":_.length||D.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:p,mb:1,children:(0,e.jsx)(r.az,{children:f})})}),D.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(x,{list:D})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:P.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return d("pin_name",{pin:A.ref})},children:A.pulse_out?"":""}),(0,e.jsx)(u,{pin:A})]},A.name)})})]})]})})},x=function(m){var v=(0,n.Oc)().act,d=m.list;return d.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:h.ref})},children:[(0,s.jT)(h.type),": ",h.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:h.ref})},children:h.data}),(0,e.jsx)(u,{pin:h})]},h.ref)})},u=function(m){var v=(0,n.Oc)().act,d=m.pin;return d.linked.map(function(h){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:d.ref,link:h.ref})},children:h.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:h.holder_ref})},children:h.holder_name})]},h.ref)})}},43040:function(M,j,t){"use strict";t.r(j),t.d(j,{ICDetailer:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.detail_color,d=m.color_list;return(0,e.jsx)(i.p8,{width:420,height:254,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(d).map(function(h,c){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,s.Sn)(h),tooltipPosition:c%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return u("change_color",{color:h})},style:d[h]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:d[h]},h)})})})})}},93204:function(M,j,t){"use strict";t.r(j),t.d(j,{ICPrinter:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.metal,c=d.max_metal,f=d.metal_per_sheet,p=d.debug,C=d.upgraded,y=d.can_clone,O=d.assembly_to_clone,b=d.categories;return(0,e.jsx)(i.p8,{width:600,height:630,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:h,maxValue:c,children:[h/f," / ",c/f," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:C?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:y?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(x,{})]})})},g=function(u,m){return!(!u.can_build||u.cost>m.metal)},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.categories,c=d.debug,f=(0,n.QY)("categoryTarget",null),p=f[0],C=f[1],y=(0,s.pb)(function(O){return O.name===p})(h)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,s.Ul)(function(O){return O.name})(h).map(function(O){return(0,e.jsx)(r.tU.Tab,{selected:p===O.name,onClick:function(){return C(O.name)},children:O.name},O.name)})})}),(0,e.jsx)(r.BJ.Item,{children:y&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,s.Ul)(function(O){return O.name})(y.items).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:O.name,labelColor:O.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!g(O,d),icon:"print",onClick:function(){return v("build",{build:O.path})},children:"Print"}),children:O.desc},O.name)})})})||"No category selected."})]})})}},7627:function(M,j,t){"use strict";t.r(j),t.d(j,{IDCard:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(89863),a=function(g){var x=(0,s.Oc)().data,u=x.registered_name,m=x.sex,v=x.species,d=x.age,h=x.assignment,c=x.fingerprint_hash,f=x.blood_type,p=x.dna_hash,C=x.photo_front,y=[{name:"Sex",val:m},{name:"Species",val:v},{name:"Age",val:d},{name:"Blood Type",val:f},{name:"Fingerprint",val:c},{name:"DNA Hash",val:p}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:C&&(0,e.jsx)("img",{src:C.substr(1,C.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:y.map(function(O){return(0,e.jsx)(n.Ki.Item,{label:O.name,children:O.val},O.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:u})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(i.RankIcon,{rank:h})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:h})})]})]})})})}},17575:function(M,j,t){"use strict";t.r(j),t.d(j,{IdentificationComputer:function(){return u},IdentificationComputerAccessModification:function(){return d},IdentificationComputerContent:function(){return m},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return h}});var e=t(88095),s=t(11358),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=t(41608),u=function(){return(0,e.jsx)(g.p8,{width:600,height:700,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(c){var f=(0,i.Oc)(),p=f.act,C=f.data,y=c.ntos,O=C.mode,b=C.has_modify,I=C.printing,_=(0,e.jsx)(d,{ntos:y});return y&&!C.have_id_slot?_=(0,e.jsx)(x.CrewManifestContent,{}):I?_=(0,e.jsx)(v,{}):O===1&&(_=(0,e.jsx)(x.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(!y||!!C.have_id_slot)&&(0,e.jsx)(a.tU.Tab,{icon:"home",selected:O===0,onClick:function(){return p("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(a.tU.Tab,{icon:"home",selected:O===1,onClick:function(){return p("mode",{mode_target:1})},children:"Crew Manifest"}),!y||!!C.have_printer&&(0,e.jsx)(a.tU.Tab,{float:"right",icon:"print",onClick:function(){return p("print")},disabled:!O&&!b,color:"",children:"Print"})]}),_]})},v=function(c){return(0,e.jsx)(a.wn,{title:"Printing",children:"Please wait..."})},d=function(c){var f=(0,i.Oc)(),p=f.act,C=f.data,y=c.ntos,O=C.station_name,b=C.target_name,I=C.target_owner,_=C.scan_name,D=C.authenticated,P=C.has_modify,A=C.account_number,R=C.centcom_access,K=C.all_centcom_access,N=C.regions,k=C.id_rank,X=C.departments;return(0,e.jsxs)(a.wn,{title:"Access Modification",children:[!D&&(0,e.jsx)(a.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:b,onClick:function(){return p("modify")}})}),!y&&(0,e.jsx)(a.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(a.$n,{icon:"eject",fluid:!0,content:_,onClick:function(){return p("scan")}})})]}),!!D&&!!P&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Details",level:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(a.pd,{value:I,fluid:!0,onInput:function(F,J){return p("reg",{reg:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Account Number",children:(0,e.jsx)(a.pd,{value:A,fluid:!0,onInput:function(F,J){return p("account",{account:J})}})}),(0,e.jsx)(a.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(a.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return p("terminate")}})})]})}),(0,e.jsx)(a.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(a.XI,{children:[X.map(function(F){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:F.department_name}),(0,e.jsx)(a.XI.Cell,{children:F.jobs.map(function(J){return(0,e.jsx)(a.$n,{selected:J.job===k,onClick:function(){return p("assign",{assign_target:J.job})},children:(0,n.jT)(J.display_name)},J.job)})})]}),(0,e.jsx)(a.az,{mt:-1,children:"\xA0"})," "]},F.department_name)}),(0,e.jsxs)(a.XI.Row,{children:[(0,e.jsx)(a.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(a.XI.Cell,{children:(0,e.jsx)(a.$n,{onClick:function(){return p("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!R&&(0,e.jsx)(a.wn,{title:"Central Command",level:2,children:K.map(function(F){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:F.allowed,onClick:function(){return p("access",{access_target:F.ref,allowed:F.allowed})},children:(0,n.jT)(F.desc)})},F.ref)})})||(0,e.jsx)(a.wn,{title:O,level:2,children:(0,e.jsx)(h,{actName:"access"})})]})]})},h=function(c){var f=(0,i.Oc)(),p=f.act,C=f.data,y=c.actName,O=C.regions;return(0,e.jsx)(a.so,{wrap:"wrap",spacing:1,children:(0,s.Ul)(function(b){return b.name})(O).map(function(b){return(0,e.jsx)(a.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(a.wn,{title:b.name,height:"100%",children:(0,s.Ul)(function(I){return I.desc})(b.accesses).map(function(I){return(0,e.jsx)(a.az,{children:(0,e.jsx)(a.$n,{fluid:!0,selected:I.allowed,onClick:function(){return p(y,{access_target:I.ref,allowed:I.allowed})},children:(0,n.jT)(I.desc)})},I.ref)})})},b.name)})})}},15654:function(M,j,t){"use strict";t.r(j),t.d(j,{InventoryPanel:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.slots,v=u.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:m&&m.length&&m.map(function(d){return(0,e.jsx)(n.Ki.Item,{label:d.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:d.item?"hand-paper":"gift",onClick:function(){return x(d.act)},children:d.item||"Nothing"})},d.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(M,j,t){"use strict";t.r(j),t.d(j,{InventoryPanelHuman:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.slots,v=u.specialSlots,d=u.internals,h=u.internalsValid,c=u.sensors,f=u.handcuffed,p=u.handcuffedParams,C=u.legcuffed,y=u.legcuffedParams,O=u.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[m&&m.length&&m.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(b){return(0,e.jsx)(n.Ki.Item,{label:b.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:b.item?"hand-paper":"gift",onClick:function(){return x(b.act,b.params)},children:b.item||"Nothing"})},b.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return x("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return x("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),h&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return x("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return x("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,f&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",p)},children:"Handcuffed"})||null,C&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",y)},children:"Legcuffed"})||null,O&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return x("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(M,j,t){"use strict";t.r(j),t.d(j,{IsolationCentrifuge:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.busy,v=u.antibodies,d=u.pathogens,h=u.is_antibody_sample,c=u.sample_inserted,f=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return c&&(!v&&!d?f=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):f=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,d.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:d.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.name,children:p.spread_type},p.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:m})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:h?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!d.length,onClick:function(){return x("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!c,onClick:function(){return x("sample")}})})]}),f]}),v&&!h||d.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!h?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return x("antibody")}})}):null,d.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:d.map(function(p){return(0,e.jsx)(n.$n,{icon:"pen",content:p.name,onClick:function(){return x("isolate",{isolate:p.reference})}},p.name)})}):null]})}):null]})})})}},58189:function(M,j,t){"use strict";t.r(j),t.d(j,{JanitorCart:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.mybag,h=v.mybucket,c=v.mymop,f=v.myspray,p=v.myreplacer,C=v.signs,y=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:d||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:d?"grey":"transparent",style:{border:d?null:"2px solid grey"},onClick:function(){return m("bag")},children:(0,e.jsx)(g,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Bucket Slot",tooltipPosition:"bottom",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return m("bucket")},children:(0,e.jsx)(g,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Mop Slot",tooltipPosition:"bottom-end",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return m("mop")},children:(0,e.jsx)(g,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:f||"Spray Slot",tooltipPosition:"top-end",color:f?"grey":"transparent",style:{border:f?null:"2px solid grey"},onClick:function(){return m("spray")},children:(0,e.jsx)(g,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:p||"Light Replacer Slot",tooltipPosition:"top",color:p?"grey":"transparent",style:{border:p?null:"2px solid grey"},onClick:function(){return m("replacer")},children:(0,e.jsx)(g,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:C||"Signs Slot",tooltipPosition:"top-start",color:C?"grey":"transparent",style:{border:C?null:"2px solid grey"},onClick:function(){return m("sign")},children:(0,e.jsx)(g,{iconkey:"signs"})})]})})},a={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},g=function(x){var u=(0,s.Oc)().data,m=x.iconkey,v=u.icons;return m in v?(0,e.jsx)("img",{src:v[m].substr(1,v[m].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:a[m]})}},11434:function(M,j,t){"use strict";t.r(j),t.d(j,{Jukebox:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.playing,d=m.loop_mode,h=m.volume,c=m.current_track_ref,f=m.current_track,p=m.current_genre,C=m.percent,y=m.tracks,O=y.length&&y.reduce(function(I,_){var D=_.genre||"Uncategorized";return I[D]||(I[D]=[]),I[D].push(_),I},{}),b=v&&(p||"Uncategorized");return(0,e.jsx)(i.p8,{width:450,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&f&&(0,e.jsxs)(r.az,{children:[f.title," by ",f.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return u("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return u("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return u("loopmode",{loopmode:1})},selected:d===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return u("loopmode",{loopmode:2})},selected:d===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return u("loopmode",{loopmode:3})},selected:d===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return u("loopmode",{loopmode:4})},selected:d===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:C,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:h*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,s.LI)(I,1)+"%"},onChange:function(I,_){return u("volume",{val:(0,s.LI)(_/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:y.length&&Object.keys(O).sort().map(function(I){return(0,e.jsx)(r.Nt,{title:I,color:b===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:O[I].map(function(_){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:c===_.ref,onClick:function(){return u("change_track",{change_track:_.ref})},children:_.title},_.ref)})})},I)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(M,j,t){"use strict";t.r(j),t.d(j,{LawManager:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905);function i(){return i=Object.assign||function(d){for(var h=1;h=0)&&(c[p]=d[p]);return c}var g=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",p]})||null,(0,e.jsx)(x,{})]})})},x=function(d){var h=(0,s.QY)("lawsTabIndex",0),c=h[0],f=h[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:c===0,onClick:function(){return f(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:c===1,onClick:function(){return f(1)},children:"Law Sets"})]}),c===0&&(0,e.jsx)(u,{})||null,c===1&&(0,e.jsx)(v,{})||null]})},u=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.ion_law_nr,C=f.ion_law,y=f.zeroth_law,O=f.inherent_law,b=f.supplied_law,I=f.supplied_law_position,_=f.zeroth_laws,D=f.has_zeroth_laws,P=f.ion_laws,A=f.has_ion_laws,R=f.inherent_laws,K=f.has_inherent_laws,N=f.supplied_laws,k=f.has_supplied_laws,X=f.isAI,F=f.isMalf,J=f.isAdmin,H=f.channel,Y=f.channels,Z=_.map(function(V){return V.zero=!0,V}).concat(R);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(m,{laws:P,title:p+" Laws:",mt:-2})||null,(D||K)&&(0,e.jsx)(m,{laws:Z,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(m,{laws:N,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:Y.map(function(V){return(0,e.jsx)(n.$n,{content:V.channel,selected:H===V.channel,onClick:function(){return c("law_channel",{law_channel:V.channel})}},V.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_laws")},children:"State Laws"})}),X&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return c("notify_laws")},children:"Notify"})})||null]})}),F&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),J&&!D&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:y,fluid:!0,onChange:function(V,z){return c("change_zeroth_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:C,fluid:!0,onChange:function(V,z){return c("change_ion_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:O,fluid:!0,onChange:function(V,z){return c("change_inherent_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:b,fluid:!0,onChange:function(V,z){return c("change_supplied_law",{val:z})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("change_supplied_law_position")},children:I})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return c("add_supplied_law")},children:"Add"})})]})]})})||null]})},m=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.isMalf,C=f.isAdmin,y=d.laws,O=d.title,b=d.noButtons,I=a(d,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,i({level:2,title:O},I,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!b&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),y.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[_.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:_.zero?"bad":null,children:_.law}),!b&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:_.state,onClick:function(){return c("state_law",{ref:_.ref,state_law:!_.state})},children:_.state?"Yes":"No"})})||null,p&&!b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,icon:"pen",onClick:function(){return c("edit_law",{edit_law:_.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:_.zero&&!C,color:"bad",icon:"trash",onClick:function(){return c("delete_law",{delete_law:_.ref})},children:"Delete"})})]})||null]},_.index)})]})}))},v=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.isMalf,C=f.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),C.length&&C.map(function(y){return(0,e.jsxs)(n.wn,{title:y.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!p,icon:"sync",onClick:function(){return c("transfer_laws",{transfer_laws:y.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return c("state_law_set",{state_law_set:y.ref})},children:"State Laws"})]}),children:[y.laws.has_ion_laws&&(0,e.jsx)(m,{noButtons:!0,laws:y.laws.ion_laws,title:y.laws.ion_law_nr+" Laws:"})||null,(y.laws.has_zeroth_laws||y.laws.has_inherent_laws)&&(0,e.jsx)(m,{noButtons:!0,laws:y.laws.zeroth_laws.concat(y.laws.inherent_laws),title:y.header})||null,y.laws.has_supplied_laws&&(0,e.jsx)(m,{noButtons:!0,laws:y.laws.supplied_laws,title:"Supplied Laws"})||null]},y.name)})||null]})}},93455:function(M,j,t){"use strict";t.r(j),t.d(j,{ListInputModal:function(){return u}});var e=t(88095),s=t(44583),n=t(61652),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),u=function(d){var h=(0,r.Oc)(),c=h.act,f=h.data,p=f.items,C=p===void 0?[]:p,y=f.message,O=y===void 0?"":y,b=f.init_value,I=f.large_buttons,_=f.timeout,D=f.title,P=(0,s.useState)(C.indexOf(b)),A=P[0],R=P[1],K=(0,s.useState)(C.length>9),N=K[0],k=K[1],X=(0,s.useState)(""),F=X[0],J=X[1],H=function(ne){var ce=ee.length-1;if(ne===n.R)if(A===null||A===ce){var de;R(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var ve;R(A+1),(ve=document.getElementById((A+1).toString()))==null||ve.scrollIntoView()}else if(ne===n.gf)if(A===null||A===0){var pe;R(ce),(pe=document.getElementById(ce.toString()))==null||pe.scrollIntoView()}else{var me;R(A-1),(me=document.getElementById((A-1).toString()))==null||me.scrollIntoView()}},Y=function(ne){ne!==A&&R(ne)},Z=function(){k(!1),k(!0)},V=function(ne){var ce=String.fromCharCode(ne),de=C.find(function(me){return me==null?void 0:me.toLowerCase().startsWith(ce==null?void 0:ce.toLowerCase())});if(de){var ve,pe=C.indexOf(de);R(pe),(ve=document.getElementById(pe.toString()))==null||ve.scrollIntoView()}},z=function(ne){var ce;ne!==F&&(J(ne),R(0),(ce=document.getElementById("0"))==null||ce.scrollIntoView())},Q=function(){k(!N),J("")},ee=C.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(F.toLowerCase())}),oe=325+Math.ceil(O.length/3)+(I?5:0);return N||setTimeout(function(){var ne;return(ne=document.getElementById(A.toString()))==null?void 0:ne.focus()},1),(0,e.jsxs)(a.p8,{title:D,width:325,height:oe,children:[_&&(0,e.jsx)(x.Loader,{value:_}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(ne){var ce=window.event?ne.which:ne.keyCode;(ce===n.R||ce===n.gf)&&(ne.preventDefault(),H(ce)),ce===n.Ri&&(ne.preventDefault(),c("submit",{entry:ee[A]})),!N&&ce>=n.W8&&ce<=n.bh&&(ne.preventDefault(),V(ce)),ce===n.s6&&(ne.preventDefault(),c("cancel"))},children:(0,e.jsx)(i.wn,{buttons:(0,e.jsx)(i.$n,{compact:!0,icon:N?"search":"font",selected:!0,tooltip:N?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){return Q()}}),className:"ListInput__Section",fill:!0,title:O,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(m,{filteredItems:ee,onClick:Y,onFocusSearch:Z,searchBarVisible:N,selected:A})}),N&&(0,e.jsx)(v,{filteredItems:ee,onSearch:z,searchQuery:F,selected:A}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:ee[A]})})]})})})]})},m=function(d){var h=(0,r.Oc)().act,c=d.filteredItems,f=d.onClick,p=d.onFocusSearch,C=d.searchBarVisible,y=d.selected;return(0,e.jsxs)(i.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(i.y5,{}),c.map(function(O,b){return(0,e.jsx)(i.$n,{color:"transparent",fluid:!0,onClick:function(){return f(b)},onDoubleClick:function(I){I.preventDefault(),h("submit",{entry:c[y]})},onKeyDown:function(I){var _=window.event?I.which:I.keyCode;C&&_>=n.W8&&_<=n.bh&&(I.preventDefault(),p())},selected:b===y,style:{animation:"none",transition:"none"},children:O.replace(/^\w/,function(I){return I.toUpperCase()})},b)})]})},v=function(d){var h=(0,r.Oc)().act,c=d.filteredItems,f=d.onSearch,p=d.searchQuery,C=d.selected;return(0,e.jsx)(i.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(y){y.preventDefault(),h("submit",{entry:c[C]})},onInput:function(y,O){return f(O)},placeholder:"Search...",value:p})}},4515:function(M,j,t){"use strict";t.r(j),t.d(j,{LookingGlass:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.supportedPrograms,v=u.currentProgram,d=u.immersion,h=u.gravity,c=Math.min(180+m.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:c,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:m.map(function(f){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:f===v,onClick:function(){return x("program",{program:f})},children:f},f)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:h,onClick:function(){return x("gravity")},children:h?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:d,onClick:function(){return x("immersion")},children:d?"Enabled":"Disabled"})})]})})]})})}},17542:function(M,j,t){"use strict";t.r(j),t.d(j,{MechaControlConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.beacons,d=m.stored_data;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[d.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return u("clear_log")}}),children:d.map(function(h){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",h.time,") (",h.year,")"]}),(0,e.jsx)(r.az,{children:(0,s.jT)(h.message)})]},h.time)})})})||null,v.length&&v.map(function(h){return(0,e.jsx)(r.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return u("send_message",{mt:h.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return u("get_log",{mt:h.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return u("shock",{mt:h.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[h.maxHealth*.75,1/0],average:[h.maxHealth*.5,h.maxHealth*.75],bad:[-1/0,h.maxHealth*.5]},value:h.health,maxValue:h.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:h.cell&&(0,e.jsx)(r.z2,{ranges:{good:[h.cellMaxCharge*.75,1/0],average:[h.cellMaxCharge*.5,h.cellMaxCharge*.75],bad:[-1/0,h.cellMaxCharge*.5]},value:h.cellCharge,maxValue:h.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[h.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:h.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,s.Sn)(h.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:h.active||"None"}),h.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[h.cargoMax*.75,1/0],average:[h.cargoMax*.5,h.cargoMax*.75],good:[-1/0,h.cargoMax*.5]},value:h.cargoUsed,maxValue:h.cargoMax})})||null]})},h.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(M,j,t){"use strict";t.r(j),t.d(j,{Medbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.open,d=u.beaker,h=u.beaker_total,c=u.beaker_max,f=u.locked,p=u.heal_threshold,C=u.heal_threshold_max,y=u.injection_amount_min,O=u.injection_amount,b=u.injection_amount_max,I=u.use_beaker,_=u.declare_treatment,D=u.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!d,icon:"eject",onClick:function(){return x("eject")},children:"Eject"}),children:d&&(0,e.jsxs)(n.z2,{value:h,maxValue:c,children:[h," / ",c]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:f?"good":"bad",children:f?"Locked":"Unlocked"})]})}),!f&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:C,value:p,onDrag:function(P,A){return x("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:y,maxValue:b,value:O,onDrag:function(P,A){return x("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return x("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return x("declaretreatment")},children:_?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:D?"toggle-on":"toggle-off",selected:D,onClick:function(){return x("togglevoice")},children:D?"On":"Off"})})]})})||null]})})}},98659:function(M,j,t){"use strict";t.r(j),t.d(j,{MedicalRecords:function(){return h}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(84905),g=t(71451),x=t(1887),u=t(82489),m={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(_){(0,i.modalOpen)("edit",{field:_.edit,value:_.value})},d=function(_){var D=(0,n.Oc)().act,P=_.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:P.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return D("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[P.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:P.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:P.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[P.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:P.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:P.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},h=function(_){var D=(0,n.Oc)().data,P=D.authenticated,A=D.screen;if(!P)return(0,e.jsx)(a.p8,{width:800,height:380,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(x.LoginScreen,{})})});var R;return A===2?R=(0,e.jsx)(c,{}):A===3?R=(0,e.jsx)(f,{}):A===4?R=(0,e.jsx)(p,{}):A===5?R=(0,e.jsx)(O,{}):A===6&&(R=(0,e.jsx)(b,{})),(0,e.jsxs)(a.p8,{width:800,height:380,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.LoginInfo,{}),(0,e.jsx)(u.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:R})]})]})},c=function(_){var D=(0,n.Oc)(),P=D.act,A=D.data,R=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(K,N){return P("search",{t1:N})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:R.map(function(K,N){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:K.id+": "+K.name,onClick:function(){return P("d_rec",{d_rec:K.ref})}},N)})})]})},f=function(_){var D=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return D("del_all")}})]})},p=function(_){var D=(0,n.Oc)(),P=D.act,A=D.data,R=A.medical,K=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(C,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(y,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!R.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return P("del_r")}}),(0,e.jsx)(r.$n,{icon:K?"spinner":"print",disabled:K,iconSpin:!!K,content:"Print Entry",ml:"0.5rem",onClick:function(){return P("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return P("screen",{screen:2})}})]})]})},C=function(_){var D=(0,n.Oc)().data,P=D.general;return!P||!P.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:P.fields.map(function(A,R){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},R)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!P.has_photos&&P.photos.map(function(A,R){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",R+1]},R)})})]})},y=function(_){var D=(0,n.Oc)(),P=D.act,A=D.data,R=A.medical;return!R||!R.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return P("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:R.fields.map(function(K,N){return(0,e.jsx)(r.Ki.Item,{label:K.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[K.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:K.line_break?"1rem":"initial",onClick:function(){return v(K)}})]})},N)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[R.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):R.comments.map(function(K,N){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:K.header}),(0,e.jsx)("br",{}),K.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return P("del_c",{del_c:N+1})}})]},N)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,i.modalOpen)("add_c")}})]})]})},O=function(_){var D=(0,n.Oc)(),P=D.act,A=D.data,R=A.virus;return R.sort(function(K,N){return K.name>N.name?1:-1}),R.map(function(K,N){return(0,e.jsxs)(s.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:K.name,mb:"0.5rem",onClick:function(){return P("vir",{vir:K.D})}}),(0,e.jsx)("br",{})]},N)})},b=function(_){var D=(0,n.Oc)().data,P=D.medbots;return P.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):P.map(function(A,R){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},R)})},I=function(_){var D=(0,n.Oc)(),P=D.act,A=D.data,R=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:R===2,onClick:function(){return P("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===5,onClick:function(){return P("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===6,onClick:function(){return P("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:R===3,onClick:function(){return P("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,i.modalRegisterBodyOverride)("virus",d)},31825:function(M,j,t){"use strict";t.r(j),t.d(j,{MentorTicketPanel:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={open:"Open",resolved:"Resolved",unknown:"Unknown"},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.id,d=m.title,h=m.name,c=m.state,f=m.opened_at,p=m.closed_at,C=m.opened_at_date,y=m.closed_at_date,O=m.actions,b=m.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return u("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return u("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:i[c]}),i[c]===i.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[C," (",Math.round(f/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[y," (",Math.round(p/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return u("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(b).map(function(I,_){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:b[I]}},_)})})]})})})})}},68607:function(M,j,t){"use strict";t.r(j),t.d(j,{MessageMonitor:function(){return u}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(13221),x=t(82489),u=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.auth,_=b.linkedServer,D=b.message,P=b.hacking,A=b.emag,R;return P||A?R=(0,e.jsx)(m,{}):I?_?R=(0,e.jsx)(d,{}):R=(0,e.jsx)(i.az,{color:"bad",children:"ERROR"}):R=(0,e.jsx)(v,{}),(0,e.jsx)(a.p8,{width:670,height:450,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(x.TemporaryNotice,{}),R]})})},m=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsx)(g.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(i.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(i.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})},v=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.isMalfAI;return(0,e.jsxs)(g.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(i.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(i.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(i.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(i.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(_,D){return O("auth",{key:D})}})]}),!!I&&(0,e.jsx)(i.$n,{icon:"terminal",content:"Hack",onClick:function(){return O("hack")}}),(0,e.jsx)(i.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},d=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer,_=(0,n.useState)(0),D=_[0],P=_[1],A;return D===0?A=(0,e.jsx)(h,{}):D===1?A=(0,e.jsx)(c,{logs:I.pda_msgs,pda:!0}):D===2?A=(0,e.jsx)(c,{logs:I.rc_msgs,rc:!0}):D===3?A=(0,e.jsx)(f,{}):D===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsxs)(i.tU.Tab,{selected:D===0,onClick:function(){return P(0)},children:[(0,e.jsx)(i.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(i.tU.Tab,{selected:D===1,onClick:function(){return P(1)},children:[(0,e.jsx)(i.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(i.tU.Tab,{selected:D===2,onClick:function(){return P(2)},children:[(0,e.jsx)(i.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(i.tU.Tab,{selected:D===3,onClick:function(){return P(3)},children:[(0,e.jsx)(i.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(i.tU.Tab,{selected:D===4,onClick:function(){return P(4)},children:[(0,e.jsx)(i.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(i.tU.Tab,{color:"red",onClick:function(){return O("deauth")},children:[(0,e.jsx)(i.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(i.az,{m:2,children:A})]})},h=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(i.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"link",content:"Server Link",onClick:function(){return O("find")}}),(0,e.jsx)(i.$n,{icon:"power-off",content:"Server "+(I.active?"Enabled":"Disabled"),selected:I.active,onClick:function(){return O("active")}})]}),children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Server Status",children:(0,e.jsx)(i.az,{color:"good",children:"Good"})})}),(0,e.jsx)(i.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return O("pass")}}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(i.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},c=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=C.logs,_=C.pda,D=C.rc;return(0,e.jsx)(i.wn,{title:_?"PDA Logs":D?"Request Logs":"Logs",buttons:(0,e.jsx)(i.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return O(_?"del_pda":"del_rc")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:I.map(function(P,A){return(0,e.jsx)(i.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(i.wn,{title:P.sender+" -> "+P.recipient,buttons:(0,e.jsx)(i.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return O("delete",{id:P.ref,type:D?"rc":"pda"})}}),children:D?(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Message",children:P.message}),(0,e.jsx)(i.Ki.Item,{label:"Verification",color:P.id_auth==="Unauthenticated"?"bad":"good",children:(0,s.jT)(P.id_auth)}),(0,e.jsx)(i.Ki.Item,{label:"Stamp",children:P.stamp})]}):P.message})},P.ref)})})})},f=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.possibleRecipients,_=b.customsender,D=b.customrecepient,P=b.customjob,A=b.custommessage,R=Object.keys(I);return(0,e.jsxs)(i.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Sender",children:(0,e.jsx)(i.pd,{fluid:!0,value:_,onChange:function(K,N){return O("set_sender",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(i.pd,{fluid:!0,value:P,onChange:function(K,N){return O("set_sender_job",{val:N})}})}),(0,e.jsx)(i.Ki.Item,{label:"Recipient",children:(0,e.jsx)(i.ms,{selected:D,options:R,width:"100%",mb:-.7,onSelected:function(K){return O("set_recipient",{val:I[K]})}})}),(0,e.jsx)(i.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(i.pd,{fluid:!0,mb:.5,value:A,onChange:function(K,N){return O("set_message",{val:N})}})})]}),(0,e.jsx)(i.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return O("send_message")}})]})},p=function(C){var y=(0,r.Oc)(),O=y.act,b=y.data,I=b.linkedServer;return(0,e.jsxs)(i.wn,{title:"Spam Filtering",children:[(0,e.jsx)(i.Ki,{children:I.spamFilter.map(function(_){return(0,e.jsx)(i.Ki.Item,{label:_.index,buttons:(0,e.jsx)(i.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return O("deltoken",{deltoken:_.index})}}),children:_.token},_.index)})}),(0,e.jsx)(i.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return O("addtoken")}})]})}},91015:function(M,j,t){"use strict";t.r(j),t.d(j,{Microwave:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.config,m=g.data,v=m.broken,d=m.operating,h=m.dirty,c=m.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||d&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||h&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||c.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return x("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return x("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:c.map(function(f){return(0,e.jsxs)(n.Ki.Item,{label:f.name,children:[f.amt," ",f.extra]},f.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[u.title," is empty."]})})})})}},46258:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningOreProcessingConsole:function(){return g}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=t(4418),g=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=f.unclaimedPoints,C=f.ores,y=f.showAllOres,O=f.power,b=f.speed;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(a.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return c("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:b,onClick:function(){return c("speed_toggle")},children:b?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:O,onClick:function(){return c("power")},children:O?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:p<1,icon:"download",onClick:function(){return c("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:p})})})}),(0,e.jsx)(v,{})]})})},x=["Not Processing","Smelting","Compressing","Alloying"],u=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],m=function(d,h){return u.indexOf(d.ore)===-1||u.indexOf(h.ore)===-1?d.ore-h.ore:u.indexOf(h.ore)-u.indexOf(d.ore)},v=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=f.ores,C=f.showAllOres,y=f.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return c("showAllOres")},children:C?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:p.length&&p.sort(m).map(function(O){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(O.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:O.processing===0&&"red"||O.processing===1&&"green"||O.processing===2&&"blue"||O.processing===3&&"yellow",options:x,selected:x[O.processing],onSelected:function(b){return c("toggleSmelting",{ore:O.ore,set:x.indexOf(b)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:O.amount})})},O.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningStackingConsole:function(){return a}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.stacktypes,d=m.stackingAmt;return(0,e.jsx)(i.p8,{width:400,height:500,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:d,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(h,c){return u("change_stack",{amt:c})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(h){return(0,e.jsx)(r.Ki.Item,{label:(0,s.Sn)(h.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return u("release_stack",{stack:h.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:h.amt})},h.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},25620:function(M,j,t){"use strict";t.r(j),t.d(j,{MiningVendor:function(){return v}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(4418);function x(){return x=Object.assign||function(f){for(var p=1;p=0)&&(C[O]=f[O]);return C}var m={Alphabetical:function(f,p){return f.name>p.name},"By availability":function(f,p){return-(f.affordable-p.affordable)},"By price":function(f,p){return f.price-p.price}},v=function(f){var p=function(k){I(k)},C=function(k){P(k)},y=function(k){K(k)},O=(0,n.useState)(""),b=O[0],I=O[1],_=(0,n.useState)("Alphabetical"),D=_[0],P=_[1],A=(0,n.useState)(!1),R=A[0],K=A[1];return(0,e.jsx)(a.p8,{width:400,height:450,children:(0,e.jsxs)(a.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(g.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(h,{searchText:b,sortOrder:D,descending:R,onSearchText:p,onSortOrder:C,onDescending:y}),(0,e.jsx)(d,{searchText:b,sortOrder:D,descending:R,onSearchText:p,onSortOrder:C,onDescending:y})]})})},d=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=y.has_id,b=y.id,I=y.items,_=(0,s.XZ)(f.searchText,function(A){return A[0]}),D=!1,P=Object.entries(I).map(function(A,R){var K=Object.entries(A[1]).filter(_).map(function(N){return N[1].affordable=O&&b.points>=N[1].price,N[1]}).sort(m[f.sortOrder]);if(K.length!==0)return f.descending&&(K=K.reverse()),D=!0,(0,e.jsx)(c,{title:A[0],items:K},A[0])});return(0,e.jsx)(i.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(i.wn,{children:D?P:(0,e.jsx)(i.az,{color:"label",children:"No items matching your criteria was found!"})})})},h=function(f){return(0,e.jsx)(i.az,{mb:"0.5rem",children:(0,e.jsxs)(i.so,{width:"100%",children:[(0,e.jsx)(i.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(i.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(p,C){return f.onSearchText(C)}})}),(0,e.jsx)(i.so.Item,{basis:"30%",children:(0,e.jsx)(i.ms,{selected:"Alphabetical",options:Object.keys(m),width:"100%",lineHeight:"19px",onSelected:function(p){return f.onSortOrder(p)}})}),(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.$n,{icon:f.descending?"arrow-down":"arrow-up",height:"19px",tooltip:f.descending?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return f.onDescending(!f.descending)}})})]})})},c=function(f){var p=(0,r.Oc)(),C=p.act,y=p.data,O=f.title,b=f.items,I=u(f,["title","items"]);return(0,e.jsx)(i.Nt,x({open:!0,title:O},I,{children:b.map(function(_){return(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:_.name}),(0,e.jsx)(i.$n,{disabled:!y.has_id||y.id.points<_.price,content:_.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return C("purchase",{cat:O,name:_.name})}}),(0,e.jsx)(i.az,{style:{clear:"both"}})]},_.name)})}))}},83326:function(M,j,t){"use strict";t.r(j),t.d(j,{MobSpawner:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(u){var m=function(Be){A.health=Be,Y(Be)},v=function(Be){A.max_health=Be,Y(Be)},d=function(Be){A.melee_damage_lower=Be,Y(Be)},h=function(Be){A.melee_damage_upper=Be,Y(Be)},c=function(Be){A.path_name=Be,Y(Be)},f=function(Be){A.desc=Be,Y(Be)},p=function(Be){A.flavor_text=Be,Y(Be)},C=function(Be){F(Be)},y=function(Be){z(Be)},O=function(Be){oe(Be)},b=function(Be){de(Be)},I=function(Be){me(Be)},_=function(Be){Je(Be)},D=(0,n.Oc)(),P=D.act,A=D.data,R=(0,s.useState)(0),K=R[0],N=R[1],k=(0,s.useState)(0),X=k[0],F=k[1],J=(0,s.useState)(),H=J[0],Y=J[1],Z=(0,s.useState)(A.initial_x),V=Z[0],z=Z[1],Q=(0,s.useState)(A.initial_y),ee=Q[0],oe=Q[1],ne=(0,s.useState)(A.initial_z),ce=ne[0],de=ne[1],ve=(0,s.useState)(100),pe=ve[0],me=ve[1],be=(0,s.useState)(1),we=be[0],Je=be[1],ze=[];return ze[0]=(0,e.jsx)(g,{radius:X,x:V,y:ee,z:ce,sizeMultiplier:pe,amount:we,onRadius:C,onHealth:m,onMaxHealth:v,onMeleeDamageLower:d,onMeleeDamageupper:h,onName:c,onDesc:f,onFlavor:p,onX:y,onY:O,onZ:b,onSizeMultiplier:I,onAmount:_}),ze[1]=(0,e.jsx)(x,{}),(0,e.jsx)(i.p8,{width:890,height:880,theme:"abstract",children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:K===0,onClick:function(){return N(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:K===1,onClick:function(){return N(1)},children:"Vore Settings [WIP]"})]}),ze[K]||"Error"]})})},g=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:d.path_name,onChange:function(h,c){return u.onName(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:d.path||"Select Path",onClick:function(h){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:u.amount,minValue:0,maxValue:256,onChange:function(h,c){return u.onAmount(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+u.sizeMultiplier+"%)",children:(0,e.jsx)(r.N6,{value:u.sizeMultiplier,minValue:50,maxValue:200,unit:"%",onChange:function(h,c){return u.onSizeMultiplier(c)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:d.loc_lock?d.loc_x:u.x,minValue:0,maxValue:256,onChange:function(h,c){return u.onX(c)}}),(0,e.jsx)(r.Q7,{value:d.loc_lock?d.loc_y:u.y,minValue:0,maxValue:256,onChange:function(h,c){return u.onY(c)}}),(0,e.jsx)(r.Q7,{value:d.loc_lock?d.loc_z:u.z,minValue:0,maxValue:256,onChange:function(h,c){return u.onZ(c)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:d.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:u.radius,disabled:!0,minValue:0,maxValue:256,onChange:function(h,c){return u.onRadius(c)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:d.use_custom_ai,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:d.ai_type||"Choose AI Type",onClick:function(h){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:d.faction||"Set Faction",onClick:function(h){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:d.intent||"Set Intent",onClick:function(h){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[d.max_health&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:d.max_health,onChange:function(h,c){return u.onMaxHealth(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:d.health,onChange:function(h,c){return u.onHealth(c)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",d.melee_damage_lower&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:d.melee_damage_lower,onChange:function(h,c){return u.onMeleeDamageLower(c)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:d.melee_damage_upper,onChange:function(h,c){return u.onMeleeDamageUpper(c)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(h,c){return u.onDesc(c)},value:d.desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:d.flavor_text,onChange:function(h,c){return u.onFlavor(c)}})]})]})}),(0,e.jsx)(r.$n,{fill:!0,content:"Spawn",color:"teal",onClick:function(){return v("start_spawn",{amount:u.amount,name:d.path_name,desc:d.desc,max_health:d.max_health,health:d.health,melee_damage_lower:d.melee_damage_lower,melee_damage_upper:d.melee_damage_upper,flavor_text:d.flavor_text,size_multiplier:u.sizeMultiplier*.01,x:d.loc_lock?d.loc_x:u.x,y:d.loc_lock?d.loc_y:u.y,z:d.loc_lock?d.loc_z:u.z,radius:u.radius})}})]})},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(M,j,t){"use strict";t.r(j),t.d(j,{MuleBot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.suffix,h=v.load,c=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!h,onClick:function(){return m("unload")}}),children:h||"None."})]}),c?(0,e.jsx)(g,{}):(0,e.jsx)(a,{})]})})})},a=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.power,h=v.locked,c=v.issilicon,f=v.auto_return,p=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:d?"On":"Off",selected:d,disabled:h&&!c,onClick:function(){return m("power")}}),children:h&&!c?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return m("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return m("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return m("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return m("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return m("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:f,content:"Auto Return Home: "+(f?"Enabled":"Disabled"),onClick:function(){return m("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!p,content:"Non-standard Cargo: "+(p?"Disabled":"Enabled"),onClick:function(){return m("cargotypes")}})]})})},g=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:d?"green":"red",content:"Safety: "+(d?"Engaged":"Disengaged (DANGER)"),onClick:function(){return m("safety")}})})}},72207:function(M,j,t){"use strict";t.r(j),t.d(j,{NIF:function(){return v}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=0,g=1,x=2,u=3,m=4,v=function(p){var C=(0,n.Oc)(),y=C.act,O=C.config,b=C.data,I=b.theme,_=b.last_notification,D=(0,s.useState)(!1),P=D[0],A=D[1],R=(0,s.useState)(null),K=R[0],N=R[1];return(0,e.jsx)(i.p8,{theme:I,width:500,height:400,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!_&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:_}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return y("dismissNotification")}})})]})})}),!!K&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+K.name+"?",onClick:function(){y("uninstall",{module:K.ref}),N(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return N(null)}})]}),children:[(0,e.jsx)(r.az,{children:K.desc}),(0,e.jsxs)(r.az,{children:["It consumes",(0,e.jsx)(r.az,{color:"good",inline:!0,children:K.p_drain}),"energy units while installed, and",(0,e.jsx)(r.az,{color:"average",inline:!0,children:K.a_drain}),"additionally while active."]}),(0,e.jsxs)(r.az,{color:K.illegal?"bad":"good",children:["It is ",K.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[K.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",K.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+O.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:P,onClick:function(){return A(!P)}}),children:P&&(0,e.jsx)(f,{})||(0,e.jsx)(c,{setViewing:N})})]})})},d=function(p,C){switch(p){case a:return C<25?"Service Needed Soon":"Operating Normally";case g:return"Insufficient Energy!";case x:return"System Failure!";case u:return"Adapting To User"}return"Unknown"},h=function(p,C){return C?p>=450?"Overcharged":p>=250?"Good Charge":"Low Charge":p>=250?"NIF Power Requirement met.":p>=150?"Fluctuations in available power.":"Power failure imminent."},c=function(p){var C=(0,n.Oc)(),y=C.act,O=C.config,b=C.data,I=b.nif_percent,_=b.nif_stat,D=b.nutrition,P=b.isSynthetic,A=b.modules,R=p.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:I,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[d(_,I)," (",(0,e.jsx)(r.zv,{value:I}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:D,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:h(D,P)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:A.map(function(K){return(0,e.jsx)(r.Ki.Item,{label:K.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return y("uninstall",{module:K.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return R(K)},tooltip:"View Information",tooltipPosition:"left"})]}),children:K.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:K.active,content:K.stat_text,onClick:function(){return y("toggle_module",{module:K.ref})}})||(0,e.jsx)(r.az,{children:K.stat_text})},K.ref)})})})]})},f=function(p){var C=(0,n.Oc)(),y=C.act,O=C.data,b=O.valid_themes,I=O.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.ms,{grow:1,selected:I||"default",options:b,onSelected:function(_){return y("setTheme",{theme:_})}})}),I?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{width:"22px",icon:"undo",color:"red",onClick:function(){y("setTheme",{theme:null})}})}):""]})})})}},96576:function(M,j,t){"use strict";t.r(j),t.d(j,{NTNetRelay:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(13221),a=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.dos_crashed,c=d.enabled,f=d.dos_overload,p=d.dos_capacity,C=(0,e.jsx)(g,{});return h&&(C=(0,e.jsx)(x,{})),(0,e.jsx)(r.p8,{width:h?700:500,height:h?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:C})})},g=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.dos_crashed,c=d.enabled,f=d.dos_overload,p=d.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:"Relay "+(c?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[f," / ",p," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},x=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data;return(0,e.jsxs)(i.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(M,j,t){"use strict";t.r(j),t.d(j,{Newscaster:function(){return f}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=t(82489),g="Main Menu",x="New Channel",u="View List",m="New Story",v="Print",d="New Wanted",h="View Wanted",c="View Selected Channel",f=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.screen,F=k.user;return(0,e.jsx)(i.p8,{width:600,height:600,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.TemporaryNotice,{decode:!0}),(0,e.jsx)(p,{})]})})},p=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.user,F=(0,n.QY)("screen",g),J=F[0],H=F[1],Y=A[J];return(0,e.jsx)(r.az,{children:(0,e.jsx)(Y,{setScreen:H})})},C=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.securityCaster,F=k.wanted_issue,J=R.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[F&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(h)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return J(u)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(x)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(m)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return J(v)},children:"Print Newspaper"})]}),!!X&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return J(d)},children:'Manage "Wanted" Issue'})})]})},y=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.c_locked,J=k.user,H=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(X),onInput:function(Y,Z){return N("set_channel_name",{val:Z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:J}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:F?"lock":"lock-open",selected:!F,onClick:function(){return N("set_channel_lock")},children:F?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return H(g)},children:"Cancel"})]})},O=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channels,F=R.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:X.map(function(J){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:J.admin?"good":J.censored?"bad":"",onClick:function(){N("show_channel",{show_channel:J.ref}),F(c)},children:(0,s.jT)(J.name)},J.name)})})},b=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.user,J=k.title,H=k.msg,Y=k.photo_data,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Receiving Channel",children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return N("set_channel_receiving")},children:X||"Unset"})}),(0,e.jsx)(r.Ki.Item,{label:"Message Author",color:"good",children:F}),(0,e.jsx)(r.Ki.Item,{label:"Message Title",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:J||"(no title yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Message Body",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:H||"(no message yet)"})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return N("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:Y?"Photo Attached":"No Photo"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},I=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.total_num,F=k.active_num,J=k.message_num,H=k.paper_remaining,Y=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Y(g)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",X," Feed channels,"," ",F," of which are active, and a total of ",J," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[H*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Y(g)},children:"Cancel"})]})},_=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.channel_name,F=k.msg,J=k.photo_data,H=k.user,Y=k.wanted_issue,Z=R.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return Z(g)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!Y&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(X),onInput:function(V,z){return N("set_channel_name",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,s.jT)(F),onInput:function(V,z){return N("set_wanted_desc",{val:z})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return N("set_attachment")},children:J?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:H})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return N("submit_wanted")},children:"Submit Wanted Issue"}),!!Y&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return N("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return Z(g)},children:"Cancel"})]})},D=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.wanted_issue,F=R.setScreen;return X?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,s.jT)(X.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,s.jT)(X.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,s.jT)(X.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:X.img&&(0,e.jsx)("img",{src:X.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return F(g)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},P=function(R){var K=(0,n.Oc)(),N=K.act,k=K.data,X=k.viewing_channel,F=k.securityCaster,J=k.company,H=R.setScreen;return X?(0,e.jsxs)(r.wn,{title:(0,s.jT)(X.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return N("toggle_d_notice",{ref:X.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(u)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:F&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,s.jT)(X.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return N("censor_channel_author",{ref:X.ref})}})||(0,e.jsx)(r.az,{children:(0,s.jT)(X.author)})})}),!!X.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",J," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!X.messages.length&&X.messages.map(function(Y){return(0,e.jsxs)(r.wn,{children:["- ",(0,s.jT)(Y.body),!!Y.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+Y.img}),(0,s.jT)(Y.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,s.jT)(Y.author)," -"," ",Y.timestamp,"]"]}),!!F&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return N("censor_channel_story_body",{ref:Y.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return N("censor_channel_story_author",{ref:Y.ref})}})]})]},Y.ref)})||!X.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return H(u)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[g]=C,A[x]=y,A[u]=O,A[m]=b,A[v]=I,A[d]=_,A[h]=D,A[c]=P},58942:function(M,j,t){"use strict";t.r(j),t.d(j,{NoticeBoard:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:m.length?(0,e.jsx)(n.Ki,{children:m.map(function(v,d){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return x("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return x("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return x("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return x("remove",{ref:v.ref})}})]},d)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosAccessDecrypter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(17575),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.message,d=m.running,h=m.rate,c=m.factor,f=m.regions,p=function(y){for(var O="";O.lengthc?O+="0":O+="1";return O},C=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||d&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",h," PHash/s",(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.az,{children:p(C)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return u("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:f.length&&(0,e.jsx)(i.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosArcade:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data;return(0,e.jsx)(i.Zm,{width:450,height:350,children:(0,e.jsx)(i.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:m.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[m.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:m.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[m.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:m.PauseState===1?"#1b3622":"#471915",children:m.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:m.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:m.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,s.l)(m.BossID)})})]})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return u("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return u("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:m.GameActive===0||m.PauseState===1,onClick:function(){return u("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){return u("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:m.GameActive===1,onClick:function(){return u("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:m.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",m.TicketCount]})]})})})}},30873:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosAtmosControl:function(){return r}});var e=t(88095),s=t(84905),n=t(42623),r=function(){return(0,e.jsx)(s.Zm,{width:870,height:708,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return u},selectCameras:function(){return m}});var e=t(88095),s=t(11358),n=t(28763),r=t(33854),i=t(4413),a=t(92514),g=t(84905),x=t(96524),u=function(d,h){var c,f;if(!h)return[];var p=d.findIndex(function(C){return C.name===h.name});return[(c=d[p-1])==null?void 0:c.name,(f=d[p+1])==null?void 0:f.name]},m=function(d,h,c){h===void 0&&(h=""),c===void 0&&(c="");var f=(0,r.XZ)(h,function(p){return p.name});return(0,n.L)([(0,s.pb)(function(p){return p==null?void 0:p.name}),h&&(0,s.pb)(f),c&&(0,s.pb)(function(p){return p.networks.includes(c)}),(0,s.Ul)(function(p){return p.name})])(d)},v=function(d){var h=(0,i.Oc)(),c=h.act,f=h.data,p=f.mapRef,C=f.activeCamera,y=m(f.cameras),O=u(y,C),b=O[0],I=O[1];return(0,e.jsx)(g.Zm,{width:870,height:708,children:(0,e.jsxs)(g.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(x.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),C&&C.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(a.$n,{icon:"chevron-left",disabled:!b,onClick:function(){return c("switch_camera",{name:b})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return c("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(a.$n,{icon:"chevron-left",onClick:function(){return c("pan",{dir:8})}}),(0,e.jsx)(a.$n,{icon:"chevron-up",onClick:function(){return c("pan",{dir:1})}}),(0,e.jsx)(a.$n,{icon:"chevron-right",onClick:function(){return c("pan",{dir:4})}}),(0,e.jsx)(a.$n,{icon:"chevron-down",onClick:function(){return c("pan",{dir:2})}})]}),(0,e.jsx)(a.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})})}},70568:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),s=t(84905),n=t(48022),r=function(){return(0,e.jsx)(s.Zm,{width:400,height:600,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosConfiguration:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.PC_device_theme,v=u.power_usage,d=u.battery_exists,h=u.battery,c=h===void 0?{}:h,f=u.disk_size,p=u.disk_used,C=u.hardware,y=C===void 0?[]:C;return(0,e.jsx)(r.Zm,{theme:m,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!d&&"average",children:d?(0,e.jsxs)(n.z2,{value:c.charge,minValue:0,maxValue:c.max,ranges:{good:[c.max/2,1/0],average:[c.max/4,c.max/2],bad:[-1/0,c.max/4]},children:[c.charge," / ",c.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:p,minValue:0,maxValue:f,color:"good",children:[p," GQ / ",f," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:y.map(function(O){return(0,e.jsx)(n.wn,{title:O.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!O.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:O.enabled,mr:1,onClick:function(){return x("PC_toggle_component",{name:O.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",O.powerusage,"W"]})]}),children:O.desc},O.name)})})]})})}},62260:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCrewManifest:function(){return r}});var e=t(88095),s=t(84905),n=t(41608),r=function(){return(0,e.jsx)(s.Zm,{width:800,height:600,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosCrewMonitor:function(){return i}});var e=t(88095),s=t(44583),n=t(84905),r=t(93643),i=function(){var a=function(f){m(f)},g=function(f){h(f)},x=(0,s.useState)(0),u=x[0],m=x[1],v=(0,s.useState)(1),d=v[0],h=v[1];return(0,e.jsx)(n.Zm,{width:800,height:600,children:(0,e.jsx)(n.Zm.Content,{children:(0,e.jsx)(r.CrewMonitorContent,{tabIndex:u,zoom:d,onTabIndex:a,onZoom:g})})})}},657:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosDigitalWarrant:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.warrantname,f=h.warrantcharges,p=h.warrantauth,C=h.type,y=h.allwarrants,O=(0,e.jsx)(g,{});return p&&(O=(0,e.jsx)(u,{})),(0,e.jsx)(i.Zm,{width:500,height:350,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:O})})},g=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return d("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(x,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(x,{type:"search"})})]})},x=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=m.type,f=h.allwarrants,p=(0,s.pb)(function(C){return C.arrestsearch===c})(f);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:c==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),p.length&&p.map(function(C){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:C.warrantname}),(0,e.jsx)(r.XI.Cell,{children:C.charges}),(0,e.jsx)(r.XI.Cell,{children:C.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("editwarrant",{id:C.id})}})})]},C.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",c," warrants found."]})})]})},u=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.warrantname,f=h.warrantcharges,p=h.warrantauth,C=h.type,y=C==="arrest",O=C==="arrest"?"Name":"Location",b=C==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:y?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return d("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return d("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return d("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,buttons:y&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return d("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("editwarrantnamecustom")}}),children:c}),(0,e.jsx)(r.Ki.Item,{label:b,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return d("editwarrantcharges")}}),children:f}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return d("editwarrantauth")}}),children:p})]})})}},5070:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosEmailAdministration:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(23969),a=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.error,p=c.cur_title,C=c.current_account,y=(0,e.jsx)(g,{});return f?y=(0,e.jsx)(x,{}):p?y=(0,e.jsx)(u,{}):C&&(y=(0,e.jsx)(m,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:y})})},g=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return h("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),f.map(function(p){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return h("viewaccount",{viewaccount:p.uid})},children:p.login},p.uid)})]})},x=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:f})},u=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(i.NtosEmailClientViewMessage,{administrator:!0})})},m=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.error,p=c.msg_title,C=c.msg_body,y=c.msg_timestamp,O=c.msg_source,b=c.current_account,I=c.cur_suspended,_=c.messages,D=c.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+b+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return h("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return h("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:_.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),_.map(function(P){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:P.source}),(0,e.jsx)(n.XI.Cell,{children:P.title}),(0,e.jsx)(n.XI.Cell,{children:P.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return h("viewmail",{viewmail:P.uid})},children:"View"})})]},P.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosEmailClient:function(){return a},NtosEmailClientViewMessage:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.PC_device_theme,b=y.error,I=y.downloading,_=y.current_account,D=(0,e.jsx)(c,{});return b?D=(0,e.jsx)(h,{error:b}):I?D=(0,e.jsx)(g,{}):_&&(D=(0,e.jsx)(x,{})),(0,e.jsx)(i.Zm,{resizable:!0,theme:O,children:(0,e.jsx)(i.Zm.Content,{scrollable:!0,children:D})})},g=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.down_filename,b=y.down_progress,I=y.down_size,_=y.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[O," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:_})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:b,maxValue:I,children:[b,"/",I," (",(0,s.LI)(b/I*100,1),"%)"]})})]})})},x=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.addressbook,I=y.new_message,_=y.cur_title,D=(0,e.jsx)(u,{});return b?D=(0,e.jsx)(v,{}):I?D=(0,e.jsx)(d,{}):_&&(D=(0,e.jsx)(m,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+O,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return C("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return C("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return C("logout")}})]}),children:D})},u=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.folder,I=y.messagecount,_=y.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:b==="Inbox",onClick:function(){return C("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Spam",onClick:function(){return C("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:b==="Deleted",onClick:function(){return C("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),_.map(function(D){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:D.source}),(0,e.jsx)(r.XI.Cell,{children:D.title}),(0,e.jsx)(r.XI.Cell,{children:D.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return C("view",{view:D.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("reply",{reply:D.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return C("delete",{delete:D.uid})},tooltip:"Delete"})]})]},D.timestamp+D.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",b,"."]})]})},m=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=f.administrator,b=y.cur_title,I=y.cur_source,_=y.cur_timestamp,D=y.cur_body,P=y.cur_hasattachment,A=y.cur_attachment_filename,R=y.cur_attachment_size,K=y.cur_uid;return(0,e.jsx)(r.wn,{title:b,buttons:O?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return C("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return C("reply",{reply:K})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return C("delete",{delete:K})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return C("save",{save:K})}}),P&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return C("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return C("cancel",{cancel:K})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:_}),P&&!O&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",R,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:D}})})})]})})},v=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("set_recipient",{set_recipient:null})}}),children:O.map(function(b){return(0,e.jsx)(r.$n,{content:b.login,fluid:!0,onClick:function(){return C("set_recipient",{set_recipient:b.login})}},b.login)})})},d=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.current_account,b=y.msg_title,I=y.msg_recipient,_=y.msg_body,D=y.msg_hasattachment,P=y.msg_attachment_filename,A=y.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return C("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(R,K){return C("edit_title",{val:K})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(R,K){return C("edit_recipient",{val:K})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return C("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:D&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return C("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return C("addattachment")},children:"Add Attachment"}),children:D&&(0,e.jsxs)(r.az,{inline:!0,children:[P," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return C("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},h=function(f){var p=(0,n.Oc)().act,C=f.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return p("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:C})})},c=function(f){var p=(0,n.Oc)(),C=p.act,y=p.data,O=y.stored_login,b=y.stored_password;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:O,onInput:function(I,_){return C("edit_login",{val:_})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:b,onInput:function(I,_){return C("edit_password",{val:_})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return C("login")},children:"Log In"})]})}},86411:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosFileManager:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.PC_device_theme,d=m.usbconnected,h=m.filename,c=m.filedata,f=m.error,p=m.files,C=p===void 0?[]:p,y=m.usbfiles,O=y===void 0?[]:y;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[h&&(0,e.jsx)(n.wn,{title:"Viewing File "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return u("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return u("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return u("PRG_closefile")}})]}),children:c&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(a,{files:C,usbconnected:d,onUpload:function(b){return u("PRG_copytousb",{uid:b})},onDelete:function(b){return u("PRG_deletefile",{uid:b})},onOpen:function(b){return u("PRG_openfile",{uid:b})},onRename:function(b,I){return u("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return u("PRG_clone",{uid:b})}})}),d&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(a,{usbmode:!0,files:O,usbconnected:d,onUpload:function(b){return u("PRG_copyfromusb",{uid:b})},onDelete:function(b){return u("PRG_deletefile",{uid:b})},onOpen:function(b){return u("PRG_openfile",{uid:b})},onRename:function(b,I){return u("PRG_rename",{uid:b,new_name:I})},onDuplicate:function(b){return u("PRG_clone",{uid:b})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("PRG_newtextfile")},children:"New Text File"})})]}),f&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return u("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:f})})]})]})})},a=function(g){var x=g.files,u=x===void 0?[]:x,m=g.usbconnected,v=g.usbmode,d=g.onUpload,h=g.onDelete,c=g.onRename,f=g.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),u.map(function(p){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:p.undeletable?p.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:p.name,currentValue:p.name,tooltip:"Rename",onCommit:function(C,y){return c(p.uid,y)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return f(p.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:p.type}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!p.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return h(p.uid)}}),!!m&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return d(p.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return d(p.uid)}}))]})})]},p.name)})]})}},96665:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosIdentificationComputer:function(){return r}});var e=t(88095),s=t(84905),n=t(17575),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosMain:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.device_theme,d=m.programs,h=d===void 0?[]:d,c=m.has_light,f=m.light_on,p=m.comp_light_color,C=m.removable_media,y=C===void 0?[]:C,O=m.login,b=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:f,onClick:function(){return u("PC_toggle_light")},children:["Flashlight: ",f?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return u("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:p})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!b.IDName,onClick:function(){return u("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",b.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",b.IDJob]})]})}),!!y.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:y.map(function(I){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return u("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:h.map(function(I){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:i[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return u("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return u("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return u("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},59895:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetChat:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.can_admin,v=u.adminmode,d=u.authed,h=u.username,c=u.active_channel,f=u.is_operator,p=u.all_channels,C=p===void 0?[]:p,y=u.clients,O=y===void 0?[]:y,b=u.messages,I=b===void 0?[]:b,_=c!==null,D=d||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(P,A){return x("PRG_newchannel",{new_channel_name:A})}}),C.map(function(P){return(0,e.jsx)(n.$n,{fluid:!0,content:P.chan,selected:P.id===c,color:"transparent",onClick:function(){return x("PRG_joinchannel",{id:P.id})}},P.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:h+"...",currentValue:h,onCommit:function(P,A){return x("PRG_changename",{new_name:A})}}),!!m&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return x("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:_&&(D?I.map(function(P){return(0,e.jsx)(n.az,{children:P.msg},P.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(P,A){return x("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:O.map(function(P){return(0,e.jsx)(n.az,{children:P.name},P.name)})}),_&&D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(P,A){return x("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return x("PRG_leavechannel")}})]}),!!f&&d&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return x("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(P,A){return x("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(P,A){return x("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetDos:function(){return i},NtosNetDosContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.relays,d=v===void 0?[]:v,h=m.focus,c=m.target,f=m.speed,p=m.overload,C=m.capacity,y=m.error;if(y)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:y}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return u("PRG_reset")}})]});var O=function(I){for(var _="",D=p/C;_.lengthD?_+="0":_+="1";return _},b=45;return c?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",f," GQ/s"]}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)}),(0,e.jsx)(n.az,{children:O(b)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:d.map(function(I){return(0,e.jsx)(n.$n,{content:I.id,selected:h===I.id,onClick:function(){return u("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!h,mt:1,onClick:function(){return u("PRG_execute")}})]})}},10864:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetDownloader:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.PC_device_theme,h=v.disk_size,c=v.disk_used,f=v.downloadable_programs,p=f===void 0?[]:f,C=v.error,y=v.hacked_programs,O=y===void 0?[]:y,b=v.hackedavailable;return(0,e.jsx)(i.Zm,{theme:d,width:480,height:735,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:C}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return m("PRG_reseterror")}})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:c,minValue:0,maxValue:h,children:c+" GQ / "+h+" GQ"})})})}),(0,e.jsx)(r.wn,{children:p.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})}),!!b&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),O.map(function(I){return(0,e.jsx)(g,{program:I},I.filename)})]})]})})},g=function(x){var u=x.program,m=(0,n.Oc)(),v=m.act,d=m.data,h=d.disk_size,c=d.disk_used,f=d.downloadcompletion,p=d.downloading,C=d.downloadname,y=d.downloadsize,O=d.downloadspeed,b=d.downloads_queue,I=h-c;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:u.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[u.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"110px",textAlign:"center",children:u.filename===C&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:y,value:f,children:[(0,s.LI)(f/y*100,1),"%\xA0(",O,"GQ/s)"]})||b.indexOf(u.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:u.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:u.size>I,onClick:function(){return v("PRG_downloadfile",{filename:u.filename})}})})]}),u.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),u.size>I&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:u.fileinfo})]})}},26055:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetMonitor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.ntnetrelays,v=u.ntnetstatus,d=u.config_softwaredownload,h=u.config_peertopeer,c=u.config_communication,f=u.config_systemcontrol,p=u.idsalarm,C=u.idsstatus,y=u.ntnetmaxlogs,O=u.maxlogs,b=u.minlogs,I=u.banned_nids,_=u.ntnetlogs,D=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return x("toggleWireless")}}),children:m?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:m})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:d?"power-off":"times",content:d?"ENABLED":"DISABLED",selected:d,onClick:function(){return x("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return x("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return x("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:f?"power-off":"times",content:f?"ENABLED":"DISABLED",selected:f,onClick:function(){return x("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return x("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return x("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:C?"power-off":"times",content:C?"ENABLED":"DISABLED",selected:C,onClick:function(){return x("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return x("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:y,minValue:b,maxValue:O,width:"39px",onChange:function(P,A){return x("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return x("purgelogs")}}),children:D.map(function(P){return(0,e.jsx)(n.az,{className:"candystripe",children:P.entry},P.entry)})})]})]})})}},10124:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNetTransfer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.error,p=c.downloading,C=c.uploading,y=c.upload_filelist,O=(0,e.jsx)(m,{});return f?O=(0,e.jsx)(a,{}):p?O=(0,e.jsx)(g,{}):C?O=(0,e.jsx)(x,{}):y.length&&(O=(0,e.jsx)(u,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:O})})},a=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Reset"}),children:["Additional Information: ",f]})},g=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.download_name,p=c.download_progress,C=c.download_size,y=c.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:p,maxValue:C,children:[p," / ",C," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[y," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Download"})})]})})},x=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.upload_clients,p=c.upload_filename,C=c.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:C?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return h("PRG_reset")},children:"Cancel Upload"})]})]})})},u=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return h("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return h("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:f.map(function(p){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return h("PRG_uploadfile",{uid:p.uid})},children:[p.filename," (",p.size,"GQ)"]},p.uid)})})]})},m=function(v){var d=(0,s.Oc)(),h=d.act,c=d.data,f=c.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return h("PRG_uploadmenu")},children:"Send File"}),children:f.length&&(0,e.jsx)(n.Ki,{children:f.map(function(p){return(0,e.jsxs)(n.Ki.Item,{label:p.uid,children:[!!p.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),p.filename,"\xA0 (",p.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return h("PRG_downloadfile",{uid:p.uid})},children:"Download"})]},p.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosNewsBrowser:function(){return a}});var e=t(88095),s=t(80676),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.article,f=h.download,p=h.message,C=(0,e.jsx)(x,{});return c?C=(0,e.jsx)(g,{}):f&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(i.Zm,{width:575,height:750,children:(0,e.jsxs)(i.Zm.Content,{scrollable:!0,children:[!!p&&(0,e.jsxs)(r.IC,{children:[p," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return d("PRG_clearmessage")}})]}),C]})})},g=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.article;if(!c)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var f=c.title,p=c.cover,C=c.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+f,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return d("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return d("PRG_reset")},children:"Close"})]}),children:[!!p&&(0,e.jsx)("img",{src:(0,s.l)(p)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})]})},x=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.showing_archived,f=h.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return d("PRG_toggle_archived")},checked:c,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:f.length&&f.map(function(p){return(0,e.jsxs)(r.Ki.Item,{label:p.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return d("PRG_openarticle",{uid:p.uid})}}),children:[p.size," GQ"]},p.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},u=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.download,f=c.download_progress,p=c.download_maxprogress,C=c.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:f,maxValue:p,children:[f," / ",p," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[C," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return d("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosOvermapNavigation:function(){return r}});var e=t(88095),s=t(84905),n=t(15156),r=function(){return(0,e.jsx)(s.Zm,{width:380,height:530,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosPowerMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(16421),r=function(){return(0,e.jsx)(s.Zm,{width:550,height:700,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosRCON:function(){return r}});var e=t(88095),s=t(84905),n=t(72128),r=function(){return(0,e.jsx)(s.Zm,{width:630,height:440,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosRevelation:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,d){return x("PRG_obfuscate",{new_name:d})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:m?"ARMED":"DISARMED",color:m?"bad":"average",onClick:function(){return x("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!m})]})})})}},17609:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosShutoffMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(52735),r=function(){return(0,e.jsx)(s.Zm,{width:627,height:700,children:(0,e.jsx)(s.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosStationAlertConsole:function(){return r}});var e=t(88095),s=t(84905),n=t(47441),r=function(){return(0,e.jsx)(s.Zm,{width:315,height:500,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),s=t(84905),n=t(67186),r=function(){return(0,e.jsx)(s.Zm,{width:600,height:400,children:(0,e.jsx)(s.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosUAV:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.current_uav,v=u.signal_strength,d=u.in_use,h=u.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:m&&m.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:m&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:m.power,onClick:function(){return x("power_uav")},children:m.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:m&&(0,e.jsx)(n.$n,{icon:"power-off",selected:d,disabled:!m.power,onClick:function(){return x("view_uav")},children:m.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:h.length&&h.map(function(c){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return x("switch_uav",{switch_uav:c.uavref})},children:c.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return x("del_uav",{del_uav:c.uavref})}})})]},c.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(M,j,t){"use strict";t.r(j),t.d(j,{NtosWordProcessor:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.PC_device_theme,v=u.error,d=u.browsing,h=u.files,c=u.usbconnected,f=u.usbfiles,p=u.filename,C=u.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:m,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return x("PRG_backtomenu")}})]})||d&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return x("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),h.map(function(y,O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:y.name}),(0,e.jsx)(n.XI.Cell,{children:y.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return x("PRG_openfile",{PRG_openfile:y.name})},children:"Open"})})]},O)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+p,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return x("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!C,onClick:function(){return x("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:C}})})]})})})}},8544:function(M,j,t){"use strict";t.r(j),t.d(j,{NumberInputModal:function(){return u}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),u=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=c.init_value,p=c.large_buttons,C=c.message,y=C===void 0?"":C,O=c.timeout,b=c.title,I=(0,n.useState)(f),_=I[0],D=I[1],P=function(R){R!==_&&D(R)},A=140+(y.length>30?Math.ceil(y.length/3):0)+(y.length&&p?5:0);return(0,e.jsxs)(a.p8,{title:b,width:270,height:A,children:[O&&(0,e.jsx)(x.Loader,{value:O}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(R){R.key===s._.Enter&&h("submit",{entry:_}),R.key===s._.Escape&&h("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.az,{color:"label",children:y})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(m,{input:_,onClick:P,onChange:P,onBlur:P})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:_})})]})})})]})},m=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=c.min_value,p=c.max_value,C=c.init_value,y=c.round_value,O=v.input,b=v.onClick,I=v.onChange,_=v.onBlur;return(0,e.jsxs)(i.BJ,{fill:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:O===f,icon:"angle-double-left",onClick:function(){return b(f)},tooltip:f?"Min ("+f+")":"Min"})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(i.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!y,minValue:f,maxValue:p,onChange:function(D,P){return I(P)},onBlur:function(D,P){return _(P)},onEnter:function(D,P){return h("submit",{entry:P})},value:O})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:O===p,icon:"angle-double-right",onClick:function(){return b(p)},tooltip:p?"Max ("+p+")":"Max"})}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.$n,{disabled:O===C,icon:"redo",onClick:function(){return b(C)},tooltip:C?"Reset ("+C+")":"Reset"})})]})}},953:function(M,j,t){"use strict";t.r(j),t.d(j,{OmniFilter:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.power,d=m.config,h=m.ports,c=m.set_flow_rate,f=m.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:d?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:d,onClick:function(){return u("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:d,onClick:function(){return u("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:h?h.map(function(p){return(0,e.jsx)(n.Ki.Item,{label:p.dir+" Port",children:d?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:p.input,icon:"compress-arrows-alt",onClick:function(){return u("switch_mode",{mode:"in",dir:p.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:p.output,icon:"expand-arrows-alt",onClick:function(){return u("switch_mode",{mode:"out",dir:p.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:p.input||p.output,content:p.f_type||"None",onClick:function(){return u("switch_filter",{mode:p.f_type,dir:p.dir})}})]}):i(p)},p.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[f," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:d?(0,e.jsx)(n.$n,{icon:"wrench",content:c/10+" L/s",onClick:function(){return u("set_flow_rate")}}):c/10+" L/s"})]})})]})})}},75520:function(M,j,t){"use strict";t.r(j),t.d(j,{OmniMixer:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){return x.input?"Input":x.output?"Output":x.f_type?x.f_type:"Disabled"},a=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.power,h=v.config,c=v.ports,f=v.set_flow_rate,p=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:h?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:d?"On":"Off",selected:d,disabled:h,onClick:function(){return m("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:h,onClick:function(){return m("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),h?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),h?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),c?c.map(function(C){return(0,e.jsx)(g,{port:C,config:h},C.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[p," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:h?(0,e.jsx)(n.$n,{icon:"wrench",content:f/10+" L/s",onClick:function(){return m("set_flow_rate")}}):f/10+" L/s"})]})})]})})},g=function(x){var u=(0,s.Oc)().act,m=x.port,v=x.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:m.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:m.input,disabled:m.output,icon:"compress-arrows-alt",onClick:function(){return u("switch_mode",{mode:m.input?"none":"in",dir:m.dir})}}):i(m)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:m.output,icon:"expand-arrows-alt",onClick:function(){return u("switch_mode",{mode:"out",dir:m.dir})}}):m.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!m.input,content:m.input?m.concentration*100+" %":"-",onClick:function(){return u("switch_con",{dir:m.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:m.con_lock?"lock":"lock-open",disabled:!m.input,selected:m.con_lock,content:m.f_type||"None",onClick:function(){return u("switch_conlock",{dir:m.dir})}})})]}):null]})}},37534:function(M,j,t){"use strict";t.r(j),t.d(j,{OperatingComputer:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],m=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.hasOccupant,O=C.choice,b;return O?b=(0,e.jsx)(h,{}):b=y?(0,e.jsx)(v,{}):(0,e.jsx)(d,{}),(0,e.jsx)(i.p8,{width:650,height:455,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!O,icon:"user",onClick:function(){return p("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!O,icon:"cog",onClick:function(){return p("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:b})]})})},v=function(c){var f=(0,n.Oc)().data,p=f.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:p.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[p.stat][0],children:a[p.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:p.maxHealth,value:p.health/p.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),g.map(function(C,y){return(0,e.jsx)(r.Ki.Item,{label:C[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:p[C[1]]/100,ranges:x,children:(0,s.LI)(p[C[1]])},y)},y)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:p.maxTemp,value:p.bodyTemperature/p.maxTemp,color:u[p.temperatureSuitability+3],children:[(0,s.LI)(p.btCelsius),"\xB0C, ",(0,s.LI)(p.btFaren),"\xB0F"]})}),!!p.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:p.bloodMax,value:p.bloodLevel/p.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[p.bloodPercent,"%, ",p.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[p.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:p.surgery&&p.surgery.length?(0,e.jsx)(r.Ki,{children:p.surgery.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:C.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:C.nextSteps.map(function(y){return(0,e.jsx)("div",{children:y},y)})})]})},C.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},d=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},h=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.verbose,O=C.health,b=C.healthAlarm,I=C.oxy,_=C.oxyAlarm,D=C.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:y,icon:y?"toggle-on":"toggle-off",content:y?"On":"Off",onClick:function(){return p(y?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"toggle-on":"toggle-off",content:O?"On":"Off",onClick:function(){return p(O?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:b,stepPixelSize:"5",ml:"0",format:function(P){return P+"%"},onChange:function(P,A){return p("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return p(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:_,stepPixelSize:"5",ml:"0",onChange:function(P,A){return p("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"On":"Off",onClick:function(){return p(D?"critOff":"critOn")}})})]})}},17511:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapDisperser:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(x){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.faillink,h=v.calibration,c=v.overmapdir,f=v.cal_accuracy,p=v.strength,C=v.range,y=v.next_shot,O=v.nopower,b=v.skill,I=v.chargeload;return d?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(i.OvermapPanControls,{actToDo:"choose",selected:function(_){return _===c}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[O&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:y===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||y>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:y})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:f}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return m("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:h.map(function(_,D){return(0,e.jsxs)(n.az,{children:["Cal #",D,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return m("calibration",{calibration:D})},children:_.toString()})]},D)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return m("strength")},children:p})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return m("range")},children:C})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return m("fire")},children:"Fire ORB"})})]})}},98203:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapEngines:function(){return i},OvermapEnginesContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.global_state,d=m.global_limit,h=m.engines_info,c=m.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return u("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return u("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return u("set_global_limit")},children:[d,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return u("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:c})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:h.map(function(f,p){return(0,e.jsxs)(n.so,{spacing:1,mt:p!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",p+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:f.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:f.eng_thrust_limiter,format:function(C){return C+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:f.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:f.eng_on?f.eng_on===1?"good":"average":"bad",children:f.eng_on?f.eng_on===1?"Online":"Booting":"Offline"}),f.eng_status.map(function(C,y){return Array.isArray(C)?(0,e.jsx)(n.az,{color:C[1],children:C[0]},y):(0,e.jsx)(n.az,{children:C},y)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:f.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return u("limit",{limit:-.1,engine:f.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return u("set_limit",{engine:f.eng_reference})},children:[f.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return u("limit",{limit:.1,engine:f.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:f.eng_on===-1,color:f.eng_on===-1?"purple":null,selected:f.eng_on===1,icon:"power-off",onClick:function(){return u("toggle_engine",{engine:f.eng_reference})},children:f.eng_on?f.eng_on===1?"Shutoff":"Booting":"Startup"})})]},p)})})]})}},79061:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapFull:function(){return x}});var e=t(88095),s=t(44583),n=t(92514),r=t(84905),i=t(98203),a=t(60224),g=t(89501),x=function(u){var m=(0,s.useState)(0),v=m[0],d=m[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return d(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return d(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return d(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(i.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(a.OvermapHelmContent,{}),v===2&&(0,e.jsx)(g.OvermapShipSensorsContent,{})]})})}},60224:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapFlightDataWrap:function(){return x},OvermapHelm:function(){return a},OvermapHelmContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(d){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(d){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(x,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(m,{})})]}),(0,e.jsx)(v,{})]})},x=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(i.OvermapFlightData,{})]})},u=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.canburn,C=f.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i.OvermapPanControls,{disabled:!p,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:C,onClick:function(){return c("manual")},icon:"compass",children:C?"Enabled":"Disabled"})]})]})},m=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.dest,C=f.d_x,y=f.d_y,O=f.speedlimit,b=f.autopilot,I=f.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return c("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{setx:!0})},children:C}),(0,e.jsx)(n.$n,{onClick:function(){return c("setcoord",{sety:!0})},children:y})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return c("speedlimit")},children:[O," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:b,disabled:!p,icon:"robot",onClick:function(){return c("apilot")},children:b?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return c("apilot_lock")},children:"Lock Autopilot"})]})},v=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.sector,C=f.s_x,y=f.s_y,O=f.sector_info,b=f.landed,I=f.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:p}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[C," : ",y]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:O}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:b})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return c("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return c("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),I.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:_.name}),(0,e.jsxs)(n.XI.Cell,{children:[_.x," : ",_.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return c("setds",{x:_.x,y:_.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("remove",{remove:_.reference})},children:"Remove"})]})]},_.name)})]})})]})}},15156:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapNavigation:function(){return a},OvermapNavigationContent:function(){return g}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(7240),a=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.sector,h=v.s_x,c=v.s_y,f=v.sector_info,p=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:p,onClick:function(){return m("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:d}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[h," : ",c]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:f})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(i.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapShieldGenerator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(u){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.modes,c=d.offline_for;return c?(0,e.jsxs)(n.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",c," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:h.map(function(f){return(0,e.jsxs)(n.wn,{title:f.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f.status,onClick:function(){return v("toggle_mode",{toggle_mode:f.flag})},children:f.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:f.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",f.multiplier]})]},f.name)})})]})},g=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.running,c=d.overloaded,f=d.mitigation_max,p=d.mitigation_physical,C=d.mitigation_em,y=d.mitigation_heat,O=d.field_integrity,b=d.max_energy,I=d.current_energy,_=d.percentage_energy,D=d.total_segments,P=d.functional_segments,A=d.field_radius,R=d.target_radius,K=d.input_cap_kw,N=d.upkeep_power_usage,k=d.power_usage,X=d.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:h===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||h===2&&(c&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||h===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||h===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",R!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[X*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:I,maxValue:b,children:[I," / ",b," MJ (",_,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:O}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[C,"% EM / ",p,"% PH / ",y,"% HE / ",f,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:N})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:K&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:K,children:[k," / ",K," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:P}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:D})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:R}),")"]})]})})},x=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.running,c=d.hacked,f=d.idle_multiplier,p=d.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[h>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),h===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),h&&c&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:p.map(function(C){return(0,e.jsx)(n.$n,{selected:C===f,disabled:h===4,onClick:function(){return v("switch_idle",{switch_idle:C})},children:C},C)})})})]})}},89501:function(M,j,t){"use strict";t.r(j),t.d(j,{OvermapShipSensors:function(){return i},OvermapShipSensorsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.viewing,d=m.on,h=m.range,c=m.health,f=m.max_health,p=m.heat,C=m.critical_heat,y=m.status,O=m.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return u("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:d,onClick:function(){return u("toggle_sensor")},children:d?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:y}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return u("range")},children:h})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[f*.75,1/0],average:[f*.25,f*.75],bad:[-1/0,f*.25]},value:c,maxValue:f,children:[c," / ",f]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[C*.75,1/0],average:[C*.5,C*.75],good:[-1/0,C*.5]},value:p,maxValue:C,children:p0||!p)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return m("cancel",{cancel:I+1})},children:"Cancel"})||null]},b)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:O.length&&O.map(function(b){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return m("queue",{queue:b.type})},children:(0,s.Sn)(b.name)})},b.name)})})]})})}},55725:function(M,j,t){"use strict";t.r(j),t.d(j,{PathogenicIsolator:function(){return x}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(5425),a=t(84905),g=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.can_print,p=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:p.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!f,icon:"print",content:"Print",onClick:function(){return h("print",{type:"virus_record",vir:p.record})}}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return h("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[p.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:p.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:p.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[p.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:p.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:p.symptoms.map(function(C){return(0,e.jsxs)(r.Ki.Item,{label:C.stage+". "+C.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",C.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",C.aggressiveness]})]},C.stage)})})})]})})})},x=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.isolating,p=(0,s.useState)(0),C=p[0],y=p[1],O=null;return C===0?O=(0,e.jsx)(u,{}):C===1&&(O=(0,e.jsx)(m,{})),(0,i.modalRegisterBodyOverride)("virus",g),(0,e.jsxs)(a.p8,{height:500,width:520,children:[(0,e.jsx)(i.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[f&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:C===0,onClick:function(){return y(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:C===1,onClick:function(){return y(1)},children:"Database"})]}),O]})]})},u=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.syringe_inserted,p=c.pathogen_pool,C=c.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!C,onClick:function(){return h("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!f,onClick:function(){return h("eject")}})]}),children:p.length&&p.map(function(y){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",y.unique_id]}),y.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return h("isolate",{isolate:y.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!y.is_in_database,onClick:function(){return h("view_entry",{vir:y.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:y.name}),y.dna]})]},y.unique_id)})||(f?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},m=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.database,p=c.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!p,onClick:function(){return h("print",{type:"virus_list"})}}),children:f.length&&f.map(function(C){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return h("view_entry",{vir:C.record})},children:C.name},C.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(M,j,t){"use strict";t.r(j),t.d(j,{Pda:function(){return u}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(82989),g=t(7339),x=function(h){var c;try{c=g("./"+h+".jsx")}catch(p){if(p.code==="MODULE_NOT_FOUND")return(0,a.z)("notFound",h);throw p}var f=c[h];return f||(0,a.z)("missingExport",h)},u=function(h){var c=function(R){P(R)},f=(0,n.Oc)(),p=f.act,C=f.data,y=C.app,O=C.owner,b=C.useRetro;if(!O)return(0,e.jsx)(i.p8,{children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var I=x(y.template),_=(0,s.useState)(!1),D=_[0],P=_[1];return(0,e.jsx)(i.p8,{width:580,height:670,theme:b?"pda-retro":null,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m,{settingsMode:D,onSettingsMode:c}),D&&(0,e.jsx)(v,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:y.icon,mr:1}),y.name]}),p:1,children:(0,e.jsx)(I,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(d,{onSettingsMode:c})]})})},m=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=p.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!C&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return f("Authenticate")},content:y})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:b}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:h.settingsMode,onClick:function(){return h.onSettingsMode(!h.settingsMode)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return f("Retro")},icon:"adjust"})]})]})})},v=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.idInserted,y=p.idLink,O=p.cartridge_name,b=p.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",content:"Retro Theme",onClick:function(){return f("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!b,content:b?"Disabled":"Enabled",onClick:function(){return f("TouchSounds")}})}),!!O&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Eject")},content:O})}),!!C&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("Authenticate")},content:y})})]})})},d=function(h){var c=(0,n.Oc)(),f=c.act,p=c.data,C=p.app,y=p.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:y?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return f("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:C.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){h.onSettingsMode(!1),f("Home")}})})]})})}},47676:function(M,j,t){"use strict";t.r(j),t.d(j,{PersonalCrafting:function(){return m}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905);function a(d,h){(h==null||h>d.length)&&(h=d.length);for(var c=0,f=new Array(h);c=d.length?{done:!0}:{done:!1,value:d[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var m=function(d){for(var h,c=(0,n.Oc)(),f=c.act,p=c.data,C=p.busy,y=p.display_craftable_only,O=p.display_compact,b=p.crafting_recipes||{},I=[],_=[],D=u(Object.keys(b)),P;!(P=D()).done;){var A=P.value,R=b[A];if("has_subcats"in R){for(var K=u(Object.keys(R)),N;!(N=K()).done;){var k=N.value;if(k!=="has_subcats"){I.push({name:k,category:A,subcategory:k});for(var X=R[k],F=u(X),J;!(J=F()).done;){var H=J.value;_.push(g({},H,{category:k}))}}}continue}I.push({name:A,category:A});for(var Y=b[A],Z=u(Y),V;!(V=Z()).done;){var z=V.value;_.push(g({},z,{category:A}))}}var Q=(0,s.useState)((h=I[0])==null?void 0:h.name),ee=Q[0],oe=Q[1],ne=_.filter(function(ce){return ce.category===ee});return(0,e.jsx)(i.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!!C&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:O,onClick:function(){return f("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:y,onClick:function(){return f("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(ce){return(0,e.jsx)(r.tU.Tab,{selected:ce.name===ee,onClick:function(){oe(ce.name),f("set_category",{category:ce.category,subcategory:ce.subcategory})},children:ce.name},ce.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ne})})]})})]})})},v=function(d){var h=d.craftables,c=h===void 0?[]:h,f=(0,n.Oc)(),p=f.act,C=f.data,y=C.craftability,O=y===void 0?{}:y,b=C.display_compact,I=C.display_craftable_only;return c.map(function(_){return I&&!O[_.ref]?null:b?(0,e.jsx)(r.Ki.Item,{label:_.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!O[_.ref],tooltip:_.tool_text&&"Tools needed: "+_.tool_text,tooltipPosition:"left",onClick:function(){return p("make",{recipe:_.ref})}}),children:_.req_text},_.name):(0,e.jsx)(r.wn,{title:_.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!O[_.ref],onClick:function(){return p("make",{recipe:_.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!_.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:_.req_text}),!!_.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:_.catalyst_text}),!!_.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:_.tool_text})]})},_.name)})}},75226:function(M,j,t){"use strict";t.r(j),t.d(j,{Photocopier:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(u){var m=(0,s.Oc)().data,v=m.isAI,d=m.has_toner,h=m.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[d?(0,e.jsx)(a,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.jsx)(g,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(x,{})]})})},a=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.max_toner,c=d.current_toner,f=h*.66,p=h*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[f,h],average:[p,f],bad:[0,p]},value:c,minValue:0,maxValue:h})})},g=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.num_copies,c=d.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:h,onDrag:function(f,p){return v("set_copies",{num_copies:p})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},x=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!h,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(M,j,t){"use strict";t.r(j),t.d(j,{PipeDispenser:function(){return g}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=t(62133),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.disposals,h=v.p_layer,c=v.pipe_layers,f=v.categories,p=f===void 0?[]:f,C=(0,s.useState)("categoryName"),y=C[0],O=C[1],b=p.find(function(I){return I.cat_name===y})||p[0];return(0,e.jsx)(i.p8,{width:425,height:515,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!d&&(0,e.jsx)(r.wn,{title:"Layer",children:(0,e.jsx)(r.az,{children:Object.keys(c).map(function(I){return(0,e.jsx)(r.$n.Checkbox,{fluid:!0,checked:c[I]===h,content:I,onClick:function(){return m("p_layer",{p_layer:c[I]})}},I)})})}),(0,e.jsxs)(r.wn,{title:"Pipes",children:[(0,e.jsx)(r.tU,{children:p.map(function(I,_){return(0,e.jsx)(r.tU.Tab,{fluid:!0,icon:a.ICON_BY_CATEGORY_NAME[I.cat_name],selected:I.cat_name===b.cat_name,onClick:function(){return O(I.cat_name)},children:I.cat_name},I.cat_name)})}),b==null?void 0:b.recipes.map(function(I){return(0,e.jsx)(r.$n,{fluid:!0,ellipsis:!0,content:I.pipe_name,title:I.pipe_name,onClick:function(){return m("dispense_pipe",{ref:I.ref,bent:I.bent,category:b.cat_name})}},I.pipe_name)})]})]})})}},28165:function(M,j,t){"use strict";t.r(j),t.d(j,{PlantAnalyzer:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)().data,u=250;return x.seed&&(u+=18*x.seed.trait_info.length),x.reagents&&x.reagents.length&&(u+=55,u+=20*x.reagents.length),(0,e.jsx)(r.p8,{width:400,height:u,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.no_seed,d=m.seed,h=m.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return u("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return u("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[d.name,"#",d.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:d.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:d.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:d.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:d.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:d.potency})]}),h.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:h.map(function(c){return(0,e.jsxs)(n.Ki.Item,{label:c.name,children:[c.volume," unit(s)."]},c.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:d.trait_info.map(function(c){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:c},c)})})]})}},73304:function(M,j,t){"use strict";t.r(j),t.d(j,{PlayerNotes:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.device_theme,v=u.filter,d=u.pages,h=u.ckeys,c=function(f){return f()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:m,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return x("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return x("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(f,p){return x("show_player_info",{name:p})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return x("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:h.map(function(f){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:f.desc,onClick:function(){return x("show_player_info",{name:f.name})},children:f.name})})},f.name)})}),(0,e.jsx)(n.cG,{}),c(function(){for(var f=function(y){p.push((0,e.jsx)(n.$n,{onClick:function(){return x("set_page",{index:y})},children:y},y))},p=[],C=1;C=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(i.p8,{width:450,height:340,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[!m.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:m.active?"power-off":"times",onClick:function(){return u("toggle_power")},selected:m.active,disabled:!m.ready_to_boot,children:m.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:m.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:m.active,onClick:function(){return u("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:d,children:[m.fuel_stored,"cm\xB3 ",m.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:m.fuel_stored/m.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[m.fuel_stored,"cm\xB3 / ",m.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[m.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:m.temperature_current,maxValue:m.temperature_max+30,color:m.temperature_overheat?"bad":"good",children:[(0,s.LI)(m.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:m.unsafe_output?"bad":null,children:m.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return u("lower_power")},children:m.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return u("higher_power")},children:m.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!m.connected&&"bad",children:m.connected?m.power_available:"Unconnected"})})]})})]})})}},60185:function(M,j,t){"use strict";t.r(j),t.d(j,{PortablePump:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62681),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.direction,d=m.target_pressure,h=m.default_pressure,c=m.min_pressure,f=m.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return u("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:c,maxValue:f,value:d,unit:"kPa",stepPixelSize:.3,onChange:function(p,C){return u("pressure",{pressure:C})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:d===c,onClick:function(){return u("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:d===h,onClick:function(){return u("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:d===f,onClick:function(){return u("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(M,j,t){"use strict";t.r(j),t.d(j,{PortableScrubber:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(62681),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.rate,d=m.minrate,h=m.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(i.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:d,maxValue:h,value:v,unit:"L/s",onChange:function(c,f){return u("volume_adj",{vol:f})}})})})})]})})}},81537:function(M,j,t){"use strict";t.r(j),t.d(j,{PortableTurret:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.locked,v=u.on,d=u.lethal,h=u.lethal_is_configurable,c=u.targetting_is_configurable,f=u.check_weapons,p=u.neutralize_noaccess,C=u.neutralize_norecord,y=u.neutralize_criminals,O=u.neutralize_all,b=u.neutralize_nonsynth,I=u.neutralize_unidentified,_=u.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",m?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:m,onClick:function(){return x("power")}})}),!!h&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:d?"exclamation-triangle":"times",content:d?"On":"Off",color:d?"bad":"",disabled:m,onClick:function(){return x("lethal")}})})]})}),!!c&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:y,content:"Wanted Criminals",disabled:m,onClick:function(){return x("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:C,content:"No Sec Record",disabled:m,onClick:function(){return x("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:f,content:"Unauthorized Weapons",disabled:m,onClick:function(){return x("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Unauthorized Access",disabled:m,onClick:function(){return x("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:m,onClick:function(){return x("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:b,content:"All Non-Synthetics",disabled:m,onClick:function(){return x("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"Downed Targets",disabled:m,onClick:function(){return x("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"All Entities",disabled:m,onClick:function(){return x("authall")}})]})]})]})})}},16421:function(M,j,t){"use strict";t.r(j),t.d(j,{AreaCharge:function(){return f},PowerMonitor:function(){return d},PowerMonitorContent:function(){return h},PowerMonitorFocus:function(){return c},powerRank:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(5229),i=t(44583),a=t(4413),g=t(92514),x=t(84905);function u(){return u=Object.assign||function(C){for(var y=1;y50?"battery-half":"battery-quarter")||y===1&&"bolt"||y===2&&"battery-full",color:y===0&&(O>50?"yellow":"red")||y===1&&"yellow"||y===2&&"green"}),(0,e.jsx)(g.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(O)+"%"})]})},p=function(C){var y=C.status,O=!!(y&2),b=!!(y&1),I=(O?"On":"Off")+(" ["+(b?"auto":"manual")+"]");return(0,e.jsx)(g.BK,{color:O?"good":"bad",content:b?void 0:"M",title:I})}},63054:function(M,j,t){"use strict";t.r(j),t.d(j,{PressureRegulator:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.pressure_set,d=u.max_pressure,h=u.input_pressure,c=u.output_pressure,f=u.regulate_mode,p=u.set_flow_rate,C=u.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:h/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:C/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:m?"Unlocked":"Closed",selected:m,onClick:function(){return x("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:f===0,onClick:function(){return x("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:f===1,onClick:function(){return x("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:f===2,onClick:function(){return x("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return x("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return x("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return x("set_flow_rate",{press:"set"})}})]}),children:[p/10," L/s"]})]})})]})})}},21143:function(M,j,t){"use strict";t.r(j),t.d(j,{PrisonerManagement:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.locked,v=u.chemImplants,d=u.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:m&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return x("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return x("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return x("inject",{imp:h.ref,val:10})},children:"(10)"})]})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:d.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),d.map(function(h){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[h.host," (",h.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:h.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return x("warn",{imp:h.ref})},children:"Message"})})]},h.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(M,j,t){"use strict";t.r(j),t.d(j,{RCON:function(){return m},RCONContent:function(){return v}});var e=t(88095),s=t(5229),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(84905),u=1e3,m=function(p){return(0,e.jsx)(x.p8,{width:630,height:540,children:(0,e.jsx)(x.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(p){var C=(0,r.useState)(0),y=C[0],O=C[1],b;return y===0?b=(0,e.jsx)(d,{}):y===1&&(b=(0,e.jsx)(f,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:y===0,onClick:function(){return O(0)},children:[(0,e.jsx)(a.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(a.tU.Tab,{selected:y===1,onClick:function(){return O(1)},children:[(0,e.jsx)(a.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(a.az,{m:2,children:b})]})},d=function(p){var C=(0,i.Oc)(),y=C.act,O=C.data,b=O.smes_info,I=O.pages,_=O.current_page,D=function(P){return P()};return(0,e.jsxs)(a.wn,{title:"SMESs (Page "+_+")",children:[(0,e.jsx)(a.BJ,{vertical:!0,children:b.map(function(P){return(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(h,{smes:P})},P.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),D(function(){for(var P=function(K){A.push((0,e.jsx)(a.$n,{selected:_===K,onClick:function(){return y("set_smes_page",{index:K})},children:K},K))},A=[],R=1;R=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",y.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",y.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",y.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:y.desc})]}),y.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,s.ZH)(y.chargetype)}),y.charges.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:(0,s.ZH)(b.caption),children:(0,e.jsx)(r.$n,{selected:y.realchargetype===b.index,icon:"arrow-right",onClick:function(){return d("interact_module",{module:y.index,module_mode:"select_charge_type",charge_type:b.index})}})},b.caption)})]})})}):null]},y.name)})]})}},51065:function(M,j,t){"use strict";t.r(j),t.d(j,{Radio:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(1568),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.rawfreq,h=v.minFrequency,c=v.maxFrequency,f=v.listening,p=v.broadcasting,C=v.subspace,y=v.subspaceSwitchable,O=v.chan_list,b=v.loudspeaker,I=v.mic_cut,_=v.spk_cut,D=v.useSyndMode,P=i.Fo.find(function(R){return R.freq===Number(d)}),A=156;return O&&O.length>0?A+=O.length*28+6:A+=24,y&&(A+=38),(0,e.jsx)(a.p8,{width:310,height:A,resizable:!0,theme:D?"syndicate":"",children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:h/10,maxValue:c/10,value:d/10,format:function(R){return(0,s.Mg)(R,1)},onDrag:function(R,K){return m("setFrequency",{freq:(0,s.LI)(K*10)})}}),P&&(0,e.jsxs)(r.az,{inline:!0,color:P.color,ml:2,children:["[",P.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:f?"volume-up":"volume-mute",selected:f,disabled:_,onClick:function(){return m("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:p?"microphone":"microphone-slash",selected:p,disabled:I,onClick:function(){return m("broadcast")}}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:C,content:"Subspace Tx "+(C?"ON":"OFF"),onClick:function(){return m("subspace")}})}),!!y&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:b?"volume-up":"volume-mute",selected:b,content:"Loudspeaker",onClick:function(){return m("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!O||O.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:O?O.map(function(R){var K=i.Fo.find(function(k){return k.freq===Number(R.freq)}),N="default";return K&&(N=K.color),(0,e.jsx)(r.Ki.Item,{label:R.display_name,labelColor:N,textAlign:"right",children:R.secure_channel&&C?(0,e.jsx)(r.$n,{icon:R.sec_channel_listen?"square-o":"check-square-o",selected:!R.sec_channel_listen,content:R.sec_channel_listen?"Off":"On",onClick:function(){return m("channel",{channel:R.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:R.chan===d,onClick:function(){return m("specFreq",{channel:R.chan})}})},R.chan)}):null})]})]})})}},62133:function(M,j,t){"use strict";t.r(j),t.d(j,{ICON_BY_CATEGORY_NAME:function(){return u},RapidPipeDispenser:function(){return c}});var e=t(88095),s=t(84352),n=t(33854),r=t(44583),i=t(4413),a=t(92514),g=t(84905),x=["Atmospherics","Disposals"],u={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},m=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],v=function(f){var p=(0,i.Oc)(),C=p.act,y=p.data,O=y.category,b=y.selected_color,I=y.mode;return(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Category",children:x.map(function(_,D){return(0,e.jsx)(a.$n,{selected:O===D,icon:u[_],color:"transparent",onClick:function(){return C("category",{category:D})},children:_},_)})}),(0,e.jsx)(a.Ki.Item,{label:"Modes",children:(0,e.jsx)(a.BJ,{fill:!0,children:m.map(function(_){return(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I&_.bitmask,fluid:!0,content:_.name,onClick:function(){return C("mode",{mode:_.bitmask})}})},_.bitmask)})})}),(0,e.jsxs)(a.Ki.Item,{label:"Color",children:[(0,e.jsx)(a.az,{inline:!0,width:"64px",color:y.paint_colors[b],children:(0,n.ZH)(b)}),Object.keys(y.paint_colors).map(function(_){return(0,e.jsx)(a.BK,{ml:1,color:y.paint_colors[_],onClick:function(){return C("color",{paint_color:_})}},_)})]})]})})},d=function(f){var p=(0,i.Oc)(),C=p.act,y=p.data,O=y.category,b=y.piping_layer,I=y.pipe_layers,_=y.preview_rows.flatMap(function(D){return D.previews});return(0,e.jsxs)(a.wn,{fill:!0,width:7.5,children:[O===0&&(0,e.jsx)(a.BJ,{vertical:!0,mb:1,children:Object.keys(I).map(function(D){return(0,e.jsx)(a.BJ.Item,{my:0,children:(0,e.jsx)(a.$n.Checkbox,{checked:I[D]===b,content:D,onClick:function(){return C("piping_layer",{piping_layer:I[D]})}})},D)})}),(0,e.jsx)(a.az,{width:"120px",children:_.map(function(D){return(0,e.jsx)(a.$n,{ml:0,title:D.dir_name,selected:D.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return C("setdir",{dir:D.dir,flipped:D.flipped})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["pipes32x32",D.dir+"-"+D.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},D.dir)})})]})},h=function(f){var p=(0,i.Oc)(),C=p.act,y=p.data,O=y.categories,b=O===void 0?[]:O,I=(0,r.useState)("categoryName"),_=I[0],D=I[1],P=b.find(function(A){return A.cat_name===_})||b[0];return(0,e.jsxs)(a.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(a.tU,{children:b.map(function(A,R){return(0,e.jsx)(a.tU.Tab,{fluid:!0,icon:u[A.cat_name],selected:A.cat_name===P.cat_name,onClick:function(){return D(A.cat_name)},children:A.cat_name},A.cat_name)})}),P==null?void 0:P.recipes.map(function(A){return(0,e.jsx)(a.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:A.selected,content:A.pipe_name,title:A.pipe_name,onClick:function(){return C("pipe_type",{pipe_type:A.pipe_index,category:P.cat_name})}},A.pipe_index)})]})},c=function(f){var p=(0,i.Oc)(),C=p.act,y=p.data,O=y.category;return(0,e.jsx)(g.p8,{width:550,height:570,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(v,{})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(d,{})})})}),(0,e.jsx)(a.BJ.Item,{grow:!0,children:(0,e.jsx)(h,{})})]})})]})})})}},53112:function(M,j,t){"use strict";t.r(j),t.d(j,{RequestConsole:function(){return R}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=0,g=1,x=2,u=3,m=4,v=5,d=6,h=7,c=8,f=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!F,icon:F?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",F?"OFF":"ON"]})})},p=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(O,{dept_list:J,department:F})})},C=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(O,{dept_list:J,department:F})})},y=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(O,{dept_list:J,department:F})})},O=function(K){var N=(0,n.Oc)().act,k=K.dept_list,X=K.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(F){return F!==X&&(0,e.jsx)(r.Ki.Item,{label:F,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return N("write",{write:F,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return N("write",{write:F,priority:2})},children:"High Priority"})]})})||null})})},b=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},I=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:a})},children:"Continue"})})]})},_=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:F.length&&F.map(function(J,H){return(0,e.jsx)(r.Ki.Item,{label:(0,s.jT)(J[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:H+1})},children:"Print"}),children:(0,s.jT)(J[1])},H)})||(0,e.jsx)(r.az,{children:"No messages."})})},D=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.message,J=X.recipient,H=X.priority,Y=X.msgStamped,Z=X.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+J,children:F}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:H===2?"High Priority":H===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:Z?"good":"bad",children:(0,s.jT)(Z)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:Y?"good":"bad",children:(0,s.jT)(Y)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:J})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},P=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.department,J=X.screen,H=X.message_log,Y=X.newmessagepriority,Z=X.silent,V=X.announcementConsole,z=X.assist_dept,Q=X.supply_dept,ee=X.info_dept,oe=X.message,ne=X.recipient,ce=X.priority,de=X.msgStamped,ve=X.msgVerified,pe=X.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[pe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:oe||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!oe||!pe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:a})},children:"Back"})]})},A={};A[a]=f,A[g]=C,A[x]=p,A[u]=y,A[m]=b,A[v]=I,A[d]=_,A[h]=D,A[c]=P;var R=function(K){var N=(0,n.Oc)(),k=N.act,X=N.data,F=X.screen,J=X.newmessagepriority,H=X.announcementConsole,Y=A[F];return(0,e.jsx)(i.p8,{width:520,height:410,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:F===d,onClick:function(){return k("setScreen",{setScreen:d})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:F===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:F===x,onClick:function(){return k("setScreen",{setScreen:x})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:F===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"share-square-o",children:"Report"}),H&&(0,e.jsx)(r.tU.Tab,{selected:F===c,onClick:function(){return k("setScreen",{setScreen:c})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:F===a,onClick:function(){return k("setScreen",{setScreen:a})},icon:"cog"})]}),J&&(0,e.jsx)(r.wn,{title:J>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:J>1?"bad":"average",bold:J>1})||null,(0,e.jsx)(Y,{})]})})}},51634:function(M,j,t){"use strict";t.r(j),t.d(j,{ResearchConsole:function(){return O}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.tech;return(0,e.jsx)(i.wn,{title:"Current Research Levels",buttons:(0,e.jsx)(i.$n,{icon:"print",onClick:function(){return _("print",{print:1})},children:"Print This Page"}),children:(0,e.jsx)(i.XI,{children:P.map(function(A){return(0,e.jsxs)(i.XI.Row,{children:[(0,e.jsxs)(i.XI.Cell,{children:[(0,e.jsx)(i.az,{color:"label",children:A.name}),(0,e.jsxs)(i.az,{children:[" - Level ",A.level]})]}),(0,e.jsx)(i.XI.Cell,{children:(0,e.jsx)(i.az,{color:"label",children:A.desc})})]},A.name)})})})},x=function(b){var I=(0,r.Oc)().data,_=b.title,D=b.target,P=I[D];return typeof P=="number"?_+" - Page "+(P+1):_},u=function(b){var I=(0,r.Oc)().act,_=b.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"undo",onClick:function(){return I(_,{reset:!0})}}),(0,e.jsx)(i.$n,{icon:"chevron-left",onClick:function(){return I(_,{reverse:-1})}}),(0,e.jsx)(i.$n,{icon:"chevron-right",onClick:function(){return I(_,{reverse:1})}})]})},m=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.designs;return(0,e.jsxs)(i.wn,{title:(0,e.jsx)(x,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"print",onClick:function(){return _("print",{print:2})},children:"Print This Page"}),(0,e.jsx)(u,{target:"design_page"})||null]}),children:[(0,e.jsx)(i.pd,{fluid:!0,placeholder:"Search for...",value:D.search,onInput:function(A,R){return _("search",{search:R})},mb:1}),P&&P.length&&(0,e.jsx)(i.Ki,{children:P.map(function(A){return(0,e.jsx)(i.Ki.Item,{label:A.name,children:A.desc},A.name)})})||(0,e.jsx)(i.az,{color:"warning",children:"No designs found."})]})},v=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.tech,A=b.disk;return!A||!A.present?null:b.saveDialog?(0,e.jsx)(i.wn,{title:"Load Technology to Disk",buttons:(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onSaveDialog(!1)}}),children:(0,e.jsx)(i.Ki,{children:P.map(function(R){return(0,e.jsx)(i.Ki.Item,{label:R.name,children:(0,e.jsx)(i.$n,{icon:"save",onClick:function(){b.onSaveDialog(!1),_("copy_tech",{copy_tech_ID:R.id})},children:"Copy To Disk"})},R.name)})})}):(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.Ki,{children:(0,e.jsx)(i.Ki.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),A.stored&&(0,e.jsxs)(i.az,{mt:2,children:[(0,e.jsx)(i.az,{children:A.name}),(0,e.jsxs)(i.az,{children:["Level: ",A.level]}),(0,e.jsxs)(i.az,{children:["Description: ",A.desc]}),(0,e.jsxs)(i.az,{mt:1,children:[(0,e.jsx)(i.$n,{icon:"save",onClick:function(){return _("updt_tech")},children:"Upload to Database"}),(0,e.jsx)(i.$n,{icon:"trash",onClick:function(){return _("clear_tech")},children:"Clear Disk"}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})||(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{children:"This disk has no data stored on it."}),(0,e.jsx)(i.$n,{icon:"save",onClick:function(){return b.onSaveDialog(!0)},children:"Load Tech To Disk"}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return _("eject_tech")},children:"Eject Disk"})]})]})},d=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.designs,A=b.disk;return!A||!A.present?null:b.saveDialog?(0,e.jsxs)(i.wn,{title:(0,e.jsx)(x,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Back",onClick:function(){return b.onSaveDialog(!1)}}),(0,e.jsx)(u,{target:"design_page"})||null]}),children:[(0,e.jsx)(i.pd,{fluid:!0,placeholder:"Search for...",value:D.search,onInput:function(R,K){return _("search",{search:K})},mb:1}),P&&P.length&&(0,e.jsx)(i.Ki,{children:P.map(function(R){return(0,e.jsx)(i.Ki.Item,{label:R.name,children:(0,e.jsx)(i.$n,{icon:"save",onClick:function(){b.onSaveDialog(!1),_("copy_design",{copy_design_ID:R.id})},children:"Copy To Disk"})},R.name)})})||(0,e.jsx)(i.az,{color:"warning",children:"No designs found."})]}):(0,e.jsx)(i.az,{children:A.stored&&(0,e.jsxs)(i.az,{children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Name",children:A.name}),(0,e.jsx)(i.Ki.Item,{label:"Lathe Type",children:A.build_type}),(0,e.jsx)(i.Ki.Item,{label:"Required Materials",children:Object.keys(A.materials).map(function(R){return(0,e.jsxs)(i.az,{children:[R," x ",A.materials[R]]},R)})})]}),(0,e.jsxs)(i.az,{mt:1,children:[(0,e.jsx)(i.$n,{icon:"save",onClick:function(){return _("updt_design")},children:"Upload to Database"}),(0,e.jsx)(i.$n,{icon:"trash",onClick:function(){return _("clear_design")},children:"Clear Disk"}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})]})||(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.az,{mb:.5,children:"This disk has no data stored on it."}),(0,e.jsx)(i.$n,{icon:"save",onClick:function(){return b.onSaveDialog(!0)},children:"Load Design To Disk"}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return _("eject_design")},children:"Eject Disk"})]})})},h=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.info,A=P.d_disk,R=P.t_disk;return!A.present&&!R.present?(0,e.jsx)(i.wn,{title:"Disk Operations",children:"No disk inserted."}):(0,e.jsxs)(i.wn,{title:"Disk Operations",children:[(0,e.jsx)(v,{disk:R,saveDialog:b.saveDialogTech,onSaveDialog:b.onSaveDialogTech}),(0,e.jsx)(d,{disk:A,saveDialog:SaveDialogDesign,onSaveDialog:onSaveDialogDesign})]})},c=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.info.linked_destroy;if(!P.present)return(0,e.jsx)(i.wn,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var A=P.loaded_item,R=P.origin_tech;return(0,e.jsx)(i.wn,{title:"Destructive Analyzer",children:A&&(0,e.jsxs)(i.az,{children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Name",children:A}),(0,e.jsx)(i.Ki.Item,{label:"Origin Tech",children:(0,e.jsx)(i.Ki,{children:R.length&&R.map(function(K){return(0,e.jsxs)(i.Ki.Item,{label:K.name,children:[K.level,"\xA0\xA0",K.current&&"(Current: "+K.current+")"]},K.name)})||(0,e.jsx)(i.Ki.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.jsx)(i.$n,{mt:1,color:"red",icon:"eraser",onClick:function(){return _("deconstruct")},children:"Deconstruct Item"}),(0,e.jsx)(i.$n,{icon:"eject",onClick:function(){return _("eject_item")},children:"Eject Item"})]})||(0,e.jsx)(i.az,{children:"No Item Loaded. Standing-by..."})})},f=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=b.target,A=b.designs,R=b.buildName,K=b.buildFiveName;return P?(0,e.jsxs)(i.wn,{title:(0,e.jsx)(x,{target:"builder_page",title:"Designs"}),buttons:(0,e.jsx)(u,{target:"builder_page"}),children:[(0,e.jsx)(i.pd,{fluid:!0,placeholder:"Search for...",value:D.search,onInput:function(N,k){return _("search",{search:k})},mb:1}),A&&A.length?A.map(function(N){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(i.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(i.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:N.name}),(0,e.jsxs)(i.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(i.$n,{mb:-1,icon:"wrench",onClick:function(){return _(R,{build:N.id,imprint:N.id})},children:"Build"}),K&&(0,e.jsx)(i.$n,{mb:-1,onClick:function(){return _(K,{build:N.id,imprint:N.id})},children:"x5"})]}),(0,e.jsxs)(i.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(i.az,{inline:!0,color:"label",children:N.mat_list.join(" ")}),(0,e.jsx)(i.az,{inline:!0,color:"average",ml:1,children:N.chem_list.join(" ")})]})]}),(0,e.jsx)(i.cG,{})]},N.id)}):(0,e.jsx)(i.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(i.az,{color:"bad",children:"Error"})},p=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=b.name,A=null,R=null;if(P==="Protolathe"?(A=D.info.linked_lathe,R=D.lathe_designs):(A=D.info.linked_imprinter,R=D.imprinter_designs),!A||!A.present)return(0,e.jsxs)(i.wn,{title:P,children:["No ",P," found."]});var K=A.total_materials,N=A.max_materials,k=A.total_volume,X=A.max_volume,F=A.busy,J=A.mats,H=A.reagents,Y=A.queue,Z="transparent",V=!1,z="layer-group";F?(z="hammer",Z="average",V=!0):Y&&Y.length&&(z="sync",Z="green",V=!0);var Q=P==="Protolathe"?"removeP":"removeI",ee=P==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",oe=P==="Protolathe"?"disposeP":"disposeI",ne=P==="Protolathe"?"disposeallP":"disposeallI";return(0,e.jsxs)(i.wn,{title:P,buttons:F&&(0,e.jsx)(i.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Materials",children:(0,e.jsxs)(i.z2,{value:K,maxValue:N,children:[K," cm\xB3 / ",N," cm\xB3"]})}),(0,e.jsx)(i.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(i.z2,{value:k,maxValue:X,children:[k,"u / ",X,"u"]})})]}),(0,e.jsxs)(i.tU,{mt:1,children:[(0,e.jsx)(i.tU.Tab,{icon:"wrench",selected:b.protoTab===0,onClick:function(){return b.onProtoTab(0)},children:"Build"}),(0,e.jsx)(i.tU.Tab,{icon:z,iconSpin:V,color:Z,selected:b.protoTab===1,onClick:function(){return b.onProtoTab(1)},children:"Queue"}),(0,e.jsx)(i.tU.Tab,{icon:"cookie-bite",selected:b.protoTab===2,onClick:function(){return b.onProtoTab(2)},children:"Mat Storage"}),(0,e.jsx)(i.tU.Tab,{icon:"flask",selected:b.protoTab===3,onClick:function(){return b.onProtoTab(3)},children:"Chem Storage"})]}),b.protoTab===0&&(0,e.jsx)(f,{target:A,designs:R,buildName:P==="Protolathe"?"build":"imprint",buildFiveName:P==="Protolathe"?"buildfive":null})||b.protoTab===1&&(0,e.jsx)(i.Ki,{children:Y.length&&Y.map(function(ce,de){return ce.index===1?(0,e.jsx)(i.Ki.Item,{label:ce.name,labelColor:"bad",children:F?(0,e.jsx)(i.$n,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.jsxs)(i.az,{children:["(Awaiting Materials)",(0,e.jsx)(i.$n,{ml:1,icon:"trash",onClick:function(){var ve;return _(Q,(ve={},ve[Q]=ce.index,ve))},children:"Remove"})]})},de):(0,e.jsx)(i.Ki.Item,{label:ce.name,children:(0,e.jsx)(i.$n,{icon:"trash",onClick:function(){var ve;return _(Q,(ve={},ve[Q]=ce.index,ve))},children:"Remove"})},ce.name)})||(0,e.jsx)(i.az,{m:1,children:"Queue Empty."})})||b.protoTab===2&&(0,e.jsx)(i.Ki,{children:J.map(function(ce){var de=(0,n.useState)(0),ve=de[0],pe=de[1];return(0,e.jsxs)(i.Ki.Item,{label:(0,s.Sn)(ce.name),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Q7,{minValue:0,width:"100px",value:ve,maxValue:ce.sheets,onDrag:function(me,be){return pe(be)}}),(0,e.jsx)(i.$n,{icon:"eject",disabled:!ce.removable,onClick:function(){pe(0);var me;_(ee,(me={},me[ee]=ce.name,me.amount=ve,me))},children:"Num"}),(0,e.jsx)(i.$n,{icon:"eject",disabled:!ce.removable,onClick:function(){var me;return _(ee,(me={},me[ee]=ce.name,me.amount=50,me))},children:"All"})]}),children:[ce.amount," cm\xB3"]},ce.name)})})||b.protoTab===3&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.Ki,{children:H.length&&H.map(function(ce){return(0,e.jsxs)(i.Ki.Item,{label:ce.name,children:[ce.volume,"u",(0,e.jsx)(i.$n,{ml:1,icon:"eject",onClick:function(){return _(oe,{dispose:ce.id})},children:"Purge"})]},ce.name)})||(0,e.jsx)(i.Ki.Item,{label:"Empty",children:"No chems detected"})}),(0,e.jsx)(i.$n,{mt:1,icon:"trash",onClick:function(){return _(ne)},children:"Disposal All Chemicals In Storage"})]})||(0,e.jsx)(i.az,{children:"Error"})]})},C=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.info,A=P.sync,R=P.linked_destroy,K=P.linked_imprinter,N=P.linked_lathe;return(0,e.jsxs)(i.wn,{title:"Settings",children:[(0,e.jsxs)(i.tU,{children:[(0,e.jsx)(i.tU.Tab,{icon:"cogs",onClick:function(){return b.onSettingsTab(0)},selected:b.settingsTab===0,children:"General"}),(0,e.jsx)(i.tU.Tab,{icon:"link",onClick:function(){return b.onSettingsTab(1)},selected:b.settingsTab===1,children:"Device Linkages"})]}),b.settingsTab===0&&(0,e.jsxs)(i.az,{children:[A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"sync",onClick:function(){return _("sync")},children:"Sync Database with Network"}),(0,e.jsx)(i.$n,{fluid:!0,icon:"unlink",onClick:function(){return _("togglesync")},children:"Disconnect from Research Network"})]})||(0,e.jsx)(i.$n,{fluid:!0,icon:"link",onClick:function(){return _("togglesync")},children:"Connect to Research Network"}),(0,e.jsx)(i.$n,{fluid:!0,icon:"lock",onClick:function(){return _("lock")},children:"Lock Console"}),(0,e.jsx)(i.$n,{fluid:!0,color:"red",icon:"trash",onClick:function(){return _("reset")},children:"Reset R&D Database"})]})||b.settingsTab===1&&(0,e.jsxs)(i.az,{children:[(0,e.jsx)(i.$n,{fluid:!0,icon:"sync",mb:1,onClick:function(){return _("find_device")},children:"Re-sync with Nearby Devices"}),(0,e.jsxs)(i.Ki,{children:[R.present&&(0,e.jsx)(i.Ki.Item,{label:"Destructive Analyzer",children:(0,e.jsx)(i.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,N.present&&(0,e.jsx)(i.Ki.Item,{label:"Protolathe",children:(0,e.jsx)(i.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,K.present&&(0,e.jsx)(i.Ki.Item,{label:"Circuit Imprinter",children:(0,e.jsx)(i.$n,{icon:"unlink",onClick:function(){return _("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,e.jsx)(i.az,{children:"Error"})]})},y=[{name:"Protolathe",icon:"wrench"},{name:"Circuit Imprinter",icon:"digital-tachograph"},{name:"Destructive Analyzer",icon:"eraser"},{name:"Settings",icon:"cog"},{name:"Research List",icon:"flask"},{name:"Design List",icon:"file"},{name:"Disk Operations",icon:"save"}],O=function(b){var I=(0,r.Oc)(),_=I.act,D=I.data,P=D.busy_msg,A=D.locked,R=(0,r.QY)("rdmenu",0),K=R[0],N=R[1],k=(0,r.QY)("protoTab",0),X=k[0],F=k[1],J=(0,r.QY)("settingsTab",0),H=J[0],Y=J[1],Z=(0,r.QY)("saveDialogTech",!1),V=Z[0],z=Z[1],Q=(0,r.QY)("saveDialogData",!1),ee=Q[0],oe=Q[1],ne=!1;return(P||A)&&(ne=!0),(0,e.jsx)(a.p8,{width:850,height:630,children:(0,e.jsxs)(a.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.tU,{children:y.map(function(ce,de){return(0,e.jsx)(i.tU.Tab,{icon:ce.icon,selected:K===de,settingsTab:H,onClick:function(){return N(de)},children:ce.name},de)})}),P&&(0,e.jsx)(i.wn,{title:"Processing...",children:P})||A&&(0,e.jsx)(i.wn,{title:"Console Locked",children:(0,e.jsx)(i.$n,{onClick:function(){return _("lock")},icon:"lock-open",children:"Unlock"})})||(K===0?(0,e.jsx)(p,{name:"Protolathe",protoTab:X,onProtoTab:F}):"")||K===1&&(0,e.jsx)(p,{name:"Circuit Imprinter",protoTab:X,onProtoTab:F})||K===2&&(0,e.jsx)(c,{name:"Circuit Imprinter"})||K===3&&(0,e.jsx)(C,{settingsTab:H,onSettingsTab:Y})||K===4&&(0,e.jsx)(g,{})||K===5&&(0,e.jsx)(m,{})||K===6&&(0,e.jsx)(h,{saveDialogTech:V,saveDialogDesign:ee,onSaveDialogTech:z,onSaveDialogDesign:oe})]})})}},98296:function(M,j,t){"use strict";t.r(j),t.d(j,{ResearchServerController:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data;return(0,e.jsx)(i.p8,{width:575,height:430,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=f.badmin,C=f.servers,y=f.consoles,O=(0,n.QY)("selectedServer",null),b=O[0],I=O[1],_=C.find(function(D){return D.id===b});return _?(0,e.jsx)(x,{setSelectedServer:I,server:_}):(0,e.jsx)(r.wn,{title:"Server Selection",children:C.map(function(D){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return I(D.id)},children:D.name})},D.name)})})},x=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=f.badmin,C=d.server,y=d.setSelectedServer,O=(0,n.QY)("tab",0),b=O[0],I=O[1];return(0,e.jsxs)(r.wn,{title:C.name,buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return y(null)},children:"Back"}),children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:b===0,onClick:function(){return I(0)},children:"Access Rights"}),(0,e.jsx)(r.tU.Tab,{selected:b===1,onClick:function(){return I(1)},children:"Data Management"}),p&&(0,e.jsx)(r.tU.Tab,{selected:b===2,onClick:function(){return I(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),b===0&&(0,e.jsx)(u,{server:C})||null,b===1&&(0,e.jsx)(m,{server:C})||null,b===2&&p&&(0,e.jsx)(v,{server:C})||null]})},u=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=d.server,C=f.consoles,y=function(b,I){return b.id_with_upload.indexOf(I.id)!==-1},O=function(b,I){return b.id_with_download.indexOf(I.id)!==-1};return(0,e.jsx)(r.wn,{level:2,title:"Consoles",children:(0,e.jsx)(r.Ki,{children:C.length&&C.map(function(b){return(0,e.jsxs)(r.Ki.Item,{label:b.name+" ("+b.loc+")",children:[(0,e.jsx)(r.$n,{icon:y(p,b)?"lock-open":"lock",selected:y(p,b),onClick:function(){return c("toggle_upload",{server:p.ref,console:b.ref})},children:y(p,b)?"Upload On":"Upload Off"}),(0,e.jsx)(r.$n,{icon:O(p,b)?"lock-open":"lock",selected:O(p,b),onClick:function(){return c("toggle_download",{server:p.ref,console:b.ref})},children:O(p,b)?"Download On":"Download Off"})]},b.name)})})})},m=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=d.server;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{level:2,title:"Research Levels",children:p.tech.map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return c("reset_tech",{server:p.ref,tech:C.id})}})},C.name)})}),(0,e.jsx)(r.wn,{level:2,title:"Designs",children:(0,s.pb)(function(C){return!!C.name})(p.designs).map(function(C){return(0,e.jsx)(r.Ki.Item,{label:C.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return c("reset_design",{server:p.ref,design:C.id})}})},C.name)})})]})},v=function(d){var h=(0,n.Oc)(),c=h.act,f=h.data,p=d.server,C=f.badmin,y=f.servers;return C?(0,e.jsx)(r.wn,{level:2,title:"Server Data Transfer",children:y.map(function(O){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n.Confirm,{fluid:!0,color:"bad",content:(0,e.jsxs)(r.az,{children:["Transfer from ",p.name," To ",O.name]}),onClick:function(){return c("transfer_data",{server:p.ref,target:O.ref})}})},O.name)})}):null}},65477:function(M,j,t){"use strict";t.r(j),t.d(j,{ResleevingConsole:function(){return h}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(5425),a=t(84905);function g(){return g=Object.assign||function(A){for(var R=1;R=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:J.biomass>=150?"circle":"circle-o"}),"\xA0",J.biomass]}),Y]},H)}):null},b=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.sleevers,X=N.spods,F=N.selected_sleever;return k&&k.length?k.map(function(J,H){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(J.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:J.occupied?"label":"bad",children:J.name}),(0,e.jsx)(r.$n,{selected:F===J.sleever,icon:F===J.sleever&&"check",content:"Select",mt:X&&X.length?"3rem":"1.5rem",onClick:function(){return K("selectsleever",{ref:J.sleever})}})]},H)}):null},I=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.spods,X=N.selected_printer;return k&&k.length?k.map(function(F,J){var H;return F.status==="cloning"?H=(0,e.jsx)(r.z2,{min:"0",max:"100",value:F.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,s.LI)(F.progress,0)+"%"})}):F.status==="mess"?H=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):H=(0,e.jsx)(r.$n,{selected:X===F.spod,icon:X===F.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return K("selectprinter",{ref:F.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(F.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:F.name}),(0,e.jsxs)(r.az,{bold:!0,color:F.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.steel>=15e3?"circle":"circle-o"}),"\xA0",F.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:F.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:F.glass>=15e3?"circle":"circle-o"}),"\xA0",F.glass]}),H]},J)}):null},_=function(A){var R=(0,n.Oc)().act,K=A.records,N=A.actToDo;return K.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:K.map(function(k,X){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return R(N,{ref:k.recref})}},X)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},D=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.temp;if(!(!k||!k.text||k.text.length<=0)){var X,F=(X={},X[k.style]=!0,X);return(0,e.jsxs)(r.IC,g({},F,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return K("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},P=function(A){var R=(0,n.Oc)(),K=R.act,N=R.data,k=N.pods,X=N.spods,F=N.sleevers,J=N.autoallowed,H=N.autoprocess,Y=N.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:X&&X.length?(0,e.jsxs)(r.az,{color:"good",children:[X.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:F&&F.length?(0,e.jsxs)(r.az,{color:"good",children:[F.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(M,j,t){"use strict";t.r(j),t.d(j,{ResleevingPod:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)().data,x=g.occupied,u=g.name,m=g.health,v=g.maxHealth,d=g.stat,h=g.mindStatus,c=g.mindName,f=g.resleeveSick,p=g.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:x?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:d===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):d===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:m/v,children:[m,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:h?"Present":"Missing"}),h?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:c}):""]}),f?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",p?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(M,j,t){"use strict";t.r(j),t.d(j,{RoboticsControlConsole:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.can_hack,d=m.safety,h=m.show_detonate_all,c=m.cyborgs,f=c===void 0?[]:c;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!h&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:d?"lock":"unlock",content:d?"Disable Safety":"Enable Safety",selected:d,onClick:function(){return u("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:d,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return u("nuke",{})}})]}),(0,e.jsx)(a,{cyborgs:f,can_hack:v})]})})},a=function(g){var x=g.cyborgs,u=g.can_hack,m=(0,s.Oc)(),v=m.act,d=m.data;return x.length?x.map(function(h){return(0,e.jsx)(n.wn,{title:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!h.hackable&&!h.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:h.locked_down?"unlock":"lock",color:h.locked_down?"good":"default",content:h.locked_down?"Release":"Lockdown",disabled:!d.auth,onClick:function(){return v("stopbot",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!d.auth,color:"bad",onClick:function(){return v("killbot",{ref:h.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:h.status?"bad":h.locked_down?"average":"good",children:h.status?"Not Responding":h.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:h.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:h.health>50?"good":"bad",value:h.health/100})}),typeof h.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:h.charge>30?"good":"bad",value:h.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:h.cell_capacity<3e4?"average":"good",children:h.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!h.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:h.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:h.synchronization?"default":"average",children:h.synchronization||"None"})})]})},h.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(M,j,t){"use strict";t.r(j),t.d(j,{RogueZones:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.timeout_percent,v=u.diffstep,d=u.difficulty,h=u.occupied,c=u.scanning,f=u.updated,p=u.debug,C=u.shuttle_location,y=u.shuttle_at_station,O=u.scan_ready,b=u.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:b&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return x("recall_shuttle")},children:"Recall Shuttle"})||null,children:C}),h&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",h," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!O,fluid:!0,icon:"search",onClick:function(){return x("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:m,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),c&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,f&&!c&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,p&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",m]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",d]}),(0,e.jsxs)(n.az,{children:["Occupied: ",h]}),(0,e.jsxs)(n.az,{children:["Debug: ",p]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",C]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",y]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",O]})]})||null]})})]})})}},45653:function(M,j,t){"use strict";t.r(j),t.d(j,{RustCoreMonitor:function(){return i},RustCoreMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(d){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:d.name}),(0,e.jsxs)(n.XI.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:d.has_field?"Online":"Offline",selected:d.has_field,disabled:!d.core_operational,onClick:function(){return u("toggle_active",{core:d.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:d.reactant_dump?"Dump":"Maintain",selected:d.has_field,disabled:!d.core_operational,onClick:function(){return u("toggle_reactantdump",{core:d.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:d.field_instability}),(0,e.jsx)(n.XI.Cell,{children:d.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!d.has_field&&"yellow",value:d.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(h,c){return u("set_fieldstr",{core:d.ref,fieldstr:c})}})}),(0,e.jsx)(n.XI.Cell,{})]},d.name)})]})})}},39899:function(M,j,t){"use strict";t.r(j),t.d(j,{RustFuelContent:function(){return a},RustFuelControl:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return u("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(d){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:d.name}),(0,e.jsxs)(n.XI.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:d.active?"Online":"Offline",selected:d.active,disabled:!d.deployed,onClick:function(){return u("toggle_active",{fuel:d.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:d.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:d.fuel_type})]},d.name)})]})})}},19208:function(M,j,t){"use strict";t.r(j),t.d(j,{Secbot:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.on,v=u.open,d=u.locked,h=u.idcheck,c=u.check_records,f=u.check_arrest,p=u.arrest_type,C=u.declare_arrests,y=u.bot_patrolling,O=u.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:m,onClick:function(){return x("power")},children:m?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:d?"good":"bad",children:d?"Locked":"Unlocked"})]})}),!d&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return x("idcheck")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return x("ignorerec")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:f?"toggle-on":"toggle-off",selected:f,onClick:function(){return x("ignorearr")},children:f?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return x("switchmode")},children:p?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:C?"toggle-on":"toggle-off",selected:C,onClick:function(){return x("declarearrests")},children:C?"Yes":"No"})}),!!y&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return x("patrol")},children:O?"Yes":"No"})})]})})||null]})})}},46226:function(M,j,t){"use strict";t.r(j),t.d(j,{SecureSafe:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],d=m.locked,h=m.l_setshort,c=m.code,f=m.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.XI,{width:"1px",children:v.map(function(p){return(0,e.jsx)(n.XI.Cell,{children:p.map(function(C){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:C,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!f||!!h&&1||C!=="R"&&!d||c==="ERROR"&&C!=="R"&&1,onClick:function(){return u("type",{digit:C})}},C)})},p[0])})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.code,d=m.l_setshort,h=m.l_set,c=m.emagged,f=m.locked,p=!(h||d);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[p&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!c&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!d&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:f?"red":"green",children:f?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(i,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(M,j,t){"use strict";t.r(j),t.d(j,{SecurityRecords:function(){return m}});var e=t(88095),s=t(4413),n=t(92514),r=t(5425),i=t(84905),a=t(71451),g=t(1887),x=t(82489),u=function(C){(0,r.modalOpen)("edit",{field:C.edit,value:C.value})},m=function(C){var y=(0,s.Oc)().data,O=y.authenticated,b=y.screen;if(!O)return(0,e.jsx)(i.p8,{width:700,height:680,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var I;return b===2?I=(0,e.jsx)(v,{}):b===3?I=(0,e.jsx)(d,{}):b===4&&(I=(0,e.jsx)(h,{})),(0,e.jsxs)(i.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(a.LoginInfo,{}),(0,e.jsx)(x.TemporaryNotice,{}),(0,e.jsx)(p,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:I})]})]})},v=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(_,D){return O("search",{t1:D})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:I.map(function(_,D){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:_.color,content:_.id+": "+_.name+" (Criminal Status: "+_.criminal+")",onClick:function(){return O("d_rec",{d_rec:_.ref})}},D)})})]})},d=function(C){var y=(0,s.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return y("del_all")}})]})},h=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security,_=b.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(c,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(f,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return O("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return O("del_r_2")}}),(0,e.jsx)(n.$n,{icon:_?"spinner":"print",disabled:_,iconSpin:!!_,content:"Print Entry",ml:"0.5rem",onClick:function(){return O("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return O("screen",{screen:2})}})]})]})},c=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.general;return!I||!I.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,D){return(0,e.jsxs)(n.Ki.Item,{label:_.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:_.value}),!!_.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return u(_)}})]},D)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(_,D){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:_.substr(1,_.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",D+1]},D)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return O("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return O("photo_side")},children:"Update Side Photo"})]})]})]})},f=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.security;return!I||!I.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return O("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:I.fields.map(function(_,D){return(0,e.jsx)(n.Ki.Item,{label:_.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[_.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:_.line_break?"1rem":"initial",onClick:function(){return u(_)}})]})},D)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):I.comments.map(function(_,D){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:_.header}),(0,e.jsx)("br",{}),_.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return O("del_c",{del_c:D+1})}})]},D)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},p=function(C){var y=(0,s.Oc)(),O=y.act,b=y.data,I=b.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return O("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return O("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(M,j,t){"use strict";t.r(j),t.d(j,{SeedStorage:function(){return g}});var e=t(88095),s=t(11358),n=t(33854),r=t(4413),i=t(92514),a=t(84905),g=function(x){var u=(0,r.Oc)(),m=u.act,v=u.data,d=v.scanner,h=v.seeds,c=(0,s.Ul)(function(f){return f.name.toLowerCase()})(h);return(0,e.jsx)(a.p8,{width:600,height:760,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(i.wn,{title:"Seeds",children:c.map(function(f){return(0,e.jsxs)(i.so,{spacing:1,mt:-1,children:[(0,e.jsx)(i.so.Item,{basis:"60%",children:(0,e.jsx)(i.Nt,{title:(0,n.Sn)(f.name)+" #"+f.uid,children:(0,e.jsx)(i.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(i.Ki,{children:Object.keys(f.traits).map(function(p){return(0,e.jsx)(i.Ki.Item,{label:(0,n.Sn)(p),children:f.traits[p]},p)})})})})}),(0,e.jsxs)(i.so.Item,{mt:.4,children:[f.amount," Remaining"]}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"download",onClick:function(){return m("vend",{id:f.id})},children:"Vend"})}),(0,e.jsx)(i.so.Item,{grow:1,children:(0,e.jsx)(i.$n,{fluid:!0,icon:"trash",onClick:function(){return m("purge",{id:f.id})},children:"Purge"})})]},f.name+f.uid)})})})})}},7249:function(M,j,t){"use strict";t.r(j),t.d(j,{ShieldCapacitor:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.active,h=v.time_since_fail,c=v.stored_charge,f=v.max_charge,p=v.charge_rate,C=v.max_charge_rate;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:d,content:d?"Online":"Offline",onClick:function(){return m("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:h>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:c,format:function(y){return(0,i.QL)(y,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,s.LI)(c/f,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:p,step:100,stepPixelSize:.2,minValue:1e4,maxValue:C,format:function(y){return(0,i.d5)(y)},onDrag:function(y,O){return m("charge_rate",{rate:O})}})})]})})})})}},28010:function(M,j,t){"use strict";t.r(j),t.d(j,{ShieldGenerator:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=t(13221),x=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.locked;return(0,e.jsx)(a.p8,{width:500,height:400,children:(0,e.jsx)(a.p8.Content,{children:f?(0,e.jsx)(u,{}):(0,e.jsx)(m,{})})})},u=function(v){return(0,e.jsxs)(g.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},m=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.lockedData,p=f.capacitors,C=f.active,y=f.failing,O=f.radius,b=f.max_radius,I=f.z_range,_=f.max_z_range,D=f.average_field_strength,P=f.target_field_strength,A=f.max_field_strength,R=f.shields,K=f.upkeep,N=f.strengthen_rate,k=f.max_strengthen_rate,X=f.gen_power,F=(p||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:y?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,s.LI)(D,2)," Renwick (",P&&(0,s.LI)(100*D/P,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,i.d5)(K)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,i.d5)(X)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[R," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:F?p.map(function(J,H){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+H,children:[J.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,i.QL)(J.stored_charge,0,"J")," (",100*(0,s.LI)(J.stored_charge/J.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:J.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},H)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:C?"Online":"Offline",selected:C,onClick:function(){return h("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:b,value:O,unit:"m",onDrag:function(J,H){return h("change_radius",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:_,value:I,unit:"vertical range",onDrag:function(J,H){return h("z_range",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:N,format:function(J){return(0,s.LI)(J,1)},unit:"Renwick/s",onDrag:function(J,H){return h("strengthen_rate",{val:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:P,unit:"Renwick",onDrag:function(J,H){return h("target_field_strength",{val:H})}})})]})})]})}},52735:function(M,j,t){"use strict";t.r(j),t.d(j,{ShutoffMonitor:function(){return i},ShutoffMonitorContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(d){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:d.name}),(0,e.jsxs)(n.XI.Cell,{children:[d.x,", ",d.y,", ",d.z]}),(0,e.jsx)(n.XI.Cell,{children:d.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:d.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:d.open?"Opened":"Closed",selected:d.open,disabled:!d.enabled,onClick:function(){return u("toggle_open",{valve:d.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:d.enabled?"Auto":"Manual",selected:d.enabled,onClick:function(){return u("toggle_enable",{valve:d.ref})}})]})]},d.name)})]})})}},72736:function(M,j,t){"use strict";t.r(j),t.d(j,{ShuttleControl:function(){return h}});var e=t(88095),s=t(33854),n=t(4413),r=t(92514),i=t(84905),a=function(c,f){var p="ERROR",C="bad",y=!1;return c==="docked"?(p="DOCKED",C="good"):c==="docking"?(p="DOCKING",C="average",y=!0):c==="undocking"?(p="UNDOCKING",C="average",y=!0):c==="undocked"&&(p="UNDOCKED",C="#676767"),y&&f&&(p=p+"-MANUAL"),(0,e.jsx)(r.az,{color:C,children:p})},g=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=c.engineName,O=y===void 0?"Bluespace Drive":y,b=C.shuttle_status,I=C.shuttle_state,_=C.has_docking,D=C.docking_status,P=C.docking_override,A=C.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:b}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:O,children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),_&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:a(D,P)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("set_codes")},children:A||"Not Set"})})]})||null]})]})},x=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.can_launch,O=C.can_cancel,b=C.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("move")},disabled:!y,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("cancel")},disabled:!O,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return p("force")},color:"bad",disabled:!b,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},u=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(x,{})]})},m=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.can_cloak,O=C.can_pick,b=C.legit,I=C.cloaked;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[y&&(0,e.jsx)(r.Ki.Item,{label:b?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:I?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{content:c.destination_name,icon:"taxi",disabled:!O,onClick:function(){return p("pick")}})})]})}),(0,e.jsx)(x,{})]})},v=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.can_pick,O=C.destination_name,b=C.fuel_usage,I=C.fuel_span,_=C.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!y,onClick:function(){return p("pick")},children:O})}),b&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:I,children:[_," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[b," m/s"]})]})||null]})}),(0,e.jsx)(x,{})]})},d=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.autopilot,O=C.can_rename,b=C.shuttle_state,I=C.is_moving,_=C.skip_docking,D=C.docking_status,P=C.docking_override,A=C.shuttle_location,R=C.can_cloak,K=C.cloaked,N=C.can_autopilot,k=C.routes,X=C.is_in_transit,F=C.travel_progress,J=C.time_left,H=C.doors,Y=C.sensors;return(0,e.jsxs)(e.Fragment,{children:[y&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:O&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return p("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:b==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||b==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||b==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,s.Sn)(A)}),!_&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:D==="docked",disabled:D!=="undocked"&&D!=="docked",onClick:function(){return p("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:D==="undocked",disabled:D!=="docked"&&D!=="undocked",onClick:function(){return p("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:a(D,P)})})||null,R&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:K,icon:K?"eye":"eye-o",onClick:function(){return p("toggle_cloaked")},children:K?"Enabled":"Disabled"})})||null,N&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:y,icon:y?"eye":"eye-o",onClick:function(){return p("toggle_autopilot")},children:y?"Enabled":"Disabled"})})||null]})||null]}),!I&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:k.length&&k.map(function(Z){return(0,e.jsx)(r.Ki.Item,{label:Z.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return p("traverse",{traverse:Z.index})},children:Z.travel_time})},Z.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),X&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:F,children:[J,"s"]})})})})||null,Object.keys(H).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(H).map(function(Z){var V=H[Z];return(0,e.jsxs)(r.Ki.Item,{label:Z,children:[V.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",V.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Z)})})})||null,Object.keys(Y).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(Y).map(function(Z,V){var z=Y[Z];return z.reading!==-1?(0,e.jsx)(r.Ki.Item,{label:Z,color:"bad",children:"Unable to get sensor air reading."},V):(0,e.jsx)(r.Ki.Item,{label:Z,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[z.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[z.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[z.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[z.phoron,"%"]}),z.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[z.other,"%"]})||null]})},Z)})})})||null]})},h=function(c){var f=(0,n.Oc)(),p=f.act,C=f.data,y=C.subtemplate,O=C.destination_name;return(0,e.jsx)(i.p8,{width:470,height:y==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(i.p8.Content,{children:y==="ShuttleControlConsoleDefault"&&(0,e.jsx)(u,{})||y==="ShuttleControlConsoleMulti"&&(0,e.jsx)(m,{destination_name:O})||y==="ShuttleControlConsoleExploration"&&(0,e.jsx)(v,{})||y==="ShuttleControlConsoleWeb"&&(0,e.jsx)(d,{})})})}},42053:function(M,j,t){"use strict";t.r(j),t.d(j,{Signaler:function(){return a},SignalerContent:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(){return(0,e.jsx)(i.p8,{width:280,height:132,children:(0,e.jsx)(i.p8.Content,{children:(0,e.jsx)(g,{})})})},g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.code,h=v.frequency,c=v.minFrequency,f=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:c/10,maxValue:f/10,value:h/10,format:function(p){return(0,s.Mg)(p,1)},width:"80px",onDrag:function(p,C){return m("freq",{freq:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:d,width:"80px",onDrag:function(p,C){return m("code",{code:C})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return m("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return m("signal")}})})})]})}},30636:function(M,j,t){"use strict";t.r(j),t.d(j,{Sleeper:function(){return m}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],g=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],x={average:[.25,.5],bad:[.5,1/0]},u=["bad","average","average","good","average","average","bad"],m=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.hasOccupant,_=I?(0,e.jsx)(v,{}):(0,e.jsx)(p,{});return(0,e.jsx)(i.p8,{width:550,height:760,children:(0,e.jsx)(i.p8.Content,{className:"Layout__content--flexColumn",children:_})})},v=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.occupant,_=b.dialysis,D=b.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{}),(0,e.jsx)(c,{title:"Dialysis",active:_,actToDo:"togglefilter"}),(0,e.jsx)(c,{title:"Stomach Pump",active:D,actToDo:"togglepump"}),(0,e.jsx)(f,{})]})},d=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.occupant,_=b.auto_eject_dead,D=b.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:_?"toggle-on":"toggle-off",selected:_,content:_?"On":"Off",onClick:function(){return O("auto_eject_dead_"+(_?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return O("ejectify")}}),(0,e.jsx)(r.$n,{content:D,onClick:function(){return O("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,s.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:a[I.stat][0],children:a[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:u[I.temperatureSuitability+3],children:[(0,s.LI)(I.btCelsius,0),"\xB0C,",(0,s.LI)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},h=function(C){var y=(0,n.Oc)().data,O=y.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:g.map(function(b,I){return(0,e.jsx)(r.Ki.Item,{label:b[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:O[b[1]]/100,ranges:x,children:(0,s.LI)(O[b[1]],0)},I)},I)})})})},c=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.isBeakerLoaded,_=b.beakerMaxSpace,D=b.beakerFreeSpace,P=C.active,A=C.actToDo,R=C.title,K=P&&D>0;return(0,e.jsx)(r.wn,{title:R,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||D<=0,selected:K,icon:K?"toggle-on":"toggle-off",content:K?"Active":"Inactive",onClick:function(){return O(A)}}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return O("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:_,value:D/_,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[D,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},f=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.occupant,_=b.chemicals,D=b.maxchem,P=b.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:_.map(function(A,R){var K="",N;return A.overdosing?(K="bad",N=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(K="average",N=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:N,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:D,value:A.occ_amount/D,color:K,mr:"0.5rem",children:[A.pretty_amount,"/",D,"u"]}),P.map(function(k,X){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>D||I.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return O("chemical",{chemid:A.id,amount:k})}},X)})]})})},R)})})},p=function(C){var y=(0,n.Oc)(),O=y.act,b=y.data,I=b.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return O("removebeaker")}})})||null]})})})}},438:function(M,j,t){"use strict";t.r(j),t.d(j,{SmartVend:function(){return a}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.config,v=x.data;return(0,e.jsx)(i.p8,{width:500,height:550,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",m.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,s.Tj)(function(d,h){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:d.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[d.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:d.amount<1,onClick:function(){return u("Release",{index:d.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:d.amount<5,onClick:function(){return u("Release",{index:d.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:d.amount<25,onClick:function(){return u("Release",{index:d.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:d.amount<50,onClick:function(){return u("Release",{index:d.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:d.amount<1,onClick:function(){return u("Release",{index:d.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:d.amount<1,onClick:function(){return u("Release",{index:d.index,amount:d.amount})}})]})]},h)})(v.contents)]})]})})})}},99278:function(M,j,t){"use strict";t.r(j),t.d(j,{Smes:function(){return x}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=1e3,x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.capacityPercent,c=d.capacity,f=d.charge,p=d.inputAttempt,C=d.inputting,y=d.inputLevel,O=d.inputLevelMax,b=d.inputAvailable,I=d.outputAttempt,_=d.outputting,D=d.outputLevel,P=d.outputLevelMax,A=d.outputUsed,R=h>=100&&"good"||C&&"average"||"bad",K=_&&"good"||f>0&&"average"||"bad";return(0,e.jsx)(a.p8,{width:400,height:350,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:h*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,s.LI)(f/(1e3*60),1)," kWh /",(0,s.LI)(c/(1e3*60))," kWh (",h,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:p?"sync-alt":"times",selected:p,onClick:function(){return v("tryinput")},children:p?"On":"Off"}),children:(0,e.jsx)(r.az,{color:R,children:h>=100&&"Fully Charged"||C&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:y===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:y===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:y/g,fillValue:b/g,minValue:0,maxValue:O/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("input",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:y===O,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:y===O,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,i.d5)(b)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return v("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:K,children:_?"Sending":f>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:D===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:D===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:D/g,minValue:0,maxValue:P/g,step:5,stepPixelSize:4,format:function(N){return(0,i.d5)(N*g,1)},onDrag:function(N,k){return v("output",{target:k*g})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:D===P,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:D===P,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,i.d5)(A)})]})})]})})}},42456:function(M,j,t){"use strict";t.r(j),t.d(j,{SolarControl:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(g){var x=(0,n.Oc)(),u=x.act,m=x.data,v=m.generated,d=m.generated_ratio,h=m.sun_angle,c=m.array_angle,f=m.rotation_rate,p=m.max_rotation_rate,C=m.tracking_state,y=m.connected_panels,O=m.connected_tracker;return(0,e.jsx)(i.p8,{width:380,height:230,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return u("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:O?"good":"bad",children:O?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:y>0?"good":"bad",children:y})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:d,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[h,"\xB0"]})]})})]})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",content:"Off",selected:C===0,onClick:function(){return u("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:C===1,onClick:function(){return u("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:C===2,disabled:!O,onClick:function(){return u("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(C===0||C===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:c,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return u("azimuth",{value:I})}}),C===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-p-.01,maxValue:p+.01,value:f,format:function(b){var I=Math.sign(b)>0?" (CW)":" (CCW)";return Math.abs((0,s.LI)(b))+I},onDrag:function(b,I){return u("azimuth_rate",{value:I})}}),C===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[c+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(M,j,t){"use strict";t.r(j),t.d(j,{SpaceHeater:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(1568),i=t(84905),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.temp,d=m.minTemp,h=m.maxTemp,c=m.cell,f=m.power;return(0,e.jsx)(i.p8,{width:300,height:250,children:(0,e.jsxs)(i.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[f,"% ",!c&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:d-r.Ai,maxValue:h-r.Ai,unit:"C",onChange:function(p,C){return u("temp",{newtemp:C+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:c?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return u("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return u("cellinstall")}})})]})})]})})}},98932:function(M,j,t){"use strict";t.r(j),t.d(j,{Stack:function(){return x}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905);function i(h,c){(c==null||c>h.length)&&(c=h.length);for(var f=0,p=new Array(c);f=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var x=function(h){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.amount,y=p.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+C,children:(0,e.jsx)(u,{recipes:y})})})})},u=function(h){var c=(0,s.Oc)(),f=c.act,p=c.data,C=h.recipes,y=Object.keys(C).sort();return y.map(function(O,b){var I=C[O];return I.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:O,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(u,{recipes:I})})},b):(0,e.jsx)(d,{title:O,recipe:I},b)})},m=function(h,c){return h.req_amount>c?0:Math.floor(c/h.req_amount)},v=function(h){for(var c=function(){var A=P.value;b>=A&&_.push((0,e.jsx)(n.$n,{content:A*y.res_amount+"x",onClick:function(){return p("make",{ref:y.ref,multiplier:A})}}))},f=(0,s.Oc)(),p=f.act,C=f.data,y=h.recipe,O=h.maxMultiplier,b=Math.min(O,Math.floor(y.max_res_amount/y.res_amount)),I=[5,10,25],_=[],D=g(I),P;!(P=D()).done;)c();return I.indexOf(b)===-1&&_.push((0,e.jsx)(n.$n,{content:b*y.res_amount+"x",onClick:function(){return p("make",{ref:y.ref,multiplier:b})}})),_},d=function(h){var c=(0,s.Oc)(),f=c.act,p=c.data,C=p.amount,y=h.recipe,O=h.title,b=y.res_amount,I=y.max_res_amount,_=y.req_amount,D=y.ref,P=O;P+=" (",P+=_+" ",P+="sheet"+(_>1?"s":""),P+=")",b>1&&(P=b+"x "+P);var A=m(y,C);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:P,onClick:function(){return f("make",{ref:y.ref,multiplier:1})}})}),I>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:y,maxMultiplier:A})})]})})})}},47441:function(M,j,t){"use strict";t.r(j),t.d(j,{StationAlertConsole:function(){return i},StationAlertConsoleContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(a,{})})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.categories,d=v===void 0?[]:v;return d.map(function(h){return(0,e.jsx)(n.wn,{title:h.category,children:(0,e.jsxs)("ul",{children:[h.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),h.alarms.map(function(c){var f="";return c.has_cameras?f=(0,e.jsx)(n.wn,{children:c.cameras.map(function(p){return(0,e.jsx)(n.$n,{disabled:p.deact,content:p.name+(p.deact?" (deactived)":""),icon:"video",onClick:function(){return u("switchTo",{camera:p.camera})}},p.name)})}):c.lost_sources&&(f=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",c.lost_sources]})),(0,e.jsxs)("li",{children:[c.name,c.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",f]},c.name)})]})},h.category)})}},89052:function(M,j,t){"use strict";t.r(j),t.d(j,{StationBlueprints:function(){return i},StationBlueprintsContent:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(a,{})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=x.config,d=m.mapRef,h=m.areas,c=m.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:d,type:"map"}})})]})}},38501:function(M,j,t){"use strict";t.r(j),t.d(j,{StockExchange:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.screen,C=f.stationName,y;return p==="stocks"?y=(0,e.jsx)(a,{}):p==="logs"?y=(0,e.jsx)(u,{}):p==="archive"?y=(0,e.jsx)(m,{}):p==="graph"&&(y=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+C+" Stock Exchange",children:y})})})},a=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.balance,C=f.stationName,y=f.viewMode,O=(0,e.jsx)(g,{});return y==="Full"?O=(0,e.jsx)(g,{}):y==="Compressed"&&(O=(0,e.jsx)(x,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[C," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",p]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:y,onClick:function(){return c("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return c("stocks_check")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(n.wn,{title:"Listed Stocks",children:O})]})},g=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),C.map(function(y){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:y.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:y.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:y.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:y.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:y.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return c("stocks_buy",{share:y.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return c("stocks_sell",{share:y.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return c("stocks_archive",{share:y.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return c("stocks_history",{share:y.REF})}}),(0,e.jsx)("br",{})]})]},y.ID)})]})]})},x=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.stocks,C=p===void 0?[]:p;return(0,e.jsx)(n.az,{children:C.map(function(y){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:y.name})," ",(0,e.jsx)("span",{children:y.ID}),y.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",y.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",y.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return c("stocks_history",{share:y.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:y.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",y.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),y.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(n.$n,{content:"Buy shares",onClick:function(){return c("stocks_buy",{share:y.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return c("stocks_sell",{share:y.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:y.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return c("stocks_archive",{share:y.REF})}})," ",(0,e.jsx)(n.cG,{})]},y.ID)})})},u=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.logs,C=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:C.map(function(y){return(0,e.jsxs)(n.az,{children:[y.type!=="borrow"?(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," ",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:y.stocks})," stocks at ",y.shareprice," a share for"," ",(0,e.jsx)("b",{children:y.money})," total credits"," ",y.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[y.time," | ",(0,e.jsx)("b",{children:y.user_name})," borrowed ",(0,e.jsx)("b",{children:y.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:y.money})," credits in"," ",(0,e.jsx)("b",{children:y.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},y.time)})})]})},m=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.name,C=f.events,y=C===void 0?[]:C,O=f.articles,b=O===void 0?[]:O;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",p]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:y.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(n.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:b.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via"," ",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},I.headline)})})]})},v=function(d){var h=(0,s.Oc)(),c=h.act,f=h.data,p=f.name,C=f.maxValue,y=f.values,O=y===void 0?[]:y;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return c("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:O,rangeX:[0,O.length-1],rangeY:[0,C],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[p," share value per share"]})]})}},21665:function(M,j,t){"use strict";t.r(j),t.d(j,{SuitCycler:function(){return a}});var e=t(88095),s=t(44583),n=t(4413),r=t(92514),i=t(84905),a=function(v){var d=function(X){P(X)},h=function(X){K(X)},c=(0,n.Oc)(),f=c.act,p=c.data,C=p.active,y=p.locked,O=p.uv_active,b=p.species,I=p.departments,_=(0,s.useState)(!!I&&I[0]||null),D=_[0],P=_[1],A=(0,s.useState)(!!b&&b[0]||null),R=A[0],K=A[1],N=(0,e.jsx)(g,{selectedDepartment:D,selectedSpecies:R,onSelectedDepartment:d,onSelectedSpecies:h});return O?N=(0,e.jsx)(x,{}):y?N=(0,e.jsx)(u,{}):C&&(N=(0,e.jsx)(m,{})),(0,e.jsx)(i.p8,{width:320,height:400,children:(0,e.jsx)(i.p8.Content,{children:N})})},g=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.safeties,p=c.occupied,C=c.suit,y=c.helmet,O=c.departments,b=c.species,I=c.uv_level,_=c.max_uv_level,D=c.can_repair,P=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Storage",buttons:(0,e.jsx)(r.$n,{icon:"lock",content:"Lock",onClick:function(){return h("lock")}}),children:[!!(p&&f)&&(0,e.jsxs)(r.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(r.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return h("eject_guy")}})]}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",children:(0,e.jsx)(r.$n,{icon:y?"square":"square-o",content:y||"Empty",disabled:!y,onClick:function(){return h("dispense",{item:"helmet"})}})}),(0,e.jsx)(r.Ki.Item,{label:"Suit",children:(0,e.jsx)(r.$n,{icon:C?"square":"square-o",content:C||"Empty",disabled:!C,onClick:function(){return h("dispense",{item:"suit"})}})}),D&&P?(0,e.jsxs)(r.Ki.Item,{label:"Suit Damage",children:[P,(0,e.jsx)(r.$n,{icon:"wrench",content:"Repair",onClick:function(){return h("repair_suit")}})]}):null]})]}),(0,e.jsxs)(r.wn,{title:"Customization",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(r.ms,{noscroll:!0,width:"150px",options:O,selected:v.selectedDepartment,onSelected:function(A){v.onSelectedDepartment(A),h("department",{department:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Target Species",children:(0,e.jsx)(r.ms,{width:"150px",maxHeight:"160px",options:b,selected:v.selectedSpecies,onSelected:function(A){v.onSelectedSpecies(A),h("species",{species:A})}})})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return h("apply_paintjob")}})]}),(0,e.jsx)(r.wn,{title:"UV Decontamination",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(r.Q7,{width:"50px",value:I,minValue:1,maxValue:_,stepPixelSize:30,onChange:function(A,R){return h("radlevel",{radlevel:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"recycle",disabled:p&&f,textAlign:"center",onClick:function(){return h("uv")}})})]})})]})},x=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being decontaminated. Please wait."})},u=function(v){var d=(0,n.Oc)(),h=d.act,c=d.data,f=c.model_text,p=c.userHasAccess;return(0,e.jsxs)(r.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(r.az,{color:"bad",bold:!0,children:["The ",f," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"unlock",content:"[Unlock]",disabled:!p,onClick:function(){return h("lock")}})})]})},m=function(v){return(0,e.jsx)(r.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(M,j,t){"use strict";t.r(j),t.d(j,{SuitStorageUnit:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.panelopen,f=h.uv_active,p=h.broken,C=(0,e.jsx)(a,{});return c?C=(0,e.jsx)(g,{}):f?C=(0,e.jsx)(x,{}):p&&(C=(0,e.jsx)(u,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:C})})},a=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.locked,f=h.open,p=h.safeties,C=h.occupied,y=h.suit,O=h.helmet,b=h.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!f&&(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Unlock":"Lock",onClick:function(){return d("lock")}}),!c&&(0,e.jsx)(n.$n,{icon:f?"sign-out-alt":"sign-in-alt",content:f?"Close":"Open",onClick:function(){return d("door")}})]}),children:[!!(C&&p)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return d("eject_guy")}})]}),c&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||f&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:O?"square":"square-o",content:O||"Empty",disabled:!O,onClick:function(){return d("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:y?"square":"square-o",content:y||"Empty",disabled:!y,onClick:function(){return d("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:b?"square":"square-o",content:b||"Empty",disabled:!b,onClick:function(){return d("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:C&&p,textAlign:"center",onClick:function(){return d("uv")}})]})},g=function(m){var v=(0,s.Oc)(),d=v.act,h=v.data,c=h.safeties,f=h.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",f?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:f,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:f?"red":"green",format:function(p){return p?"15nm":"185nm"},onChange:function(p,C){return d("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",c?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return d("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:c?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:c?"green":"black"})]})]})]})]})},x=function(m){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},u=function(m){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(M,j,t){"use strict";t.r(j),t.d(j,{SupermatterMonitor:function(){return g},SupermatterMonitorContent:function(){return x}});var e=t(88095),s=t(5229),n=t(33854),r=t(4413),i=t(92514),a=t(84905),g=function(v){return(0,e.jsx)(a.p8,{width:600,height:400,children:(0,e.jsx)(a.p8.Content,{scrollable:!0,children:(0,e.jsx)(x,{})})})},x=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=c.active;return f?(0,e.jsx)(m,{}):(0,e.jsx)(u,{})},u=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=c.supermatters;return(0,e.jsx)(i.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(i.$n,{content:"Refresh",icon:"sync",onClick:function(){return h("refresh")}}),children:(0,e.jsx)(i.so,{wrap:"wrap",children:f.map(function(p,C){return(0,e.jsx)(i.so.Item,{basis:"49%",grow:C%2,children:(0,e.jsx)(i.wn,{title:p.area_name+" (#"+p.uid+")",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"Integrity",children:[p.integrity," %"]}),(0,e.jsx)(i.Ki.Item,{label:"Options",children:(0,e.jsx)(i.$n,{icon:"eye",content:"View Details",onClick:function(){return h("set",{set:p.uid})}})})]})})},C)})})})},m=function(v){var d=(0,r.Oc)(),h=d.act,c=d.data,f=c.SM_area,p=c.SM_integrity,C=c.SM_power,y=c.SM_ambienttemp,O=c.SM_ambientpressure,b=c.SM_EPR,I=c.SM_gas_O2,_=c.SM_gas_CO2,D=c.SM_gas_N2,P=c.SM_gas_PH,A=c.SM_gas_N2O;return(0,e.jsx)(i.wn,{title:(0,n.Sn)(f),buttons:(0,e.jsx)(i.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return h("clear")}}),children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsx)(i.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(i.z2,{animated:!0,value:p,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(i.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(i.az,{color:C>300&&"bad"||C>150&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" MeV/cm\xB3"},value:C})})}),(0,e.jsx)(i.Ki.Item,{label:"Temperature",children:(0,e.jsx)(i.az,{color:y>5e3&&"bad"||y>4e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" K"},value:y})})}),(0,e.jsx)(i.Ki.Item,{label:"Pressure",children:(0,e.jsx)(i.az,{color:O>1e4&&"bad"||O>5e3&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)+" kPa"},value:O})})}),(0,e.jsx)(i.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(i.az,{color:b>4&&"bad"||b>1&&"average"||"good",children:(0,e.jsx)(i.zv,{format:function(R){return(0,s.LI)(R,2)},value:b})})}),(0,e.jsx)(i.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(i.Ki,{children:[(0,e.jsxs)(i.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(i.zv,{value:I}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(i.zv,{value:_}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(i.zv,{value:D}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"PH",children:[(0,e.jsx)(i.zv,{value:P}),"%"]}),(0,e.jsxs)(i.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(i.zv,{value:A}),"%"]})]})})]})})}},85308:function(M,j,t){"use strict";t.r(j),t.d(j,{SupplyConsole:function(){return v}});var e=t(88095),s=t(11358),n=t(28763),r=t(44583),i=t(4413),a=t(92514),g=t(24158),x=t(5425),u=t(84905),m=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=b.supply_points,_=C.args,D=_.name,P=_.cost,A=_.manifest,R=_.ref,K=_.random;return(0,e.jsx)(a.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:D,buttons:(0,e.jsx)(a.$n,{icon:"shopping-cart",content:"Buy - "+P+" points",disabled:P>I,onClick:function(){return O("request_crate",{ref:R})}}),children:(0,e.jsx)(a.wn,{title:"Contains"+(K?" any "+K+" of:":""),scrollable:!0,height:"200px",children:A.map(function(N){return(0,e.jsx)(a.az,{children:N},N)})})})},v=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data;return(0,x.modalRegisterBodyOverride)("view_crate",m),(0,e.jsx)(u.p8,{width:700,height:620,children:(0,e.jsxs)(u.p8.Content,{children:[(0,e.jsx)(x.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(a.wn,{title:"Supply Records",children:[(0,e.jsx)(d,{}),(0,e.jsx)(h,{})]})]})})},d=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=b.supply_points,_=b.shuttle,D=b.shuttle_auth,P=null,A=!1;return D&&(_.launch===1&&_.mode===0?P=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Away",onClick:function(){return O("send_shuttle",{mode:"send_away"})}}):_.launch===2&&(_.mode===3||_.mode===1)?P=(0,e.jsx)(a.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return O("send_shuttle",{mode:"cancel_shuttle"})}}):_.launch===1&&_.mode===5&&(P=(0,e.jsx)(a.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return O("send_shuttle",{mode:"send_to_station"})}})),_.force&&(A=!0)),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(a.zv,{value:I})})}),(0,e.jsx)(a.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[P,A?(0,e.jsx)(a.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return O("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:_.location}),(0,e.jsx)(a.Ki.Item,{label:"Engine",children:_.engine}),_.mode===4?(0,e.jsx)(a.Ki.Item,{label:"ETA",children:_.time>1?(0,g.fU)(_.time):"LATE"}):null]})})]})},h=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=b.order_auth,_=(0,r.useState)(0),D=_[0],P=_[1];return(0,e.jsxs)(a.wn,{title:"Menu",children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{icon:"box",selected:D===0,onClick:function(){return P(0)},children:"Request"}),(0,e.jsx)(a.tU.Tab,{icon:"check-circle-o",selected:D===1,onClick:function(){return P(1)},children:"Accepted"}),(0,e.jsx)(a.tU.Tab,{icon:"circle-o",selected:D===2,onClick:function(){return P(2)},children:"Requests"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:D===3,onClick:function(){return P(3)},children:"Order history"}),(0,e.jsx)(a.tU.Tab,{icon:"book",selected:D===4,onClick:function(){return P(4)},children:"Export history"})]}),D===0?(0,e.jsx)(c,{}):null,D===1?(0,e.jsx)(f,{mode:"Approved"}):null,D===2?(0,e.jsx)(f,{mode:"Requested"}):null,D===3?(0,e.jsx)(f,{mode:"All"}):null,D===4?(0,e.jsx)(p,{}):null]})},c=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=b.categories,_=b.supply_packs,D=b.contraband,P=b.supply_points,A=(0,r.useState)(null),R=A[0],K=A[1],N=(0,n.L)([(0,s.pb)(function(k){return k.group===R}),(0,s.pb)(function(k){return!k.contraband||D}),(0,s.Ul)(function(k){return k.name}),(0,s.Ul)(function(k){return k.cost>P})])(_);return(0,e.jsx)(a.wn,{level:2,children:(0,e.jsxs)(a.BJ,{children:[(0,e.jsx)(a.BJ.Item,{basis:"25%",children:(0,e.jsx)(a.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(a.$n,{fluid:!0,content:k,selected:k===R,onClick:function(){return K(k)}},k)})})}),(0,e.jsx)(a.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(a.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:N.map(function(k){return(0,e.jsx)(a.az,{children:(0,e.jsxs)(a.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(a.BJ.Item,{basis:"70%",children:(0,e.jsx)(a.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>P?"red":null,onClick:function(){return O("request_crate",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"#",color:k.cost>P?"red":null,onClick:function(){return O("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(a.$n,{content:"C",color:k.cost>P?"red":null,onClick:function(){return O("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(a.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},f=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=C.mode,_=b.orders,D=b.order_auth,P=b.supply_points,A=_.filter(function(R){return R.status===I||I==="All"});return A.length?(0,e.jsxs)(a.wn,{level:2,children:[I==="Requested"&&D?(0,e.jsx)(a.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return O("clear_all_requests")}}):null,A.map(function(R,K){return(0,e.jsxs)(a.wn,{title:"Order "+(K+1),buttons:I==="All"&&D?(0,e.jsx)(a.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return O("delete_order",{ref:R.ref})}}):null,children:[(0,e.jsxs)(a.Ki,{children:[R.entries.map(function(N,k){return N.entry?(0,e.jsx)(a.Ki.Item,{label:N.field,buttons:D?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){O("edit_order_value",{ref:R.ref,edit:N.field,default:N.entry})}}):null,children:N.entry},k):null}),I==="All"?(0,e.jsx)(a.Ki.Item,{label:"Status",children:R.status}):null]}),D&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"check",content:"Approve",disabled:R.cost>P,onClick:function(){return O("approve_order",{ref:R.ref})}}),(0,e.jsx)(a.$n,{icon:"times",content:"Deny",onClick:function(){return O("deny_order",{ref:R.ref})}})]}):null]},K)})]}):(0,e.jsx)(a.wn,{level:2,children:"No orders found."})},p=function(C){var y=(0,i.Oc)(),O=y.act,b=y.data,I=b.receipts,_=b.order_auth;return I.length?(0,e.jsx)(a.wn,{level:2,children:I.map(function(D,P){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.Ki,{children:[D.title.map(function(A){return(0,e.jsx)(a.Ki.Item,{label:A.field,buttons:_?(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return O("export_edit",{ref:D.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),D.error?(0,e.jsx)(a.Ki.Item,{labelColor:"red",label:"Error",children:D.error}):D.contents.map(function(A,R){return(0,e.jsxs)(a.Ki.Item,{label:A.object,buttons:_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"pen",content:"Edit",onClick:function(){return O("export_edit_field",{ref:D.ref,index:R+1,edit:"meow",default:A.object})}}),(0,e.jsx)(a.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return O("export_delete_field",{ref:D.ref,index:R+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},R)})]}),_?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return O("export_add_field",{ref:D.ref})}}),(0,e.jsx)(a.$n,{icon:"trash",content:"Delete Record",onClick:function(){return O("export_delete",{ref:D.ref})}})]}):null]},P)})}):(0,e.jsx)(a.wn,{level:2,children:"No receipts found."})}},64460:function(M,j,t){"use strict";t.r(j),t.d(j,{TEGenerator:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(24158),a=t(84905),g=function(u){var m=(0,n.Oc)().data,v=m.totalOutput,d=m.maxTotalOutput,h=m.thermalOutput,c=m.primary,f=m.secondary;return(0,e.jsx)(a.p8,{width:550,height:310,children:(0,e.jsxs)(a.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:v,maxValue:d,children:(0,i.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,i.d5)(h)})]})}),c&&f?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Primary Circulator",values:c})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(x,{name:"Secondary Circulator",values:f})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},x=function(u){var m=u.name,v=u.values,d=v.dir,h=v.output,c=v.flowCapacity,f=v.inletPressure,p=v.inletTemperature,C=v.outletPressure,y=v.outletTemperature;return(0,e.jsx)(r.wn,{title:m+" ("+d+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,i.d5)(h)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,s.LI)(c,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,i.QL)(f*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,s.LI)(p,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,i.QL)(C*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,s.LI)(y,2)," K"]})]})})}},62646:function(M,j,t){"use strict";t.r(j),t.d(j,{Tank:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.connected,v=u.showToggle,d=v===void 0?!0:v,h=u.maskConnected,c=u.tankPressure,f=u.releasePressure,p=u.defaultReleasePressure,C=u.minReleasePressure,y=u.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!d&&(0,e.jsx)(n.$n,{icon:m?"air-freshener":"lock-open",selected:m,disabled:!h,content:"Mask Release Valve",onClick:function(){return x("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:h?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:c/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:u.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:f===C,onClick:function(){return x("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(f),width:"65px",unit:"kPa",minValue:C,maxValue:y,onChange:function(O,b){return x("pressure",{pressure:b})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:f===y,onClick:function(){return x("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:f===p,onClick:function(){return x("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(M,j,t){"use strict";t.r(j),t.d(j,{TankDispenser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.plasma,v=u.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:m?"square":"square-o",content:"Dispense",disabled:!m,onClick:function(){return x("plasma")}}),children:m}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return x("oxygen")}}),children:v})]})})})})}},32481:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsLogBrowser:function(){return a}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=h.universal_translate,f=h.network,p=h.temp,C=h.servers,y=h.selectedServer;return(0,e.jsx)(i.p8,{width:575,height:450,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[p?(0,e.jsxs)(r.IC,{danger:p.color==="bad",warning:p.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:p.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return d("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:C.length===0,onClick:function(){return d("release")}})]}),children:(0,e.jsx)(r.$n,{content:f,icon:"pen",onClick:function(){return d("network")}})})})}),y?(0,e.jsx)(x,{network:f,server:y,universal_translate:c}):(0,e.jsx)(g,{network:f,servers:C})]})})},g=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=m.network,f=m.servers;return!f||!f.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return d("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:f.map(function(p){return(0,e.jsx)(r.Ki.Item,{label:p.name+" ("+p.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return d("view",{id:p.id})}})},p.id)})})})},x=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=m.network,f=m.server,p=m.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+f.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return d("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:f.totalTraffic>=1024?(0,s.LI)(f.totalTraffic/1024)+" Terrabytes":f.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!f.logs||!f.logs.length?"No Logs Detected.":f.logs.map(function(C){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:C.id%2,children:(0,e.jsx)(r.wn,{title:p||C.parameters.uspeech||C.parameters.intelligible||C.input_type==="Execution Error"?C.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return d("delete",{id:C.id})}}),children:C.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:C.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return d("delete",{id:C.id})}})})]}):p||C.parameters.uspeech||C.parameters.intelligible?(0,e.jsx)(u,{log:C}):(0,e.jsx)(u,{error:!0})})},C.id)})})})]})},u=function(m){var v=(0,n.Oc)(),d=v.act,h=v.data,c=m.log,f=m.error,p=c&&c.parameters||{none:"none"},C=p.timecode,y=p.name,O=p.race,b=p.job,I=p.message;return f?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:C}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[y," (Job: ",b,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:O}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},25058:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsMachineBrowser:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.network,d=m.temp,h=m.machinelist,c=m.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[d?(0,e.jsxs)(n.IC,{danger:d.color==="bad",warning:d.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:d.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return u("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return u("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:h.length===0,onClick:function(){return u("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return u("network")}})})})}),h&&h.length?(0,e.jsx)(a,{title:c?c.name+" ("+c.id+")":"Detected Network Entities",list:c?c.links:h,showBack:c}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return u("scan")}})})]})})},a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=g.list,d=g.title,h=g.showBack;return(0,e.jsxs)(n.wn,{title:d,buttons:h&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return u("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(c){return(0,e.jsx)(n.Ki.Item,{label:c.name+" ("+c.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return u("view",{id:c.id})}})},c.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(M,j,t){"use strict";t.r(j),t.d(j,{TelecommsMultitoolMenu:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=t(82489),a=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.temp,c=d.on,f=d.id,p=d.network,C=d.autolinkers,y=d.shadowlink,O=d.options,b=d.linked,I=d.filter,_=d.multitool,D=d.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(i.TemporaryNotice,{}),(0,e.jsx)(g,{}),(0,e.jsx)(x,{options:O})]})})},g=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=d.temp,c=d.on,f=d.id,p=d.network,C=d.autolinkers,y=d.shadowlink,O=d.options,b=d.linked,I=d.filter,_=d.multitool,D=d.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:f,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:p,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:C?"TRUE":"FALSE"}),y?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,_?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[D?(0,e.jsxs)(e.Fragment,{children:[D.name," (",D.id,")"]}):null,(0,e.jsx)(n.$n,{color:D?"green":null,content:D?"Link ("+D.id+")":"Add Machine",icon:D?"link":"plus",onClick:D?function(){return v("link")}:function(){return v("buffer")}}),D?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:b.map(function(P){return(0,e.jsx)(n.Ki.Item,{label:P.ref+" "+P.name+" ("+P.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:P.index})}})},P.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,children:[I.map(function(P){return(0,e.jsx)(n.$n.Confirm,{content:P.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:P.freq})}},P.index)}),!I||I.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},x=function(u){var m=(0,s.Oc)(),v=m.act,d=m.data,h=u.options,c=h.use_listening_level,f=h.use_broadcasting,p=h.use_receiving,C=h.listening_level,y=h.broadcasting,O=h.receiving,b=h.use_change_freq,I=h.change_freq,_=h.use_broadcast_range,D=h.use_receive_range,P=h.range,A=h.minRange,R=h.maxRange;return!c&&!f&&!p&&!b&&!_&&!D?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[c?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:C?"lock-closed":"lock-open",content:C?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,f?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:y,content:y?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,p?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:O,content:O?"Yes":"No",onClick:function(){return v("receive")}})}):null,b?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return v("change_freq")}})}):null,_||D?(0,e.jsx)(n.Ki.Item,{label:(_?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:P,minValue:A,maxValue:R,unit:"gigameters",stepPixelSize:4,format:function(K){return K+1},onDrag:function(K,N){return v("range",{range:N})}})}):null]})})}},2268:function(M,j,t){"use strict";t.r(j),t.d(j,{Teleporter:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.locked_name,v=u.station_connected,d=u.hub_connected,h=u.calibrated,c=u.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return x("select_target")},content:m})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,color:h?"good":"bad",onClick:function(){return x("test_fire")},content:h?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return x("toggle_on")},content:c?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:d?"Connected":"Not Connected"})]})})})})}},33756:function(M,j,t){"use strict";t.r(j),t.d(j,{TelesciConsole:function(){return a},TelesciConsoleContent:function(){return x}});var e=t(88095),s=t(11358),n=t(4413),r=t(92514),i=t(84905),a=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.noTelepad;return(0,e.jsx)(i.p8,{width:400,height:450,children:(0,e.jsx)(i.p8.Content,{scrollable:!0,children:h&&(0,e.jsx)(g,{})||(0,e.jsx)(x,{})})})},g=function(u){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},x=function(u){var m=(0,n.Oc)(),v=m.act,d=m.data,h=d.insertedGps,c=d.rotation,f=d.currentZ,p=d.cooldown,C=d.crystalCount,y=d.maxCrystals,O=d.maxPossibleDistance,b=d.maxAllowedDistance,I=d.distance,_=d.tempMsg,D=d.sectorOptions,P=d.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!h,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:p&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:p})," seconds."]})||(0,e.jsx)(r.az,{children:_})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:c,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,R){return v("setrotation",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+b+" m"},minValue:0,maxValue:b,step:1,stepPixelSize:4,onDrag:function(A,R){return v("setdistance",{val:R})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,s.Ul)(function(A){return Number(A)})(D).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:f===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),P&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[P.src_x,", ",P.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[P.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[P.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",C," / ",y]})]})}},27418:function(M,j,t){"use strict";t.r(j),t.d(j,{TextInputModal:function(){return v},removeAllSkiplines:function(){return m},sanitizeMultiline:function(){return u}});var e=t(88095),s=t(72147),n=t(44583),r=t(4413),i=t(92514),a=t(84905),g=t(12035),x=t(18513),u=function(h){return h.replace(/(\n|\r\n){3,}/,"\n\n")},m=function(h){return h.replace(/[\r\n]+/,"")},v=function(h){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.large_buttons,y=p.max_length,O=p.message,b=O===void 0?"":O,I=p.multiline,_=p.placeholder,D=_===void 0?"":_,P=p.timeout,A=p.title,R=(0,n.useState)(D||""),K=R[0],N=R[1],k=function(J){if(J!==K){var H=I?u(J):m(J);N(H)}},X=I||K.length>=30,F=135+(b.length>30?Math.ceil(b.length/4):0)+(X?75:0)+(b.length&&C?5:0);return(0,e.jsxs)(a.p8,{title:A,width:325,height:F,children:[P&&(0,e.jsx)(x.Loader,{value:P}),(0,e.jsx)(a.p8.Content,{onKeyDown:function(J){J.key===s._.Enter&&(!X||!J.shiftKey)&&f("submit",{entry:K}),J.key===s._.Escape&&f("cancel")},children:(0,e.jsx)(i.wn,{fill:!0,children:(0,e.jsxs)(i.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(i.az,{color:"label",children:b})}),(0,e.jsx)(i.BJ.Item,{grow:!0,children:(0,e.jsx)(d,{input:K,onType:k},A)}),(0,e.jsx)(i.BJ.Item,{children:(0,e.jsx)(g.InputButtons,{input:K,message:K.length+"/"+y})})]})})})]})},d=function(h){var c=(0,r.Oc)(),f=c.act,p=c.data,C=p.max_length,y=p.multiline,O=h.input,b=h.onType,I=y||O.length>=30;return(0,e.jsx)(i.fs,{autoFocus:!0,autoSelect:!0,height:y||O.length>=30?"100%":"1.8rem",maxLength:C,onEscape:function(){return f("cancel")},onEnter:function(_){I&&_.shiftKey||(_.preventDefault(),f("submit",{entry:O}))},onChange:function(_,D){return b(D)},onInput:function(_,D){return b(D)},placeholder:"Type something...",value:O})}},98143:function(M,j,t){"use strict";t.r(j),t.d(j,{TimeClock:function(){return g}});var e=t(88095),s=t(5229),n=t(4413),r=t(92514),i=t(84905),a=t(89863),g=function(x){var u=(0,n.Oc)(),m=u.act,v=u.data,d=v.department_hours,h=v.user_name,c=v.card,f=v.assignment,p=v.job_datum,C=v.allow_change_job,y=v.job_choices;return(0,e.jsx)(i.p8,{width:500,height:520,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+h,children:(0,e.jsx)(r.Ki,{children:Object.keys(d).map(function(O){return(0,e.jsxs)(r.Ki.Item,{label:O,color:d[O]>6?"good":d[O]>1?"average":"bad",children:[(0,s.Mg)(d[O],1)," ",d[O]===1?"hour":"hours"]},O)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return m("id")},children:c||"Insert ID"})}),!!p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:p.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(a.RankIcon,{color:"white",rank:p.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:p.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:p.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:p.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:p.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",p.pto_department]})||p.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",p.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(C&&p&&p.timeoff_factor!==0&&f!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:p.timeoff_factor>0&&(d[p.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return m("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(y).length&&Object.keys(y).map(function(O){var b=y[O];return b.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return m("switch-to-onduty-rank",{"switch-to-onduty-rank":O,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(M,j,t){"use strict";t.r(j),t.d(j,{TraitDescription:function(){return g},TraitSelection:function(){return a},TraitTutorial:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(a,{})})})})},a=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=v.names,h=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:d.map(function(c){return(0,e.jsx)(n.tU.Tab,{selected:c===h,onClick:function(){return m("select_trait",{name:c})},children:(0,e.jsx)(n.az,{inline:!0,children:c})},c)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:h&&(0,e.jsx)(n.wn,{title:h,children:(0,e.jsx)(g,{name:h})})})]})},g=function(x){var u=(0,s.Oc)(),m=u.act,v=u.data,d=x.name,h=v.descriptions,c=v.categories,f=v.tutorials;return(0,e.jsxs)(n.wn,{children:[(0,e.jsx)("b",{children:"Name:"})," ",d,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",c[d],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",h[d],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:f[d]}})]})}},81267:function(M,j,t){"use strict";t.r(j),t.d(j,{TransferValve:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.tank_one,v=u.tank_two,d=u.attached_device,h=u.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:h?"unlock":"lock",content:h?"Open":"Closed",disabled:!m||!v,onClick:function(){return x("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!d,onClick:function(){return x("device")}}),children:(0,e.jsx)(n.Ki,{children:d?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:d,disabled:!d,onClick:function(){return x("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:m?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:m,disabled:!m,onClick:function(){return x("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return x("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(M,j,t){"use strict";t.r(j),t.d(j,{TurbineControl:function(){return a}});var e=t(88095),s=t(4413),n=t(92514),r=t(24158),i=t(84905),a=function(g){var x=(0,s.Oc)(),u=x.act,m=x.data,v=m.connected,d=m.compressor_broke,h=m.turbine_broke,c=m.broken,f=m.door_status,p=m.online,C=m.power,y=m.rpm,O=m.temp;return(0,e.jsx)(i.p8,{width:520,height:440,children:(0,e.jsxs)(i.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:c&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return u("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:p?"good":"bad",children:p&&!d&&!h?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:d&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||h&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:p,content:"Compressor Power",onClick:function(){return u(p?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:f,onClick:function(){return u("doors")},content:f?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[c?"--":(0,e.jsx)(n.zv,{value:y})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[c?"--":(0,e.jsx)(n.zv,{value:O})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:c?"--":(0,e.jsx)(n.zv,{format:function(b){return(0,r.d5)(b)},value:Number(C)})})]})})]})})}},44027:function(M,j,t){"use strict";t.r(j),t.d(j,{Turbolift:function(){return i}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i=function(a){var g=(0,s.Oc)(),x=g.act,u=g.data,m=u.floors,v=u.doors_open,d=u.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+d*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:d?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?d?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!d,color:d?"red":null,onClick:function(){return x("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return x("emergency_stop")}})]}),children:[!d||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:m.map(function(h){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:h.label||"Floor #"+h.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:h.current?"red":h.target?"green":h.queued?"yellow":null,onClick:function(){return x("move_to_floor",{ref:h.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:h.name})]})},h.id)})})]})})})}},7829:function(M,j,t){"use strict";t.r(j),t.d(j,{GenericUplink:function(){return h},Uplink:function(){return m}});var e=t(88095),s=t(33854),n=t(44583),r=t(4413),i=t(92514),a=t(24158),g=t(84905);function x(){return x=Object.assign||function(f){for(var p=1;p").map(function(I){return(0,e.jsx)(i.az,{children:I},I)})})]})})||b.map(function(I){return(0,e.jsx)(i.$n,{icon:"eye",fluid:!0,content:I.name,onClick:function(){return C("view_exploits",{id:I.id})}},I.id)})})},h=function(f){var p,C,y=f.currencyAmount,O=y===void 0?0:y,b=f.currencySymbol,I=b===void 0?"\u20AE":b,_=(0,r.Oc)(),D=_.act,P=_.data,A=P.compactMode,R=P.lockable,K=P.categories,N=K===void 0?[]:K,k=(0,n.useState)(""),X=k[0],F=k[1],J=(0,n.useState)((p=N[0])==null?void 0:p.name),H=J[0],Y=J[1],Z=(0,s.XZ)(X,function(z){return z.name+z.desc}),V=X.length>0&&N.flatMap(function(z){return z.items||[]}).filter(Z).filter(function(z,Q){return Q0?"good":"bad",children:[(0,a.up)(O)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(i.pd,{autoFocus:!0,value:X,onInput:function(z,Q){return F(Q)},mx:1}),(0,e.jsx)(i.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return D("compact_toggle")}}),!!R&&(0,e.jsx)(i.$n,{icon:"lock",content:"Lock",onClick:function(){return D("lock")}})]}),children:(0,e.jsxs)(i.so,{children:[X.length===0&&(0,e.jsx)(i.so.Item,{children:(0,e.jsx)(i.tU,{vertical:!0,children:N.map(function(z){var Q;return(0,e.jsxs)(i.tU.Tab,{selected:z.name===H,onClick:function(){return Y(z.name)},children:[z.name," (",((Q=z.items)==null?void 0:Q.length)||0,")"]},z.name)})})}),(0,e.jsxs)(i.so.Item,{grow:1,basis:0,children:[V.length===0&&(0,e.jsx)(i.IC,{children:X.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(c,{compactMode:X.length>0||A,currencyAmount:O,currencySymbol:I,items:V})]})]})})},c=function(f){var p=f.compactMode,C=f.currencyAmount,y=f.currencySymbol,O=(0,r.Oc)().act,b=(0,n.useState)({}),I=b[0],_=b[1],D=I&&I.cost||0,P=f.items.map(function(A){var R=I&&I.name!==A.name,K=C-D=0)&&(k[F]=K[F]);return k}var m=[null,"average","bad"],v={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},d={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},h=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=(0,r.useState)(0),J=F[0],H=F[1],Y=[];return Y[0]=(0,e.jsx)(f,{}),Y[1]=(0,e.jsx)(A,{}),(0,e.jsx)(g.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[X.unsaved_changes&&(0,e.jsx)(a.IC,{danger:!0,children:(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{children:(0,e.jsx)(a.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(a.tU,{children:[(0,e.jsxs)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:["Bellies",(0,e.jsx)(a.In,{name:"list",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:["Preferences",(0,e.jsx)(a.In,{name:"user-cog",ml:.5})]})]}),Y[J]||"Error"]})})},c=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.inside,J=F.absorbed,H=F.belly_name,Y=F.belly_mode,Z=F.desc,V=F.pred,z=F.contents,Q=F.ref;return H?(0,e.jsxs)(a.wn,{title:"Inside",children:[(0,e.jsxs)(a.az,{color:"green",inline:!0,children:["You are currently ",J?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(a.az,{color:"yellow",inline:!0,children:[V,"'s"]}),"\xA0",(0,e.jsx)(a.az,{color:"red",inline:!0,children:H}),"\xA0",(0,e.jsx)(a.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(a.az,{color:v[Y],inline:!0,children:d[Y]}),"\xA0",(0,e.jsx)(a.az,{color:"label",children:Z}),z.length&&(0,e.jsx)(a.Nt,{title:"Belly Contents",children:(0,e.jsx)(P,{contents:z,belly:Q})})||"There is nothing else around you."]}):(0,e.jsx)(a.wn,{title:"Inside",children:"You aren't inside anyone."})},f=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.our_bellies,J=X.selected;return(0,e.jsxs)(a.so,{children:[(0,e.jsx)(a.so.Item,{shrink:!0,children:(0,e.jsx)(a.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(a.tU,{vertical:!0,children:[(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(a.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(a.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(a.In,{name:"file-export",ml:.5})]}),(0,e.jsx)(a.cG,{}),F.map(function(H){return(0,e.jsx)(a.tU.Tab,{selected:H.selected,textColor:v[H.digest_mode],onClick:function(){return k("bellypick",{bellypick:H.ref})},children:(0,e.jsxs)(a.az,{inline:!0,textColor:H.selected&&v[H.digest_mode]||null,children:[H.name," (",H.contents,")"]})},H.name)})]})})}),(0,e.jsx)(a.so.Item,{grow:!0,children:J&&(0,e.jsx)(a.wn,{title:J.belly_name,children:(0,e.jsx)(p,{belly:J})})})]})},p=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.contents,F=(0,r.useState)(0),J=F[0],H=F[1],Y=[];return Y[0]=(0,e.jsx)(C,{belly:k}),Y[1]=(0,e.jsx)(y,{belly:k}),Y[2]=(0,e.jsx)(O,{belly:k}),Y[3]=(0,e.jsx)(I,{belly:k}),Y[4]=(0,e.jsx)(_,{belly:k}),Y[5]=(0,e.jsx)(D,{belly:k}),Y[6]=(0,e.jsx)(P,{outside:!0,contents:X}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.tU,{children:[(0,e.jsx)(a.tU.Tab,{selected:J===0,onClick:function(){return H(0)},children:"Controls"}),(0,e.jsx)(a.tU.Tab,{selected:J===1,onClick:function(){return H(1)},children:"Descriptions"}),(0,e.jsx)(a.tU.Tab,{selected:J===2,onClick:function(){return H(2)},children:"Options"}),(0,e.jsx)(a.tU.Tab,{selected:J===3,onClick:function(){return H(3)},children:"Sounds"}),(0,e.jsx)(a.tU.Tab,{selected:J===4,onClick:function(){return H(4)},children:"Visuals"}),(0,e.jsx)(a.tU.Tab,{selected:J===5,onClick:function(){return H(5)},children:"Interactions"}),(0,e.jsxs)(a.tU.Tab,{selected:J===6,onClick:function(){return H(6)},children:["Contents (",X.length,")"]})]}),Y[J]||"Error"]})},C=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.belly_name,F=k.mode,J=k.item_mode,H=k.addons;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return N("move_belly",{dir:-1})}}),(0,e.jsx)(a.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return N("move_belly",{dir:1})}})]}),children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_name"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Mode",children:(0,e.jsx)(a.$n,{color:v[F],onClick:function(){return N("set_attribute",{attribute:"b_mode"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Mode Addons",children:[H.length&&H.join(", ")||"None",(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(a.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_mode"})},content:J})}),(0,e.jsx)(a.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(a.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return N("set_attribute",{attribute:"b_del"})}})})]})},y=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.verb,F=k.release_verb,J=k.desc,H=k.absorbed_desc;return(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Description",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:J}),(0,e.jsx)(a.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(a.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_verb"})},content:X})}),(0,e.jsx)(a.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release_verb"})},content:F})}),(0,e.jsxs)(a.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(a.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(a.$n,{color:"red",onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},O=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Y=K.belly,Z=Y.can_taste,V=Y.nutrition_percent,z=Y.digest_brute,Q=Y.digest_burn,ee=Y.digest_oxy,oe=Y.digest_tox,ne=Y.digest_clone,ce=Y.bulge_size,de=Y.display_absorbed_examine,ve=Y.shrink_grow_size,pe=Y.emote_time,me=Y.emote_active,be=Y.contaminates,we=Y.contaminate_flavor,Je=Y.contaminate_color,ze=Y.egg_type,Ke=Y.selective_preference,Be=Y.save_digest_mode,ct=Y.eating_privacy_local,xt=Y.silicon_belly_overlay_preference,st=Y.belly_mob_mult,ot=Y.belly_item_mult,Ae=Y.belly_overall_mult;return(0,e.jsxs)(a.so,{wrap:"wrap",children:[(0,e.jsxs)(a.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:Z?"toggle-on":"toggle-off",selected:Z,content:Z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminate"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),be&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:we})}),(0,e.jsx)(a.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(Je)})})]})||null,(0,e.jsx)(a.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:V+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:ce*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:de?"toggle-on":"toggle-off",selected:de,content:de?"True":"False"})}),(0,e.jsx)(a.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(ct)})}),(0,e.jsx)(a.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:Be?"toggle-on":"toggle-off",selected:Be,content:Be?"True":"False"})})]}),(0,e.jsx)(b,{belly:Y})]}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:me?"toggle-on":"toggle-off",selected:me,content:me?"Active":"Inactive"})}),(0,e.jsx)(a.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:pe+" seconds"})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:Q})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:ee})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:oe})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:ne})}),(0,e.jsx)(a.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:ve*100+"%"})}),(0,e.jsx)(a.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(ze)})}),(0,e.jsx)(a.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Ke)})})]})})]})},b=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.host_mobtype,J=F.is_cyborg,H=F.is_vore_simple_mob,Y=K.belly,Z=Y.silicon_belly_overlay_preference,V=Y.belly_mob_mult,z=Y.belly_item_mult,Q=Y.belly_overall_mult;return J?(0,e.jsx)(a.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(Z)})}),(0,e.jsx)(a.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:V})}),(0,e.jsx)(a.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:z})}),(0,e.jsx)(a.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Q})})]})}):H?(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})}):(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{})})},I=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.is_wet,F=k.wet_loop,J=k.fancy,H=k.sound,Y=k.release_sound;return(0,e.jsx)(a.so,{wrap:"wrap",children:(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetness"})},icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_wetloop"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_fancy_sound"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})}),(0,e.jsxs)(a.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_sound"})},content:H}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(a.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_release"})},content:Y}),(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]})]})})})},_=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.belly_fullscreen,F=k.possible_fullscreens,J=k.disable_hud,H=k.belly_fullscreen_color,Y=k.belly_fullscreen_color_secondary,Z=k.belly_fullscreen_color_trinary,V=k.mapRef,z=k.colorization_enabled;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(a.so,{direction:"row",children:[(0,e.jsx)(a.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(a.az,{backgroundColor:Y,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(a.az,{backgroundColor:Z,width:"20px",height:"20px"}),(0,e.jsx)(a.$n,{icon:"eye-dropper",onClick:function(){return N("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(a.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_colorization_enabled"})},icon:z?"toggle-on":"toggle-off",selected:z,content:z?"Yes":"No"})}),(0,e.jsx)(a.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(a.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.wn,{title:"Vore FX",children:(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_disable_hud"})},icon:J?"toggle-on":"toggle-off",selected:J,content:J?"Yes":"No"})})})}),(0,e.jsxs)(a.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(a.$n,{fluid:!0,selected:X===""||X===null,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(F).map(function(Q,ee){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(a.$n,{width:"256px",height:"256px",selected:Q===X,onClick:function(){return N("set_attribute",{attribute:"b_fullscreen",val:Q})},children:(0,e.jsx)(a.az,{className:(0,s.Ly)(["vore240x240",Q]),style:{transform:"translate(0%, 4%)"}})},Q)},ee)})]})]})]})},D=function(K){var N=(0,i.Oc)().act,k=K.belly,X=k.escapable,F=k.interacts;return(0,e.jsx)(a.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(a.$n,{onClick:function(){return N("set_attribute",{attribute:"b_escapable"})},icon:X?"toggle-on":"toggle-off",selected:X,content:X?"Interactions On":"Interactions Off"}),children:X?(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(a.$n,{content:F.escapechance_absorbed+"%",onClick:function(){return N("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(a.$n,{content:F.escapetime/10+"s",onClick:function(){return N("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation?F.transferlocation:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(a.$n,{content:F.transferchance_secondary+"%",onClick:function(){return N("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(a.$n,{content:F.transferlocation_secondary?F.transferlocation_secondary:"Disabled",onClick:function(){return N("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(a.$n,{content:F.absorbchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(a.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(a.$n,{content:F.digestchance+"%",onClick:function(){return N("set_attribute",{attribute:"b_digestchance"})}})})]}):"These options only display while interactions are turned on."})},P=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.show_pictures,J=K.contents,H=K.belly,Y=K.outside,Z=Y===void 0?!1:Y;return(0,e.jsxs)(e.Fragment,{children:[Z&&(0,e.jsx)(a.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,F&&(0,e.jsx)(a.so,{wrap:"wrap",justify:"center",align:"center",children:J.map(function(V){return(0,e.jsxs)(a.so.Item,{basis:"33%",children:[(0,e.jsx)(a.$n,{width:"64px",color:V.absorbed?"purple":m[V.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(V.outside?"pick_from_outside":"pick_from_inside",{pick:V.ref,belly:H})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+V.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),V.name]},V.name)})})||(0,e.jsx)(a.Ki,{children:J.map(function(V){return(0,e.jsx)(a.Ki.Item,{label:V.name,children:(0,e.jsx)(a.$n,{fluid:!0,mt:-1,mb:-1,color:V.absorbed?"purple":m[V.stat],onClick:function(){return k(V.outside?"pick_from_outside":"pick_from_inside",{pick:V.ref,belly:H})},children:"Interact"})},V.ref)})})]})},A=function(K){var N=(0,i.Oc)(),k=N.act,X=N.data,F=X.prefs,J=F.digestable,H=F.devourable,Y=F.resizable,Z=F.feeding,V=F.absorbable,z=F.digest_leave_remains,Q=F.allowmobvore,ee=F.permit_healbelly,oe=F.show_vore_fx,ne=F.can_be_drop_prey,ce=F.can_be_drop_pred,de=F.allow_inbelly_spawning,ve=F.allow_spontaneous_tf,pe=F.step_mechanics_active,me=F.pickup_mechanics_active,be=F.noisy,we=F.drop_vore,Je=F.stumble_vore,ze=F.slip_vore,Ke=F.throw_vore,Be=F.food_vore,ct=F.nutrition_message_visible,xt=F.weight_message_visible,st=F.eating_privacy_global,ot=X.show_pictures,Ae={digestion:{action:"toggle_digest",test:J,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:V,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:H,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Q,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:Z,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ee,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ne,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:ce,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:we,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:ze,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:Je,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:Ke,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Be,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},inbelly_spawning:{action:"toggle_allow_inbelly_spawning",test:de,tooltip:{main:"This toggle is ghosts being able to spawn in one of your bellies. You will have to confirm again when they attempt to.",enable:"Click here to allow prey to spawn in you.",disable:"Click here to prevent prey from spawning in you."},content:{enabled:"Inbelly Spawning Allowed",disabled:"Inbelly Spawning Forbidden"}},noisy:{action:"toggle_noisy",test:be,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},resize:{action:"toggle_resize",test:Y,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:pe,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:oe,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:z,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:me,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:ve,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:ct,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:xt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:st,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}}};return(0,e.jsxs)(a.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(a.$n,{icon:"eye",selected:ot,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",ot?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.digestion})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.absorbable})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.devour})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.mobvore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.feed})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.dropnom_prey})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.dropnom_pred})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_drop_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_slip_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.toggle_stumble_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_throw_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.toggle_food_vore})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.inbelly_spawning})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.noisy})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.resize})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.steppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.remains,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(R,{spec:Ae.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(R,{spec:Ae.spontaneous_tf})}),(0,e.jsx)(a.so.Item,{basis:"32%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(a.so.Item,{basis:"32%",grow:3,children:(0,e.jsx)(R,{spec:Ae.eating_privacy_global})})]}),(0,e.jsx)(a.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(a.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(a.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(a.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(R,{spec:Ae.examine_nutrition})}),(0,e.jsx)(a.so.Item,{basis:"50%",children:(0,e.jsx)(R,{spec:Ae.examine_weight})})]})}),(0,e.jsx)(a.cG,{}),(0,e.jsx)(a.wn,{children:(0,e.jsxs)(a.so,{spacing:1,children:[(0,e.jsx)(a.so.Item,{basis:"49%",children:(0,e.jsx)(a.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(a.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(a.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},R=function(K){var N=(0,i.Oc)().act,k=K.spec,X=u(K,["spec"]),F=k.action,J=k.test,H=k.tooltip,Y=k.content;return(0,e.jsx)(a.$n,x({onClick:function(){return N(F)},icon:J?"toggle-on":"toggle-off",selected:J,fluid:!0,tooltip:H.main+" "+(J?H.disable:H.enable),content:J?Y.enabled:Y.disabled},X))}},85688:function(M,j,t){"use strict";t.r(j),t.d(j,{VorePanelExport:function(){return d}});var e=t(88095),s=t(4413),n=t(92514),r=t(84905),i={Hold:'Hold',Digest:'Digest',Absorb:'Absorb',Drain:'Drain',Selective:'Selective',Unabsorb:'Unabsorb',Heal:'Heal',Shrink:'Shrink',Grow:'Grow',"Size Steal":'Size Steal',"Encase In Egg":'Encase In Egg'},a={Hold:'Item: Hold',"Digest (Food Only)":'Item: Digest (Food Only)',Digest:'Item: Digest'},g={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},x=function(c){var f=[];return c==null||c.forEach(function(p){f.push(''+p+"")}),f.length===0&&f.push("No Addons Set"),f},u=function(c,f){var p=c.name,C=c.desc,y=c.absorbed_desc,O=c.vore_verb,b=c.release_verb,I=c.mode,_=c.addons,D=c.item_mode,P=c.digest_brute,A=c.digest_burn,R=c.digest_oxy,K=c.digest_tox,N=c.digest_clone,k=c.can_taste,X=c.contaminates,F=c.contamination_flavor,J=c.contamination_color,H=c.nutrition_percent,Y=c.bulge_size,Z=c.display_absorbed_examine,V=c.save_digest_mode,z=c.emote_active,Q=c.emote_time,ee=c.shrink_grow_size,oe=c.egg_type,ne=c.selective_preference,ce=c.struggle_messages_outside,de=c.struggle_messages_inside,ve=c.absorbed_struggle_messages_outside,pe=c.absorbed_struggle_messages_inside,me=c.escape_attempt_messages_owner,be=c.escape_attempt_messages_prey,we=c.escape_messages_owner,Je=c.escape_messages_prey,ze=c.escape_messages_outside,Ke=c.escape_item_messages_owner,Be=c.escape_item_messages_prey,ct=c.escape_item_messages_outside,xt=c.escape_fail_messages_owner,st=c.escape_fail_messages_prey,ot=c.escape_attempt_absorbed_messages_owner,Ae=c.escape_attempt_absorbed_messages_prey,Le=c.escape_absorbed_messages_owner,Pe=c.escape_absorbed_messages_prey,ke=c.escape_absorbed_messages_outside,Me=c.escape_fail_absorbed_messages_owner,Fe=c.escape_fail_absorbed_messages_prey,We=c.primary_transfer_messages_owner,He=c.primary_transfer_messages_prey,jt=c.secondary_transfer_messages_owner,Mt=c.secondary_transfer_messages_prey,bt=c.digest_chance_messages_owner,Dt=c.digest_chance_messages_prey,lt=c.absorb_chance_messages_owner,Ge=c.absorb_chance_messages_prey,je=c.digest_messages_owner,Qe=c.digest_messages_prey,mt=c.absorb_messages_owner,Pt=c.absorb_messages_prey,zt=c.unabsorb_messages_owner,en=c.unabsorb_messages_prey,Wt=c.examine_messages,dn=c.examine_messages_absorbed,Bn=c.emotes_digest,Gn=c.emotes_hold,Hn=c.emotes_holdabsorbed,Eo=c.emotes_absorb,bo=c.emotes_heal,Oo=c.emotes_drain,Vr=c.emotes_steal,Xr=c.emotes_egg,Gr=c.emotes_shrink,oa=c.emotes_grow,In=c.emotes_unabsorb,Io=c.is_wet,Cr=c.wet_loop,xn=c.fancy_vore,pn=c.vore_sound,ir=c.release_sound,Er=c.disable_hud,_o=c.escapable,ei=c.escapechance,ti=c.escapechance_absorbed,ni=c.escapetime,Kn=c.transferchance,aa=c.transferlocation,ia=c.transferchance_secondary,ri=c.transferlocation_secondary,sa=c.absorbchance,la=c.digestchance,ae="";return ae+='

',ae+='

",ae+='
',ae+='
',ae+="Addons:
"+x(_)+"

",ae+="== Descriptions ==
",ae+="Vore Verb:
"+O+"

",ae+="Release Verb:
"+b+"

",ae+='Description:
"'+C+'"

',ae+='Absorbed Description:
"'+y+'"

',ae+="
",ae+="== Messages ==
",ae+='
',ae+='
",ae+='
',ae+='
',ae+='
',me==null||me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',be==null||be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',we==null||we.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Je==null||Je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ze==null||ze.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ke==null||Ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Be==null||Be.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ct==null||ct.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',xt==null||xt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',st==null||st.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ot==null||ot.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ae==null||Ae.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Le==null||Le.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pe==null||Pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ke==null||ke.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Me==null||Me.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Fe==null||Fe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',We==null||We.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',He==null||He.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',jt==null||jt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Mt==null||Mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',bt==null||bt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Dt==null||Dt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',lt==null||lt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Ge==null||Ge.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ce==null||ce.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',de==null||de.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',ve==null||ve.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',pe==null||pe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',je==null||je.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Qe==null||Qe.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',mt==null||mt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Pt==null||Pt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',zt==null||zt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',en==null||en.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',Wt==null||Wt.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+='
',dn==null||dn.forEach(function(Se){ae+=Se+"
"}),ae+="
",ae+="
",ae+="
",ae+="
",ae+="
= Idle Messages =

",ae+="

Idle Messages (Hold):

",Gn==null||Gn.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Hn==null||Hn.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Bn==null||Bn.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Eo==null||Eo.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",In==null||In.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Oo==null||Oo.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",bo==null||bo.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Vr==null||Vr.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Gr==null||Gr.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",oa==null||oa.forEach(function(Se){ae+=Se+"
"}),ae+="


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

",Xr==null||Xr.forEach(function(Se){ae+=Se+"
"}),ae+="


",ae+="


",ae+="
",ae+='
',ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Can Taste: '+(k?'Yes':'No')+"
  • ",ae+='
  • Contaminates: '+(X?'Yes':'No')+"
  • ",ae+='
  • Contamination Flavor: '+F+"
  • ",ae+='
  • Contamination Color: '+J+"
  • ",ae+='
  • Nutritional Gain: '+H+"%
  • ",ae+='
  • Required Examine Size: '+Y*100+"%
  • ",ae+='
  • Display Absorbed Examines: '+(Z?'True':'False')+"
  • ",ae+='
  • Save Digest Mode: '+(V?'True':'False')+"
  • ",ae+='
  • Idle Emotes: '+(z?'Active':'Inactive')+"
  • ",ae+='
  • Idle Emote Delay: '+Q+" seconds
  • ",ae+='
  • Shrink/Grow Size: '+ee*100+"%
  • ",ae+='
  • Egg Type: '+oe+"
  • ",ae+='
  • Selective Mode Preference: '+ne+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+='
    ',ae+='
  • Fleshy Belly: '+(Io?'Yes':'No')+"
  • ",ae+='
  • Internal Loop: '+(Cr?'Yes':'No')+"
  • ",ae+='
  • Use Fancy Sounds: '+(xn?'Yes':'No')+"
  • ",ae+='
  • Vore Sound: '+pn+"
  • ",ae+='
  • Release Sound: '+ir+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
",ae+='
',ae+="Vore FX",ae+='
    ',ae+='
  • Disable Prey HUD: '+(Er?'Yes':'No')+"
  • ",ae+="
",ae+="
",ae+='
',ae+='

',ae+='

",ae+='
',ae+='
',ae+="Belly Interactions ("+(_o?'Enabled':'Disabled')+")",ae+='
    ',ae+='
  • Escape Chance: '+ei+"%
  • ",ae+='
  • Escape Chance: '+ti+"%
  • ",ae+='
  • Escape Time: '+ni/10+"s
  • ",ae+='
  • Transfer Chance: '+Kn+"%
  • ",ae+='
  • Transfer Location: '+aa+"
  • ",ae+='
  • Secondary Transfer Chance: '+ia+"%
  • ",ae+='
  • Secondary Transfer Location: '+ri+"
  • ",ae+='
  • Absorb Chance: '+sa+"%
  • ",ae+='
  • Digest Chance: '+la+"%
  • ",ae+="
",ae+="
",ae+="
",ae},m=function(){var c=new Date,f=String(c.getHours());f.length<2&&(f="0"+f);var p=String(c.getMinutes());p.length<2&&(p="0"+p);var C=String(c.getDate());C.length<2&&(C="0"+C);var y=String(c.getMonth()+1);y.length<2&&(y="0"+y);var O=String(c.getFullYear());return" "+O+"-"+y+"-"+C+" ("+f+" "+p+")"},v=function(c){var f=(0,s.Oc)(),p=f.act,C=f.data,y=C.db_version,O=C.db_repo,b=C.mob_name,I=C.bellies,_=m(),D=b+_+c,P;if(c===".html"){var A="";P=new Blob([''+I.length+" Exported Bellies (DB_VER: "+O+"-"+y+')'+A+'

Bellies of '+b+'

Generated on: '+_+'

'],{type:"text/html;charset=utf8"}),I.forEach(function(R,K){P=new Blob([P,u(R,K)],{type:"text/html;charset=utf8"})}),P=new Blob([P,"
",'